uri
Collection: builtin
Full Name: uri
Synopsis
Manage uri
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| url | string | yes | HTTP or HTTPS URL | |
| method | string | GET | The HTTP method of the request | |
| body | string | The body of the HTTP request | ||
| body_format | string | raw | The format of the body (raw, json, form-urlencoded) | |
| headers | dict | HTTP headers to send with the request | ||
| status_code | list | [200] | A list of valid, numeric, HTTP status codes that signifies success | |
| timeout | int | 30 | The amount of time in seconds to wait for the request | |
| follow_redirects | string | safe | Whether redirects should be followed (all, none, safe) | |
| validate_certs | bool | true | If false, SSL certificates will not be validated |
Example
- name: Example uri task
uri:
url: <your_url>