Querying the Automatic Snapshot Creation Policy
Function
This API is used to query the automatic snapshot creation policy.
Debugging
You can debug this API through automatic authentication in API Explorer.
URI
GET /v1.0/{project_id}/clusters/{cluster_id}/index_snapshot/policy
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID. For details about how to obtain the project ID and name, see Obtaining the Project ID and Name. |
cluster_id |
Yes |
String |
ID of the cluster where snapshots are to be automatically created. |
Request Parameters
None
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
keepday |
Integer |
Customize the number of snapshots to be retained. |
period |
String |
Time when a snapshot is created every day. |
prefix |
String |
Snapshot name prefix, which needs to be manually entered. |
bucket |
String |
Name of the OBS bucket where snapshots are stored. |
basePath |
String |
Storage path of the snapshot in the OBS bucket. |
agency |
String |
Agency used to access OBS buckets. |
enable |
String |
Whether to enable the automatic snapshot creation policy.
|
frequency |
String |
Frequency of automatically creating snapshots. |
Example Requests
None
Example Responses
Status code: 200
Request succeeded.
{ "keepday" : 2, "frequency" : "DAY", "period" : "16:00 GMT+08:00", "prefix" : "snapshot", "bucket" : "es-backup", "basePath" : "css_repository/tests", "agency" : "usearch", "enable" : "true" }
Status Codes
Status Code |
Description |
---|---|
200 |
Request succeeded. |
406 |
The server could not fulfill the request according to the content characteristics of the request. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot