百度智能云

All Product Document

          Virtual Private Cloud

          Query ACL

          Description

          Query the ACL information.

          Request Structure

          GET /v{version}/acl?vpcId={vpcId}   HTTP/1.1   
          Host: bcc.bj.baidubce.com      
          Authorization: authorization string

          Request Header

          There are no other special headers except the public headers.

          Request Parameter

          Parameter name Type Required or not Parameter position Description
          version String Yes URL parameter API version number
          vpcId String Yes Query parameter vpc ID

          Return Header

          There are no other special headers except the public headers.

          Return Parameter

          Parameter name Type Description
          vpcId String ID of VPC
          vpcName String VPC name
          vpcCidr String CIDR of VPC
          aclEntrys List<AclEntry> Entry list of ACL

          Request Example

          GET /v1/acl?vpcId=vpc-rkyh223g7vh4 HTTP/1.1
          Host: bcc.bj.baidubce.com
          authorization: bce-auth-v1/c3119080364d11e8912505e5e0ae9978/2018-04-02T08:14:25Z/3600/host;x-bce-account;x-bce-client-ip;x-bce-date;x-bce-request-id;x-bce-security- 
          token/6b93bfd5ca2328fcb5560fa57f56253d80a629f6aac9c9cb74adf9a055fceb53

          Return Example

          HTTP/1.1 200 OK
          x-bce-request-id: 7e789a40-adac-414a-8bd4-916d6be61112
          Date: Mon, 02 Apr 2018 08:14:25 GMT
          Content-Type: application/json;charset=UTF-8
          Server: BWS
          {
            "vpcId":"vpc-rkyh223g7vh4",
            "vpcName":"test01",
            "vpcCidr":"192.168.0.0/16",
            "aclEntrys":[
              {
                "subnetId":"sbn-svz99ha4a40w",
                "subnetName":"subnet01",
                "subnetCidr":"192.168.0.0/20",
                "aclRules":[
                  {
                    "id":"ar-ik9p9zq6u5ry",
                    "subnetId":"sbn-svz99ha4a40w",
                    "description":"",
                    "protocol":"tcp",
                    "sourceIpAddress":"192.168.0.0",
                    "destinationIpAddress":"192.168.0.0/20",
                    "sourcePort":"1-65535",
                    "destinationPort":"443",
                    "position":2,
                    "direction":"ingress",
                    "action":"allow"
                  }
                ]
              }
            ]
          }
          Previous
          Route Table Related Interface
          Next
          Add ACL Rules