Operations Management/Tenant Management (Plus)/Project Operations
POSTProject OperationsSince 0.6SynchronousAuth Required
AttachPolicyToRole
AttachPolicyToRole
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Path Parameters
Request Inputs
Path Parameters
roleUuidStringRequired角色UUID。
policyUuidStringRequiredThe permission policy UUID.
Body Fields
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
POST/zstack/v1/identities/policies/{policyUuid}/roles/{roleUuid}
/zstack/v1/identities/policies/{policyUuid}/roles/{roleUuid}
Request Example
curl -X POST 'http://{host}/zstack/v1/identities/policies/{policyUuid}/roles/{roleUuid}' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ { "error": { "code": "SYS.1001", "description": "A message or a operation timeout", "details": "Create VM on KVM timeout after 300s" } }Change History
This API has no change history records yet.
