Invoke a Cloud Run workload that requires authentication

Makes an authenticated request within a workflow, using OpenID Connect (OIDC) to connect with Cloud Run.

Code sample

YAML

- call_my_function:
    call: http.get
    args:
      url: https://example-12345-ew.a.run.app
      auth:
        type: OIDC
      query:
        some_val: "Hello World"
        another_val: 123
    result: the_message
- return_value:
    return: ${the_message.body}

What's next

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