Get Resource Type¶
Get the list of resource types.
Request Parameters (Query)¶
Name | Mandatory/Optional | Data Type | Description |
---|---|---|---|
orgId | Mandatory | String | OU ID. |
Request Parameters (Body)¶
Name | Mandatory/Optional | Data Type | Description |
---|---|---|---|
code | Mandatory | Array | The resource type codes to be queried. |
Response Parameters¶
Name | Data Type | Description |
---|---|---|
data | Data Struct | The result of getting resource types. |
types List¶
Name | Data Type | Description |
---|---|---|
code | String | The codes of resource types. |
name | String | The names of resource types. |
Error Codes¶
Error Code | Description |
---|---|
31400 | Required parameters are missing. |
31404 | Resource type do not exist, or the OU does not acquire the application. |
Samples¶
Request Sample¶
url: /app-portal-service/v2.3/resource/type/list?orgId=your_org_ID
method: POST
{
"codes": ["your_resource_type_id_1", "your_resource_type_id_2"]
}
Return Sample¶
{
"code": 0,
"message": "OK",
"data": {
"types": [
{
"code": "your_resource_type_id_1",
"name": {
"defaultValue": "your_resource_type_name_1",
"i18nValue": {
"zh_CN": "your_resource_type_name_1_zh",
"en_US": "your_resource_type_name_1_en"
}
}
},
{
"code": "your_resource_type_id_2",
"name": {
"defaultValue": "your_resource_type_name_2",
"i18nValue": {
"zh_CN": "your_resource_type_name_2_zh",
"en_US": "your_resource_type_name_2_en"
}
}
}
]
}
}