lib/nexpose/ajax.rb
# PUT call to a Nexpose controller.
#
# @param [Connection] nsc API connection to a Nexpose console.
# @param [String] uri Controller address relative to https://host:port
# @param [String|REXML::Document] payload XML document required by the call.
# @param [String] content_type Content type to use when issuing the PUT.
# @return [String] The response from the call.
#
PUT call to a Nexpose controller.
PUT call to a Nexpose controller .
def put(nsc, uri, payload = nil, content_type = CONTENT_TYPE::XML)
      put = Net::HTTP::Put.new(uri)
      put.set_content_type(content_type)
      put.body = payload.to_s if payload
      _request(nsc, put)
    end
def put ( nsc , uri , payload = nil , content_type = CONTENT_TYPE :: XML ) put = Net :: HTTP :: Put . new ( uri ) put . set_content_type ( content_type ) put . body = payload . to_s if payload _request ( nsc , put ) end
PUT call to a Nexpose controller.
PUT call to a Nexpose controller .
The response from the call.
The response from the call .
String
nsc
<not_specific>
uri
<not_specific>
payload
<not_specific>
content_type
<not_specific>
<not_specific>
content_type Content type to use when issuing the PUT.
content_type Content type to use when issuing the PUT .