HttpTarget Object

HttpTarget(
  headers = NULL,
  body = NULL,
  oauthToken = NULL,
  uri = NULL,
  oidcToken = NULL,
  httpMethod = NULL
)

Arguments

headers

A named list of HTTP headers e.g. list(Blah = "yes", Boo = "no")

body

HTTP request body. Just send in the R object/list, which will be base64encoded correctly

oauthToken

If specified, an OAuth token will be generated and attached as an Authorization header in the HTTP request. This type of authorization should be used when sending requests to a GCP endpoint.

uri

Required

oidcToken

If specified, an OIDC token will be generated and attached as an Authorization header in the HTTP request. This type of authorization should be used when sending requests to third party endpoints or Cloud Run.

httpMethod

Which HTTP method to use for the request

Value

HttpTarget object

See also

https://cloud.google.com/scheduler/docs/reference/rest/v1/projects.locations.jobs#HttpTarget

Other Cloud Scheduler functions: Job(), PubsubTarget(), cr_build_schedule_http(), cr_run_schedule_http(), cr_schedule_delete(), cr_schedule_get(), cr_schedule_list(), cr_schedule_pause(), cr_schedule_run()