Help Center> Cloud Search Service> API Reference> Snapshot Management> (Not Recommended) Automatically Setting Basic Configurations of a Cluster Snapshot
Updated on 2023-04-14 GMT+08:00

(Not Recommended) Automatically Setting Basic Configurations of a Cluster Snapshot

Function

This API is used to automatically set basic configurations for a cluster snapshot, including configuring OBS buckets and IAM agency.

  • OBS Bucket: Enter the location of the OBS bucket used for storing snapshots.

  • Backup Path: Enter the storage path of the snapshot in the OBS bucket.

  • IAM Agency: Authorize you to use OBS in IAM so that snapshots must be stored in OBS.

This API automatically creates an OBS bucket and an agency for the snapshot. If there are multiple clusters, an OBS bucket will be created for each cluster via this API. As a result, the OBS quota may be insufficient, and many OBS buckets are difficult to maintain. You are advised to perform the operations in Modifying Basic Configurations of a Cluster Snapshot.

Debugging

You can debug this API through automatic authentication in API Explorer or use the SDK sample code generated by API Explorer.

URI

POST /v1.0/{project_id}/clusters/{cluster_id}/index_snapshot/auto_setting

Table 1 Path Parameters

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 you want to back up.

Request Parameters

None

Response Parameters

None

Example Requests

None

Example Responses

None

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.