InstallBackupClients
Installs the backup client on one or more ECS instances.
Operation description
This operation creates a background asynchronous task that calls Cloud Assistant to install the backup client on the ECS instances.
You can call DescribeTask to obtain the task result.
The task timeout period is 15 minutes. Query the task result for the first time 60 seconds after the task is created, and 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. Up to 20 instance IDs are supported. |
["i-0xi5wj5*****v3j3bh2gj5"] |
| CrossAccountType |
string |
No |
The cross-account backup type. Valid values:
|
CROSS_ACCOUNT |
| CrossAccountUserId |
integer |
No |
The ID of the source account used for cross-account backup. |
16392782xxxxxx |
| CrossAccountRoleName |
string |
No |
The name of the RAM role 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 success. |
200 |
| Message |
string |
The return message. Generally, successful is returned when the request is successful, and a specific error message is returned when an error occurs. |
successful |
| RequestId |
string |
The request ID. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
| TaskId |
string |
The ID of the asynchronous task. You can call DescribeTask to obtain the task result. |
t-********************* |
| Success |
boolean |
Indicates whether the request is successful. Valid values:
|
true |
| InstanceStatuses |
array<object> |
The ECS instance status. |
|
|
object |
|||
| ValidInstance |
boolean |
Indicates whether the backup client can be installed on the ECS instance. Valid values:
|
true |
| InstanceId |
string |
The ECS instance ID. |
i-0xi5w***v3j3bh2gj5 |
| ErrorCode |
string |
The error code returned. 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.