Activate or deactivate sub account access key
    • PDF

    Activate or deactivate sub account access key

    • PDF

    Article summary

    Available in Classic and VPC

    Suspend/resume the access key of a sub account.

    Request

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

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

    Request headers

    FieldDescription
    acceptSpecify as application/JSON

    Request path parameters

    The following describes the parameters.

    FieldTypeRequiredDescription
    subAccountIdStringRequiredID of sub account that owns the access key

    Request body parameter

    The following describes the parameters.

    FieldTypeRequiredDescription
    accessKeyStringRequiredAccess Key Id
    activeBooleanRequiredKey activation status

    Request example

    The following is a sample request.

    curl -X PUT "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"
    -d "{ \"accessKey\": \"{access key}\", \"active\": true}"
    

    Response

    The following describes the response format.

    Response body

    The following describes the response body.

    FieldTypeRequiredDescription
    ProcessResultProcessResult-Processing result

    Response status codes

    Errors that may occur while using this action are listed below.
    For response status codes common to NAVER Cloud Platform, see Ncloud API response status codes.

    HTTP status codeError codeError message
    40130The account doesn't exist
    400904The access key doesn't exist

    Response example

    The following is a sample response.

    {
        "success": true
    }
    

    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.