Module: A2::Client::Nodes
- Included in:
- A2::Client
- Defined in:
- lib/a2/client/nodes.rb
Instance Method Summary collapse
- #bulk_delete_managed_nodes_by_filter(json) ⇒ Object
- #bulk_delete_managed_nodes_by_id(json) ⇒ Object
- #delete_managed_node(id) ⇒ Object
- #get_managed_node(id) ⇒ Object
- #search_managed_nodes(json) ⇒ Object
Instance Method Details
#bulk_delete_managed_nodes_by_filter(json) ⇒ Object
20 21 22 |
# File 'lib/a2/client/nodes.rb', line 20 def bulk_delete_managed_nodes_by_filter(json) post '/api/v0/nodes/delete', json end |
#bulk_delete_managed_nodes_by_id(json) ⇒ Object
16 17 18 |
# File 'lib/a2/client/nodes.rb', line 16 def bulk_delete_managed_nodes_by_id(json) post '/api/v0/nodes/delete/ids', json end |
#delete_managed_node(id) ⇒ Object
8 9 10 |
# File 'lib/a2/client/nodes.rb', line 8 def delete_managed_node(id) delete "/api/v0/nodes/id/#{id}" end |
#get_managed_node(id) ⇒ Object
4 5 6 |
# File 'lib/a2/client/nodes.rb', line 4 def get_managed_node(id) get "/api/v0/nodes/id/#{id}" end |
#search_managed_nodes(json) ⇒ Object
12 13 14 |
# File 'lib/a2/client/nodes.rb', line 12 def search_managed_nodes(json) post 'api/v0/nodes/search', json end |