Get Resource Operation Permissions¶
Get the operation permissions that can be selected for a resource based on the resource type.
Operation Permissions¶
Applications assigned with the administrator policy in the OU.
Request Format¶
GET https://{apigw-address}/enos-iam-service/v2.3/resource/get/action
Request Parameters (URI)¶
Name | Location (Path/Query) | Required/Optional | Data Type | Description |
---|---|---|---|---|
orgId | Query | Required | String | The ID of the OU to which the resource belongs. How to get orgId>> |
resourceType | Query | Required | String | The unique resource type identifier. |
Response Parameters¶
Name | Data Type | Description |
---|---|---|
data | Action Struct | The information of the operation permissions of the resource. For more information, see Action Struct. |
Action Struct ¶
Name | Data Type | Description |
---|---|---|
desc | String | |
value | String | The operation. |
Samples¶
Request Sample¶
url:https://{apigw-address}/enos-iam-service/v2.3/resource/get/action?orgId=yourOrgId&resourceType=yourResourceType
method: GET
Return Sample¶
{
"data": [
{
"value": "read",
"desc": "Obtain asset details"
},
{
"value": "write",
"desc": "Update asset details and attributes"
},
{
"value": "control",
"desc": "Issue commands to assets"
}
],
"requestId": null,
"status": 0,
"message": "",
"success": true,
"failed": false,
"successful": true,
"fail": false
}