library
turbot/gcp
Get Involved
Version
Pipeline: Add Labels to Compute Disk
This pipeline adds labels to a Google Compute Engine persistent disk.
Run the pipeline
To run this pipeline from your terminal:
flowpipe pipeline run gcp.pipeline.add_labels_to_compute_disk \ --arg 'project_id=<string>' \ --arg 'zone=<string>' \ --arg 'disk_name=<string>' \ --arg 'labels=<map(string)>'
Use this pipeline
To call this pipeline from your pipeline, use a step:
step "pipeline" "step_name" { pipeline = gcp.pipeline.add_labels_to_compute_disk args = { project_id = <string> zone = <string> disk_name = <string> labels = <map(string)> }}
Params
Name | Type | Required | Description | Default |
---|---|---|---|---|
conn | connection.gcp | Yes | Name of GCP connection to use. If not provided, the default GCP connection will be used. | connection.gcp.default |
project_id | string | Yes | The GCP project ID. | - |
zone | string | Yes | The GCP zone. | - |
disk_name | string | Yes | The GCP disk name. | - |
labels | map(string) | Yes | The GCP labels. | - |
Outputs
Name | Description |
---|---|
disk | Information about the created disk. |