获取内网虚拟IP信息-DescribeVIP

获取内网VIP详细信息

Request Parameters

Parameter nameTypeDescriptionRequired
Regionstring地域。 参见 地域和可用区列表Yes
Zonestring可用区。参见 可用区列表No
ProjectIdstring项目ID。不填写为默认项目,子帐号必须填写。 请参考GetProjectList接口No
VPCIdstringvpc的id,指定SubnetId时必填No
SubnetIdstring子网id,不指定则获取VPCId下的所有vipNo
Tagstring业务组名称, 默认为 DefaultNo
BusinessIdstring业务组No

Response Elements

Parameter nameTypeDescriptionRequired
RetCodeint操作返回码Yes
Actionstring操作名称Yes
VIPSetarray内网VIP详情,请见VIPDetailSetNo
DataSetarray内网VIP地址列表No
TotalCountintvip数量No

VIPDetailSet

Parameter nameTypeDescriptionRequired
Zonestring地域No
VIPIdstring虚拟ip idNo
CreateTimeint创建时间No
RealIpstring真实主机ipNo
VIPstring虚拟ipNo
SubnetIdstring子网idNo
VPCIdstringVPC idNo

Request Example

https://api.auto-ai.com.cn/?Action=DescribeVIP
&Region=cn-bj2
&ProjectId=org-xxx
&Zone=cn-bj2-04
&VPCId=vnet-xxx

Response Example

{
    "Action": "DescribeVIPResponse",
    "DataSet": [
        "10.25.XX.XX"
    ],
    "RetCode": 0,
    "TotalCount": 1,
    "VIPSet": [
        {
            "CreateTime": 1521970238,
            "Name": "VIP",
            "RealIp": "",
            "Remark": "Default",
            "SubnetId": "subnet-XXX",
            "Tag": "Default",
            "VIP": "10.25.XX.XX",
            "VIPId": "vip-XXX",
            "VPCId": "uvnet-XXX",
            "Zone": "cn-sh2-01"
        }
    ]
}