Connector for Cloud Resource Manager

Workflows connector that defines the built-in function used to access Cloud Resource Manager within a workflow.

Explore further

For detailed documentation that includes this code sample, see the following:

Code sample

YAML

# This workflow expects following item to be provided through the input argument for execution:
# - projectNumber (string)
#   - The project number.
#
# Expected successful output: "SUCCESS"
main:
  params: [args]
  steps:
    - init:
        assign:
          - project_number: ${args.projectNumber}
    - get_project:
        call: googleapis.cloudresourcemanager.v3.projects.get
        args:
          name: ${"projects/" + project_number}
    - the_end:
        return: "SUCCESS"

What's next

To search and filter code samples for other Google Cloud products, see the Google Cloud sample browser.