Call the UpdateSyncEcsHostTask operation to add or update a hostname sync task.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
pvtz:UpdateSyncEcsHostTask |
none |
*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. |
df2d03865266bd9842306db586d3**** |
| Status |
string |
Yes |
The status of the ECS hostname sync task. Valid values:
|
ON |
| Region |
array<object> |
Yes |
The regions for synchronization. |
|
|
object |
No |
The details of a region. |
||
| UserId |
integer |
No |
The ID of the user who owns the region. This parameter is used for cross-account synchronization. |
141339776561**** |
| RegionId |
string |
No |
The region ID. |
cn-beijing |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The unique ID of the request. |
test-FC9A-4595-8D96-089D73D7A63D |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
Examples
Success response
JSON format
{
"RequestId": "test-FC9A-4595-8D96-089D73D7A63D",
"Success": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.