Location
Base Location schema: the generic every location tier inherits from, and the hosting generic that lets devices and other objects be placed at a location. Concrete tiers such as Site come from the location extensions.
Details
- Dependencies: No dependencies
Generics
Generic
- Label: Location
- Description: A location in the estate, such as a region, a country or a site.
- Namespace: Location
- Icon: mingcute:location-line
- Human Friendly ID: name__value
Attributes
| name | description | kind | optional | default_value | choices |
|---|---|---|---|---|---|
| name | Text | False | |||
| description | Text | True |
Relationships
| name | peer | optional | cardinality | kind |
|---|---|---|---|---|
| tags | BuiltinTag | True | many | Attribute |
Hosting
- Description: Location directly hosting device and services.
- Namespace: Location
- Human Friendly ID: name__value
Attributes
| name | description | kind | optional | default_value | choices |
|---|---|---|---|---|---|
| name | Text | False |
Relationships
| name | peer | optional | cardinality | kind |
|---|---|---|---|---|
| devices | DcimPhysicalDevice | True | many | Generic |
Code
version: '1.0'
generics:
- name: Generic
namespace: Location
description: A location in the estate, such as a region, a country or a site.
label: Location
icon: mingcute:location-line
include_in_menu: true
hierarchical: true
human_friendly_id:
- name__value
order_by:
- name__value
display_label: name__value
attributes:
- name: name
kind: Text
unique: true
optional: false
order_weight: 1000
- name: description
kind: Text
optional: true
order_weight: 1100
relationships:
- name: tags
peer: BuiltinTag
kind: Attribute
cardinality: many
optional: true
order_weight: 2000
- name: Hosting
namespace: Location
description: Location directly hosting device and services.
include_in_menu: false
human_friendly_id:
- name__value
order_by:
- name__value
display_label: name__value
attributes:
- name: name
kind: Text
unique: true
optional: false
order_weight: 1000
relationships:
- name: devices
peer: DcimPhysicalDevice
label: Devices
kind: Generic
cardinality: many
optional: true
identifier: physical_device__location
order_weight: 1500