Invoke a Cloud Run workload that requires authentication

Stay organized with collections Save and categorize content based on your preferences.

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

Explore further

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

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.