Cloud Resource Manager 的連接器

Workflows 連接器,用於定義內建函式,以便在工作流程中存取 Cloud Resource Manager。

深入探索

如需包含這個程式碼範例的詳細說明文件,請參閱下列內容:

程式碼範例

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"

後續步驟

如要搜尋及篩選其他 Google Cloud 產品的程式碼範例,請參閱Google Cloud 範例瀏覽器