All Products
Search
Document Center

Alibaba Cloud DNS:DescribeBatchResultCount

Last Updated:Mar 15, 2024

Calls the DescribeBatchResultCount operation to query the execution result of a batch operation task.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

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:
    • The required resource types are displayed in bold characters.
    • 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
alidns:DescribeBatchResultCountREAD
  • domain
    acs:alidns::{#accountId}:domain/*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
LangstringNo

The language type.

en
UserClientIpstringNo

The IP address of the client.

1.1.1.1
TaskIdlongNo

The ID of the task.

If you specify TaskId, the execution result of the specified task is returned. If you do not specify TaskId, the execution result of the last task is returned.

123456
BatchTypestringNo

The type of the batch operation. Valid values:

  • DOMAIN_ADD: adds domain names in batches.
  • DOMAIN_DEL: deletes domain names in batches.
  • RR_ADD: adds DNS records in batches.
  • RR_DEL: deletes DNS records in batches.
DOMAIN_ADD

Response parameters

ParameterTypeDescriptionExample
object
Statusinteger

The status of the task. Valid values:

  • -1: No task for importing domain names or DNS records is submitted.
  • 0: The task is being processed.
  • 1: The task is completed.
  • 2: The task failed.
0
FailedCountinteger

The total number of domain names or DNS records that failed to be processed.

2
BatchTypestring

The type of the batch operation.

DOMAIN_ADD
RequestIdstring

The ID of the request.

75446CC1-FC9A-4595-8D96-089D73D7A63D
TotalCountinteger

The total number of DNS records that were processed in batches.

4
SuccessCountinteger

The total number of successfully processed domain names or DNS records.

2
TaskIdlong

The ID of the last task.

123456
Reasonstring

The cause of the execution failure.

failed_reason

Examples

Sample success responses

JSONformat

{
  "Status": 0,
  "FailedCount": 2,
  "BatchType": "DOMAIN_ADD",
  "RequestId": "75446CC1-FC9A-4595-8D96-089D73D7A63D",
  "TotalCount": 4,
  "SuccessCount": 2,
  "TaskId": 123456,
  "Reason": "failed_reason"
}

Error codes

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

Change history

Change timeSummary of changesOperation
No change history