Workflows Service, gRPC: WorkflowService.Create
Creates Workflow in specified folder.
gRPC request
rpc Create (CreateWorkflowRequest) returns (operation.Operation)
CreateWorkflowRequest
{
"folder_id": "string",
"name": "string",
"description": "string",
"labels": "map<string, string>",
"specification": {
// Includes only one of the fields `spec_yaml`
"spec_yaml": "string"
// end of the list of possible fields
},
"log_options": {
"disabled": "bool",
// Includes only one of the fields `log_group_id`, `folder_id`
"log_group_id": "string",
"folder_id": "string",
// end of the list of possible fields
"min_level": "Level"
},
"network_id": "string",
"service_account_id": "string",
"express": "bool",
"schedule": {
"cron_expression": "string",
"timezone": "string"
}
}
|
Field |
Description |
|
folder_id |
string Required field. ID of the folder to create Workflow in. |
|
name |
string Required field. Name of Workflow. |
|
description |
string Description of Workflow. |
|
labels |
object (map<string, string>) Workflow labels as |
|
specification |
Required field. Specification of Workflow |
|
log_options |
Options for logging from Workflow. |
|
network_id |
string ID of the VPC network Workflow will be executed in, in order to access private resources. |
|
service_account_id |
string ID of the Service Account which will be used for resources access in Workflow execution. |
|
express |
bool Express execution mode. |
|
schedule |
Workflow schedule settings. |
WorkflowSpecification
|
Field |
Description |
|
spec_yaml |
string Workflow specification in YAML format. Includes only one of the fields |
LogOptions
|
Field |
Description |
|
disabled |
bool Is logging from Workflow disabled. |
|
log_group_id |
string ID of the logging group which should be used for Workflows logs. Includes only one of the fields |
|
folder_id |
string ID of the folder which default logging group should be used for Workflows. Includes only one of the fields |
|
min_level |
enum Level Minimum logs level. See LogLevel.Level for details.
|
WorkflowSchedule
|
Field |
Description |
|
cron_expression |
string Required field. Cron expression for the Workflow schedule. |
|
timezone |
string Required field. Timezone for the Workflow schedule. |
operation.Operation
{
"id": "string",
"description": "string",
"created_at": "google.protobuf.Timestamp",
"created_by": "string",
"modified_at": "google.protobuf.Timestamp",
"done": "bool",
"metadata": {
"workflow_id": "string"
},
// Includes only one of the fields `error`, `response`
"error": "google.rpc.Status",
"response": {
"id": "string",
"folder_id": "string",
"specification": {
// Includes only one of the fields `spec_yaml`
"spec_yaml": "string"
// end of the list of possible fields
},
"created_at": "google.protobuf.Timestamp",
"name": "string",
"description": "string",
"labels": "map<string, string>",
"status": "Status",
"log_options": {
"disabled": "bool",
// Includes only one of the fields `log_group_id`, `folder_id`
"log_group_id": "string",
"folder_id": "string",
// end of the list of possible fields
"min_level": "Level"
},
"network_id": "string",
"service_account_id": "string",
"express": "bool",
"schedule": {
"cron_expression": "string",
"timezone": "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. |
CreateWorkflowMetadata
|
Field |
Description |
|
workflow_id |
string Required field. ID of the Workflow. |
Workflow
|
Field |
Description |
|
id |
string ID of the Workflow. Generated at creation time. |
|
folder_id |
string ID of the folder that the Workflow belongs to. |
|
specification |
Specification of the Workflow |
|
created_at |
Creation timestamp for the Workflow. |
|
name |
string Name of the Workflow. The name is unique within the folder. |
|
description |
string Description of the Workflow. |
|
labels |
object (map<string, string>) Workflow labels as |
|
status |
enum Status Status of the Workflow.
|
|
log_options |
Options for logging from the Workflow. |
|
network_id |
string ID of the VPC network Workflow will be executed in, in order to access private resources. |
|
service_account_id |
string ID of the Service Account which will be used for resource access in Workflow execution. |
|
express |
bool Express execution mode. |
|
schedule |
Workflow schedule settings. |
WorkflowSpecification
|
Field |
Description |
|
spec_yaml |
string Workflow specification in YAML format. Includes only one of the fields |
LogOptions
|
Field |
Description |
|
disabled |
bool Is logging from Workflow disabled. |
|
log_group_id |
string ID of the logging group which should be used for Workflows logs. Includes only one of the fields |
|
folder_id |
string ID of the folder which default logging group should be used for Workflows. Includes only one of the fields |
|
min_level |
enum Level Minimum logs level. See LogLevel.Level for details.
|
WorkflowSchedule
|
Field |
Description |
|
cron_expression |
string Required field. Cron expression for the Workflow schedule. |
|
timezone |
string Required field. Timezone for the Workflow schedule. |