Queries the shared OSS repositories that can be configured for an Elasticsearch cluster.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request headers

This operation uses only common request headers. For more information, see Common request headers.

Request syntax

GET /openapi/instances/{InstanceId}/alternative-snapshot-repos HTTP/1.1

Request parameters

Parameter Type Position Required Example Description
InstanceId String Path Yes es-cn-0pp1jxvcl000z****

The ID of the instance.

alreadySetItems Boolean Query No true

Specifies whether to return the added OSS reference repository. true is the default value, which indicates that it is returned. false indicates that it is not returned.

Response parameters

Parameter Type Example Description
RequestId String 5FFD9ED4-C2EC-4E89-B22B-1ACB6FE1D***

The request ID.

Result Array of repo

The response parameters.

repoPath String es-cn-6ja1ro4jt000c****

The address of the warehouse.

instanceId String es-cn-6ja1ro4jt000c****

The ID of the instance.

Examples

Sample requests

GET /openapi/instances/es-cn-0pp1jxvcl000z****/alternative-snapshot-repos HTTP/1.1
Common request header

Sample success response

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "Result" : [ {
    "instanceId" : "es-cn-6ja1ro4jt000c****",
    "repoPath" : "es-cn-6ja1ro4jt000c****"
  }, {
    "instanceId" : "es-cn-oew1rgiev0009****",
    "repoPath" : "es-cn-oew1rgiev0009****"
  } ],
  "RequestId" : "335D2540-BB16-447F-8AD4-39B7A0AE****"
}

Error codes

For a list of error codes, see Service error codes.