Get
Returns the specified config.
To get the list of all available configs, make a List request.
- TypeScript
- Python
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);
})();
import os
import grpc
import yandexcloud
from yandex.cloud.loadtesting.api.v1.config_service_pb2_grpc import ConfigServiceStub
from yandex.cloud.loadtesting.api.v1.config_service_pb2 import GetConfigRequest
token = os.getenv("YC_OAUTH_TOKEN")
sdk = yandexcloud.SDK(token=token)
service = sdk.client(ConfigServiceStub)
response = service.Get(
GetConfigRequest(
# config_id = "configId"
)
)
print(response)
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.