Class: Ansible::Ruby::Modules::Imc_rest

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/remote_management/imc/imc_rest.rb

Overview

Provides direct access to the Cisco IMC REST API. Perform any configuration changes and actions that the Cisco IMC supports. More information about the IMC REST API is available from U(www.cisco.com/c/en/us/td/docs/unified_computing/ucs/c/sw/api/3_0/b_Cisco_IMC_api_301.html)

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

Methods inherited from Ansible::Ruby::Models::Base

attr_option, attr_options, attribute, fix_inclusion, #initialize, remove_existing_validations, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#contentString?

Returns When used instead of C(path), sets the content of the API requests directly.,This may be convenient to template simple requests, for anything complex use the M(template) module.,You can collate multiple IMC XML fragments and they will be processed sequentially in a single stream, the Cisco IMC output is subsequently merged.,Parameter C(content) is mutual exclusive with parameter C(path).

Returns:

  • (String, nil)

    When used instead of C(path), sets the content of the API requests directly.,This may be convenient to template simple requests, for anything complex use the M(template) module.,You can collate multiple IMC XML fragments and they will be processed sequentially in a single stream, the Cisco IMC output is subsequently merged.,Parameter C(content) is mutual exclusive with parameter C(path).



29
# File 'lib/ansible/ruby/modules/generated/remote_management/imc/imc_rest.rb', line 29

attribute :content

#hostnameString

Returns IP Address or hostname of Cisco IMC, resolvable by Ansible control host.

Returns:

  • (String)

    IP Address or hostname of Cisco IMC, resolvable by Ansible control host.



14
# File 'lib/ansible/ruby/modules/generated/remote_management/imc/imc_rest.rb', line 14

attribute :hostname

#passwordString?

Returns The password to use for authentication.

Returns:

  • (String, nil)

    The password to use for authentication.



22
# File 'lib/ansible/ruby/modules/generated/remote_management/imc/imc_rest.rb', line 22

attribute :password

#pathObject?

Returns Name of the absolute path of the filename that includes the body of the http request being sent to the Cisco IMC REST API.,Parameter C(path) is mutual exclusive with parameter C(content).

Returns:

  • (Object, nil)

    Name of the absolute path of the filename that includes the body of the http request being sent to the Cisco IMC REST API.,Parameter C(path) is mutual exclusive with parameter C(content).



26
# File 'lib/ansible/ruby/modules/generated/remote_management/imc/imc_rest.rb', line 26

attribute :path

#protocol:http, ...

Returns Connection protocol to use.

Returns:

  • (:http, :https, nil)

    Connection protocol to use.



33
# File 'lib/ansible/ruby/modules/generated/remote_management/imc/imc_rest.rb', line 33

attribute :protocol

#timeoutInteger?

Returns The socket level timeout in seconds.,This is the time that every single connection (every fragment) can spend. If this C(timeout) is reached, the module will fail with a C(Connection failure) indicating that C(The read operation timed out).

Returns:

  • (Integer, nil)

    The socket level timeout in seconds.,This is the time that every single connection (every fragment) can spend. If this C(timeout) is reached, the module will fail with a C(Connection failure) indicating that C(The read operation timed out).



37
# File 'lib/ansible/ruby/modules/generated/remote_management/imc/imc_rest.rb', line 37

attribute :timeout

#usernameString?

Returns Username used to login to the switch.

Returns:

  • (String, nil)

    Username used to login to the switch.



18
# File 'lib/ansible/ruby/modules/generated/remote_management/imc/imc_rest.rb', line 18

attribute :username

#validate_certs:yes, ...

Returns If C(no), SSL certificates will not be validated.,This should only set to C(no) used on personally controlled sites using self-signed certificates.

Returns:

  • (:yes, :no, nil)

    If C(no), SSL certificates will not be validated.,This should only set to C(no) used on personally controlled sites using self-signed certificates.



41
# File 'lib/ansible/ruby/modules/generated/remote_management/imc/imc_rest.rb', line 41

attribute :validate_certs