All URIs are relative to https://localhost:3780
Method | HTTP request | Description |
---|---|---|
activate_license | POST /api/3/administration/license | License |
execute_command | POST /api/3/administration/commands | Console Commands |
get_info | GET /api/3/administration/info | Information |
get_license | GET /api/3/administration/license | License |
get_properties | GET /api/3/administration/properties | Properties |
get_settings | GET /api/3/administration/settings | Settings |
Links activate_license(opts)
License
Licenses the product with an activation key or a provided license file. If both are provided, the license file is preferred. <span class="authorization">Global Administrator
# load the gem
require 'rapid7_vm_console'
api_instance = Rapid7VmConsole::AdministrationApi.new
opts = {
license: File.new('/path/to/file.txt'), # File | The contents of a license (.lic) file.
key: 'key_example' # String | A license activation key.
}
begin
#License
result = api_instance.activate_license(opts)
p result
rescue Rapid7VmConsole::ApiError => e
puts "Exception when calling AdministrationApi->activate_license: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
license | File | The contents of a license (.lic) file. | [optional] |
key | String | A license activation key. | [optional] |
No authorization required
- Content-Type: multipart/form-data
- Accept: application/json;charset=UTF-8
ConsoleCommandOutput execute_command(opts)
Console Commands
Executes a console command against the Security Console. <span class="authorization">Global Administrator
# load the gem
require 'rapid7_vm_console'
api_instance = Rapid7VmConsole::AdministrationApi.new
opts = {
command: 'command_example' # String | The console command to execute.
}
begin
#Console Commands
result = api_instance.execute_command(opts)
p result
rescue Rapid7VmConsole::ApiError => e
puts "Exception when calling AdministrationApi->execute_command: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
command | String | The console command to execute. | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json;charset=UTF-8
Info get_info
Information
Returns system details, including host and version information.
# load the gem
require 'rapid7_vm_console'
api_instance = Rapid7VmConsole::AdministrationApi.new
begin
#Information
result = api_instance.get_info
p result
rescue Rapid7VmConsole::ApiError => e
puts "Exception when calling AdministrationApi->get_info: #{e}"
end
This endpoint does not need any parameter.
No authorization required
- Content-Type: application/json
- Accept: application/json;charset=UTF-8
License get_license
License
Returns the enabled features and limits of the current license. <span class="authorization">Global Administrator
# load the gem
require 'rapid7_vm_console'
api_instance = Rapid7VmConsole::AdministrationApi.new
begin
#License
result = api_instance.get_license
p result
rescue Rapid7VmConsole::ApiError => e
puts "Exception when calling AdministrationApi->get_license: #{e}"
end
This endpoint does not need any parameter.
No authorization required
- Content-Type: application/json
- Accept: application/json;charset=UTF-8
EnvironmentProperties get_properties
Properties
Returns system details, including host and version information.
# load the gem
require 'rapid7_vm_console'
api_instance = Rapid7VmConsole::AdministrationApi.new
begin
#Properties
result = api_instance.get_properties
p result
rescue Rapid7VmConsole::ApiError => e
puts "Exception when calling AdministrationApi->get_properties: #{e}"
end
This endpoint does not need any parameter.
No authorization required
- Content-Type: application/json
- Accept: application/json;charset=UTF-8
Settings get_settings
Settings
Returns the current administration settings. <span class="authorization">Global Administrator
# load the gem
require 'rapid7_vm_console'
api_instance = Rapid7VmConsole::AdministrationApi.new
begin
#Settings
result = api_instance.get_settings
p result
rescue Rapid7VmConsole::ApiError => e
puts "Exception when calling AdministrationApi->get_settings: #{e}"
end
This endpoint does not need any parameter.
No authorization required
- Content-Type: application/json
- Accept: application/json;charset=UTF-8