Files
awx/awx/network_ui/designs/api.yml
Ben Thomasson f8d83638b0 Adds inventory tracking and templating to network UI groups and hosts.
* Adds group_id to Group table
* Adds inventory_group_id to Group table
* Adds creation of inventory hosts and groups from the network UI
* Changes network UI variables to be under awx key
* Fixes variables initial value
* Adds group membership association/disassociation
* Removes items from the inventory toolbar when loaded by a snaphot
* Adds nunjucks dependency to package.json
* Adds templating to hosts
* Adds templating for racks
* Adds site templating
* Adds group associations for sites
* Squashes migrations for network_ui
* Flake8 migrations
* Changes reserved field type to device_type, group_type, and process_type
* Allows blank values for all CharFields in network_ui models
* Changes reserved field type to device_type, group_type, and process_type
2018-03-23 17:00:23 -04:00

77 lines
2.1 KiB
YAML

models:
- name: Device
api: true
v1_end_point: /network_ui/api/v1/device/
v2_end_point: /api/v2/canvas/device/
topology_id_query: topology_id
v2_lookup_field: host_id
create_transform:
id: id
name: name
device_type: type
x: x
y: y
interface_id_seq: interface_id_seq
process_id_seq: process_id_seq
host_id: host_id
topology_id: topology_id
- name: Link
api: true
v1_end_point: /network_ui/api/v1/link/
v2_end_point: /api/v2/canvas/link/
topology_id_query: from_device__topology_id
create_transform:
id: id
name: name
from_device__id: from_device_id
from_interface__id: from_interface_id
to_device__id: to_device_id
to_interface__id: to_interface_id
- name: Interface
api: true
v1_end_point: /network_ui/api/v1/interface/
v2_end_point: /api/v2/canvas/interface/
topology_id_query: device__topology_id
create_transform:
id: id
name: name
device__id: device_id
- name: Group
api: true
v1_end_point: /network_ui/api/v1/group/
v2_end_point: /api/v2/canvas/group/
topology_id_query: topology_id
- name: GroupDevice
api: true
v1_end_point: /network_ui/api/v1/groupdevice/
v2_end_point: /api/v2/canvas/groupdevice/
topology_id_query: group__topology_id
- name: Topology
api: true
v1_end_point: /network_ui/api/v1/topology/
v2_end_point: /api/v2/canvas/topology/
topology_id_query: topology_id
- name: TopologyInventory
api: true
v1_end_point: /network_ui/api/v1/topologyinventory/
v2_end_point: /api/v2/canvas/topologyinventory/
topology_id_query: topology_id
- name: Toolbox
api: true
v1_end_point: /network_ui/api/v1/toolbox/
v2_end_point: /api/v2/canvas/toolbox/
- name: ToolboxItem
api: true
v1_end_point: /network_ui/api/v1/toolboxitem/
v2_end_point: /api/v2/canvas/toolboxitem/
- name: Stream
api: true
v1_end_point: /network_ui/api/v1/stream/
v2_end_point: /api/v2/canvas/stream/
topology_id_query: from_device__topology_id
- name: Process
api: true
v1_end_point: /network_ui/api/v1/process/
v2_end_point: /api/v2/canvas/process/
topology_id_query: device__topology_id