{"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"}}},"DescribeUnusedDesktopsRsp":{"description":"查询未使用的桌面响应。","properties":{"total_count":{"description":"总数。","format":"int32","maximum":2000,"minimum":0,"type":"integer"},"unused_desktops":{"description":"指定时间段内未使用桌面列表。","items":{"$ref":"#/definitions/UnusedDesktopInfo"},"maxItems":2000,"minItems":0,"type":"array","x-maxLength":2000,"x-minLength":0}}},"UnusedDesktopInfo":{"description":"未使用的桌面信息。","properties":{"compute_name":{"description":"桌面名称。","readOnly":true,"type":"string"},"create_time":{"description":"桌面创建时间。","readOnly":true,"type":"string"},"desktop_id":{"description":"桌面id。","readOnly":true,"type":"string"},"disconnect_time":{"description":"最近一次断连时间。","readOnly":true,"type":"string"}}}},"description":null,"group_id":"7383c32d5d5e4d0481c071faeb994404","host":"workspace.cn-north-4.myhuaweicloud.com","id":"669e818da94847de853bdfe61a67f3a6","info_version":"v2","method":"get","name":"ListUnusedDesktops","parameters":{},"paths":{"/v2/{project_id}/desktops/statistics/unused":{"get":{"description":"查询在指定时间段未使用的桌面。","operationId":"ListUnusedDesktops","parameters":[{"description":"项目ID。","in":"path","maxLength":255,"minLength":1,"name":"project_id","required":true,"type":"string","x-example":"2b31ed520xxxxxxebedb6e57xxxxxxxx"},{"description":"发送的实体的MIME类型。","in":"header","maxLength":255,"minLength":1,"name":"Content-Type","required":false,"type":"string","x-example":"application/json"},{"description":"用户Token。\n通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)。","in":"header","maxLength":40000,"minLength":1,"name":"X-Auth-Token","required":true,"type":"string","x-example":"MIIDkgYJKoZIhvcNAQcCoIIDgzCCXXXXXX...","x-is-registered":"N"},{"default":0,"description":"从查询结果中的第几条数据开始返回,用于分页查询,取值范围0-2000,默认从0开始。","in":"query","maximum":2000,"minimum":0,"name":"offset","required":false,"type":"integer"},{"default":1000,"description":"查询结果中想要返回的信息条目数量,用于分页查询,取值范围0-2000,默认值1000。","in":"query","maximum":2000,"minimum":0,"name":"limit","required":false,"type":"integer"},{"description":"开始时间:由日期加时间组成,UTC格式,格式:yyyy-MM-ddTHH:mm:ss.SSSZ,若未输入,则查询现在到前一天的未使用的桌面。","in":"query","maxLength":32,"minLength":10,"name":"start_time","required":false,"type":"string"},{"description":"结束时间:由日期加时间组成,UTC格式,格式:yyyy-MM-ddTHH:mm:ss.SSSZ,若未输入,则查询现在到前一天的未使用的桌面。","in":"query","maxLength":32,"minLength":10,"name":"end_time","required":false,"type":"string"}],"responses":{"200":{"description":"查询在指定时间段未使用的桌面响应。","examples":{"application/json":{"total_count":2,"unused_desktops":[{"compute_name":"ZYZ08","create_time":"2022-08-08T02:34:05.202Z","desktop_id":"e0367f84-1d64-498e-9b92-093002ac3ce8","disconnect_time":"2022-08-08T02:39:00.000Z"},{"compute_name":"wangyan8301","create_time":"2022-08-08T02:34:05.202Z","desktop_id":"b8eb2ac0-4540-4409-857f-df5e2de07546","disconnect_time":"2022-08-08T02:39:00.000Z"}]}},"schema":{"$ref":"#/definitions/DescribeUnusedDesktopsRsp"}},"default":{"description":"错误响应。","schema":{"$ref":"#/definitions/BaseResponse"}}},"schemes":["https"],"summary":"查询在指定时间段未使用的桌面","tags":["DesktopStatistics"],"x-apiexplorer-hide":"N","x-apig-group":"public","x-apigateway-request-type":"public","x-is-registered":"Y","x-request-examples-url-1":"/v2/13d4944fcfc7448893f50d81a6a2edd3/desktops/statistics/unused","x-support-sdk":"Y"}}},"product_short":"Workspace","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"查询在指定时间段未使用的桌面","tags":"桌面统计","uri":null,"version":"2.0"}