Call DescribeSyncEcsHostTask to retrieve the details of a hostname sync task based on a zone ID.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
pvtz:DescribeSyncEcsHostTask |
get |
*Zone
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Lang |
string |
No |
The language of the response. Valid values:
Default value: en |
en |
| ZoneId |
string |
Yes |
The unique ID of the zone. |
pvtz-test-id-2989149d628c5**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Status |
string |
The status of the automatic hostname synchronization feature. Valid values:
|
ON |
| ZoneId |
string |
The unique ID of the zone. |
pvtz-test-id-2989149d628c56**** |
| RequestId |
string |
The unique ID of the request. |
75446CC1-FC9A-4595-8D96-089D73D7A63D |
| EcsRegions |
object |
||
| EcsRegion |
array<object> |
The information about the synced ECS regions. |
|
|
object |
Region information |
||
| UserId |
integer |
The ID of the user who owns the region. This parameter is used for cross-account synchronization. |
141339776561**** |
| RegionIds |
object |
||
| RegionId |
array |
A list of the synced region IDs. |
|
|
string |
The ID of a synced region. |
cn-beijing |
|
| Regions |
object |
||
| RegionId |
array |
The IDs of the synced ECS regions. |
|
|
string |
The ID of a synced region. |
cn-hongkong |
|
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
True |
Examples
Success response
JSON format
{
"Status": "ON",
"ZoneId": "pvtz-test-id-2989149d628c56****",
"RequestId": "75446CC1-FC9A-4595-8D96-089D73D7A63D",
"EcsRegions": {
"EcsRegion": [
{
"UserId": 0,
"RegionIds": {
"RegionId": [
"cn-beijing"
]
}
}
]
},
"Regions": {
"RegionId": [
"cn-hongkong"
]
},
"Success": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.