Adds multiple hosts to a network domain at a time.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-bastionhost:MoveHostsToNetworkDomain |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The bastion host ID. Note
You can call the DescribeInstances operation to query the bastion host ID. |
bastionhost-cn-uax2zmx8005 |
| RegionId |
string |
No |
The region ID of the bastion host. Note
For more information about the mapping between region IDs and region names, see Regions and zones. |
cn-hangzhou |
| NetworkDomainId |
string |
Yes |
The ID of the network domain to which you want to add hosts. Note
You can call the ListNetworkDomains operation to query the network domain ID. |
2 |
| HostIds |
array |
Yes |
The IDs of the hosts that you want to add to the network domain. |
|
|
string |
No |
The host ID. Note
You can call the ListHosts operation to query the host ID. |
1,2 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
F9B9E190-9C8E-5FEE-B963-7E9F1FD7FB4E |
| Results |
array<object> |
The result of the call. |
|
|
object |
|||
| Code |
string |
The return code that indicates whether the host is added to the network domain. Note
The code LICENSE_OUT_OF_LIMIT indicates that the network domain feature is not supported by the current Bastionhost edition. |
OK |
| HostId |
string |
The host ID. |
1 |
| Message |
string |
The error message that is returned. |
None |
Examples
Success response
JSON format
{
"RequestId": "F9B9E190-9C8E-5FEE-B963-7E9F1FD7FB4E",
"Results": [
{
"Code": "OK",
"HostId": "1",
"Message": "None"
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | The argument is invalid. | The argument is invalid. |
| 500 | InternalError | An unknown error occurred. | An unknown error occurred. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.