{"base_path":null,"components":null,"consumes":"[\"application/json\"]","definitions":{"BaseResponse":{"description":"API响应基类","properties":{"error_code":{"description":"错误码。","maxLength":12,"minLength":0,"type":"string"},"error_msg":{"description":"错误描述。","maxLength":1000,"minLength":0,"type":"string"}}},"DescribeProductsResponse":{"description":"套餐列表响应体。","properties":{"architecture":{"description":"产品架构。请求参数有package_type=agile时,才有此参数。","readOnly":true,"type":"string"},"availability_zone":{"description":"可用分区。请求参数有availability_zone时,才有此参数。","readOnly":true,"type":"string"},"os_type":{"description":"套餐所支持操作系统类型。请求参数有os_type时,才有此参数。","readOnly":true,"type":"string"},"products":{"description":"产品列表。","items":{"$ref":"#/definitions/ProductInfo"},"readOnly":true,"type":"array"},"total_count":{"description":"对象总数。","readOnly":true,"type":"integer"}}},"ProductInfo":{"properties":{"architecture":{"description":"产品架构,当前支持:arm、x86。","maxLength":255,"minLength":1,"type":"string"},"bill_switch":{"default":"on","description":"话单开关,默认on,on-出话单模式,off-关话单模式,只支持反序列化,不支持序列化,不在接口中展示。","maxLength":255,"minLength":0,"type":"string"},"charge_mode":{"description":"周期套餐标识。0表示包周期,1表示按需。","maxLength":2,"minLength":0,"type":"string"},"cloud_service_type":{"description":"云服务编码。","maxLength":255,"minLength":0,"type":"string"},"contain_data_disk":{"description":"套餐计费是否包含了数据盘,off-不包含。","type":"boolean"},"cpu":{"description":"cpu。","maxLength":255,"minLength":1,"type":"string"},"cpu_desc":{"description":"cpu描述。","maxLength":255,"minLength":0,"type":"string"},"data_disk_size":{"default":"80","description":"数据盘大小,单位GB。","maxLength":255,"minLength":0,"type":"string"},"default_desktop_num":{"description":"专享主机套餐默认的桌面数。","maximum":100,"minimum":0,"type":"integer"},"descriptions":{"description":"产品描述。","maxLength":255,"minLength":1,"type":"string"},"domain_ids":{"description":"该产品套餐支持的专有域id(domainId)。","items":{"maxLength":255,"minLength":0,"type":"string"},"maxItems":100,"minItems":0,"type":"array"},"flavor_id":{"description":"规格ID。","maxLength":255,"minLength":1,"type":"string"},"gpu_desc":{"description":"GPU描述。","maxLength":255,"minLength":0,"type":"string"},"is_gpu":{"description":"是否是GPU类型的规格。","type":"boolean"},"max_apply_desktop_num":{"description":"专享主机支持创建的最大桌面数。","maximum":100,"minimum":0,"type":"integer"},"memory":{"description":"内存。","maxLength":255,"minLength":1,"type":"string"},"product_id":{"description":"产品id。","maxLength":255,"minLength":1,"type":"string"},"resource_type":{"description":"资源规格。","maxLength":255,"minLength":0,"type":"string"},"status":{"default":"normal","description":"产品状态,normal:正常、sellout:售空、abandon:下线。","maxLength":255,"minLength":0,"type":"string"},"sub_product_list":{"description":"专属主机的子产品。","items":{"maxLength":255,"minLength":0,"type":"string"},"maxItems":100,"minItems":0,"type":"array"},"system_disk_size":{"default":"80","description":"系统盘大小,单位GB。","maxLength":255,"minLength":0,"type":"string"},"system_disk_type":{"default":"SAS","description":"系统盘类型。","maxLength":255,"minLength":0,"type":"string"},"type":{"description":"产品类型。取值为:\nBASE:表示产品基础套餐,套餐镜像中不包括除操作系统之外的其他商业软件,私有镜像场景只能使用此类套餐。","maxLength":55,"minLength":1,"type":"string"},"volume_product_type":{"description":"磁盘产品类型。","maxLength":255,"minLength":0,"type":"string"}}}},"description":null,"group_id":"7383c32d5d5e4d0481c071faeb994404","host":"workspace.cn-north-4.myhuaweicloud.com","id":"68d7c4820d17428088e488d8b03b3106","info_version":"v2","method":"get","name":"ListProducts","parameters":{},"paths":{"/v2/{project_id}/products":{"get":{"description":"该接口用于查询云桌面支持的产品套餐列表。","operationId":"ListProducts","parameters":[{"description":"用户Token。\n\n通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)。","in":"header","maxLength":15000,"minLength":1,"name":"X-Auth-Token","required":true,"type":"string","x-example":"MIIDkgYJKoZIhvcNAQcCoIIDgzCCXXXXXX..."},{"description":"发送的实体的MIME类型,如:application/json。","in":"header","maxLength":255,"minLength":1,"name":"Content-Type","required":true,"type":"string","x-example":"application/json"},{"description":"项目id。","in":"path","maxLength":255,"minLength":1,"name":"project_id","required":true,"type":"string","x-example":"2b31ed520xxxxxxebedb6e57xxxxxxxx"},{"description":"产品ID。","in":"query","maxLength":255,"minLength":0,"name":"product_id","required":false,"type":"string"},{"description":"可用分区。","in":"query","maxLength":255,"minLength":0,"name":"availability_zone","required":false,"type":"string"},{"description":"产品套餐的操作系统类型,当前支持:Windows、Linux。","in":"query","maxLength":255,"minLength":0,"name":"os_type","required":false,"type":"string"},{"description":"周期套餐标识。0表示包周期,1表示按需。","in":"query","maxLength":255,"minLength":0,"name":"charge_mode","required":false,"type":"string"},{"description":"架构类型,当前支持:arm、x86。","in":"query","maxLength":255,"minLength":0,"name":"architecture","required":false,"type":"string"},{"description":"套餐系列。","in":"query","maxLength":255,"minLength":0,"name":"package_type","required":false,"type":"string"},{"default":100,"description":"每页数量,范围0-100,默认100。","in":"query","maximum":100,"minimum":0,"name":"limit","required":false,"type":"integer"},{"default":0,"description":"偏移量,默认0。","in":"query","maximum":5000,"minimum":0,"name":"offset","required":false,"type":"integer"}],"responses":{"200":{"description":"查询产品列表响应。","examples":{"application/json":{"availability_zone":"cn-north-4c","os_type":"Linux","products":{"architecture":"arm","charge_mode":"0","cloud_service_type":"hws.service.type.vdi","contain_data_disk":false,"cpu":"4","descriptions":"CPU:4vCPUs,Memory:8GB","flavor_id":"kc1.xlarge.2","is_gpu":false,"memory":"8192","package_type":"enterprise","product_id":"workspace.k.xlarge.2.linux","resource_type":"hws.resource.type.vdi.vm","status":"normal","system_disk_size":"80","system_disk_type":"SAS","type":"BASE","volume_product_type":"workspace"},"total_count":1}},"schema":{"$ref":"#/definitions/DescribeProductsResponse"}},"400":{"description":"由于包含语法错误,当前请求无法被服务器理解。","schema":{"$ref":"#/definitions/BaseResponse"}},"401":{"description":"鉴权失败。","schema":{"$ref":"#/definitions/BaseResponse"}},"403":{"description":"没有操作权限。","schema":{"$ref":"#/definitions/BaseResponse"}},"404":{"description":"找不到资源。","schema":{"$ref":"#/definitions/BaseResponse"}},"405":{"description":"请求中指定的方法不被允许。","schema":{"$ref":"#/definitions/BaseResponse"}},"500":{"description":"服务内部错误,具体返回错误码请参见错误码说明。","schema":{"$ref":"#/definitions/BaseResponse"}},"503":{"description":"服务不可用。","schema":{"$ref":"#/definitions/BaseResponse"}}},"schemes":["https"],"summary":"查询产品套餐列表","tags":["Product"],"x-addValid":true,"x-apiexplorer-hide":"N","x-apig-group":"public,internal_token","x-apigateway-request-type":"public","x-is-registered":"Y","x-support-sdk":"Y"}}},"product_short":"Workspace","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"查询产品套餐列表","tags":"产品套餐","uri":null,"version":"2.0"}