...
Code Block |
---|
id: 2
name: Virtual
org_id: 1
description:
type: load balancing
purpose: virtualisation
status: active
configuration: active/active
environment: production
scaling: fixed
retrieved_name:
retrieved_ident:
edited_by: Administrator
edited_date: 2020-02-03 13:15:18 |
Example Device entry
Code Block |
---|
id: 2
system_id: 353
clusters_id: 2
role: node
current: y
edited_by: Administrator
edited_date: 2020-02-03 13:15:28 |
API / Web Access
You can access the /locations collection using the normal Open-AudIT JSON based API. Just like any other collection. Please see the API documentation for further details.
API Routes
Request Method | ID | Action | Resulting Function | URL Example | Notes |
---|
GET | n | collection | clusters::read | /clusters | Returns a list of clusters. |
GET | y | read | clusters::read | /clusters/{id} | Returns a clusters details. |
PATCH | y | update | clusters::update | /clusters/{id} | Update an attribute of a clusters entry. |
POST | n | create | clusters::create | /clusters | Insert a new clusters entry. |
DELETE | y | delete | clusters::delete | /clusters/{id} | Delete a clusters entry. |
Web Application Routes
Request Method | ID | Action | Resulting Function | URL Example | Notes |
---|
GET | n | create | create_form | /clusters/create | Displays a standard web form for submission to POST /clusters. |
GET | y | update | update_form | /clusters/{id}/update | Show the networks details with the option to update attributes using PATCH to /clusters/{id} |