ListElasticsearchServicesSuitableForRecovery
In this article:
ListElasticsearchServicesSuitableForRecovery#
Description#
Request for a list of running Elasticsearch or ELK services from which the target service can be recovered.
Request Parameters#
serviceId — The ID of the Elasticsearch or ELK service.
Type: String
Required: Yes
Response Elements#
services — List of running services.
Type: List of ServiceShort objects
Examples#
Managing PaaS services in K2 Cloud via API requires a customized version of the boto3 library:
import boto3
session = boto3.Session(
aws_access_key_id="<AWS_ACCESS_KEY_ID>",
aws_secret_access_key="<AWS_SECRET_ACCESS_KEY>",
region_name="",
)
paas_client = session.client(
'paas',
endpoint_url='https://paas.k2.cloud/',
)
paas_client.list_elasticsearch_services_suitable_for_recovery(
serviceId='fm-cluster-C27426C0',
)
Or c2-paas utility from K2 Cloud API Client software suite:
c2-paas ListElasticsearchServicesSuitableForRecovery serviceId fm-cluster-C27426C0