查询绑定时下拉的电脑列表

接口说明

面向政企版租户开放查询绑定时下拉的电脑列表 业务逻辑:支持按照订购资源ID、云电脑名称、云电脑ID、登录账号搜索 限流:根据租户实现用户级别的限流,限制为100次每秒


推荐使用API Explorer调试

API Explorer支持接口在线可视化调用,同时自动生成动态代码示例,搭配OpenAPI SDK无需计算签名实现接口快速集成。

URL

POST https://ecloud.10086.cn/api/Computer_api/cem_openapi/ccacem/api/v1/resource-policy/resourceList

请求参数

Body

参数名称
类型
必填
描述
reqDto
ResourcePolicyListApiReq
是

请求入参

currentPage
integer(int32)
否

当前页

pageSize
integer(int32)
否

分页大小

policyUid
string
是

定时任务uid

machineName
string
否

云电脑名称

machineId
string
否

云电脑id

userName
string
否

登录账号

instanceId
string
否

订购资源实例id

请求示例

POST https://ecloud.10086.cn/api/Computer_api/cem_openapi/ccacem/api/v1/resource-policy/resourceList
{
	"currentPage":1,
	"pageSize":10,
	"policyUid":"ro-f3a4ab6c1fb34858b7d70a4996b68521",
	"machineName":"我的电脑",
	"machineId":"748f385f-1d08-4446-ab02-b13fa42c0b99",
	"userName":"testImport216.cheng",
	"instanceId":"CCA-e5073d2adcde43dd9d610686e739ba0a"
}

返回参数

返回码:200
OK
参数名称
类型
描述
body
ResourceDescInfoApiDto

请求成功时返回的数据

bindStatus
string

绑定状态,0:未关联,1:关联当前策略,2:关联其他策略

configShutdownRevert
boolean

是否配置关机还原

instanceId
string

资源实例id

machineId
string

桌面id

machineName
string

桌面名称

mail
string

邮箱

mobile
string

手机号

userId
string

登录用户

userName
string

登录用户

errorCode
string

统一错误码

errorMessage
string

错误码提示信息

requestId
string

每个请求的序列号

state
enum(OK,ERROR,EXCEPTION,FORBIDDEN,REMAINING,TIMEOUT)

返回状态码;返回正常:OK,返回错误:ERROR,返回异常:EXCEPTION,需要告警实现的:ALARM,禁止访问:FORBIDDEN

返回示例

返回码:200
OK
{
	"state":"OK",
	"body":{
		"data":[
			{
				"instanceId":"CCA-e5073d2adcde43dd9d610686e739ba0a",
				"machineId":"748f385f-1d08-4446-ab02-b13fa42c0b99",
				"machineName":"我的电脑",
				"userId":"1902199076778336258",
				"userName":"testImport216.cheng",
				"mail":null,
				"mobile":null,
				"bindStatus":"0"
			}
		],
		"totalCount":1
	},
	"errorCode":"200",
	"errorMessage":"",
	"requestId":"cdff558682693fab"
}
本文档内容整理自移动云官方帮助中心(查看原文),仅供参考。