Skip to main content

GetProvider

Returns registered auth provider by name.

import { cloudApi, serviceClients, Session } from "@yandex-cloud/nodejs-sdk";

const GetAuthProviderRequest =
cloudApi.mdb.elasticsearch_auth_service.GetAuthProviderRequest;

(async () => {
const authToken = process.env["YC_OAUTH_TOKEN"];
const session = new Session({ oauthToken: authToken });
const client = session.client(serviceClients.AuthServiceClient);

const result = await client.getProvider(
GetAuthProviderRequest.fromPartial({
clusterId: "clusterId",
name: "name",
})
);
console.log(result);
})();

GetAuthProviderRequest

clusterId : string

Required. ID of the ElasticSearch cluster.

name : string

Required. Name of the provider to delete.

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

SamlSettings

idpEntityId : string
idpMetadataFile : bytes
spEntityId : string
kibanaUrl : string
attributePrincipal : string
attributeGroups : string
attributeName : string
attributeEmail : string
attributeDn : string