Last Updated on : 2023-10-09 08:06:39download
Create a permission.
- Note: A maximum of 1,000 permissions can be created for each project.
POST: /v2.0/cloud/iam/permission
Description of body
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
name | String | true | The name of the specified permission. | |
description | String | true | The description of the specified permission. |
Parameter name | Type | Description |
---|---|---|
success | Boolean | Indicates whether the operation is successful. Valid values:
|
error_code | String | The error code. For more information, see the error codes. |
error_msg | String | The message that is returned if the request fails. It is empty if the request is successful. |
result | Object | The returned result, that is, the ID of the specified permission. |
POST: /v2.0/cloud/iam/permission
{
"name":"Permission name",
"description":"Permission description",
}
{
"tid": "44b298320b2a11eeae100efb7ec85579",
"result": 5002,
"t": 1686798666453,
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback