Konektor untuk Cloud Resource Manager

Konektor Workflows yang menentukan fungsi bawaan yang digunakan untuk mengakses Cloud Resource Manager dalam alur kerja.

Jelajahi lebih lanjut

Untuk dokumentasi mendetail yang menyertakan contoh kode ini, lihat artikel berikut:

Contoh kode

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"

Langkah selanjutnya

Untuk menelusuri dan memfilter contoh kode untuk produk Google Cloud lainnya, lihat browser contoh Google Cloud.