All Products
Search
Document Center

Alibaba Cloud DNS:DescribeSyncEcsHostTask

Last Updated:Jul 05, 2024

Queries the information about 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.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
LangstringNo

The language.

en
ZoneIdstringYes

The zone ID.

pvtz-test-id-2989149d628c56f00e

Response parameters

ParameterTypeDescriptionExample
object
Statusstring

The state of the task. Valid values:

  • ON
  • OFF
ON
ZoneIdstring

The zone ID.

pvtz-test-id-2989149d628c56f00e
RequestIdstring

The request ID.

75446CC1-FC9A-4595-8D96-089D73D7A63D
EcsRegionsarray<object>

The information about regions.

object
UserIdlong

The Alibaba Cloud account to which the region belongs. This parameter is used in cross-account synchronization scenarios.

1234567890
RegionIdsarray

The region IDs.

string

The region ID.

cn-beijing
Regionsarray

The information about the regions within the current account.

string

The region ID.

cn-hongkong
Successboolean

Indicates whether the task was successful. Valid values:

  • True
  • False
True

Examples

Sample success responses

JSONformat

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

Error codes

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