Get Resource Type


Get the list of resource types in the OU.

Request Format


POST https://{apigw-address}/app-portal-service/v2.3/resource/type/list

Request Parameters (URI)


Name

Location (Path/Query)

Required/Optional

Data Type

Description

orgId

Query

Required

String

OU ID. How to get orgId >>

Request Parameters (Body)


Name

Required/Optional

Data Type

Description

code

Required

Array

The resource type codes to be queried.

Response Parameters


Name

Data Type

Description

types

Types Struct

The list of resource types. Types Struct >>

Types Struct


Name

Data Type

Description

code

String

The code of the resource type.

name

String

The internationalized name of the resource type.

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"
          }
        }
      }
    ]
  }
}