capabilities.work

Rename Folder and Poll Operation

A 4-step recipe with Google Cloud Platform. We can help you get access.

Recipe · 4 steps

Rename Folder and Poll Operation

Rename a Google Cloud folder and wait for the operation to complete.

  1. Read the folder to capture the current display name before the change.
  2. Patch the folder display name with an update mask scoped to displayName. Returns a long-running Operation whose name is used to poll.
  3. Poll the patch operation by name until the done flag is true.
  4. Re-read the folder to confirm the new display name took effect.
What you'll need to have ready
  • folderId: The folder resource id to rename (e.g. 500123).
  • displayName: The new display name to set on the folder.
For your developer

Arazzo workflow google-cloud-platform:rename-folder-and-poll, 4 operations: cloudresourcemanager.folders.get → cloudresourcemanager.folders.patch → cloudresourcemanager.operations.get → cloudresourcemanager.folders.get. Specs on APIs.io.