Docs
api
Private Network(UVPC)
DescribeSubnetResource

Display Subnet Resources - DescribeSubnetResource

Overview

Display Subnet Resources

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is DescribeSubnetResource.Yes
PublicKeystringThe user's public key can be obtained from Console (opens in a new tab)Yes
SignaturestringUser signature generated based on public key and API command, see Signature AlgorithmYes

Request Parameters

Parameter NameTypeDescription InformationRequired
RegionstringRegion. See List of Regions and Availability ZonesYes
ProjectIdstringProject ID. If not filled in, the default project is used, and the sub-account must be filled in. Please refer to the GetProjectList interface.No
SubnetIdstringSubnet IDYes
ResourceTypestringResource type, default is all resource types. Enumerated values are: UHOST, Cloud Host; PHOST, Physical Cloud Host; ULB, Load Balancer; UHADOOP_HOST, hadoop node; UFORTRESS_HOST, Bastion Host; UNATGW, NAT Gateway; UKAFKA, Kafka Message Queue; UMEM, Memory Storage; DOCKER, Container Cluster; UDB, Database; UDW, Data Warehouse; VIP, Internal Network VIP.No
OffsetintList start position offset, default is 0No
LimitintLength of data returned per page, default is 20No

Response Field

Field NameTypeDescription InformationRequired
RetCodeintReturn status code. If it is 0, it means successful return. If it is not 0, it means failure.Yes
ActionstringOperation command name.Yes
MessagestringReturns an error message, providing detailed description when RetCode is non-zero.No
TotalCountintTotalNo
DataSetarray[SubnetResource]Return data set, see SubnetResourceNo

Data Model

SubnetResource

Field NameTypeDescription InformationRequired
NamestringNameNo
ResourceIdstringResource IdNo
ResourceTypestringResource type. Corresponding resource types: UHOST, Cloud Host; PHOST, Physical Cloud Host; ULB, Load Balancer; UHADOOP_HOST, Hadoop Node; UFORTRESS_HOST, Bastion Host; UNATGW, NAT Gateway; UKAFKA, Distributed Messaging System; UMEM, Memory Storage; DOCKER, Container Cluster; UDB, Database; UDW, Data Warehouse; VIP, Intranet VIP.No
IPstringResource IPNo

Example

Request Example

https://api.ucloud-global.com/?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
}