Networking

Http Requests

Http get

Playbook Action: http_get

Run an http GET against a url, from within the cluster. Optionally, send the response as a finding.

Add this to your Robusta configuration (Helm values.yaml):

customPlaybooks:
- actions:
  - http_get:
      url: string
  triggers:
  - on_pod_create: {}

The above is an example. Try customizing the trigger and parameters.

required:
url (str)

In cluster target url.

optional:
get_response (bool)

(optional) (Default: False) Send results to sink.

params (dict)

(optional) Dictionary, list of tuples or bytes to send

in the query string

This is a command action. It runs only from playbooks defined in your Robusta configuration, and only if you explicitly opt in by listing it under commandActions in your Helm values. commandActions is empty by default.

Http post

Playbook Action: http_post

Run an http POST against a url, from within the cluster. Optionally, send the response as a finding.

Add this to your Robusta configuration (Helm values.yaml):

customPlaybooks:
- actions:
  - http_post:
      url: string
  triggers:
  - on_pod_create: {}

The above is an example. Try customizing the trigger and parameters.

required:
url (str)

In cluster target url.

optional:
data (complex)

(optional) Dictionary, list of tuples, bytes, or file-like

object to send in the body of request.

each entry is one of the following:(<class 'dict'>, <class 'str'>, <class 'bytes'>, typing.List[tuple])

headers (dict)
get_response (bool)

(optional) (Default: False) Send results to sink.

This is a command action. It runs only from playbooks defined in your Robusta configuration, and only if you explicitly opt in by listing it under commandActions in your Helm values. commandActions is empty by default.

Http put

Playbook Action: http_put

Run an http PUT against a url, from within the cluster. Optionally, send the response as a finding.

Add this to your Robusta configuration (Helm values.yaml):

customPlaybooks:
- actions:
  - http_put:
      url: string
  triggers:
  - on_pod_create: {}

The above is an example. Try customizing the trigger and parameters.

required:
url (str)

In cluster target url.

optional:
data (complex)

(optional) Dictionary, list of tuples, bytes, or file-like

object to send in the body of request.

each entry is one of the following:(<class 'dict'>, <class 'str'>, <class 'bytes'>, typing.List[tuple])

headers (dict)
get_response (bool)

(optional) (Default: False) Send results to sink.

This is a command action. It runs only from playbooks defined in your Robusta configuration, and only if you explicitly opt in by listing it under commandActions in your Helm values. commandActions is empty by default.