Help Center/ Cloud Search Service/ API Reference (Kuala Lumpur Region)/ Snapshot Management/ Querying the Automatic Snapshot Creation Policy
Updated on 2023-06-20 GMT+08:00

Querying the Automatic Snapshot Creation Policy

Function

This API is used to query the automatic snapshot creation policy.

URI

GET /v1.0/{project_id}/clusters/{cluster_id}/index_snapshot/policy

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID.

cluster_id

Yes

String

ID of the cluster where snapshots are to be automatically created.

Request Parameters

None

Response Parameters

Status code: 200

Table 2 Response body parameters

Parameter

Type

Description

keepday

Integer

Number of days for retaining a snapshot.

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.

  • true: The automatic snapshot creation policy is enabled.
  • false: The automatic snapshot creation policy is disabled.

Example Requests

None

Example Responses

Status code: 200

Request succeeded.

{
  "keepday" : 2,
  "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.