Skip to main content

List

Lists projects for the specified folder.

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

const ListProjectsRequest =
cloudApi.datasphere.project_service.ListProjectsRequest;

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

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

ListProjectsRequest

folderId : string

ID of the folder to list projects in. To get the folder ID use a yandex.cloud.resourcemanager.v1.FolderService.List request.

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 ListProjectsResponse.next_page_token that can be used to get the next page of results in subsequent list requests.

pageToken : string

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

ListProjectsResponse

projects : Project

List of Project resources.

nextPageToken : string

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

Project

A Project resource.

Settings
serviceAccountId : string

ID of the service account, on whose behalf all operations with clusters will be performed.

subnetId : string

ID of the subnet where the DataProc cluster resides. Currently only subnets created in the availability zone ru-central1-a are supported.

dataProcClusterId : string

ID of the DataProc cluster.

securityGroupIds : string

Network interfaces security groups.

Limits
maxUnitsPerHour : google.protobuf.Int64Value

The number of units that can be spent per hour.

maxUnitsPerExecution : google.protobuf.Int64Value

The number of units that can be spent on the one execution.

id : string

ID of the project.

folderId : string

ID of the folder that the project belongs to.

createdAt : google.protobuf.Timestamp
name : string

Name of the project. 1-63 characters long.

description : string

Description of the project. 0-256 characters long.

settings : Settings

Settings of the project.

limits : Limits

Limits of the project.

Settings

serviceAccountId : string

ID of the service account, on whose behalf all operations with clusters will be performed.

subnetId : string

ID of the subnet where the DataProc cluster resides. Currently only subnets created in the availability zone ru-central1-a are supported.

dataProcClusterId : string

ID of the DataProc cluster.

securityGroupIds : string

Network interfaces security groups.

Limits

maxUnitsPerHour : google.protobuf.Int64Value

The number of units that can be spent per hour.

maxUnitsPerExecution : google.protobuf.Int64Value

The number of units that can be spent on the one execution.