Creating STS
    • PDF

    Creating STS

    • PDF

    Article summary

    Create Secure Token Service for a sub account.

    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

    ItemDescription
    Content-TypeSpecifies the request body content type as application/json (POST)
    x-ncp-apigw-timestampDisplays the elapsed time in milliseconds since 00:00:00 January 1, 1970 Coordinated Universal Time (UTC)
    If the time differs from that of the API Gateway server by 5 minutes or more, then the request is considered invalid
    x-ncp-apigw-timestamp:{Timestamp}
    x-ncp-iam-access-keySubAccount Access Key issued in or STS accessKey created in the IAM console
    x-ncp-iam-access-key:{Sub Account Access Key or STS Access Key}
    x-ncp-apigw-signature-v2Signature encrypted with access key ID value and secret key
    x-ncp-apigw-signature-v2:{API Gateway Signature}
    Note

    For how to create an authentication key or signature for NAVER Cloud Platform, see Ncloud API.

    Requests

    {
    	"durationSec": "integer",
    	"serialNumber": "string",
    	"tokenCode": "integer"
    }
    
    ParameterRequiredTypeRestrictionsDescription
    durationSecNinteger- accessKey duration (sec)
    default: 3600
    min: 600
    max: 43200
    serialNumberNstringOTP device's NRN or serial number
    tokenCodeNintegerOTP verification code
    Note

    You can view MFA serialNumber in My Page > Manage account > Manage secondary authentication on the portal.

    Responses

    • Responses
    {
    	"accessKey": "string",
    	"keySecret": "string",
    	"createTime": "string",
    	"expireTime": "string",
    	"useMfa": "boolean"
    }
    
    ItemTypeDescriptionNote
    accessKeystringaccessKey
    keySecretstringsecretKey
    createTimestringCreation date
    expireTimestringExpiration date
    useMfabooleanMFA authentication status

    Errors

    Errors that may occur while using this action are listed below.
    For more information about common errors, see NAVER Cloud Platform API.

    HTTP status codeError codeError message
    400400durationSec can be used only in the following scope
    valid range: 600 - 43200 : [durationSec]
    401401MultiFactorAuthentication failed with invalid MFA one time pass code

    Was this article helpful?

    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.