• Cloud Search Service

css
  1. Help Center
  2. Cloud Search Service
  3. API Reference
  4. APIs Related to Snapshot Management
  5. Querying the Automatic Snapshot Creation Policy for a Cluster

Querying the Automatic Snapshot Creation Policy for a Cluster

Function

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

URI

GET /v1.0/{project_id}/clusters/{cluster_id}/index_snapshot/policy
Table 1 Parameter description

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID.

cluster_id

Yes

String

ID of the cluster, for which the automatic snapshot creation policy is to be queried.

Request

None

Response

Table 2 describes the response parameters.

Table 2 Parameter description

Parameter

Type

Description

keepday

Integer

Retention days for a snapshot.

period

String

Time when a snapshot is created every day.

prefix

String

Snapshot name prefix.

bucket

String

OBS bucket for storing snapshots.

agency

String

Agency used to access OBS buckets.

enable

String

Whether to enable the automatic snapshot creation policy.

Examples

Example request

GET /v1.0/6204a5bd270343b5885144cf9c8c158d/clusters/ea244205-d641-45d9-9dcb-ab2236bcd07e/index_snapshot/policy
Example response
{
    "keepday":2,
    "period":"16:00 GMT+08:00",
    "prefix":"snapshot",
    "bucket":"es-backup",
    "agency":"usearch",
    "enable":"true"
}

Status Code

Table 3 describes the status code.

Table 3 Status code

Status Code

Code

Status Code Description

200

OK

The request is processed successfully.

406

Not Acceptable

The server cannot fulfill the request according to the content characteristics of the request.