Skip to main content

List

Returns list of available ClickHouse versions.

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.VersionsServiceClient);

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

ListVersionsRequest

pageSize : int64

The maximum number of results per page that should be returned. If the number of available results is larger than page_size, the service returns a ListVersionsResponse.next_page_token that can be used to get the next page of results in subsequent ListVersions requests. Default value: 100.

pageToken : string

Page token. Set page_token to the ListVersionsResponse.next_page_token returned by a previous ListVersions request to get the next page of results.

ListVersionsResponse

version : Version

Requested list of available versions.

nextPageToken : string

This token allows you to get the next page of results for ListVersions requests, if the number of results is larger than ListVersionsRequest.page_size specified in the request. To get the next page, specify the value of next_page_token as a value for the ListVersionsRequest.page_token parameter in the next ListVerions request. Subsequent ListVersions requests will have their own next_page_token to continue paging through the results.

Version

id : string

ID of the version.

name : string

Name of the version.

deprecated : bool

Whether version is deprecated.

updatableTo : string

List of versions that can be updated from current.