Get Resource Provider¶
Get the provider information 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/provider/get
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 | Provider Struct | The information of the provider of the resource. For more information, see Provider Struct. |
Provider Struct ¶
Name | Data Type | Description |
---|---|---|
providerCode | String | The unique provider identifier. |
resourceType | String | The unique resource type identifier. |
name | String | The resource name. |
baseUrl | String | The base URL of the provider’s SPI RESTful API. |
structure | Integer | The structure of the resource.
|
placeholder | String | The front-end resource box placeholder. |
all | Integer |
|
specify | Integer |
|
displayIndex | Integer | The display order. |
authMode | Integer | The authentication mode.
|
condition | Integer |
|
keyTooltip | String | The current provider’s description of the key in the condition. |
Samples¶
Request Sample¶
url: https://{apigw-address}/enos-iam-service/v2.3/resource/provider/get?orgId=yourOrgId&resourceType=yourResourceType
method: GET
Return Sample¶
{
"data": {
"providerCode": "service",
"resourceType": "asset_node",
"name": "Asset",
"baseUrl": "http://{apigw-address}/iam/ctrl/api/resource/proxy",
"structure": 1,
"placeholder": null,
"all": 1,
"specify": 1,
"displayIndex": 2,
"authMode": 0,
"condition": 0,
"keyTooltip": null
},
"requestId": null,
"status": 0,
"message": "",
"success": true,
"failed": false,
"successful": true,
"fail": false
}