docs
api
Private Network(UVPC)
DescribeNetworkAclEntry

Get ACL rule information - DescribeNetworkAclEntry

Overview

Get ACL rule information

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is DescribeNetworkAclEntry.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
AclIdstringACL's IDYes

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
EntryListarray[AclEntryInfo]All rules informationYes

Data Model

AclEntryInfo

Field NameTypeDescription InformationRequired
EntryIdstringEntry's IDYes
PrioritystringPriorityYes
DirectionstringOutbound or InboundYes
IpProtocolstringTargeted IP ProtocolYes
CidrBlockstringCIDR Information of IP RangeYes
PortRangestringSegment Information of PortYes
EntryActionstringAction of Matching RulesYes
TargetTypeintApplication target type. 0 represents 'All resources within the subnet', 1 represents 'Specified resources within the subnet'.Yes
CreateTimeintCreated Unix TimestampYes
UpdateTimeintModified Unix TimestampYes
TargetResourceListarray[TargetResourceInfo]Application target resource information. This value is not returned when TargetType is 0. See the specific structure below in TargetResourceInfo.No
TargetResourceCountintThe number of target application resources. This value is not returned when TargetType is 0.No

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.surfercloud.com/?Action=DescribeNetworkAclEntry
&Region=cn-bj
&ProjectId=org-xxxxx
&AclId=netacl-xxxxxx

Response Example

{
  "Action": "DescribeNetworkAclEntryResponse",
  "EntryList": [
    {
      "CidrBlock": "0.0.0.0/0",
      "CreateTime": 9,
      "Description": "hgrDEGHjv",
      "Direction": "Ingress",
      "EntryAction": "Accept",
      "EntryId": "netaclentry_xxxxx",
      "IpProtocol": "TCP",
      "PortRange": "All",
      "Priority": "100",
      "TargetResourceCount": 0,
      "TargetResourceList": null,
      "TargetType": 0,
      "UpdateTime": 4
    },
    {
      "CidrBlock": "0.0.0.0/0",
      "CreateTime": 9,
      "Description": "hgrDEGHjv",
      "Direction": "Ingress",
      "EntryAction": "Accept",
      "EntryId": "netaclentry_xxxxx",
      "IpProtocol": "TCP",
      "PortRange": "All",
      "Priority": "100",
      "TargetResourceCount": 0,
      "TargetResourceList": null,
      "TargetType": 0,
      "UpdateTime": 4
    },
    {
      "CidrBlock": "0.0.0.0/0",
      "CreateTime": 9,
      "Description": "hgrDEGHjv",
      "Direction": "Egress",
      "EntryAction": "Accept",
      "EntryId": "netaclentry_xxxxx",
      "IpProtocol": "TCP",
      "PortRange": "All",
      "Priority": "1000",
      "TargetResourceCount": 0,
      "TargetResourceList": null,
      "TargetType": 0,
      "UpdateTime": 4
    },
    {
      "CidrBlock": "0.0.0.0/0",
      "CreateTime": 9,
      "Description": "hgrDEGHjv",
      "Direction": "Egress",
      "EntryAction": "Accept",
      "EntryId": "netaclentry_xxxxx",
      "IpProtocol": "TCP",
      "PortRange": "All",
      "Priority": "1000",
      "TargetResourceCount": 0,
      "TargetResourceList": null,
      "TargetType": 0,
      "UpdateTime": 4
    }
  ],
  "RetCode": 0
}
  • Company
  • ContactUs
  • Blog
Copyright © 2024 SurferCloud All Rights Reserved
  • Contact our sales to help your business.
  • Contact our sales to help your business.