ListProviders
Retrieves the list of registered auth providers for Elasticsearch cluster.
- TypeScript
- Python
import { cloudApi, serviceClients, Session } from "@yandex-cloud/nodejs-sdk";
const ListAuthProvidersRequest =
cloudApi.mdb.elasticsearch_auth_service.ListAuthProvidersRequest;
(async () => {
const authToken = process.env["YC_OAUTH_TOKEN"];
const session = new Session({ oauthToken: authToken });
const client = session.client(serviceClients.AuthServiceClient);
const result = await client.listProviders(
ListAuthProvidersRequest.fromPartial({
clusterId: "clusterId",
})
);
console.log(result);
})();
import os
import grpc
import yandexcloud
from yandex.cloud.mdb.elasticsearch.v1.auth_service_pb2_grpc import AuthServiceStub
from yandex.cloud.mdb.elasticsearch.v1.auth_service_pb2 import ListAuthProvidersRequest
token = os.getenv("YC_OAUTH_TOKEN")
sdk = yandexcloud.SDK(token=token)
service = sdk.client(AuthServiceStub)
response = service.ListProviders(ListAuthProvidersRequest(cluster_id="clusterId"))
print(response)
ListAuthProvidersRequest
clusterId
: string
Required. ID of the ElasticSearch cluster.
ListAuthProvidersResponse
providers
: AuthProvider
List of auth providers of the Elasticsearch cluster.
AuthProvider
Type
TYPE_UNSPECIFIED
NATIVE
SAML
type
: Type
name
: string
order
: int64
enabled
: bool
hidden
: bool
selector ui settings
description
: string
hint
: string
icon
: string
One of settings
saml
: SamlSettings