Binds an instance to a VPC.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ots:BindInstance2Vpc |
update |
*All Resource
|
None | None |
Request syntax
POST /v2/openapi/bindinstance2vpc HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body parameters. |
|
| VpcId |
string |
Yes |
The VPC ID. |
vpc-2ze***********g31n7 |
| VirtualSwitchId |
string |
Yes |
The virtual switch ID. |
vsw-uf6***********ez6ge |
| InstanceName |
string |
Yes |
The instance name. |
mkdd-test |
| InstanceVpcName |
string |
Yes |
The VPC name. |
xu6666 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The ID of the request. Use this ID to troubleshoot issues. |
E734979F-5A44-5993-9CE5-C23103576923 |
| Domain |
string |
The domain name. |
xu6666-mkdd-test.cn-hangzhou.vpc.ots.aliyuncs.com |
| Endpoint |
string |
The connection endpoint for the instance. |
172.**.***.34 |
Examples
Success response
JSON format
{
"RequestId": "E734979F-5A44-5993-9CE5-C23103576923",
"Domain": "xu6666-mkdd-test.cn-hangzhou.vpc.ots.aliyuncs.com",
"Endpoint": "172.**.***.34"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.