Class: Ansible::Ruby::Modules::Uri
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Uri
- Defined in:
- lib/ansible/ruby/modules/generated/core/network/basics/uri.rb
Overview
Interacts with HTTP and HTTPS web services and supports Digest, Basic and WSSE HTTP authentication mechanisms.
Instance Method Summary collapse
-
#body ⇒ String?
The body of the http request/response to the web service.
-
#body_format ⇒ :raw, ...
The serialization format of the body.
-
#creates ⇒ Object?
A filename, when it already exists, this step will not be run.
-
#dest ⇒ Object?
Path of where to download the file to (if desired).
-
#follow_redirects ⇒ :all, ...
Whether or not the URI module should follow redirects.
-
#force_basic_auth ⇒ :yes, ...
The library used by the uri module only sends authentication information when a webservice responds to an initial request with a 401 status.
-
#headers ⇒ Object?
Add custom HTTP headers to a request in the format of a YAML hash.
-
#method ⇒ :GET, ...
The HTTP method of the request or response.
-
#others ⇒ Object?
All arguments accepted by the M(file) module also work here.
-
#password ⇒ String?
Password for the module to use for Digest, Basic or WSSE authentication.
-
#removes ⇒ Object?
A filename, when it does not exist, this step will not be run.
-
#return_content ⇒ :yes, ...
Whether or not to return the body of the request as a “content” key in the dictionary result.
-
#status_code ⇒ Integer?
A valid, numeric, HTTP status code that signifies success of the request.
-
#timeout ⇒ Integer?
The socket level timeout in seconds.
-
#url ⇒ String
HTTP or HTTPS URL in the form (http|https)://host.domain/path.
-
#user ⇒ String?
Username for the module to use for Digest, Basic or WSSE authentication.
-
#validate_certs ⇒ :yes, ...
If C(no), SSL certificates will not be validated.
Methods inherited from Base
Methods inherited from Ansible::Ruby::Models::Base
attr_option, attr_options, attribute, #initialize, remove_existing_validations, #to_h, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#body ⇒ String?
26 |
# File 'lib/ansible/ruby/modules/generated/core/network/basics/uri.rb', line 26 attribute :body |
#body_format ⇒ :raw, ...
30 |
# File 'lib/ansible/ruby/modules/generated/core/network/basics/uri.rb', line 30 attribute :body_format |
#creates ⇒ Object?
50 |
# File 'lib/ansible/ruby/modules/generated/core/network/basics/uri.rb', line 50 attribute :creates |
#dest ⇒ Object?
15 |
# File 'lib/ansible/ruby/modules/generated/core/network/basics/uri.rb', line 15 attribute :dest |
#follow_redirects ⇒ :all, ...
46 |
# File 'lib/ansible/ruby/modules/generated/core/network/basics/uri.rb', line 46 attribute :follow_redirects |
#force_basic_auth ⇒ :yes, ...
42 |
# File 'lib/ansible/ruby/modules/generated/core/network/basics/uri.rb', line 42 attribute :force_basic_auth |
#headers ⇒ Object?
67 |
# File 'lib/ansible/ruby/modules/generated/core/network/basics/uri.rb', line 67 attribute :headers |
#method ⇒ :GET, ...
34 |
# File 'lib/ansible/ruby/modules/generated/core/network/basics/uri.rb', line 34 attribute :method |
#others ⇒ Object?
70 |
# File 'lib/ansible/ruby/modules/generated/core/network/basics/uri.rb', line 70 attribute :others |
#password ⇒ String?
22 |
# File 'lib/ansible/ruby/modules/generated/core/network/basics/uri.rb', line 22 attribute :password |
#removes ⇒ Object?
53 |
# File 'lib/ansible/ruby/modules/generated/core/network/basics/uri.rb', line 53 attribute :removes |
#return_content ⇒ :yes, ...
38 |
# File 'lib/ansible/ruby/modules/generated/core/network/basics/uri.rb', line 38 attribute :return_content |
#status_code ⇒ Integer?
56 |
# File 'lib/ansible/ruby/modules/generated/core/network/basics/uri.rb', line 56 attribute :status_code |
#timeout ⇒ Integer?
60 |
# File 'lib/ansible/ruby/modules/generated/core/network/basics/uri.rb', line 60 attribute :timeout |
#url ⇒ String
11 |
# File 'lib/ansible/ruby/modules/generated/core/network/basics/uri.rb', line 11 attribute :url |
#user ⇒ String?
18 |
# File 'lib/ansible/ruby/modules/generated/core/network/basics/uri.rb', line 18 attribute :user |
#validate_certs ⇒ :yes, ...
73 |
# File 'lib/ansible/ruby/modules/generated/core/network/basics/uri.rb', line 73 attribute :validate_certs |