Queries the details of a hostname synchronization task.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DescribeSyncEcsHostTask

The operation that you want to perform. Set the value to DescribeSyncEcsHostTask.

Lang String No en

The language.

ZoneId String Yes pvtz-test-id-2989149d628c56f00e

The ID of the zone.

Response parameters

Parameter Type Example Description
Status String ON

The status of the task.

  • ON
  • OFF
ZoneId String pvtz-test-id-2989149d628c56f00e

The ID of the zone.

RequestId String 75446CC1-FC9A-4595-8D96-089D73D7A63D

The ID of the request.

EcsRegions Array of EcsRegion

The region information.

EcsRegion
UserId Long 1234567890

The ID of the user that corresponds to the region. This parameter is used in cross-account synchronization scenarios.

RegionIds Array of String cn-beijing

The ID of the region.

Success Boolean True

Indicates whether the call was successful.

  • True
  • False

Examples

Sample requests

http(s)://pvtz.alidnscs.com/?Action=DescribeSyncEcsHostTask
&Lang=en
&ZoneId=pvtz-test-id-2989149d628c56f00e
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<DescribeSyncEcsHostTaskResponse>
    <Status>ON</Status>
    <ZoneId>pvtz-test-id-2989149d628c56f00e</ZoneId>
    <RequestId>75446CC1-FC9A-4595-8D96-089D73D7A63D</RequestId>
    <EcsRegions>
        <UserId>1234567890</UserId>
        <RegionIds>cn-beijing</RegionIds>
    </EcsRegions>
    <Success>true</Success>
</DescribeSyncEcsHostTaskResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "Status" : "ON",
  "ZoneId" : "pvtz-test-id-2989149d628c56f00e",
  "RequestId" : "75446CC1-FC9A-4595-8D96-089D73D7A63D",
  "EcsRegions" : [ {
    "UserId" : 1234567890,
    "RegionIds" : [ "cn-beijing" ]
  } ],
  "Success" : true
}

Error codes

For a list of error codes, visit the API Error Center.