Skip to main content

GetSettings

OsLogin settings

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);
})();

GetOsLoginSettingsRequest​

organizationId : string​

OsLoginSettings​

userSshKeySettings : UserSshKeySettings​
sshCertificateSettings : SshCertificateSettings​

UserSshKeySettings​

enabled : bool​
allowManageOwnKeys : bool​

SshCertificateSettings​

enabled : bool​