百度智能云

All Product Document

          Relational Database Service

          View the Whitelist

          Request Structure

          GET /v{version}/instance/{instanceId}/securityIp 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 PositionDescription
          versionstringYesURL parameterAPI Version Number
          instanceIdstringURL parameterInstance ID

          Return a header field

          Parameter Name Type Description
          ETagstringFor the current version number, the current ETag needs to be passed back via header when modifying.

          Return Parameter

          Parameter name Type Description
          securityIps List String The array that consists of IPs must meet the CIDR format. For details, refer to the IP format.

          Request Example

          GET /v1/instance/r-modkurfj/securityIp 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
          
          {
              "securityIps": [
                 "127.0.0.1", "%", "192.168.0.1/24"
              ]
          }
          Previous
          Appendix
          Next
          Update the Whitelist