Rename Project and Poll Operation
A 4-step recipe with Google Cloud Platform. We can help you get access.
Recipe · 4 steps
Rename Project and Poll Operation
Rename a Google Cloud project and wait for the operation to complete.
- Read the project to capture the current display name before the change.
- Patch the project display name with an update mask scoped to displayName. 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 display name took effect.
What you'll need to have ready
- projectId: The project id to rename (e.g. my-app-prod-123).
- displayName: The new display name to set on the project.
For your developer
Arazzo workflow google-cloud-platform:rename-project-and-poll, 4 operations: cloudresourcemanager.projects.get → cloudresourcemanager.projects.patch → cloudresourcemanager.operations.get → cloudresourcemanager.projects.get. Specs on APIs.io.