Assign policy to sub account
    • PDF

    Assign policy to sub account

    • PDF

    Article summary

    • Assign a policy to a sub account.

    API

    • POST /sub-accounts/{subAccountId}/policies

    Requests

    Path Variables

    ParameterRequiredTypeRestrictionsDescription
    subAccountIdYStringSubAccount Id

    Body

    {
    	"policyIdList": [
    		"string"
    	]
    }
    
    ParameterRequiredTypeRestrictionsDescription
    policyIdListYarrayPolicy ID list

    Responses

    • Responses
    Parameter nameRequiredTypeDescription
    ProcessResultYArrayProcessing result
    • Response example - Success
    [
        {
            "id": "policyId1",
            "success": true
        }
    ]
    
    • Response example - No policy information found
    [
        {
            "success": false,
            "id": "policyId1",
            "message": "This policy isn't registered."
        }
    ]
    
    • Response example - Policy already added
    [
        {
            "success": false,
            "id": "policyId1",
            "message": "The policy has already been registered."
        }
    ]
    

    Error

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

    HTTP status codeError codeError message
    40130Nonexistent account

    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.