All URIs are relative to https://api.vultr.com/v2
Method | HTTP request | Description |
---|---|---|
list_os | GET /os | List OS |
list_os(opts)
List OS
List the OS images available for installation at Vultr.
require 'time'
require 'vultr_ruby'
api_instance = VultrRuby::OsApi.new
opts = {
per_page: 56, # Integer | Number of items requested per page. Default is 100 and Max is 500.
cursor: 'cursor_example' # String | Cursor for paging. See [Meta and Pagination](#section/Introduction/Meta-and-Pagination).
}
begin
# List OS
result = api_instance.list_os(opts)
p result
rescue VultrRuby::ApiError => e
puts "Error when calling OsApi->list_os: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> list_os_with_http_info(opts)
begin
# List OS
data, status_code, headers = api_instance.list_os_with_http_info(opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <ListOs200Response>
rescue VultrRuby::ApiError => e
puts "Error when calling OsApi->list_os_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
per_page | Integer | Number of items requested per page. Default is 100 and Max is 500. | [optional] |
cursor | String | Cursor for paging. See Meta and Pagination. | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json