Switches the network type of a DRDS instance by calling the UpdateInstanceNetwork operation.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
drds:UpdateInstanceNetwork |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DrdsInstanceId |
string |
Yes |
The DRDS instance ID. |
drds****** |
| SrcInstanceNetworkType |
string |
Yes |
The current network type of the DRDS instance. Valid values:
|
classic |
| RetainClassic |
boolean |
No |
Specifies whether to retain the classic network endpoint. |
true |
| ClassicExpiredDays |
integer |
No |
The number of days for classic network address reservation. |
30 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Success |
boolean |
The result of the request. |
true |
| RequestId |
string |
The request ID. |
DSSDF-SEWE-***** |
Examples
Success response
JSON format
{
"Success": true,
"RequestId": "DSSDF-SEWE-*****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ERR_INSTANCE_CANNOT_SWITCH_NETWORK_FOR_PUBLIC | Public instance cannot switch network to VPC | |
| 500 | InternalError | The request processing has failed due to some unknown error. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.