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) Mandatory/Optional Data Type Description
orgId Query Mandatory String The ID of the organization to which the resource belongs. How to get orgId>>
resourceType Query Mandatory 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.

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
}