Get Resource Conditions


Get the conditions of 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/condition

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 Condition Struct The information of the conditions of the resource. For more information, see Condition Struct.

Samples

Request Sample

url:https://{apigw-address}/enos-iam-service/v2.3/resource/get/condition?orgId=yourOrgId&resourceType=yourResourceType
method: GET

Return Sample

{
  "fail": false,
  "data": [
    {
      "key": "modelId",
      "operator": [
        "=",
        "in"
      ],
      "customized": false
    },
    {
      "key": "tag",
      "operator": [
        "="
      ],
      "customized": true
    }
  ],
  "requestId": null,
  "fail": false,
  "success": true,
  "failed": false,
  "message": "",
  "status": 0,
  "successful": true
}