Adds multiple databases to a network domain at a time.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-bastionhost:MoveDatabasesToNetworkDomain |
*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-zpr3h2zo60l |
| 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 databases. Note
You can call the ListNetworkDomains operation to query the network domain ID. |
3 |
| DatabaseIds |
array |
Yes |
The IDs of the databases that you want to add to the network domain. |
|
|
string |
No |
The database ID. Note
You can call the ListDatabases operation to query the database ID. |
1,2 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
E5B1BC32-72B2-5BFD-BF75-5D38261264D1 |
| Results |
array<object> |
The results of the call. |
|
|
object |
|||
| Code |
string |
Indicates whether the database 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 |
| DatabaseId |
string |
The database ID. |
45 |
| Message |
string |
The error message that is returned. |
None |
Examples
Success response
JSON format
{
"RequestId": "E5B1BC32-72B2-5BFD-BF75-5D38261264D1",
"Results": [
{
"Code": "OK",
"DatabaseId": "45",
"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.