查看电脑策略列表

接口说明

开放政企版查看电脑策略列表接口 业务逻辑:支持通过资源池、可用区、网络工作区、策略名称、策略状态查询镜像列表 限流:根据租户实现用户级别的限流,限制为100次每秒


推荐使用API Explorer调试

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

URL

POST https://ecloud.10086.cn/api/Computer_api/cem_openapi/ccacem/api/v1/computerPolicy/getPolicyList

请求参数

Body

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

请求入参

currentPage
integer(int32)
否

当前页

dc
string
否

网络工作区,V2.0协议非必传

pageSize
integer(int32)
否

分页大小

policyName
string
否

策略名称

policyStatus
string
否

策略状态 creating 创建中 create 创建完成 createError 创建失败 deleting 删除中 deleted 已删除 deletedError 删除失败 alter 变更中 alterError 变更失败

poolCode
string
否

所属资源池

region
string
否

所属可用区

请求示例

POST https://ecloud.10086.cn/api/Computer_api/cem_openapi/ccacem/api/v1/computerPolicy/getPolicyList
{
	"currentPage":1,
	"pageSize":10,
	"poolCode":"CIDC-RP-25",
	"region":"CIDC-RP-25-AZ2",
	"dc":"VMC151-new",
	"policyName":"自定义usb",
	"policyStatus":"create"
}

返回参数

返回码:200
OK
参数名称
类型
描述
body
PageReturnEntity«ComputerPolicyListResp»

请求成功时返回的数据

data
<ComputerPolicyListResp> array

数据

bindMachineCount
integer(int32)

关联电脑数

companyName
string

厂商名称

createdTime
string

创建时间

dc
string

网络工作区

modifiedTime
string

修改时间

policyId
string

策略id

policyName
string

策略名称

policyRemark
string

策略描述

policyStatus
string

策略状态

poolCode
string

资源池编码

poolName
string

资源池名称

region
string

可用区

regionName
string

可用区名称

totalCount
integer(int32)

