Google Cloud Platform · Arazzo Workflow

Google Cloud Platform Inventory Organization Tags

Version 1.0.0

List an organization's tag keys, then list the tag values under the first key.

1 workflow 1 source API 1 provider
View Spec View on GitHub API ManagementCloud ComputingInfrastructurePlatform as a ServiceArazzoWorkflows

Provider

google-cloud-platform

Workflows

inventory-organization-tags
List tag keys for an organization then list values for the first key.
Lists tag keys under an organization and the tag values under the first returned key.
2 steps inputs: parent outputs: firstTagKey, tagKeys, tagValues
1
listTagKeys
cloudresourcemanager.tagKeys.list
List the tag keys under the organization and capture the first key name.
2
listTagValues
cloudresourcemanager.tagValues.list
List the tag values defined under the first tag key.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Google Cloud Platform Inventory Organization Tags
  summary: List an organization's tag keys, then list the tag values under the first key.
  description: >-
    Builds a tag inventory for an organization. The workflow lists the tag keys
    defined under an organization, captures the first tag key resource name, and
    lists the tag values defined under that key, giving callers a starting view
    of the organization's tagging taxonomy. Every step spells out its request
    inline so the flow can be read and executed without opening the underlying
    OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: cloudResourceManagerApi
  url: ../openapi/cloud-resource-manager-openapi.yml
  type: openapi
workflows:
- workflowId: inventory-organization-tags
  summary: List tag keys for an organization then list values for the first key.
  description: >-
    Lists tag keys under an organization and the tag values under the first
    returned key.
  inputs:
    type: object
    required:
    - parent
    properties:
      parent:
        type: string
        description: The organization parent, e.g. organizations/987654321.
  steps:
  - stepId: listTagKeys
    description: >-
      List the tag keys under the organization and capture the first key name.
    operationId: cloudresourcemanager.tagKeys.list
    parameters:
    - name: parent
      in: query
      value: $inputs.parent
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      tagKeys: $response.body#/tagKeys
      firstTagKey: $response.body#/tagKeys/0/name
  - stepId: listTagValues
    description: >-
      List the tag values defined under the first tag key.
    operationId: cloudresourcemanager.tagValues.list
    parameters:
    - name: parent
      in: query
      value: $steps.listTagKeys.outputs.firstTagKey
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      tagValues: $response.body#/tagValues
  outputs:
    tagKeys: $steps.listTagKeys.outputs.tagKeys
    firstTagKey: $steps.listTagKeys.outputs.firstTagKey
    tagValues: $steps.listTagValues.outputs.tagValues