基本信息

Action:/qai/aicp/resource/product/attr

Method: GET

Content-Type:application/json

请求参数

参数 类型 描述 是否必须

zone_id

string

可用区 ID。

no

响应参数

此接口包含的公共响应参数,可参见前文内容,其他参数介绍如下:

参数 类型 含义

action

string

表示 API 的响应动作,固定为 ProductCenterQueryRequestResponse

attributes

array[object]

包含所有属性定义的数组,每个对象代表一个产品属性

trace_id

string

请求追踪 ID,用于问题排查(示例:"Uj3MKFng")

attributes.update_time

string

最后更新时间,如 2025-04-03T12:25:16.750904Z

attributes.value_constraint

String/JSON

值约束条件

attributes.description

string

属性描述,说明用途和注意事项

attributes.is_need_meter

number

是否需要计量

attributes.attr_code

string

属性代码,如 aipods_type

attributes.prod_id

string

产品 ID

attributes.attr_from

string

属性来源,user 表示用户定义

attributes.usage

number

用途分类。

attributes.create_time

string

创建时间,如 2024-05-24T05:48:40.074915Z

attributes.attr_id

string

属性唯一 ID

attributes.value

string

属性值

attributes.filters

array[object]

过滤选项列表

attributes.form_type

string

表单类型

attributes.value_type

string

值类型,如 string/number/bool

attributes.name_en

string

英文名称

attributes.attr_type

string

属性类型

attributes.unit

string

单位

attributes.name

string

属性显示名称

attributes.filters.update_time

string

过滤项更新时间,如 2025-04-03T07:54:11.485604Z

attributes.filters.name

string

显示名称

attributes.filters.display_order

number

显示顺序,数字越小排序越靠前

attributes.filters.prod_id

string

关联产品 ID,同外层 prod_id

attributes.filters.create_time

string

创建时间,如 2024-05-24T05:48:40.100564Z

attributes.filters.attr_id

string

关联属性 ID,同外层 attr_id

attributes.filters.attr_value

string

实际存储值,用于匹配的值

attributes.filters.filter_id

string

过滤器 ID,唯一标识,如flt_NMMkyzm5RzpB

attributes.filters.operator

string

操作符,通常为 ==

attributes.filters.filter_desc

array

过滤描述

attributes.filters.description

string

描述说明

请求示例

curl -X 'GET' \
  'https://ai.coreshub.cn/qai/aicp/resource/product/attr?zone_id=xb3' \
  -H 'accept: application/json'

响应示例

{
  "action": "ProductCenterQueryRequestResponse",
  "attributes": [
    {
      "update_time": "2025-04-03T12:25:16.750904Z",
      "value_constraint": "",
      "description": "【参与调度】与KSE端的算力池相对应,该类型的规格会调度到此算力池,严格使用此字段!",
      "is_need_meter": 2,
      "attr_code": "aipods_type",
      "prod_id": "prod_nGqDBD7D7Q5x",
      "attr_from": "user",
      "usage": 2,
      "create_time": "2024-05-24T05:48:40.074915Z",
      "attr_id": "atr_DMvG8PBq5PjN",
      "value": "",
      "filters": [
        {
          "update_time": "2025-04-03T07:54:11.485604Z",
          "name": "整机",
          "display_order": 17,
          "prod_id": "prod_nGqDBD7D7Q5x",
          "create_time": "2024-05-24T05:48:40.100564Z",
          "attr_id": "atr_DMvG8PBq5PjN",
          "attr_value": "all_machine",
          "filter_id": "flt_NMMkyzm5RzpB",
          "operator": "==",
          "filter_desc": [],
          "description": "废弃"
        }
      ... ...
      ],
      "form_type": "",
      "value_type": "string",
      "name_en": "",
      "attr_type": "enum",
      "unit": "",
      "name": "规格类型"
  ... ...
  ]
  "total": "17",
  "trace_id": "Uj3MKFng",
  "ret_code": 0
}