Installs backup clients on one or more ECS instances.
Operation description
This operation creates a background asynchronous task. The task uses Cloud Assistant to install backup clients on ECS instances.
Call the DescribeTask operation to get the task result.
The task timeout is 15 minutes. After the task is created, wait 60 seconds before making the first query. Then, query the result every 30 seconds.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
hbr:InstallBackupClients |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceIds |
object |
Yes |
The IDs of the ECS instances. You can specify a maximum of 20 instance IDs. |
["i-0xi5wj5*****v3j3bh2gj5"] |
| CrossAccountType |
string |
No |
The type of cross-account backup. Valid values:
|
CROSS_ACCOUNT |
| CrossAccountUserId |
integer |
No |
The ID of the source account that is used for cross-account backup. |
16392782xxxxxx |
| CrossAccountRoleName |
string |
No |
The name of the RAM role that is created in the source account for cross-account backup. |
BackupRole |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The return code. A value of 200 indicates that the operation is successful. |
200 |
| Message |
string |
The message that is returned. If the request is successful, successful is returned. If the request fails, an error message is returned. |
successful |
| RequestId |
string |
The request ID. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
| TaskId |
string |
The ID of the asynchronous task. Call the DescribeTask operation to query the task result. |
t-********************* |
| Success |
boolean |
Indicates whether the request is successful.
|
true |
| InstanceStatuses |
array<object> |
The status of the ECS instances. |
|
|
object |
|||
| ValidInstance |
boolean |
Indicates whether a backup client can be installed on the ECS instance.
|
true |
| InstanceId |
string |
The ID of the ECS instance. |
i-0xi5w***v3j3bh2gj5 |
| ErrorCode |
string |
The error code. Valid values:
|
InstanceNotExists |
Examples
Success response
JSON format
{
"Code": "200",
"Message": "successful",
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"TaskId": "t-*********************",
"Success": true,
"InstanceStatuses": [
{
"ValidInstance": true,
"InstanceId": "i-0xi5w***v3j3bh2gj5",
"ErrorCode": "InstanceNotExists"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.