Baidu AI Cloud
中国站

百度智能云

Simple Cache Service SCS

Modify the Instance Name

Description

  • Modify the instance name.

Request Structure

PUT /v1/instance/{instanceId}/rename  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.
instanceId String Yes URL parameter Instance ID
instanceName String Yes RequestBody parameter New instance name Requirements: 1) It consists of uppercase and lowercase letters, numbers, and special characters such as -_ /., and must start with a letter; 2) Its length is limited to 1-64 bits; 3) Its name is not identical to that of other instances.

Request Example

PUT /v1/instance/scs-bj-ykfiztgpxjny/rename HTTP/1.1
HOST: redis.bj.baidubce.com
ContentType: application/json  
Authorization bce-auth-v1/f81d3b34e48048fbb2634dc7882d7e21/2017-11-21T04:17:29Z/3600/host/74c506f68c65e26c633bfa104c863fffac5190fdec1ec24b7c03eb5d67d2e1de
  
{
    "instanceName":"instanceName"

}

Return Header Field

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

Return Parameters

No special return parameters.

Previous
Query Details of the Instance
Next
Modify the Instance Domain Name