Get
Returns the specified project.
- TypeScript
- Python
import { cloudApi, serviceClients, Session } from "@yandex-cloud/nodejs-sdk";
const GetProjectRequest = cloudApi.datasphere.project_service.GetProjectRequest;
(async () => {
const authToken = process.env["YC_OAUTH_TOKEN"];
const session = new Session({ oauthToken: authToken });
const client = session.client(serviceClients.ProjectServiceClient);
const result = await client.get(
GetProjectRequest.fromPartial({
projectId: "projectId",
})
);
console.log(result);
})();
import os
import grpc
import yandexcloud
from yandex.cloud.datasphere.v1.project_service_pb2 import GetProjectRequest
from yandex.cloud.datasphere.v1.project_service_pb2_grpc import ProjectServiceStub
token = os.getenv("YC_OAUTH_TOKEN")
sdk = yandexcloud.SDK(token=token)
service = sdk.client(ProjectServiceStub)
response = service.Get(GetProjectRequest(project_id="projectId"))
print(response)
GetProjectRequest
projectId
: string
ID of the Project resource to return. To get the project ID use a ProjectService.List request.
Project
A Project resource.
Settings
Ide
IDE_UNSPECIFIED
JUPYTER_LAB
Project running on JupyterLab IDE.
StaleExecutionTimeoutMode
STALE_EXECUTION_TIMEOUT_MODE_UNSPECIFIED
ONE_HOUR
Setting to automatically stop stale execution after one hour with low consumption.
THREE_HOURS
Setting to automatically stop stale execution after three hours with low consumption.
NO_TIMEOUT
Setting to never automatically stop stale executions.
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.
earlyAccess
: bool
Is early access preview enabled for the project.
ide
: Ide
Project IDE.
defaultFolderId
: string
Default project folder ID.
staleExecTimeoutMode
: StaleExecutionTimeoutMode
Timeout to automatically stop stale executions.
vmInactivityTimeout
: google.protobuf.Duration
Timeout for VM deallocation.
defaultDedicatedSpec
: string
Default VM configuration for DEDICATED mode.
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.
createdAt
: google.protobuf.Timestamp
name
: string
Name of the project. 1-63 characters long.
description
: string
Description of the project. 0-256 characters long.
labels
: string
createdById
: string
settings
: Settings
Settings of the project.
limits
: Limits
Limits of the project.
communityId
: string
ID of the community that the project belongs to.
Settings
Ide
IDE_UNSPECIFIED
JUPYTER_LAB
Project running on JupyterLab IDE.
StaleExecutionTimeoutMode
STALE_EXECUTION_TIMEOUT_MODE_UNSPECIFIED
ONE_HOUR
Setting to automatically stop stale execution after one hour with low consumption.
THREE_HOURS
Setting to automatically stop stale execution after three hours with low consumption.
NO_TIMEOUT
Setting to never automatically stop stale executions.
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.
earlyAccess
: bool
Is early access preview enabled for the project.
ide
: Ide
Project IDE.
defaultFolderId
: string
Default project folder ID.
staleExecTimeoutMode
: StaleExecutionTimeoutMode
Timeout to automatically stop stale executions.
vmInactivityTimeout
: google.protobuf.Duration
Timeout for VM deallocation.
defaultDedicatedSpec
: string
Default VM configuration for DEDICATED mode.
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.