Assign policy to sub account
- Print
- PDF
Assign policy to sub account
- Print
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
The latest service changes have not yet been reflected in this content. We will update the content as soon as possible. Please refer to the Korean version for information on the latest updates.
- Assign a policy to a sub account.
API
- POST /sub-accounts/{subAccountId}/policies
Request
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 |
Response
- Response
Parameter | Required | Type | Description |
---|---|---|---|
ProcessResult | Y | Array | Result of processing |
- Response Example - Success
[
{
"id": "policyId1",
"success": true
}
]
- Response Example - No policy information found
[
{
"success": false,
"id": "policyId1"
}
]
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, refer to Naver Cloud Platform API.
HTTP status code | Error code | Error message |
---|---|---|
401 | 30 | The account doesn't exist. |
Was this article helpful?