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) | 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 | Condition Struct | The information of the conditions of the resource. For more information, see Condition Struct. |
Condition Struct ¶
Name | Data Type | Description |
---|---|---|
key | String | The filtered field name. |
operator | Array | The operation. |
customized | Boolean |
|
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
}