DataSphere API v2, gRPC: ProjectService.Create
Creates a project in the specified folder.
gRPC request
rpc Create (CreateProjectRequest) returns (operation.Operation)
CreateProjectRequest
{
"communityId": "string",
"name": "string",
"description": "string",
"labels": "string",
"settings": {
"serviceAccountId": "string",
"subnetId": "string",
"dataProcClusterId": "string",
"securityGroupIds": [
"string"
],
"earlyAccess": "bool",
"ide": "Ide",
"defaultFolderId": "string",
"staleExecTimeoutMode": "StaleExecutionTimeoutMode",
"vmInactivityTimeout": "google.protobuf.Duration",
"defaultDedicatedSpec": "string"
},
"limits": {
"maxUnitsPerHour": "google.protobuf.Int64Value",
"maxUnitsPerExecution": "google.protobuf.Int64Value"
}
}
Field |
Description |
communityId |
string Required field. ID of the community to create a project in. |
name |
string Name of the project. 0-63 characters long. |
description |
string Description of the project. 0-256 characters long. |
labels |
string Labels of the project. |
settings |
Settings of the project. |
limits |
Limits of the project. |
Settings
Field |
Description |
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. |
dataProcClusterId |
string ID of the DataProc cluster. |
securityGroupIds[] |
string Network interfaces security groups. |
earlyAccess |
bool Is early access preview enabled for the project. |
ide |
enum Ide Project IDE.
|
defaultFolderId |
string Default project folder ID. |
staleExecTimeoutMode |
enum StaleExecutionTimeoutMode Timeout to automatically stop stale executions.
|
vmInactivityTimeout |
Timeout for VM deallocation. |
defaultDedicatedSpec |
string Default VM configuration for DEDICATED mode. |
Limits
Field |
Description |
maxUnitsPerHour |
The number of units that can be spent per hour. |
maxUnitsPerExecution |
The number of units that can be spent on the one execution. |
operation.Operation
{
"id": "string",
"description": "string",
"createdAt": "google.protobuf.Timestamp",
"createdBy": "string",
"modifiedAt": "google.protobuf.Timestamp",
"done": "bool",
"metadata": {
"projectId": "string"
},
// Includes only one of the fields `error`, `response`
"error": "google.rpc.Status",
"response": {
"id": "string",
"createdAt": "google.protobuf.Timestamp",
"name": "string",
"description": "string",
"labels": "string",
"createdById": "string",
"settings": {
"serviceAccountId": "string",
"subnetId": "string",
"dataProcClusterId": "string",
"securityGroupIds": [
"string"
],
"earlyAccess": "bool",
"ide": "Ide",
"defaultFolderId": "string",
"staleExecTimeoutMode": "StaleExecutionTimeoutMode",
"vmInactivityTimeout": "google.protobuf.Duration",
"defaultDedicatedSpec": "string"
},
"limits": {
"maxUnitsPerHour": "google.protobuf.Int64Value",
"maxUnitsPerExecution": "google.protobuf.Int64Value"
},
"communityId": "string"
}
// end of the list of possible fields
}
An Operation resource. For more information, see Operation.
Field |
Description |
id |
string ID of the operation. |
description |
string Description of the operation. 0-256 characters long. |
createdAt |
Creation timestamp. |
createdBy |
string ID of the user or service account who initiated the operation. |
modifiedAt |
The time when the Operation resource was last modified. |
done |
bool If the value is |
metadata |
Service-specific metadata associated with the operation. |
error |
The error result of the operation in case of failure or cancellation. Includes only one of the fields The operation result. |
response |
The normal response of the operation in case of success. Includes only one of the fields The operation result. |
CreateProjectMetadata
Field |
Description |
projectId |
string ID of the project that is being created. |
Project
A Project resource.
Field |
Description |
id |
string ID of the project. |
createdAt |
|
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 of the project. |
limits |
Limits of the project. |
communityId |
string ID of the community that the project belongs to. |
Settings
Field |
Description |
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. |
dataProcClusterId |
string ID of the DataProc cluster. |
securityGroupIds[] |
string Network interfaces security groups. |
earlyAccess |
bool Is early access preview enabled for the project. |
ide |
enum Ide Project IDE.
|
defaultFolderId |
string Default project folder ID. |
staleExecTimeoutMode |
enum StaleExecutionTimeoutMode Timeout to automatically stop stale executions.
|
vmInactivityTimeout |
Timeout for VM deallocation. |
defaultDedicatedSpec |
string Default VM configuration for DEDICATED mode. |
Limits
Field |
Description |
maxUnitsPerHour |
The number of units that can be spent per hour. |
maxUnitsPerExecution |
The number of units that can be spent on the one execution. |