{"base_path":null,"components":null,"consumes":"[\"application/json\"]","definitions":{"AddressInfo":{"properties":{"OS-EXT-IPS-MAC:mac_addr":{"description":"MAC地址。","maxLength":255,"minLength":0,"type":"string"},"OS-EXT-IPS:type":{"description":"IP地址分配方式。\n-fixed 私有IP地址。\n-floating 浮动IP地址。","maxLength":255,"minLength":0,"type":"string"},"addr":{"description":"IP地址信息。","maxLength":255,"minLength":1,"type":"string"},"version":{"description":"IP地址类型,值为4或6,分别表示IPV4和IPV6。","maxLength":5,"minLength":1,"type":"string"}}},"AttachInstancesUserInfo":{"description":"分配桌面用户信息。","properties":{"type":{"default":"USER","description":"对象类型,可选值为:\n- USER:用户。\n- GROUP:用户组。","enum":["USER","GROUP"],"maxLength":20,"minLength":1,"type":"string"},"user_group":{"description":"桌面用户所属的用户组。\n- sudo:Linux管理员组。\n- default:Linux默认用户组。\n- administrators:Windows管理员组。管理员拥有对该桌面的完全访问权,可以做任何需要的更改(禁用操作除外)。\n- users:Windows标准用户组。标准用户可以使用大多数软件,并可以更改不影响其他用户的系统设置。","maxLength":255,"minLength":1,"type":"string"},"user_id":{"description":"用户id","maxLength":255,"minLength":1,"type":"string"},"user_name":{"description":"桌面所属的用户,当桌面分配成功后此用户可以登录该桌面。只允许输入大写字母、小写字母、数字、中划线(-)和下划线(_)。域类型为LITE_AD时,使用小写字母或者大写字母开头,长度范围为[1-20]。当域类型为LOCAL_AD时,用户名可以使用小写字母或者大写字母或者数字开头,长度范围为[1-32]。Windows桌面用户最长支持20个字符,Linux桌面用户最长支持32个字符。","maxLength":32,"minLength":1,"type":"string","x-isSensitive":true}}},"BaseResponse":{"description":"API响应基类","properties":{"error_code":{"description":"错误码。","maxLength":12,"minLength":0,"type":"string"},"error_msg":{"description":"错误描述。","maxLength":1000,"minLength":0,"type":"string"}}},"DescribeDesktopDetailResponse":{"properties":{"desktop":{"$ref":"#/definitions/DesktopDetailInfo","description":"桌面详情信息。"}}},"DesktopDetailInfo":{"description":"桌面详情。","properties":{"addresses":{"additionalProperties":{"items":{"$ref":"#/definitions/AddressInfo"},"maxItems":255,"minItems":0,"type":"array"},"description":"桌面IP地址列表。","type":"object"},"attach_state":{"description":"分配状态。\n- ATTACHED:已分配。\n- UNATTACH:未分配 表示未关联。\n- DEATTACHED:已解分配。\n- ATTACHING:分配中。\n- DEATTACHING:解分配中。\n- ATTACHFAIL:分配失败。\n- DEATTACHFAIL:解分配失败。\n- WAITING:等待被分配中,描述从批量分配(解分配)下发到转入分配(解分配)的中间状态 同时方便单个关联流程的状态独立性。\n- ATTACH_FAIL_CAN_ATTACH_AGAIN:分配失败,还可以再关联。\n- DEATTACH_FAIL_CAN_DEATTACH_AGAIN:解分配失败,还可以再解分配。","enum":["ATTACHED","UNATTACH","DEATTACHED","ATTACHING","DEATTACHING","ATTACHFAIL","DEATTACHFAIL","WAITING","ATTACH_FAIL_CAN_ATTACH_AGAIN","DEATTACH_FAIL_CAN_DEATTACH_AGAIN"],"readOnly":true,"type":"string"},"attach_user_infos":{"description":"桌面已分配的用户信息列表。","items":{"$ref":"#/definitions/AttachInstancesUserInfo"},"readOnly":true,"type":"array"},"availability_zone":{"description":"可用分区。","maxLength":55,"minLength":1,"type":"string"},"bill_resource_id":{"description":"桌面计费资源ID","maxLength":255,"minLength":0,"type":"string"},"computer_name":{"description":"桌面名。","maxLength":55,"minLength":1,"type":"string"},"created":{"description":"桌面创建时间。","maxLength":255,"minLength":1,"type":"string"},"data_volumes":{"description":"数据盘列表。","items":{"$ref":"#/definitions/VolumeDetail"},"maxItems":10,"minItems":1,"type":"array","x-maxLength":10,"x-minLength":1},"desktop_id":{"description":"桌面ID。","maxLength":255,"minLength":1,"type":"string"},"desktop_type":{"description":"桌面类型。\n\n- DEDICATED:专属桌面。","maxLength":55,"minLength":1,"type":"string"},"enterprise_project_id":{"description":"企业项目ID","maxLength":36,"minLength":0,"type":"string"},"flavor":{"$ref":"#/definitions/FlavorInfo","description":"产品信息。"},"internet_mode":{"description":"上网方式。\n- NAT:表示NAT上网方式。\n- EIP:表示EIP上网方式。\n- BOTH:表示两种上网方式都支持。","enum":["NAT","EIP","BOTH"],"readOnly":true,"type":"string"},"ip_addresses":{"description":"IP地址列表。","items":{"maxLength":255,"minLength":0,"type":"string"},"maxItems":10,"minItems":1,"type":"array","x-maxLength":10,"x-minLength":1},"is_attaching_eip":{"description":"桌面是否正在绑定EIP。","readOnly":true,"type":"boolean"},"login_status":{"description":"桌面的登录状态。\n\n- UNREGISTER:表示桌面未注册时的状态(桌面启动后,会自动注册)。关机后也会出现未注册的状态。\n- REGISTERED:表示桌面注册以后,等待用户连接的状态。\n- CONNECTED:表示用户已经成功登录,正在使用桌面。\n- DISCONNECTED:表示桌面与客户端断开会话后显示的状态,可能为关闭客户端窗口,或客户端与桌面网络断开引起。","maxLength":255,"minLength":1,"type":"string"},"metadata":{"additionalProperties":{"maxLength":255,"minLength":0,"type":"string"},"description":"桌面元数据。\n\n- charging_mode 周期套餐标识,1表示包周期,0表示按需。\n- image_name 创建桌面的镜像名称。\n- bill_resource_id 镜像计费资源ID。\n- metering.image_id 镜像ID。\n- metering.resourcespeccode 桌面资源编码。\n- metering.resourcetype 桌面资源类型。\n- os_bit 操作系统位数:32或64。\n- os_type 操作系统类型:Linux、Windows或Others。\n- desktop_os_version 操作系统版本。","type":"object"},"order_id":{"description":"包周期产品的订单ID。","maxLength":255,"minLength":0,"type":"string"},"os_version":{"description":"操作系统版本号。","maxLength":55,"minLength":1,"type":"string"},"ou_name":{"description":"创建桌面时加入的OU名称。","maxLength":55,"minLength":1,"type":"string"},"process":{"description":"桌面任务进度, 取值范围0-100以及null,null表示该桌面无任务,0-100表明该任务进度的百分比。","readOnly":true,"type":"integer"},"product":{"$ref":"#/definitions/ProductDetailInfo","description":"产品信息。"},"product_id":{"description":"产品ID。","maxLength":255,"minLength":1,"type":"string"},"root_volume":{"$ref":"#/definitions/VolumeDetail","description":"系统盘。"},"security_groups":{"description":"桌面安全组。","items":{"$ref":"#/definitions/SecurityGroup"},"maxItems":10,"minItems":1,"type":"array","x-maxLength":10,"x-minLength":1},"sid":{"description":"SID","maxLength":255,"minLength":0,"type":"string"},"site_name":{"description":"站点名字","readOnly":true,"type":"string"},"site_type":{"description":"站点类型","readOnly":true,"type":"string"},"status":{"description":"桌面状态。","maxLength":55,"minLength":1,"type":"string"},"subnet_id":{"description":"桌面的子网ID。","maxLength":255,"minLength":0,"type":"string"},"tags":{"description":"桌面标签列表。","items":{"$ref":"#/definitions/Tag"},"maxItems":2147483647,"minItems":0,"type":"array"},"task_status":{"description":"任务状态。\n\n- scheduling:创建中,正在进行调度。\n- block_device_mapping:创建中,正在准备磁盘。\n- networking:创建中,正在准备网络。\n- spawning:创建中,正在内部创建。\n- rebooting:重启中。\n- reboot_pending:重启中,正在下发重启。\n- reboot_started:重启中,开始内部重启。\n- rebooting_hard:强制重启中。\n- reboot_pending_hard:强制重启中,正在下发重启。\n- reboot_started_hard:强制重启中,开始内部重启。\n- rebuilding:重建中。\n- rebuild_block_device_mapping:重建中,正在准备磁盘。\n- rebuild_spawning:重建中,正在内部重建。\n- migrating:热迁移中。\n- resize_prep:调整规格中,正在准备阶段。\n- resize_migrating:调整规格中,正在迁移阶段。\n- resize_migrated:调整规格中,已经完成迁移。\n- resize_finish:调整规格中,正在完成调整。\n- resize_reverting:调整规格中,正在回退调整。\n- powering-off:停止中。\n- powering-on:启动中。\n- deleting:删除中。\n- deleteFailed:删除失败。","maxLength":55,"minLength":1,"type":"string"},"user_group":{"description":"桌面用户所属的用户组。\n\n- sudo:Linux管理员组。\n- default:Linux默认用户组。\n- administrators:Windows管理员组。管理员拥有对该桌面的完全访问权,可以做任何需要的更改(禁用操作除外)。\n- users:Windows标准用户组。标准用户可以使用大多数软件,并可以更改不影响其他用户的系统设置。","maxLength":55,"minLength":1,"type":"string"},"user_group_list":{"description":"用户组列表","items":{"maxLength":255,"minLength":0,"type":"string"},"type":"array","x-maxLength":255,"x-minLength":0},"user_list":{"description":"用户列表","items":{"maxLength":255,"minLength":0,"type":"string"},"type":"array","x-maxLength":255,"x-minLength":0},"user_name":{"description":"桌面所属用户。","maxLength":55,"minLength":1,"type":"string"}}},"FlavorInfo":{"properties":{"id":{"description":"桌面对应的规格ID。","maxLength":255,"minLength":1,"type":"string"},"links":{"description":"桌面对应规格的相关标记快捷链接信息。","items":{"$ref":"#/definitions/FlavorLinkInfo"},"maxItems":10,"minItems":1,"type":"array","x-maxLength":10,"x-minLength":1}}},"FlavorLinkInfo":{"properties":{"hrel":{"description":"对应快捷链接。","maxLength":255,"minLength":1,"type":"string"},"rel":{"description":"快捷链接标记名称。","maxLength":55,"minLength":1,"type":"string"}}},"ProductDetailInfo":{"allOf":[{"$ref":"#/definitions/SimpleProduct"},{"type":"object"}]},"SecurityGroup":{"description":"安全组。","properties":{"id":{"description":"安全组ID。","maxLength":255,"minLength":0,"type":"string"},"name":{"description":"安全组名称。","maxLength":55,"minLength":0,"type":"string"}},"required":["id"]},"SimpleProduct":{"description":"产品信息。","properties":{"charge_mode":{"description":"周期套餐标识,0表示包周期,1表示按需。","maxLength":1,"minLength":0,"type":"string"},"cpu":{"description":"CPU","maxLength":255,"minLength":1,"type":"string"},"descriptions":{"description":"产品描述。","maxLength":255,"minLength":1,"type":"string"},"flavor_id":{"description":"产品规格ID。","maxLength":255,"minLength":1,"type":"string"},"memory":{"description":"内存。","maxLength":255,"minLength":1,"type":"string"},"product_id":{"description":"产品ID。","maxLength":255,"minLength":1,"type":"string"},"type":{"description":"产品类型。\n\n- BASE:表示产品基础套餐,套餐镜像中不包括除操作系统之外的其他商业软件,私有镜像场景只能使用此类套餐。","maxLength":55,"minLength":1,"type":"string"}}},"Tag":{"description":"标签","properties":{"key":{"description":"标签的键,不能为空,最大长度128个unicode字符。大小写字母,数字,可以包含中划线“-”,下划线“_”,不能包含以下字符“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”。","maxLength":128,"minLength":0,"type":"string"},"value":{"default":"","description":"标签的值,最大长度43个unicode字符。大小写字母,数字,可以包含中划线“-”,下划线“_”,不能包含以下字符“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”。","maxLength":43,"minLength":0,"type":"string"}},"required":["key"]},"VolumeDetail":{"description":"磁盘信息。","properties":{"bill_resource_id":{"description":"磁盘计费资源ID。","maxLength":255,"minLength":0,"type":"string"},"create_time":{"description":"磁盘的创建时间","maxLength":255,"minLength":0,"type":"string"},"device":{"description":"挂载目录。","maxLength":255,"minLength":0,"type":"string"},"display_name":{"description":"磁盘名","maxLength":255,"minLength":0,"type":"string"},"id":{"description":"磁盘表唯一标识ID。","maxLength":255,"minLength":0,"type":"string"},"size":{"description":"磁盘容量,单位GB。","maximum":2147483647,"minimum":0,"type":"integer"},"type":{"description":"桌面数据盘对应的磁盘类型,需要与系统所提供的磁盘类型相匹配。\n\n- SAS:高IO。\n- SSD:超高IO。","maxLength":255,"minLength":1,"type":"string"},"volume_id":{"description":"磁盘ID。","maxLength":255,"minLength":0,"type":"string"}},"required":["size","type"]}},"description":null,"group_id":"7383c32d5d5e4d0481c071faeb994404","host":"workspace.cn-north-4.myhuaweicloud.com","id":"064e0a85aebe4ba889e1fc3d9ec0a210","info_version":"v2","method":"get","name":"ShowDesktopDetail","parameters":{},"paths":{"/v2/{project_id}/desktops/{desktop_id}":{"get":{"description":"指定桌面Id查询详细信息。","operationId":"ShowDesktopDetail","parameters":[{"description":"用户Token。\n\n通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)。","in":"header","maxLength":40000,"minLength":1,"name":"X-Auth-Token","required":true,"type":"string","x-annotations":"@Size(max = 40000, min = 1)","x-example":"MIIDkgYJKoZIhvcNAQcCoIIDgzCCXXXXXX...","x-is-registered":"N"},{"description":"发送的实体的MIME类型。","in":"header","maxLength":255,"minLength":1,"name":"Content-Type","required":false,"type":"string","x-annotations":"@Size(max = 255, min = 1)","x-example":"application/json"},{"description":"项目ID。","in":"path","maxLength":255,"minLength":1,"name":"project_id","required":true,"type":"string","x-annotations":"@Size(max = 255, min = 1)","x-example":"2b31ed520xxxxxxebedb6e57xxxxxxxx"},{"description":"桌面ID。","in":"path","maxLength":255,"minLength":1,"name":"desktop_id","required":true,"type":"string","x-annotations":"@Size(max = 255, min = 1)","x-example":"2b31e-d520xxxx-xxebedb6-e57xxxxxx"}],"responses":{"200":{"description":"正常","examples":{"application/json":{"desktop":[{"addresses":[{"OS-EXT-IPS-MAC:mac_addr":"fa:16:3e:2e:41:55","OS-EXT-IPS:type":"fixed","addr":"172.16.253.204","version":"4"},{"OS-EXT-IPS-MAC:mac_addr":"fa:16:3e:d5:b3:02","OS-EXT-IPS:type":"fixed","addr":"10.0.9.55","version":"4"}],"availability_zone":"cn-north-5a","computer_name":"CHENMIN01","created":"2022-01-21T06:57:47.459Z","data_volumes":[{"create_time":"2022-03-28T00:00:00Z","device":"/dev/vdc","display_name":"workspace001","id":"fd4597cb80b311ecaf56fa163ed8e03f","size":10,"type":"SATA","volume_id":"230432f1-44a4-47a1-862e-cd0b65c04bd1"}],"desktop_id":"21616aa6-061d-4b2f-bd83-b230d7a9a14c","desktop_type":"DEDICATED","flavor":{"id":"rs3.large.2","links":[]},"ip_addresses":["172.16.253.204","10.0.9.55"],"login_status":"REGISTERED","metadata":{"charging_mode":"0","desktop_os_version":"20","image_name":"copy_uos-hjg1","metering.image_id":"39efed30-a0db-4520-8134-19a086e14c7e","metering.resourcespeccode":"rs3.large.2.linux","metering.resourcetype":"1","os_bit":"64","os_type":"Linux"},"order_id":"CS2201211457G0PUY","os_version":"20","product":{"charge_mode":"0","cpu":"2","descriptions":"CPU:2vCPUs,Memory:4GB","flavor_id":"rs3.large.2","memory":"3072","product_id":"workspace.k.large2.uosv20pro","type":"BASE"},"product_id":"workspace.k.large2.uosv20pro","root_volume":{"create_time":"2022-03-28T00:00:00Z","device":"/dev/vda","display_name":"workspace002","id":"e4406c227a8711ecaf56fa163ed8e03f","size":90,"type":"SAS","volume_id":"91b9457c-ef61-4058-9e82-c86b35f15934"},"share_resource_sku":"workspace.collaborativedesktop.6party.standard","sid":"1f60adc1-941c-48b8-b5c8-64948329b7cb","status":"ACTIVE","tags":[],"task_status":"","user_group":"default","user_name":"chenmin"}]}},"schema":{"$ref":"#/definitions/DescribeDesktopDetailResponse"}},"400":{"description":"由于包含语法错误,当前请求无法被服务器理解。","schema":{"$ref":"#/definitions/BaseResponse"}},"401":{"description":"鉴权失败。","schema":{"$ref":"#/definitions/BaseResponse"}},"403":{"description":"没有操作权限。","schema":{"$ref":"#/definitions/BaseResponse"}},"404":{"description":"找不到资源。","schema":{"$ref":"#/definitions/BaseResponse"}},"500":{"description":"服务内部错误,具体返回错误码请参见错误码说明。","schema":{"$ref":"#/definitions/BaseResponse"}}},"schemes":["https"],"summary":"查询单个桌面详情","tags":["Desktop"],"x-apiexplorer-hide":"N","x-apig-group":"public,internal_token,internal_appcode","x-apigateway-request-type":"public","x-is-registered":"Y","x-request-examples-url-1":"/v2/0bec5db98280d2d02fd6c00c2de791ce/desktops/a130ab3a-72bf-4b71-baa9-af4987c8e338","x-support-sdk":"Y"}}},"product_short":"Workspace","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"查询单个桌面详情","tags":"桌面","uri":null,"version":"2.0"}