Baidu AI Cloud
中国站

百度智能云

Simple Cache Service SCS

Clear Instances

Description

  • Clear the data from a single SCS instance
  • For a “redis” instance, after the data is cleared, the memory space occupied by the data is reduced; for a memcache instance, after the data is cleared, the memory space is not reduced, but the data is cleared.

Request Structure

PUT /v1/instance/{instanceId}/flush  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
password String Yes RequestBody parameter If no password is set for the instance, an null string will be transmitted. The password needs to be encrypted and transmitted, and plaintext transmission is prohibited. For more information, please see the Definition of Password Encrypted Transmission Specification.

Request Example

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

Return Header Field

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

Return Parameters

No special return parameters.

Previous
Modify the Instance Domain Name
Next
Get the Subnet List