展示子网资源-DescribeSubnetResource

展示子网资源

Request Parameters

Parameter nameTypeDescriptionRequired
Regionstring地域。 参见 地域和可用区列表Yes
ProjectIdstring项目ID。不填写为默认项目,子帐号必须填写。 请参考GetProjectList接口No
SubnetIdstring子网idYes
ResourceTypestring资源类型,默认为全部资源类型。枚举值为:UHOST,云主机;PHOST,物理云主机;ULB,负载均衡;UHADOOPHOST,hadoop节点;UFORTRESSHOST,堡垒机;UNATGW,NAT网关;UKAFKA,分布式消息系统;UMEM,内存存储;DOCKER,容器集群;UDB,数据库;UDW,数据仓库;VIP,内网VIP.No
Offsetint列表起始位置偏移量,默认为0No
Limitint单页返回数据长度,默认为20No

Response Elements

Parameter nameTypeDescriptionRequired
RetCodeint操作返回码Yes
Actionstring操作名称Yes
TotalCountint总数No
DataSetarray返回数据集,请见SubnetResourceNo

SubnetResource

Parameter nameTypeDescriptionRequired
Namestring名称No
ResourceIdstring资源IdNo
ResourceTypestring资源类型。对应的资源类型:UHOST,云主机;PHOST,物理云主机;ULB,负载均衡;UHADOOPHOST,hadoop节点;UFORTRESSHOST,堡垒机;UNATGW,NAT网关;UKAFKA,分布式消息系统;UMEM,内存存储;DOCKER,容器集群;UDB,数据库;UDW,数据仓库;VIP,内网VIP.No
IPstring资源ipNo

Request Example

https://api.ucloud.cn/?Action=DescribeSubnetResource
&Region=cn-sh2
&ProjectId=org-XXXX
&SubnetId=subnet-XXXXX
&ResourceType=VIP
&Offset=1
&Limit=5

Response Example

{
    "Action": "DescribeSubnetResourceResponse",
    "DataSet": [
        {
            "IP": "10.23.XX.25",
            "Name": "VIP",
            "ResourceId": "vip-XXXX",
            "ResourceType": "VIP"
        }
    ],
    "RetCode": 0,
    "TotalCount": 1
}