Skip to main content

List

Returns a list of format schemas in a cluster.

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

const ListFormatSchemasRequest =
cloudApi.mdb.clickhouse_format_schema_service.ListFormatSchemasRequest;

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

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

ListFormatSchemasRequest

clusterId : string

ClickHouse cluster ID.

To get a ClickHouse cluster ID, use the ClusterService.List method.

pageSize : int64

The maximum number of results per page to return. If the number of the results is larger than page_size, the service returns ListFormatSchemasResponse.next_page_token. You can use it to get the next page of the results in subsequent requests of a format schema list.

pageToken : string

Page token. To get the next page of results, set page_token to the ListFormatSchemasResponse.next_page_token returned by the previous format schema list request.

ListFormatSchemasResponse

formatSchemas : FormatSchema

List of format schemas.

nextPageToken : string

This token allows you to get the next page of results when requesting the format schema list. If the number of the results is larger than ListFormatSchemasRequest.page_size, use the next_page_token as the value for the ListFormatSchemasRequest.page_token parameter in the next request. Each subsequent request will have its own next_page_token to continue paging through the results.

FormatSchema

name : string

Format schema name.

clusterId : string

ClickHouse cluster ID.

type : FormatSchemaType

Schema type. Possible values are the following:

uri : string

Link to the file of a format schema in Yandex Object Storage. Managed Service for ClickHouse works only with format schemas imported to Object Storage.