总行数

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":[
			{
				"policyId":"23a45b14-c7b9-4305-a157-85d918d24f24",
				"policyName":"openapi测试8",
				"policyRemark":null,
				"policyStatus":"alter",
				"companyName":"移动云",
				"poolCode":"CIDC-RP-25",
				"poolName":"华东-苏州",
				"dc":null,
				"region":"CIDC-RP-25-AZ2",
				"regionName":"可用区二",
				"bindMachineCount":0,
				"createdTime":"2025-09-21 15:44:35",
				"modifiedTime":"2025-09-21 16:27:17"
			},
			{
				"policyId":"226f5063-f911-4ee6-a616-3be78f24787c",
				"policyName":"openapi测试2",
				"policyRemark":null,
				"policyStatus":"creating",
				"companyName":"移动云",
				"poolCode":"CIDC-RP-25",
				"poolName":"华东-苏州",
				"dc":null,
				"region":"CIDC-RP-25-AZ2",
				"regionName":"可用区二",
				"bindMachineCount":0,
				"createdTime":"2025-09-21 15:44:08",
				"modifiedTime":"2025-09-21 15:44:08"
			},
			{
				"policyId":"cf865bf2-f9ca-483e-a97e-d557268485fb",
				"policyName":"openapi测试2",
				"policyRemark":null,
				"policyStatus":"create",
				"companyName":"移动云",
				"poolCode":"CIDC-RP-25",
				"poolName":"华东-苏州",
				"dc":null,
				"region":"CIDC-RP-25-AZ2",
				"regionName":"可用区二",
				"bindMachineCount":0,
				"createdTime":"2025-09-21 15:40:28",
				"modifiedTime":"2025-09-21 15:33:56"
			},
			{
				"policyId":"58f46a51-6a7b-40a9-bda6-f6728c7f0d39",
				"policyName":"openapi测试",
				"policyRemark":null,
				"policyStatus":"create",
				"companyName":"移动云",
				"poolCode":"CIDC-RP-25",
				"poolName":"华东-苏州",
				"dc":null,
				"region":"CIDC-RP-25-AZ2",
				"regionName":"可用区二",
				"bindMachineCount":0,
				"createdTime":"2025-09-21 15:38:22",
				"modifiedTime":"2025-09-21 15:31:50"
			},
			{
				"policyId":"d7e32b69-b1e0-4c47-882a-58e568cb76f0",
				"policyName":"452策略",
				"policyRemark":null,
				"policyStatus":"create",
				"companyName":"移动云",
				"poolCode":"CIDC-RP-25",
				"poolName":"华东-苏州",
				"dc":null,
				"region":"CIDC-RP-25-AZ2",
				"regionName":"可用区二",
				"bindMachineCount":0,
				"createdTime":"2025-09-02 10:05:34",
				"modifiedTime":"2025-09-02 09:59:35"
			},
			{
				"policyId":"1f5f517d-3685-4ac6-a7bf-c8ccbfe622de",
				"policyName":"testzx",
				"policyRemark":null,
				"policyStatus":"create",
				"companyName":"移动云",
				"poolCode":"CIDC-RP-25",
				"poolName":"华东-苏州",
				"dc":null,
				"region":"CIDC-RP-25-AZ2",
				"regionName":"可用区二",
				"bindMachineCount":1,
				"createdTime":"2025-08-28 15:44:51",
				"modifiedTime":"2025-08-28 15:38:57"
			},
			{
				"policyId":"46dd43bd-8364-4d15-b7ba-9c60f0e88401",
				"policyName":"532h1验收测试",
				"policyRemark":null,
				"policyStatus":"alterError",
				"companyName":"移动云",
				"poolCode":"CIDC-RP-25",
				"poolName":"华东-苏州",
				"dc":null,
				"region":"CIDC-RP-25-AZ2",
				"regionName":"可用区二",
				"bindMachineCount":0,
				"createdTime":"2025-08-18 16:07:32",
				"modifiedTime":"2025-08-19 14:36:58"
			},
			{
				"policyId":"04a3173f-9008-4d7f-b076-e809768e9100",
				"policyName":"政企外设加白测试",
				"policyRemark":null,
				"policyStatus":"create",
				"companyName":"移动云",
				"poolCode":"CIDC-RP-25",
				"poolName":"华东-苏州",
				"dc":null,
				"region":"CIDC-RP-25-AZ2",
				"regionName":"可用区二",
				"bindMachineCount":1,
				"createdTime":"2025-08-05 16:04:05",
				"modifiedTime":"2025-08-18 16:43:55"
			},
			{
				"policyId":"4de7af46-682a-4ead-a1d6-945a34939dd0",
				"policyName":"设备测试",
				"policyRemark":null,
				"policyStatus":"create",
				"companyName":"移动云",
				"poolCode":"CIDC-RP-25",
				"poolName":"华东-苏州",
				"dc":null,
				"region":"CIDC-RP-25-AZ2",
				"regionName":"可用区二",
				"bindMachineCount":0,
				"createdTime":"2025-07-31 15:46:19",
				"modifiedTime":"2025-08-01 15:53:17"
			},
			{
				"policyId":"dc165cc8-f951-4977-83e5-57d217468c80",
				"policyName":"自定义usb",
				"policyRemark":null,
				"policyStatus":"create",
				"companyName":"移动云",
				"poolCode":"CIDC-RP-25",
				"poolName":"华东-苏州",
				"dc":null,
				"region":"CIDC-RP-25-AZ2",
				"regionName":"可用区二",
				"bindMachineCount":0,
				"createdTime":"2025-07-25 17:56:22",
				"modifiedTime":"2025-07-25 17:52:59"
			}
		],
		"totalCount":64
	},
	"errorCode":"200",
	"errorMessage":"",
	"requestId":"38a53a580be3d436"
}
本文档内容整理自移动云官方帮助中心(查看原文),仅供参考。