All Products
Search
Document Center

Security Center:ListTargetByBatch

Last Updated:May 22, 2025
This topic is generated by a machine translation engine without any human intervention. ALIBABA CLOUD DOES NOT GUARANTEE THE ACCURACY OF MACHINE TRANSLATED CONTENT. To request a human-translated version of this topic or provide feedback on this translation, please include it in the feedback form.

Query Targets by Batch

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
yundun-sas:ListTargetByBatchlist
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
CurrentPageintegerYes

The page number of the current page in a paginated query.

1
PageSizeintegerYes

The maximum number of items to return per page in a paginated query.

20
BatchIdlongNo

The ID of the release batch.

1371
OperationBaseintegerNo

Asset selection dimension. Values:

  • 0: Machine instance
  • 1: Machine group
  • 2: VPC instance ID
0

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request, which is a unique identifier generated by Alibaba Cloud for this request and can be used for troubleshooting and problem localization.

6EBB8614-746D-555D-AB69-C801AEC7DCE0
PageInfoobject

Pagination information.

CurrentPageinteger

The page number of the current page in a paginated query.

1
PageSizeinteger

The maximum number of items to return per page in a paginated query.

20
TotalCountinteger

The total number of items found in the query.

30
TargetListarray

The returned list.

TargetListstring

Query the asset information of the current batch based on the asset selection dimensions.

[1001,1002]

Examples

Sample success responses

JSONformat

{
  "RequestId": "6EBB8614-746D-555D-AB69-C801AEC7DCE0",
  "PageInfo": {
    "CurrentPage": 1,
    "PageSize": 20,
    "TotalCount": 30
  },
  "TargetList": [
    [
      1001,
      1002
    ]
  ]
}

Error codes

HTTP status codeError codeError messageDescription
403NoPermissioncaller has no permissionYou are not authorized to do this operation.
500ServerErrorServerError-

For a list of error codes, visit the Service error codes.