capabilities.work

Move Folder and Poll Operation

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

Recipe · 4 steps

Move Folder and Poll Operation

Move a Google Cloud folder to a new parent and wait for completion.

  1. Read the folder to capture its current parent before the move.
  2. Move the folder under the destination parent. Returns a long-running Operation whose name is used to poll for completion.
  3. Poll the long-running operation by name until the done flag is true. Branches back to itself while the operation is still in progress.
  4. Re-read the folder to confirm the new parent took effect after the move.
What you'll need to have ready
  • folderId: The resource id of the folder to move (e.g. 500123).
  • destinationParent: The new parent resource, e.g. folders/456 or organizations/987.
For your developer

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