uri

Collection: builtin

Full Name: uri

Synopsis

Manage uri

Parameters

NameTypeRequiredDefaultDescription
urlstringyesHTTP or HTTPS URL
methodstringGETThe HTTP method of the request
bodystringThe body of the HTTP request
body_formatstringrawThe format of the body (raw, json, form-urlencoded)
headersdictHTTP headers to send with the request
status_codelist[200]A list of valid, numeric, HTTP status codes that signifies success
timeoutint30The amount of time in seconds to wait for the request
follow_redirectsstringsafeWhether redirects should be followed (all, none, safe)
validate_certsbooltrueIf false, SSL certificates will not be validated

Example

- name: Example uri task
  uri:
    url: <your_url>