百度智能云

All Product Document

          Relational Database Service

          Automatic Renewal of Instance Created

          Description

          • This interface is used to enable the automatic renewal function of instances created.
          • Multiple instance ids can be uploaded, and all of the instances must be in the same region.

          Request structure

          PUT /v{version}/instance?autoRenew HTTP/1.1
          HOST: rds.bj.baidubce.com
          Authorization: authorization string
          
          {
              "instanceIds":[
                  "rds-y9dJu77d",
                  "rds-aQFOoncr"
              ],
              "autoRenewTimeUnit"         :autoRenewTimeUnit,
              "autoRenewTime"             :autoRenewTime
          }

          Request header fields

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

          Request parameters

          parameter name type required or not parameter location description
          version string yes URL parameters API version number
          instanceIds List String yes RequestBody parameters id set of specified instance
          autoRenewTimeUnit string no RequestBody parameters automatic renewal unit("year";"month")
          autoRenewTime int no RequestBody parameters automatic renewal period(if the renewal unit is year, no greater than 3, if the renewal unit is month, no greater than 9)

          Back to header fields

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

          Return parameters

          No special return parameters

          Examples of request

          put /v1/instance?autoRenew HTTP/1.1
          HOST: rds.bj.baidubce.com
          ContentType: application/json
          Authorization: bce-auth-v1/f81d3b34e48048fbb2634dc7882d7e21/2017-11-21T04:17:29Z/3600/host/74c506f68c65e26c633bfa104c863fffac5190fdec1ec24b7c03eb5d67d2e1de
          
          {
              "instanceIds":[
                  "rds-y9dJu77d",
                  "rds-aQFOoncr"
              ],
              "autoRenewTimeUnit":"month",
              "autoRenewTime":3
          }

          Examples of return

          No special return parameters

          Previous
          Best Practices
          Next
          Instructions for Other Interfaces