STS 생성
    • PDF

    STS 생성

    • PDF

    Article Summary

    서브 계정용 Secure Token Service를 생성합니다.

    API

    POST /credentials
    
    Content-Type: application/json; charset=utf-8
    x-ncp-apigw-timestamp: {Timestamp}
    x-ncp-iam-access-key: {Sub Account Access Key or STS Access Key}`
    x-ncp-apigw-signature-v2: {API Gateway Signature}
    

    API Header

    항목설명
    Content-Type요청 Body Content Type을 application/json으로 지정 (POST)
    x-ncp-apigw-timestamp1970 년 1 월 1 일 00:00:00 협정 세계시(UTC)부터의 경과 시간을 밀리초(Millisecond)로 표시
    API Gateway 서버와 시간차가 5 분 이상 나는 경우 유효하지 않은 요청으로 간주
    x-ncp-apigw-timestamp:{Timestamp}
    x-ncp-iam-access-keyIAM 콘솔에서 발급한 SubAccount Access Key 또는 생성한 STS accessKey
    x-ncp-iam-access-key:{Sub Account Access Key or STS Access Key}
    x-ncp-apigw-signature-v2Access Key ID 값 과 Secret Key 로 암호화한 서명
    x-ncp-apigw-signature-v2:{API Gateway Signature}
    참고

    네이버 클라우드 플랫폼 인증키 및 Signature 생성 방법에 대한 설명은 Ncloud API를 참조해 주십시오.

    요청

    {
    	"durationSec": "integer",
    	"serialNumber": "string",
    	"tokenCode": "integer"
    }
    
    파라미터필수여부타입제약사항설명
    durationSecNinteger- accessKey 지속 시간(초)
    default: 3600
    min: 600
    max: 43200
    serialNumberNstringOTP 디바이스 nrn 또는 시리얼 번호
    tokenCodeNintegerOTP 인증 번호
    참고

    MFA serialNumber 는 포털 마이페이지 > 계정 관리 > 2차 인증 관리 메뉴에서 확인할 수 있습니다.

    응답

    • 응답
    {
    	"accessKey": "string",
    	"keySecret": "string",
    	"createTime": "string",
    	"expireTime": "string",
    	"useMfa": "boolean"
    }
    
    항목타입설명비고
    accessKeystringaccessKey
    keySecretstringsecretKey
    createTimestring생성 일자
    expireTimestring만료 일자
    useMfabooleanMFA 인증 여부

    에러

    아래 에러 코드는 이 액션(Action)에서 특징적으로 발생하는 에러입니다.
    공통적으로 발생하는 에러에 대한 상세한 설명은 NAVER Cloud Platform API를 참고해주세요.

    HTTP status code에러 코드에러 메시지
    400400durationSec은 다음과 같은 범위에서만 사용 가능
    valid range: 600 - 43200 : [durationSec]
    401401MultiFactorAuthentication failed with invalid MFA one time pass code

    이 문서가 도움이 되었습니까?

    What's Next
    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.