Skip to main content

List

Retrieves the list of versions in the specified release channel.

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

const ListVersionsRequest =
cloudApi.certificatemanager.certificate_service.ListVersionsRequest;

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

const result = await client.list(
ListVersionsRequest.fromPartial({
certificateId: "certificateId",
// pageSize: 0,
// pageToken: "pageToken"
})
);
console.log(result);
})();

ListVersionsRequest

ListVersionsResponse

availableVersions : AvailableVersions

Versions available in the specified release channel.

AvailableVersions

releaseChannel : ReleaseChannel

Release channel: RAPID, REGULAR or STABLE. For more details see documentation.

versions : string

Version of Kubernetes components.