Last Updated: Apr 19, 2017

Deletes a readonly shard.

Request syntax

  1. DELETE /logstores/<logstorename>/shards/<shardid> HTTP/1.1
  2. Authorization: <AuthorizationString>
  3. Date: <GMT Date>
  4. Host: <Project Endpoint>
  5. x-log-apiversion: 0.6.0
  6. x-log-signaturemethod: hmac-sha1

Request parameters

Parameter Name Type Required or Not Description
logstoreName string Yes The logstore name
shardid int Yes Shard ID

Request header

No special request header is available. For details about the public request header of the API, refer to Public Request Header.

Response header

Content-Type: application/json

No special response header is available. For details about the public response header of the API, refer to Public Response Header.

Detailed description


Specific error codes

In addition to general error codes of the API, the following special error codes may be returned:

HTTP Status Code Error Code Error Message
404 LogStoreNotExist logstore {logstoreName} not exist
400 ParameterInvalid invalid shard id
400 ParameterInvalid only readonly shard id can be deleted
500 InternalServerError Specified Server Error Message
400 LogStoreWithoutShard logstore has no shard

The {name} variable in the above error messages will be replaced by the actual logstore name.


Request example:
  1. DELETE /logstores/logstorename/shards/30
  2. Header :
  3. {
  4. "Content-Length": 0,
  5. "x-log-signaturemethod": "hmac-sha1",
  6. "x-log-bodyrawsize": 0,
  7. "User-Agent": "log-python-sdk-v-0.6.0",
  8. "Host": "",
  9. "Date": "Thu, 12 Nov 2015 03:40:31 GMT",
  10. "x-log-apiversion": "0.6.0",
  11. "Authorization": "LOG 94to3z418yupi6ikawqqd370:xEOsJ3xeidfdgRq0GbvACiO37jH0I="
  12. }
Thank you! We've received your feedback.