Operations Management/Tenant Management (Plus)/Project Operations
PUTProject OperationsSince 0.6SynchronousAuth Required
UpdateRole
UpdateRole
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Path Parameters
Request Inputs
Path Parameters
uuidStringRequiredThe resource UUID.
Body Fields
updateroleObjectRequiredupdaterole request body object.
nameStringRequiredThe resource name.
descriptionStringOptional. The detailed description of the resource.
statementsListOptional. The permission statements.
policyUuidsListOptional. The permission policy UUIDs.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
PUT/zstack/v1/identities/roles/{uuid}
/zstack/v1/identities/roles/{uuid}
Request Example
curl -X PUT 'http://{host}/zstack/v1/identities/roles/{uuid}' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"updaterole":{"name":"<name>","description":"<description>","statements":["<statements>"],"policyUuids":["<policyUuids>"]},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "uuid": "14c577188a0c3ee8871e27087a287bc2", "name": "role-1", "description": "role for test", "type": "Customized", "state": "Enabled", "statements": [ "statement for test" ] } }Change History
This API has no change history records yet.
