Assign policy to sub account
- Print
- PDF
Assign policy to sub account
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
- Assign a policy to a sub account.
API
- POST /sub-accounts/{subAccountId}/policies
Requests
Path Variables
Parameter | Required | Type | Restrictions | Description |
---|---|---|---|---|
subAccountId | Y | String | SubAccount Id |
Body
{
"policyIdList": [
"string"
]
}
Parameter | Required | Type | Restrictions | Description |
---|---|---|---|---|
policyIdList | Y | array | Policy ID list |
Responses
- Responses
Parameter name | Required | Type | Description |
---|---|---|---|
ProcessResult | Y | Array | Processing 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 code | Error code | Error message |
---|---|---|
401 | 30 | Nonexistent account |
Was this article helpful?