Home  >  Article  >  Operation and Maintenance  >  How to enable classic network type instances to communicate with cloud resource private networks in VPC

How to enable classic network type instances to communicate with cloud resource private networks in VPC

坏嘻嘻
坏嘻嘻Original
2018-09-26 11:29:332272browse

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

How to enable classic network type instances to communicate with cloud resource private networks in VPC

##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.

How to enable classic network type instances to communicate with cloud resource private networks in VPC

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn