This article introduces how to enable classic network type instances to communicate with cloud resource private networks in VPC, and focuses on the specific steps. The content of this article is compact, and I hope you can gain something from it.
AttachClassicLinkVpc
Description
When calling this interface, you need to pay attention to:
Connect to the classic network Before type instance, the instance must be in Running or Stopped state.
The target VPC must have ClassicLink enabled.
Classic network type instances and VPC must be in the same Alibaba Cloud region.
Request parameters
##Return parameters
are all public return parameters. See Public Parameters.Example
Request example
https://ecs.aliyuncs.com/?Action=AttachClassicLinkVpc &RegionId=cn-hangzhou &InstanceId=i-test &VpcId=vpc-test &<公共请求参数>
Return example
XML format
<AttachClassicLinkVpcResponse> <RequestId>C0003E8B-B930-4F59-ADC0-0E209A9012A8</RequestId> </AttachClassicLinkVpcResponse>
JSON format
{ "RequestId": "C0003E8B-B930-4F59-ADC0-0E209A9012A8" }
Error code
The following are error codes unique to this interface. For more error codes, please visit the API Error Center.The above is the detailed content of How to enable classic network type instances to communicate with cloud resource private networks in VPC. For more information, please follow other related articles on the PHP Chinese website!