百度智能云

All Product Document

          Simple Cache Service SCS

          Get the Subnet List

          Request Structure

          GET /v{version}/subnet?vpcId={vpcId}&zoneName={zoneName} HTTP/1.1
          HOST: redis.bj.baidubce.com
          Authorization authorization string

          Request Header Field

          There are no other special header fields except for the public header field.

          Request Parameter

          Parameter Name Type Required Parameter Position Description
          version String Yes URI Parameter API version No.
          vpcId String No Query parameters Vpc Id
          zoneName String No Query parameters Name of availability zone

          Return Header Field

          There are no other special header fields except for the common header field.

          Return Parameters

          Parameter Name Type Description
          subnets List Subnet Subnet list

          Subnet Object details

          Parameter Name Parameter Types Parameter Descriptions
          name String Subnet name
          subnetId String Subnet Id
          zoneName String Availability zone of subnet
          cidr String Subnet cidr
          vpcId String Vpc id

          Request Instance

          GET /v1/subnet?vpcId=vpc-1n1wqxfu4iuu&zoneName=cn-bj-a HTTP/1.1
          HOST: redis.bj.baidubce.com
          Authorization bce-auth-v1/0255cb4f78f140728045b551d6a317ec/2018-11-13T06:13:25Z/1800/host/2feac87a586a66c048be0b6ef2d02fdfca7d65cf9b6c9e6b9efe20bac95b7c7a

          Return Instance

          HTTP/1.1 200 OK
          x-bce-request-id: 7869616F-7A68-6977-656E-406261696475
          Content-Type: application/json
          Content-Length: 150
          {
              "subnets": [
                  {
                      "name": "System Predefined Subnet B",
                      "subnetId": "sbn-4zt8126ea6c3",
                      "cidr": "192.168.16.0/20",
                      "zoneName": "cn-bj-b",
                      "vpcId": "vpc-1n1wqxfu4iuu"
                  }
              ]
          }
          Previous
          Clear Instances
          Next
          Bind the Tag