查询桌面池详情
功能介绍
指定桌面池Id查询详细信息。
调试
您可以在API Explorer中调试该接口,支持自动认证鉴权。API Explorer可以自动生成SDK代码示例,并提供SDK代码示例调试功能。
URI
GET /v2/{project_id}/desktop-pools/{pool_id}
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
project_id |
是 |
String |
项目ID。 |
pool_id |
是 |
String |
桌面池ID。 |
请求参数
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
X-Auth-Token |
否 |
String |
用户Token。 通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)。 |
响应参数
状态码: 200
参数 |
参数类型 |
描述 |
---|---|---|
id |
String |
桌面池ID。 |
name |
String |
桌面池名称。 |
type |
String |
桌面池类型。DYNAMIC:动态池,STATIC:静态池。 |
description |
String |
桌面池描述。 |
created_time |
String |
创建时间,格式为:UTC格式,例如“2022-05-11T11:45:42.000Z”。 |
charging_mode |
String |
计费模式,0:包周期,1:按需。 |
desktop_count |
Integer |
桌面池总桌面数量。 |
desktop_used |
Integer |
桌面池绑定用户的桌面个数。 |
availability_zone |
String |
可用区。 |
subnet_id |
String |
子网ID。 |
product |
ProductInfo object |
产品信息。 |
image_id |
String |
镜像ID。 |
image_name |
String |
镜像名称。 |
image_os_type |
String |
镜像OS类型。 |
image_os_version |
String |
镜像OS版本。 |
image_os_platform |
String |
镜像OS平台。 |
image_product_code |
String |
镜像的productCode(specCode)。 |
root_volume |
VolumeInfo object |
系统盘。 |
data_volumes |
Array of VolumeInfo objects |
数据盘列表。 |
security_groups |
Array of SecurityGroup objects |
桌面安全组。 |
disconnected_retention_period |
Integer |
动态池桌面断连多少分钟内,保留用户与桌面的绑定关系,超时后自动解绑。 |
enable_autoscale |
Boolean |
桌面池是否开启弹性伸缩类型,为false则表示不开启弹性伸缩,为true则表示开启弹性伸缩。 |
autoscale_policy |
AutoscalePolicy object |
弹性伸缩策略。 |
status |
String |
桌面池状态。
|
enterprise_project_id |
String |
企业项目ID。 |
in_maintenance_mode |
Boolean |
桌面池是否处于管理员维护模式。 |
desktop_name_policy_id |
String |
策略id,用于指定生成桌面名称策略。 |
参数 |
参数类型 |
描述 |
---|---|---|
product_id |
String |
产品ID。 |
flavor_id |
String |
产品规格ID。 |
type |
String |
产品类型。
|
cpu |
String |
CPU。 |
memory |
String |
内存。 |
descriptions |
String |
产品描述。 |
charge_mode |
String |
周期套餐标识,0表示包周期,1表示按需。 |
参数 |
参数类型 |
描述 |
---|---|---|
id |
String |
批量操作磁盘的磁盘集合id。 |
type |
String |
桌面数据盘对应的磁盘类型,需要与系统所提供的磁盘类型相匹配。
|
size |
Integer |
磁盘容量,单位GB。 |
resource_spec_code |
String |
规格。 |
参数 |
参数类型 |
描述 |
---|---|---|
autoscale_type |
String |
弹性伸缩类型,ACCESS_CREATED:接入时创建,AUTO_CREATED:弹性伸缩。 |
max_auto_created |
Integer |
自动创建桌面上限。 |
min_idle |
Integer |
空闲桌面低于多少时开始自动创建桌面。 |
once_auto_created |
Integer |
一次自动创建桌面的数量。 |
状态码: 400
参数 |
参数类型 |
描述 |
---|---|---|
error_code |
String |
错误码,失败时返回。 |
error_msg |
String |
错误描述。 |
encoded_authorization_message |
String |
加密后的详细拒绝原因,用户可以自行调用STS服务的decode-authorization-message接口进行解密。 |
状态码: 401
参数 |
参数类型 |
描述 |
---|---|---|
error_code |
String |
错误码,失败时返回。 |
error_msg |
String |
错误描述。 |
encoded_authorization_message |
String |
加密后的详细拒绝原因,用户可以自行调用STS服务的decode-authorization-message接口进行解密。 |
状态码: 403
参数 |
参数类型 |
描述 |
---|---|---|
error_code |
String |
错误码,失败时返回。 |
error_msg |
String |
错误描述。 |
encoded_authorization_message |
String |
加密后的详细拒绝原因,用户可以自行调用STS服务的decode-authorization-message接口进行解密。 |
状态码: 404
参数 |
参数类型 |
描述 |
---|---|---|
error_code |
String |
错误码,失败时返回。 |
error_msg |
String |
错误描述。 |
encoded_authorization_message |
String |
加密后的详细拒绝原因,用户可以自行调用STS服务的decode-authorization-message接口进行解密。 |
状态码: 500
参数 |
参数类型 |
描述 |
---|---|---|
error_code |
String |
错误码,失败时返回。 |
error_msg |
String |
错误描述。 |
encoded_authorization_message |
String |
加密后的详细拒绝原因,用户可以自行调用STS服务的decode-authorization-message接口进行解密。 |
请求示例
/v2/0bec5db98280d2d02fd6c00c2de791ce/desktops-pools/a130ab3a-72bf-4b71-baa9-af4987c8e338
响应示例
状态码: 200
正常。
{ "id" : "2c2be3fb-0013-48d5-a081-0731f3473997", "name" : "POOL2", "type" : "DYNAMIC", "description" : "string。", "created_time" : "2023-01-04T07:10:53.554Z", "charging_mode" : "1", "desktop_count" : 10, "desktop_used" : 5, "on_demand_desktop_num" : 0, "availability_zone" : "string", "subnet_id" : "string", "product" : { "product_id" : "workspace.x86.ultimate.large2", "flavor_id" : "s6.large.2", "type" : "BASE", "cpu" : "2", "memory" : "4096", "descriptions" : "尊享办公|2核|4GB内存。", "charge_mode" : "1", "architecture" : "x86", "is_gpu" : false, "package_type" : "ultimate", "system_disk_type" : "SAS", "system_disk_size" : "80", "contain_data_disk" : false, "resource_type" : "hws.resource.type.workspace.desktop", "cloud_service_type" : "hws.service.type.vdi", "volume_product_type" : "workspace", "status" : "normal", "sub_product_list" : [ ] }, "image_id" : "string", "image_name" : "string", "image_os_type" : "string", "image_os_version" : "string", "image_os_platform" : "string", "image_product_code" : "string", "root_volume" : { "id" : "string", "type" : "string", "size" : 8200, "cluster_id" : "string", "resource_spec_code" : "string" }, "data_volumes" : [ { "id" : "string", "type" : "string", "size" : 8200, "cluster_id" : "string", "resource_spec_code" : "string" } ], "security_groups" : [ { "id" : "string", "name" : "string" } ], "disconnected_retention_period" : 10, "enable_autoscale" : true, "autoscale_policy" : { "autoscale_type" : "AUTO_CREATED", "max_auto_created" : 1000, "min_idle" : 100, "once_auto_created" : 10 }, "status" : "STEADY", "enterprise_project_id" : "0", "in_maintenance_mode" : false, "desktop_name_policy_id" : "TEST" }
状态码
状态码 |
描述 |
---|---|
200 |
正常。 |
400 |
由于包含语法错误,当前请求无法被服务器理解。 |
401 |
鉴权失败。 |
403 |
没有操作权限。 |
404 |
找不到资源。 |
500 |
服务内部错误,具体返回错误码请参见错误码说明。 |
错误码
请参见错误码。