获取VPC互通信息-DescribeVPCIntercom

获取VPC互通信息

Request Parameters

Parameter nameTypeDescriptionRequired
Regionstring源VPC所在地域。 参见 地域和可用区列表Yes
ProjectIdstring源VPC所在项目ID。不填写为默认项目,子帐号必须填写。 请参考GetProjectList接口No
VPCIdstringVPC短IDYes
DstRegionstring目的VPC所在地域,默认为全部地域No
DstProjectIdstring目的项目ID,默认为全部项目No

Response Elements

Parameter nameTypeDescriptionRequired
RetCodeint操作返回码Yes
Actionstring操作名称Yes
DataSetarray联通VPC信息数组No

VPCIntercomInfo

Parameter nameTypeDescriptionRequired
ProjectIdstring项目IdNo
Networkarray
No
DstRegionstring所属地域No
NamestringVPC名字No
VPCIdstringVPCIdNo
Tagstring业务组(未分组显示为 Default)No

Request Example

https://api.ucloud.cn/?Action=DescribeVPCIntercom
&Region=cn-sh2
&ProjectId=org-XXX
&VPCId=uvnet-XXXX

Response Example

{
    "Action": "DescribeVPCIntercomResponse",
    "DataSet": [
        {
            "DstRegion": "ge-fra",
            "Name": "DefaultVPC",
            "Network": [
                "10.29.XX.0/16"
            ],
            "ProjectId": "org-XXXXX",
            "Tag": "Default",
            "VPCId": "uvnet-XXXXX"
        },
        {
            "DstRegion": "cn-sh2",
            "Name": "ulb-vpc",
            "Network": [
                "172.16.XX.0/12",
                "10.1.XX.0/16"
            ],
            "ProjectId": "org-XXX",
            "Remark": "",
            "Tag": "Default",
            "VPCId": "uvnet-XXXX"
        }
    ],
    "RetCode": 0
}