Skip to main content

List

Retrieves the list of configs in the specified folder.

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

const ListConfigsRequest =
cloudApi.loadtesting.api_config_service.ListConfigsRequest;

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

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

ListConfigsRequest

folderId : string

ID of the folder to list configs in.

pageSize : int64

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

pageToken : string

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

filter : string

A filter expression that filters tests listed in the response.

ListConfigsResponse

configs : config.Config

List of configs in the specified folder.

nextPageToken : string

Token for getting the next page of the list. If the number of results is greater than the specified ListConfigsRequest.page_size, use next_page_token as the value for the ListConfigsRequest.page_token parameter in the next list request.

Each subsequent page will have its own next_page_token to continue paging through the results.

Config

Test config.

id : string

ID of the test config. Generated at creation time.

folderId : string

ID of the folder that the config belongs to.

yamlString : string

Config content in YAML format.

name : string

Name of the config.

createdAt : google.protobuf.Timestamp

Creation timestamp.

createdBy : string

UA or SA that created the config.