Skip to main content

ListPaths

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

const ListPathsRequest = cloudApi.ydb.backup_service.ListPathsRequest;

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

const result = await client.listPaths(
ListPathsRequest.fromPartial({
backupId: "backupId",
// pageSize: 0,
// pageToken: "pageToken"
})
);
console.log(result);
})();

ListPathsRequest

backupId : string

Required. ID of the YDB backup.

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 next_page_token that can be used to get the next page of results in subsequent ListPaths requests. Acceptable values are 0 to 1000, inclusive. Default value: 100.

pageToken : string

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

ListPathsResponse

paths : string
nextPageToken : string