Create sub account access key
    • PDF

    Create sub account access key

    • PDF

    Article summary

    Create an access key of a sub account.

    Requests

    The following describes the request format for the endpoint. The request format is as follows.

    MethodURI
    POST/sub-accounts/{subAccountId}/access-keys

    Request headers

    The following describes the headers. For headers common to all Sub Account APIs, see Sub Account common headers.

    FieldDescription
    acceptSpecify as application/json

    Request path parameters

    The following describes the parameters.

    FieldTypeRequiredDescription
    subAccountIdStringRequiredID of sub account to view

    Request example

    The following is a sample request.

    curl -X GET "https://subaccount.apigw.ntruss.com/api/v1/sub-accounts/{subAccountId}/access-keys" 
    -H "accept: application/json" 
    -H "x-ncp-iam-access-key: {access key}" 
    -H "x-ncp-apigw-timestamp: 1594646226859" 
    -H "x-ncp-apigw-signature-v2: {signature}" 
    -H "cache-control: no-cache" 
    -H "pragma: no-cache"
    

    Responses

    The following describes the response format.

    Response body

    The following describes the response body.

    FieldTypeRequiredDescription
    accessKeyString-Access Key Id
    keySecretString-Access Key Secret
    createTimeDate-Key creation time

    Response status codes

    It describes response status codes. For response status codes common to NAVER Cloud Platform, see Ncloud API response status codes.

    HTTP status codeError CodeError message
    40430Nonexistent account
    4099012Maximum number of active access keys that can be created exceeded

    Response example

    The following is a sample response.

      {
        "accessKey": "{access key}",
        "keySecret": "{key secret}",
        "createTime": "2024-04-25T08:02:15Z"
      }
    


    Was this article helpful?

    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.