DataSphere API v2, gRPC: ProjectService.Create
Creates a project in the specified folder.
gRPC request
rpc Create (CreateProjectRequest) returns (operation.Operation)
CreateProjectRequest
{
"community_id": "string",
"name": "string",
"description": "string",
"labels": "map<string, string>",
"settings": {
"service_account_id": "string",
"subnet_id": "string",
"data_proc_cluster_id": "string",
"security_group_ids": [
"string"
],
"early_access": "bool",
"ide": "Ide",
"default_folder_id": "string",
"stale_exec_timeout_mode": "StaleExecutionTimeoutMode",
"vm_inactivity_timeout": "google.protobuf.Duration",
"default_dedicated_spec": "string"
},
"limits": {
"max_units_per_hour": "google.protobuf.Int64Value",
"max_units_per_execution": "google.protobuf.Int64Value"
}
}
Field |
Description |
community_id |
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 |
object (map<string, string>) Labels of the project. |
settings |
Settings of the project. |
limits |
Limits of the project. |
Settings
Field |
Description |
service_account_id |
string ID of the service account, on whose behalf all operations with clusters will be performed. |
subnet_id |
string ID of the subnet where the DataProc cluster resides. |
data_proc_cluster_id |
string ID of the DataProc cluster. |
security_group_ids[] |
string Network interfaces security groups. |
early_access |
bool Is early access preview enabled for the project. |
ide |
enum Ide Project IDE.
|
default_folder_id |
string Default project folder ID. |
stale_exec_timeout_mode |
enum StaleExecutionTimeoutMode Timeout to automatically stop stale executions.
|
vm_inactivity_timeout |
Timeout for VM deallocation. |
default_dedicated_spec |
string Default VM configuration for DEDICATED mode. |
Limits
Field |
Description |
max_units_per_hour |
The number of units that can be spent per hour. |
max_units_per_execution |
The number of units that can be spent on the one execution. |
operation.Operation
{
"id": "string",
"description": "string",
"created_at": "google.protobuf.Timestamp",
"created_by": "string",
"modified_at": "google.protobuf.Timestamp",
"done": "bool",
"metadata": {
"project_id": "string"
},
// Includes only one of the fields `error`, `response`
"error": "google.rpc.Status",
"response": {
"id": "string",
"created_at": "google.protobuf.Timestamp",
"name": "string",
"description": "string",
"labels": "map<string, string>",
"created_by_id": "string",
"settings": {
"service_account_id": "string",
"subnet_id": "string",
"data_proc_cluster_id": "string",
"security_group_ids": [
"string"
],
"early_access": "bool",
"ide": "Ide",
"default_folder_id": "string",
"stale_exec_timeout_mode": "StaleExecutionTimeoutMode",
"vm_inactivity_timeout": "google.protobuf.Duration",
"default_dedicated_spec": "string"
},
"limits": {
"max_units_per_hour": "google.protobuf.Int64Value",
"max_units_per_execution": "google.protobuf.Int64Value"
},
"community_id": "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. |
created_at |
Creation timestamp. |
created_by |
string ID of the user or service account who initiated the operation. |
modified_at |
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 |
project_id |
string ID of the project that is being created. |
Project
A Project resource.
Field |
Description |
id |
string ID of the project. |
created_at |
|
name |
string Name of the project. 1-63 characters long. |
description |
string Description of the project. 0-256 characters long. |
labels |
object (map<string, string>) |
created_by_id |
string |
settings |
Settings of the project. |
limits |
Limits of the project. |
community_id |
string ID of the community that the project belongs to. |
Settings
Field |
Description |
service_account_id |
string ID of the service account, on whose behalf all operations with clusters will be performed. |
subnet_id |
string ID of the subnet where the DataProc cluster resides. |
data_proc_cluster_id |
string ID of the DataProc cluster. |
security_group_ids[] |
string Network interfaces security groups. |
early_access |
bool Is early access preview enabled for the project. |
ide |
enum Ide Project IDE.
|
default_folder_id |
string Default project folder ID. |
stale_exec_timeout_mode |
enum StaleExecutionTimeoutMode Timeout to automatically stop stale executions.
|
vm_inactivity_timeout |
Timeout for VM deallocation. |
default_dedicated_spec |
string Default VM configuration for DEDICATED mode. |
Limits
Field |
Description |
max_units_per_hour |
The number of units that can be spent per hour. |
max_units_per_execution |
The number of units that can be spent on the one execution. |