GetSettings
OsLogin settings
- TypeScript
- Python
import { cloudApi, serviceClients, Session } from "@yandex-cloud/nodejs-sdk";
const GetOsLoginSettingsRequest =
cloudApi.organizationmanager.os_login_service.GetOsLoginSettingsRequest;
(async () => {
const authToken = process.env["YC_OAUTH_TOKEN"];
const session = new Session({ oauthToken: authToken });
const client = session.client(serviceClients.OsLoginServiceClient);
const result = await client.getSettings(
GetOsLoginSettingsRequest.fromPartial({
organizationId: "organizationId",
})
);
console.log(result);
})();
import os
import grpc
import yandexcloud
from yandex.cloud.organizationmanager.v1.os_login_service_pb2 import GetOsLoginSettingsRequest
from yandex.cloud.organizationmanager.v1.os_login_service_pb2_grpc import OsLoginServiceStub
token = os.getenv("YC_OAUTH_TOKEN")
sdk = yandexcloud.SDK(token=token)
service = sdk.client(OsLoginServiceStub)
response = service.GetSettings(GetOsLoginSettingsRequest(organization_id="organizationId"))
print(response)