百度智能云

All Product Document

          Relational Database Service

          Obtain the Availability Zone Llist.

          Request Structure

          GET /v{version}/zone HTTP/1.1
          HOST: rds.bj.baidubce.com
          Authorization: authorization string

          Request header field

          No other special header fields are available, except for common header fields.

          Request Parameter

          Parameter name Type Required? Parameter Position Description
          version string Yes URL Parameter API version number

          Return a header field

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

          Return Parameter

          Parameter Name Type Description
          zones List ZoneNames Availability zone list

          ZoneNames

          Parameter Name Type Description
          zoneNames List<String> Availability zone list

          Request Example

          GET /v1/zone HTTP/1.1
          HOST: rds.bj.baidubce.com
          Authorization: bce-auth-v1/rdsak/2016-07-03T06:13:13Z/1800/x-bce-date/{signature}

          Return Example

          HTTP/1.1 200 OK
          x-bce-request-id: 7869616F-7A68-6977-656E-406261696475
          ETag:xxx-xxx-xxx
          Content-Type: application/json
          Content-Length: 567
          
          {
              "zones": [
                 {"zoneNames":["cn-bj-a"]},
                 {"zoneNames":["cn-bj-b"]},
                 {"zoneNames":["cn-bj-a","cn-bj-b"]}
              ]
          }
          Previous
          Obtain the Subnet List
          Next
          Forced Switch of Hot Iinstance Group