Remove Policy assigned to Role
- Print
- PDF
Remove Policy assigned to Role
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
- Delete the policy assigned to the Role.
API
- DELETE /roles/{roleNo}/policies
Request
Path Variables
Parameter | Mandatory | Type | Constraints | Description |
---|---|---|---|---|
roleNo | Y | String | Role No |
##### Body
{
"policyIdList": [
"string"
]
}
Parameter | Mandatory | Type | Constraints | Description |
---|---|---|---|---|
policyIdList | Y | array | Policy Id List |
Response
- Response
Parameter Name | Mandatory | Type | Constraints |
---|---|---|---|
ProcessResult | Y | Array | Processing Result |
- Example Response - Success
[
{
"id": "policyId",
"name": "removePolicy",
"success": true
}
]
- Example Response - No Policy Information
[
{
"success": false,
"id": "policyId",
"message": "Unregistered policy."
}
]
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 | This account does not exist. |
Was this article helpful?