百度智能云

All Product Document

          Simple Cache Service SCS

          Change the Configuration

          Description

          • This interface is used to change the specifications of a “redis” instance.
          • To change an instance, you need to perform identity verification. The user who does not pass the identity verification can perform the identity verification under security authentication in the console of the Baidu Open Cloud official website.
          • For a postpaid (billing method) instance, the account cash balance + general-type coupon is greater than 100; for a prepaid instance, the account cash balance is greater than or equal to the instance fee.
          • The configuration change operation is only for a single instance. If the change process fails, the operation is rolled back, and the fee is refunded.
          • The capacity expansion and contraction can be performed only when the instance is running normally. The interface is changed asynchronously. You can query the instance status via the specified instance details interface.

          Request Structure

          PUT /v1/instance/{instanceId}/resize clientToken={clientToken} HTTP/1.1
          
          HOST: redis.{region}.baidubce.com
          Authorization authorization string

          Request Parameter

          Parameters Type Required Parameter Position Description
          version string Yes URI Parameter API version No.
          clientToken string Yes Query parameters It is an idempotent Token, which is an ASCII character string with length of no more than 64 bits.
          Billing Billing Yes RequestBody parameter Parameters for billing. Structure and value references
          instanceId String Yes RequestBody parameter Instance ID
          nodeType string No RequestBody parameter See node types in the appendix
          shardNum Integer No RequestBody parameter Multipart number

          Request Example

          PUT /v1/instance/scs-bj-ykfiztgpxjny/resize HTTP/1.1
          HOST: redis.bj.baidubce.com
          ContentType: application/json  
          Authorization bce-auth-v1/f81d3b34e48048fbb2634dc7882d7e21/2017-11-21T04:17:29Z/3600/host/74c506f68c65e26c633bfa104c863fffac5190fdec1ec24b7c03eb5d67d2e1de
            
          {
              "billing": {
                  "paymentTiming": "Prepaid",
              },
              "nodeType": "cache.n1.medium",
              "shardNum": 1
          }

          Return Header Field

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

          Return Parameters

          No special return parameters.

          Previous
          Release an Instance
          Next
          Instance Service