Operations Management/Tenant Management (Plus)/Project Operations
POSTProject OperationsSince 0.6SynchronousAuth Required
CreateRole
CreateRole
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Request Inputs
Body Fields
paramsObjectRequiredRequest body parameter object.
nameStringRequiredThe resource name.
descriptionStringOptional. The detailed description of the resource.
statementsListOptional.
policyUuidsListOptional.
resourceUuidStringOptional.
systemTagsListOptional.
userTagsListOptional.
Responses
Endpoint
POST/zstack/v1/identities/roles
/zstack/v1/identities/roles
Request Example
curl -X POST 'http://{host}/zstack/v1/identities/roles' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"params":{"name":"<name>","description":"<description>","statements":["<statements>"],"policyUuids":["<policyUuids>"],"resourceUuid":"<resourceUuid>"},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "uuid": "7e9df59e6d453b2187a0da3ee94f63c9", "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.
