Platform - Repository - CRUD

Get snapshot repositories

Retrieves a list of available snapshot repository configurations. To access the configuration contents, you must have privileged permissions.

Request

GET /api/v1/platform/configuration/snapshots/repositories

Responses

200
(RepositoryConfigs) List of snapshot repository configs
Warning

To perform this operation, you must be authenticated by means of one of the following methods: apiKey, basicAuth.

Request example

curl -XGET {{hostname}}/api/v1/platform/configuration/snapshots/repositories \
-u $CLOUD_USER:$CLOUD_KEY

Delete snapshot repository

Deletes the snapshot repository configuration.

Request

DELETE /api/v1/platform/configuration/snapshots/repositories/{repository_name}

Path parameters

Name Type Required Description

repository_name

string

Y

The name of the snapshot repository configuration.

Responses

200
(EmptyResponse) successful operation
202
(EmptyResponse) Delete snapshot repository config
449
(BasicFailedReply) elevated permissions are required. (code: '"root.unauthorized.rbac.elevated_permissions_required"')
Warning

To perform this operation, you must be authenticated by means of one of the following methods: apiKey, basicAuth.

Request example

curl -XDELETE {{hostname}}/api/v1/platform/configuration/snapshots/repositories/{repository_name} \
-u $CLOUD_USER:$CLOUD_KEY

Get snapshot repository

Retrieves the snapshot repository configuration. To access the configuration contents, you must have privileged permissions.

Request

GET /api/v1/platform/configuration/snapshots/repositories/{repository_name}

Path parameters

Name Type Required Description

repository_name

string

Y

The name of the snapshot repository configuration.

Responses

200
(RepositoryConfig) Retrieve snapshot repository config
Warning

To perform this operation, you must be authenticated by means of one of the following methods: apiKey, basicAuth.

Request example

curl -XGET {{hostname}}/api/v1/platform/configuration/snapshots/repositories/{repository_name} \
-u $CLOUD_USER:$CLOUD_KEY

Set snapshot repository

Creates or updates the snapshot repository configuration.

Request

PUT /api/v1/platform/configuration/snapshots/repositories/{repository_name}

Path parameters

Name Type Required Description

repository_name

string

Y

The name of the snapshot repository configuration.

Query parameters

Name Type Required Description

version

integer

N

Checks for conflicts against the metadata version, then returns the value in the x-cloud-resource-version header.

Request body

(SnapshotRepositoryConfiguration) (required) The Elasticsearch snapshot repository configuration

Responses

200
(RepositoryConfig) New snapshot repository config
449
(BasicFailedReply) elevated permissions are required. (code: '"root.unauthorized.rbac.elevated_permissions_required"')
Warning

To perform this operation, you must be authenticated by means of one of the following methods: apiKey, basicAuth.

Request example

curl -XPUT {{hostname}}/api/v1/platform/configuration/snapshots/repositories/{repository_name} \
-u $CLOUD_USER:$CLOUD_KEY \
-H 'Content-Type: application/json' \
-d '
{
   "settings" : {},
   "type" : "string"
}
'