You need to enable JavaScript to run this app.
机器学习平台

机器学习平台

Copy page
Download PDF
队列
ListResourceQueues - 资源队列列表
Copy page
Download PDF
ListResourceQueues - 资源队列列表

查询资源队列列表

调试

请求参数

下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。

参数
类型
是否必填
示例值
描述
Action
String
是

ListResourceQueues

要执行的操作,取值:ListResourceQueues。

Version
String
是

2024-07-01

API的版本,取值:2024-07-01。

Ids
Array of String
否

.

根据队列id过滤

NameContains
String
否

.

根据队列名称过滤

ResourceGroupIds
Array of String
否

.

根据资源组id过滤

ZoneIds
Array of String
否

.

根据可用区id过滤

Status
Array of String
否

.

队列状态

WorkloadTypes
Array of String
否

.

队列负载调度配置

Shareable
Boolean
否

.

是否可出借

ChargeType
String
否

.

付费类型

PageNumber
Integer
否

1

分页页码

PageSize
Integer
否

10

分页查询的每页记录数

SortBy
String
否

CreateTime

排序依据

SortOrder
String
否

Ascend

排序顺序

返回参数

下表仅列出本接口特有的返回参数。更多信息请参见返回结构。

参数
类型
示例值
描述
Items
Array of Object

.

队列列表

TotalCount
Integer

1000

数据列表的总量

PageNumber
Integer

1

当前页码

PageSize
Integer

10

分页查询的每页记录数

请求示例

{
	"ChargeType": "OnDemand",
	"NameContains": "test",
	"PageNumber": 1,
	"PageSize": 10,
	"ResourceGroupIds": [
		"r-20250314183632-*****"
	],
	"Status": [
		"Running",
		"Closed"
	],
	"ZoneIds": [
		"cn-beijing-d",
		"cn-beijing-e"
	]
}

返回示例

{
	"Items": [
		{
			"ChargeType": "OnDemand",
			"Description": "",
			"Id": "q-20250314190309-*****",
			"Name": "test1",
			"QuotaAllocated": {
				"Cpu": 0,
				"GpuCount": 0,
				"VolumeSizeGiB": 0
			},
			"QuotaCapability": {
				"Cpu": 32,
				"GpuCount": 2,
				"VolumeSizeGiB": 0
			},
			"ResourceGroupId": "r-20250314183632-*****",
			"Rules": {},
			"Shareable": false,
			"Status": {
				"State": "Running"
			},
			"WorkloadInfos": [
				{
					"WorkloadType": "Job"
				},
				{
					"WorkloadType": "DevInstance"
				},
				{
					"WorkloadType": "Service"
				}
			],
			"ZoneIds": [
				"cn-beijing-e"
			]
		},
		{
			"ChargeType": "OnDemand",
			"Description": "",
			"Id": "q-20250314185238-*****",
			"Name": "test2",
			"QuotaAllocated": {
				"Cpu": 0,
				"GpuCount": 0,
				"VolumeSizeGiB": 0
			},
			"QuotaCapability": {
				"Cpu": 64,
				"GpuCount": 2,
				"VolumeSizeGiB": 0
			},
			"ResourceGroupId": "r-20250314183632-*****",
			"Rules": {},
			"Shareable": false,
			"Status": {
				"State": "Running"
			},
			"WorkloadInfos": [
				{
					"WorkloadType": "Job"
				},
				{
					"WorkloadType": "DevInstance"
				},
				{
					"WorkloadType": "Service"
				}
			],
			"ZoneIds": [
				"cn-beijing-e"
			]
		}
	],
	"PageNumber": 1,
	"PageSize": 10,
	"TotalCount": 2
}

错误码

您可访问公共错误码,获取更多错误码信息。

Last updated: 2025.04.24 21:00:30