Label Project and Poll Operation
A 4-step recipe with Google Cloud Platform. We can help you get access.
Recipe · 4 steps
Label Project and Poll Operation
Set labels on a Google Cloud project and wait for the operation.
- Read the project to capture its existing labels before the change.
- Patch the project labels with an update mask scoped to labels. Returns a long-running Operation whose name is used to poll.
- Poll the patch operation by name until the done flag is true.
- Re-read the project to confirm the new labels took effect.
What you'll need to have ready
- projectId: The project id to label (e.g. my-app-prod-123).
- labels: The map of label key/value pairs to set on the project.
For your developer
Arazzo workflow google-cloud-platform:label-project-and-poll, 4 operations: cloudresourcemanager.projects.get → cloudresourcemanager.projects.patch → cloudresourcemanager.operations.get → cloudresourcemanager.projects.get. Specs on APIs.io.