Skip to main content

Get

Returns the specified config.

To get the list of all available configs, make a List request.

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

const GetConfigRequest =
cloudApi.loadtesting.api_config_service.GetConfigRequest;

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

const result = await client.get(
GetConfigRequest.fromPartial({
// configId: "configId"
})
);
console.log(result);
})();

GetConfigRequest​

configId : string​

ID of the config to return.

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.