Remove policy assigned to sub account
- Print
- PDF
Remove policy assigned to sub account
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
- Delete a policy assigned to a sub account.
API
- DELETE /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",
"message": "This policy isn't 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, refer to Naver Cloud Platform API.
HTTP status code | Error code | Error message |
---|---|---|
401 | 30 | The account doesn't exist. |
Was this article helpful?