ListPacks

Updated at:

Description: Retrieves a list of robot packs.

Path: rpa/openapi/raas/pack/ListPacks

Method: GET

Usage notes:

  • This operation has no special usage notes.

Request parameters

Parameter

Type

Required

Example

Description

CurrentPage

Integer

No

1

The current page number. The default is 1.

PageSize

Integer

No

20

The number of entries per page. The default is 20 and the maximum is 100.

Response parameters

For information about common response parameters, see Response Structure. The following table describes the fields in the data object.

Parameter

Type

Example

Description

PackId

String

bv2XPrDl

The ID of the pack.

PackName

String

R&D Pack 2

The name of the pack.

RobotCount

Integer

8

The number of service robots in the pack.

WaitingTaskCount

Integer

5

The number of tasks waiting to run in the pack.

RunningTaskCount

Integer

24

The number of tasks running in the pack.

Request example

https://console-rpa.aliyun.com/rpa/openapi/raas/pack/ListPacks?
&CurrentPage=2
&PageSize=2
&CommonRequestParameters

Response example

{
	"requestId": "87e49f18-****-****-****-ca42386d780c",
	"success": true,
	"code": 0,
	"msg": "Success",
	"msgCode": "result.success",
	"data": [{
		"PackId": "J7XnoJit",
		"PackName": "Pack 1",
		"RobotCount": 0,
		"WaitingTaskCount": 0,
		"RunningTaskCount": 0
	}, {
		"PackId": "lx434WJo",
		"PackName": "Pack 2",
		"RobotCount": 0,
		"WaitingTaskCount": 0,
		"RunningTaskCount": 0
	}],
	"pager": {
		"currentPage": 2,
		"totalPage": 226,
		"pageSize": 2,
		"total": 451,
		"limit": 2,
		"offset": 2
	},
	"instanceId": null
}