Managed Service for Apache Airflow™ API, gRPC: ClusterService.Start
- gRPC request
- StartClusterRequest
- operation.Operation
- StartClusterMetadata
- Cluster
- Monitoring
- ClusterConfig
- AirflowConfig
- WebserverConfig
- Resources
- SchedulerConfig
- TriggererConfig
- WorkerConfig
- Dependencies
- LockboxConfig
- DagProcessorConfig
- NetworkConfig
- CodeSyncConfig
- S3Config
- GitSyncConfig
- LoggingConfig
- MaintenanceWindow
- AnytimeMaintenanceWindow
- WeeklyMaintenanceWindow
- MaintenanceOperation
Starts the specified Apache Airflow cluster.
gRPC request
rpc Start (StartClusterRequest) returns (operation.Operation)
StartClusterRequest
{
"cluster_id": "string"
}
|
Field |
Description |
|
cluster_id |
string Required field. ID of the Apache Airflow cluster to start. |
operation.Operation
{
"id": "string",
"description": "string",
"created_at": "google.protobuf.Timestamp",
"created_by": "string",
"modified_at": "google.protobuf.Timestamp",
"done": "bool",
"metadata": {
"cluster_id": "string"
},
// Includes only one of the fields `error`, `response`
"error": "google.rpc.Status",
"response": {
"id": "string",
"folder_id": "string",
"created_at": "google.protobuf.Timestamp",
"name": "string",
"description": "string",
"labels": "map<string, string>",
"monitoring": [
{
"name": "string",
"description": "string",
"link": "string"
}
],
"config": {
"version_id": "string",
"airflow": {
"config": "map<string, string>"
},
"webserver": {
"count": "int64",
"resources": {
"resource_preset_id": "string"
}
},
"scheduler": {
"count": "int64",
"resources": {
"resource_preset_id": "string"
}
},
"triggerer": {
"count": "int64",
"resources": {
"resource_preset_id": "string"
}
},
"worker": {
"min_count": "int64",
"max_count": "int64",
"resources": {
"resource_preset_id": "string"
}
},
"dependencies": {
"pip_packages": [
"string"
],
"deb_packages": [
"string"
]
},
"lockbox": {
"enabled": "bool"
},
"airflow_version": "string",
"python_version": "string",
"dag_processor": {
"count": "int64",
"resources": {
"resource_preset_id": "string"
}
}
},
"health": "Health",
"status": "Status",
"network": {
"subnet_ids": [
"string"
],
"security_group_ids": [
"string"
]
},
"code_sync": {
// Includes only one of the fields `s3`, `git_sync`
"s3": {
"bucket": "string"
},
"git_sync": {
"repo": "string",
"branch": "string",
"sub_path": "string",
"ssh_key": "string"
}
// end of the list of possible fields
},
"deletion_protection": "bool",
"webserver_url": "string",
"service_account_id": "string",
"logging": {
"enabled": "bool",
// Includes only one of the fields `folder_id`, `log_group_id`
"folder_id": "string",
"log_group_id": "string",
// end of the list of possible fields
"min_level": "Level"
},
"maintenance_window": {
// Includes only one of the fields `anytime`, `weekly_maintenance_window`
"anytime": "AnytimeMaintenanceWindow",
"weekly_maintenance_window": {
"day": "WeekDay",
"hour": "int64"
}
// end of the list of possible fields
},
"planned_operation": {
"info": "string",
"delayed_until": "google.protobuf.Timestamp",
"latest_maintenance_time": "google.protobuf.Timestamp",
"next_maintenance_window_time": "google.protobuf.Timestamp"
}
}
// 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. |
StartClusterMetadata
|
Field |
Description |
|
cluster_id |
string ID of the Apache Airflow cluster that is being started. |
Cluster
Apache Airflow cluster.
|
Field |
Description |
|
id |
string Unique ID of the Apache Airflow cluster. |
|
folder_id |
string ID of the folder that the Apache Airflow cluster belongs to. |
|
created_at |
The time when the Apache Airflow cluster was created. |
|
name |
string Name of the Apache Airflow cluster. |
|
description |
string Description of the Apache Airflow cluster. 0-256 characters long. |
|
labels |
object (map<string, string>) Resource labels as |
|
monitoring[] |
Monitoring systems relevant to the Apache Airflow cluster. |
|
config |
Configuration of Apache Airflow components. |
|
health |
enum Health Aggregated cluster health.
|
|
status |
enum Status Cluster status.
|
|
network |
Network related configuration options. |
|
code_sync |
Parameters of the location and access to the code that will be executed in the cluster. |
|
deletion_protection |
bool Deletion Protection inhibits deletion of the cluster. |
|
webserver_url |
string Address of Apache Airflow web UI. |
|
service_account_id |
string Service account used to access Cloud resources. |
|
logging |
Cloud Logging configuration. |
|
maintenance_window |
Window of maintenance operations. |
|
planned_operation |
Maintenance operation planned at nearest maintenance_window. |
Monitoring
Monitoring system.
|
Field |
Description |
|
name |
string Name of the monitoring system. |
|
description |
string Description of the monitoring system. |
|
link |
string Link to the monitoring system. |
ClusterConfig
|
Field |
Description |
|
version_id |
string Version of Apache Airflow that runs on the cluster. |
|
airflow |
Configuration of the Apache Airflow application itself. |
|
webserver |
Required field. Configuration of webserver instances. |
|
scheduler |
Required field. Configuration of scheduler instances. |
|
triggerer |
Configuration of triggerer instances. |
|
worker |
Required field. Configuration of worker instances. |
|
dependencies |
The list of additional packages installed in the cluster. |
|
lockbox |
Configuration of Lockbox Secret Backend. |
|
airflow_version |
string Apache Airflow version. Format: "Major.Minor" |
|
python_version |
string Python version. Format: "Major.Minor" |
|
dag_processor |
Configuration of dag-processor instances. |
AirflowConfig
|
Field |
Description |
|
config |
object (map<string, string>) Properties to be passed to Apache Airflow configuration file. |
WebserverConfig
|
Field |
Description |
|
count |
int64 The number of webserver instances in the cluster. |
|
resources |
Resources allocated to webserver instances. |
Resources
|
Field |
Description |
|
resource_preset_id |
string ID of the preset for computational resources available to an instance (CPU, memory etc.). |
SchedulerConfig
|
Field |
Description |
|
count |
int64 The number of scheduler instances in the cluster. |
|
resources |
Resources allocated to scheduler instances. |
TriggererConfig
|
Field |
Description |
|
count |
int64 The number of triggerer instances in the cluster. |
|
resources |
Resources allocated to triggerer instances. |
WorkerConfig
|
Field |
Description |
|
min_count |
int64 The minimum number of worker instances in the cluster. |
|
max_count |
int64 The maximum number of worker instances in the cluster. |
|
resources |
Resources allocated to worker instances. |
Dependencies
|
Field |
Description |
|
pip_packages[] |
string Python packages that are installed in the cluster. |
|
deb_packages[] |
string System packages that are installed in the cluster. |
LockboxConfig
|
Field |
Description |
|
enabled |
bool The setting allows to enable Lockbox Secret Backend. |
DagProcessorConfig
|
Field |
Description |
|
count |
int64 The number of dag-processor instances in the cluster. |
|
resources |
Resources allocated to dag-processor instances. |
NetworkConfig
|
Field |
Description |
|
subnet_ids[] |
string IDs of VPC network subnets where instances of the cluster are attached. |
|
security_group_ids[] |
string User security groups. |
CodeSyncConfig
|
Field |
Description |
|
s3 |
Includes only one of the fields |
|
git_sync |
Includes only one of the fields |
S3Config
|
Field |
Description |
|
bucket |
string The name of the Object Storage bucket that stores DAG files used in the cluster. |
GitSyncConfig
|
Field |
Description |
|
repo |
string Required field. Git repository URL. |
|
branch |
string Required field. Git branch name to sync from. |
|
sub_path |
string Subdirectory path within the repository containing DAG files. |
|
ssh_key |
string SSH private key for repository authentication. |
LoggingConfig
|
Field |
Description |
|
enabled |
bool Logs generated by the Airflow components are delivered to Cloud Logging. |
|
folder_id |
string Logs should be written to default log group for specified folder. Includes only one of the fields Destination of log records. |
|
log_group_id |
string Logs should be written to log group resolved by ID. Includes only one of the fields Destination of log records. |
|
min_level |
enum Level Minimum log entry level. See LogLevel.Level for details.
|
MaintenanceWindow
|
Field |
Description |
|
anytime |
Includes only one of the fields |
|
weekly_maintenance_window |
Includes only one of the fields |
AnytimeMaintenanceWindow
|
Field |
Description |
|
Empty |
|
WeeklyMaintenanceWindow
|
Field |
Description |
|
day |
enum WeekDay
|
|
hour |
int64 Hour of the day in UTC. |
MaintenanceOperation
|
Field |
Description |
|
info |
string |
|
delayed_until |
|
|
latest_maintenance_time |
|
|
next_maintenance_window_time |