Docs
api
Private Network(UVPC)
GetNetworkAclTargetResource

Get ACL Rule Application Target List - GetNetworkAclTargetResource

Overview

Get ACL Rule Application Target List

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is GetNetworkAclTargetResource.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, sub-accounts must be filled in. Please refer to the GetProjectList interface.No
SubnetworkId.NstringSubnet ID.Yes

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
TargetResourceListarray[TargetResourceInfo]ACL rule application target resource list, see TargetResourceInfo for specific structure.Yes
TotalCountintTotal number of target resources for ACL rulesYes

Data Model

TargetResourceInfo

Field NameTypeDescription InformationRequired
SubnetworkIdstringSubnet IDYes
ResourceNamestringResource NameYes
ResourceIdstringResource IDYes
ResourceTypeintResource TypeYes
SubResourceNamestringThe name of the virtual network card bound to the resourceYes
SubResourceIdstringID of the virtual network card bound to the resourceYes
SubResourceTypeintThe type of resource bound to the virtual network cardYes
PrivateIpstringIntranet IP of the ResourceYes

Example

Request Example

https://api.ucloud-global.com/?Action=GetNetworkAclTargetResource
&Region=cn-bj
&ProjectId=org-xxxxx
&SubnetworkId.n=subnet-xxxxxx

Response Example

{
  "Action": "GetNetworkAclTargetResourceResponse",
  "RetCode": 0,
  "TargetResourceList": [
    {
      "PrivateIp": "10.23.x.x",
      "ResourceId": "udb-xxxxxx",
      "ResourceName": "UDB",
      "ResourceType": 6,
      "SubResourceId": "",
      "SubResourceName": "",
      "SubResourceType": 0,
      "SubnetworkId": "subnet-xxxxxx"
    },
    {
      "PrivateIp": "10.19.x.x",
      "ResourceId": "uhost-xxxxxx",
      "ResourceName": "UHost",
      "ResourceType": 6,
      "SubResourceId": "",
      "SubResourceName": "",
      "SubResourceType": 0,
      "SubnetworkId": "subnet-xxxxxx"
    },
    {
      "PrivateIp": "10.23.x.x",
      "ResourceId": "uredis-xxxxxx",
      "ResourceName": "URedis",
      "ResourceType": 6,
      "SubResourceId": "",
      "SubResourceName": "",
      "SubResourceType": 0,
      "SubnetworkId": "subnet-xxxxxx"
    },
    {
      "PrivateIp": "10.23.x.x",
      "ResourceId": "uhadoop-xxxxxx",
      "ResourceName": "UHadoop",
      "ResourceType": 6,
      "SubResourceId": "",
      "SubResourceName": "",
      "SubResourceType": 0,
      "SubnetworkId": "subnet-xxxxxx"
    }
  ],
  "TotalCount": 2
}