diff --git a/.github/ISSUE_TEMPLATE/bug_report.yaml b/.github/ISSUE_TEMPLATE/bug_report.yaml index c71ee6f3ee..672f43b090 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yaml +++ b/.github/ISSUE_TEMPLATE/bug_report.yaml @@ -14,7 +14,7 @@ body: attributes: label: NetBox version description: What version of NetBox are you currently running? - placeholder: v3.4.10 + placeholder: v3.5.0 validations: required: true - type: dropdown diff --git a/.github/ISSUE_TEMPLATE/feature_request.yaml b/.github/ISSUE_TEMPLATE/feature_request.yaml index 16e4981cb5..842454d6b8 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.yaml +++ b/.github/ISSUE_TEMPLATE/feature_request.yaml @@ -14,7 +14,7 @@ body: attributes: label: NetBox version description: What version of NetBox are you currently running? - placeholder: v3.4.10 + placeholder: v3.5.0 validations: required: true - type: dropdown diff --git a/base_requirements.txt b/base_requirements.txt index 3cce9251b1..1e9a45048d 100644 --- a/base_requirements.txt +++ b/base_requirements.txt @@ -1,6 +1,10 @@ # HTML sanitizer # https://github.com/mozilla/bleach/blob/main/CHANGES -bleach<6.0 +bleach + +# Python client for Amazon AWS API +# https://github.com/boto/boto3/blob/develop/CHANGELOG.rst +boto3 # The Python web framework on which NetBox is built # https://docs.djangoproject.com/en/stable/releases/ @@ -62,9 +66,21 @@ django-timezone-field # https://www.django-rest-framework.org/community/release-notes/ djangorestframework -# Swagger/OpenAPI schema generation for REST APIs -# https://drf-yasg.readthedocs.io/en/stable/changelog.html -drf-yasg[validation] +# Sane and flexible OpenAPI 3 schema generation for Django REST framework. +# https://github.com/tfranzel/drf-spectacular/blob/master/CHANGELOG.rst +drf-spectacular + +# Serve self-contained distribution builds of Swagger UI and Redoc with Django. +# https://github.com/tfranzel/drf-spectacular-sidecar +drf-spectacular-sidecar + +# Git client for file sync +# https://github.com/jelmer/dulwich/releases +dulwich + +# RSS feed parser +# https://github.com/kurtmckee/feedparser/blob/develop/CHANGELOG.rst +feedparser # Django wrapper for Graphene (GraphQL support) # https://github.com/graphql-python/graphene-django/releases @@ -121,8 +137,7 @@ social-auth-core # Django app for social-auth-core # https://github.com/python-social-auth/social-app-django/blob/master/CHANGELOG.md -# See https://github.com/python-social-auth/social-app-django/issues/429 -social-auth-app-django==5.0.0 +social-auth-app-django # SVG image rendering (used for rack elevations) # hhttps://github.com/mozman/svgwrite/blob/master/NEWS.rst diff --git a/contrib/openapi2.json b/contrib/openapi2.json new file mode 100644 index 0000000000..6eb6816621 --- /dev/null +++ b/contrib/openapi2.json @@ -0,0 +1,95605 @@ +{ + "swagger": "2.0", + "info": { + "title": "NetBox API", + "description": "API to access NetBox", + "termsOfService": "https://github.com/netbox-community/netbox", + "license": { + "name": "Apache v2 License" + }, + "version": "3.5" + }, + "basePath": "/api", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "securityDefinitions": { + "Bearer": { + "type": "apiKey", + "name": "Authorization", + "in": "header" + } + }, + "security": [ + { + "Bearer": [] + } + ], + "paths": { + "/circuits/circuit-terminations/": { + "get": { + "operationId": "circuits_circuit-terminations_list", + "description": "", + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "term_side", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "port_speed", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "upstream_speed", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "xconnect_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "cable_end", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "updated_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "q", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "cabled", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "occupied", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "circuit_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "provider_network_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "term_side__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "port_speed__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "port_speed__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "port_speed__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "port_speed__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "port_speed__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "upstream_speed__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "upstream_speed__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "upstream_speed__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "upstream_speed__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "upstream_speed__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "xconnect_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "xconnect_id__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "xconnect_id__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "xconnect_id__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "xconnect_id__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "xconnect_id__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "xconnect_id__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "xconnect_id__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "xconnect_id__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "xconnect_id__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "cable_end__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "circuit_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "provider_network_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ordering", + "in": "query", + "description": "Which field to use when ordering the results.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Number of results to return per page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The initial index from which to return the results.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "required": [ + "count", + "results" + ], + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "next": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "previous": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/CircuitTermination" + } + } + } + } + } + }, + "tags": [ + "circuits" + ] + }, + "post": { + "operationId": "circuits_circuit-terminations_create", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableCircuitTermination" + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/CircuitTermination" + } + } + }, + "tags": [ + "circuits" + ] + }, + "put": { + "operationId": "circuits_circuit-terminations_bulk_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableCircuitTermination" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/CircuitTermination" + } + } + }, + "tags": [ + "circuits" + ] + }, + "patch": { + "operationId": "circuits_circuit-terminations_bulk_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableCircuitTermination" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/CircuitTermination" + } + } + }, + "tags": [ + "circuits" + ] + }, + "delete": { + "operationId": "circuits_circuit-terminations_bulk_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "circuits" + ] + }, + "parameters": [] + }, + "/circuits/circuit-terminations/{id}/": { + "get": { + "operationId": "circuits_circuit-terminations_read", + "description": "", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/CircuitTermination" + } + } + }, + "tags": [ + "circuits" + ] + }, + "put": { + "operationId": "circuits_circuit-terminations_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableCircuitTermination" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/CircuitTermination" + } + } + }, + "tags": [ + "circuits" + ] + }, + "patch": { + "operationId": "circuits_circuit-terminations_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableCircuitTermination" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/CircuitTermination" + } + } + }, + "tags": [ + "circuits" + ] + }, + "delete": { + "operationId": "circuits_circuit-terminations_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "circuits" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this circuit termination.", + "required": true, + "type": "integer" + } + ] + }, + "/circuits/circuit-terminations/{id}/paths/": { + "get": { + "operationId": "circuits_circuit-terminations_paths", + "description": "Return all CablePaths which traverse a given pass-through port.", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/CircuitTermination" + } + } + }, + "tags": [ + "circuits" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this circuit termination.", + "required": true, + "type": "integer" + } + ] + }, + "/circuits/circuit-types/": { + "get": { + "operationId": "circuits_circuit-types_list", + "description": "", + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "updated_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "q", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ordering", + "in": "query", + "description": "Which field to use when ordering the results.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Number of results to return per page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The initial index from which to return the results.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "required": [ + "count", + "results" + ], + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "next": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "previous": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/CircuitType" + } + } + } + } + } + }, + "tags": [ + "circuits" + ] + }, + "post": { + "operationId": "circuits_circuit-types_create", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/CircuitType" + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/CircuitType" + } + } + }, + "tags": [ + "circuits" + ] + }, + "put": { + "operationId": "circuits_circuit-types_bulk_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/CircuitType" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/CircuitType" + } + } + }, + "tags": [ + "circuits" + ] + }, + "patch": { + "operationId": "circuits_circuit-types_bulk_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/CircuitType" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/CircuitType" + } + } + }, + "tags": [ + "circuits" + ] + }, + "delete": { + "operationId": "circuits_circuit-types_bulk_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "circuits" + ] + }, + "parameters": [] + }, + "/circuits/circuit-types/{id}/": { + "get": { + "operationId": "circuits_circuit-types_read", + "description": "", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/CircuitType" + } + } + }, + "tags": [ + "circuits" + ] + }, + "put": { + "operationId": "circuits_circuit-types_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/CircuitType" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/CircuitType" + } + } + }, + "tags": [ + "circuits" + ] + }, + "patch": { + "operationId": "circuits_circuit-types_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/CircuitType" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/CircuitType" + } + } + }, + "tags": [ + "circuits" + ] + }, + "delete": { + "operationId": "circuits_circuit-types_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "circuits" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this circuit type.", + "required": true, + "type": "integer" + } + ] + }, + "/circuits/circuits/": { + "get": { + "operationId": "circuits_circuits_list", + "description": "", + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "cid", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "install_date", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "termination_date", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "commit_rate", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "updated_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "q", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant_group_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant_group", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "contact", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "contact_role", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "contact_group", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "provider_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "provider", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "provider_account_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "provider_network_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "type_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "type", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "status", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "cid__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "cid__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "cid__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "cid__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "cid__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "cid__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "cid__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "cid__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "cid__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "cid__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "install_date__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "install_date__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "install_date__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "install_date__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "install_date__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "termination_date__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "termination_date__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "termination_date__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "termination_date__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "termination_date__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "commit_rate__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "commit_rate__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "commit_rate__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "commit_rate__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "commit_rate__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant_group_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant_group__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "contact__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "contact_role__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "contact_group__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "provider_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "provider__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "provider_account_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "provider_network_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "type_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "type__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "status__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ordering", + "in": "query", + "description": "Which field to use when ordering the results.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Number of results to return per page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The initial index from which to return the results.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "required": [ + "count", + "results" + ], + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "next": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "previous": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/Circuit" + } + } + } + } + } + }, + "tags": [ + "circuits" + ] + }, + "post": { + "operationId": "circuits_circuits_create", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableCircuit" + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/Circuit" + } + } + }, + "tags": [ + "circuits" + ] + }, + "put": { + "operationId": "circuits_circuits_bulk_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableCircuit" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/Circuit" + } + } + }, + "tags": [ + "circuits" + ] + }, + "patch": { + "operationId": "circuits_circuits_bulk_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableCircuit" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/Circuit" + } + } + }, + "tags": [ + "circuits" + ] + }, + "delete": { + "operationId": "circuits_circuits_bulk_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "circuits" + ] + }, + "parameters": [] + }, + "/circuits/circuits/{id}/": { + "get": { + "operationId": "circuits_circuits_read", + "description": "", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/Circuit" + } + } + }, + "tags": [ + "circuits" + ] + }, + "put": { + "operationId": "circuits_circuits_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableCircuit" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/Circuit" + } + } + }, + "tags": [ + "circuits" + ] + }, + "patch": { + "operationId": "circuits_circuits_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableCircuit" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/Circuit" + } + } + }, + "tags": [ + "circuits" + ] + }, + "delete": { + "operationId": "circuits_circuits_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "circuits" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this circuit.", + "required": true, + "type": "integer" + } + ] + }, + "/circuits/provider-accounts/": { + "get": { + "operationId": "circuits_provider-accounts_list", + "description": "", + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "account", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "updated_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "q", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "provider_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "provider", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "account__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "account__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "account__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "account__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "account__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "account__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "account__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "account__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "account__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "account__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "provider_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "provider__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ordering", + "in": "query", + "description": "Which field to use when ordering the results.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Number of results to return per page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The initial index from which to return the results.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "required": [ + "count", + "results" + ], + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "next": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "previous": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/ProviderAccount" + } + } + } + } + } + }, + "tags": [ + "circuits" + ] + }, + "post": { + "operationId": "circuits_provider-accounts_create", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableProviderAccount" + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/ProviderAccount" + } + } + }, + "tags": [ + "circuits" + ] + }, + "put": { + "operationId": "circuits_provider-accounts_bulk_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableProviderAccount" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ProviderAccount" + } + } + }, + "tags": [ + "circuits" + ] + }, + "patch": { + "operationId": "circuits_provider-accounts_bulk_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableProviderAccount" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ProviderAccount" + } + } + }, + "tags": [ + "circuits" + ] + }, + "delete": { + "operationId": "circuits_provider-accounts_bulk_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "circuits" + ] + }, + "parameters": [] + }, + "/circuits/provider-accounts/{id}/": { + "get": { + "operationId": "circuits_provider-accounts_read", + "description": "", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ProviderAccount" + } + } + }, + "tags": [ + "circuits" + ] + }, + "put": { + "operationId": "circuits_provider-accounts_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableProviderAccount" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ProviderAccount" + } + } + }, + "tags": [ + "circuits" + ] + }, + "patch": { + "operationId": "circuits_provider-accounts_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableProviderAccount" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ProviderAccount" + } + } + }, + "tags": [ + "circuits" + ] + }, + "delete": { + "operationId": "circuits_provider-accounts_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "circuits" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this provider account.", + "required": true, + "type": "integer" + } + ] + }, + "/circuits/provider-networks/": { + "get": { + "operationId": "circuits_provider-networks_list", + "description": "", + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "service_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "updated_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "q", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "provider_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "provider", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "service_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "service_id__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "service_id__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "service_id__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "service_id__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "service_id__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "service_id__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "service_id__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "service_id__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "service_id__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "provider_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "provider__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ordering", + "in": "query", + "description": "Which field to use when ordering the results.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Number of results to return per page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The initial index from which to return the results.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "required": [ + "count", + "results" + ], + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "next": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "previous": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/ProviderNetwork" + } + } + } + } + } + }, + "tags": [ + "circuits" + ] + }, + "post": { + "operationId": "circuits_provider-networks_create", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableProviderNetwork" + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/ProviderNetwork" + } + } + }, + "tags": [ + "circuits" + ] + }, + "put": { + "operationId": "circuits_provider-networks_bulk_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableProviderNetwork" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ProviderNetwork" + } + } + }, + "tags": [ + "circuits" + ] + }, + "patch": { + "operationId": "circuits_provider-networks_bulk_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableProviderNetwork" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ProviderNetwork" + } + } + }, + "tags": [ + "circuits" + ] + }, + "delete": { + "operationId": "circuits_provider-networks_bulk_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "circuits" + ] + }, + "parameters": [] + }, + "/circuits/provider-networks/{id}/": { + "get": { + "operationId": "circuits_provider-networks_read", + "description": "", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ProviderNetwork" + } + } + }, + "tags": [ + "circuits" + ] + }, + "put": { + "operationId": "circuits_provider-networks_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableProviderNetwork" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ProviderNetwork" + } + } + }, + "tags": [ + "circuits" + ] + }, + "patch": { + "operationId": "circuits_provider-networks_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableProviderNetwork" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ProviderNetwork" + } + } + }, + "tags": [ + "circuits" + ] + }, + "delete": { + "operationId": "circuits_provider-networks_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "circuits" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this provider network.", + "required": true, + "type": "integer" + } + ] + }, + "/circuits/providers/": { + "get": { + "operationId": "circuits_providers_list", + "description": "", + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "updated_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "q", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "contact", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "contact_role", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "contact_group", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "asn_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "contact__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "contact_role__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "contact_group__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "asn_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ordering", + "in": "query", + "description": "Which field to use when ordering the results.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Number of results to return per page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The initial index from which to return the results.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "required": [ + "count", + "results" + ], + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "next": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "previous": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/Provider" + } + } + } + } + } + }, + "tags": [ + "circuits" + ] + }, + "post": { + "operationId": "circuits_providers_create", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableProvider" + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/Provider" + } + } + }, + "tags": [ + "circuits" + ] + }, + "put": { + "operationId": "circuits_providers_bulk_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableProvider" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/Provider" + } + } + }, + "tags": [ + "circuits" + ] + }, + "patch": { + "operationId": "circuits_providers_bulk_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableProvider" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/Provider" + } + } + }, + "tags": [ + "circuits" + ] + }, + "delete": { + "operationId": "circuits_providers_bulk_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "circuits" + ] + }, + "parameters": [] + }, + "/circuits/providers/{id}/": { + "get": { + "operationId": "circuits_providers_read", + "description": "", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/Provider" + } + } + }, + "tags": [ + "circuits" + ] + }, + "put": { + "operationId": "circuits_providers_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableProvider" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/Provider" + } + } + }, + "tags": [ + "circuits" + ] + }, + "patch": { + "operationId": "circuits_providers_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableProvider" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/Provider" + } + } + }, + "tags": [ + "circuits" + ] + }, + "delete": { + "operationId": "circuits_providers_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "circuits" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this provider.", + "required": true, + "type": "integer" + } + ] + }, + "/core/data-files/": { + "get": { + "operationId": "core_data-files_list", + "description": "", + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "path", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "size", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "hash", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "updated_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "q", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "source_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "source", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "path__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "path__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "path__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "path__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "path__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "path__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "path__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "path__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "path__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "path__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "size__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "size__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "size__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "size__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "size__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "hash__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "hash__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "hash__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "hash__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "hash__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "hash__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "hash__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "hash__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "hash__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "hash__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "source_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "source__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ordering", + "in": "query", + "description": "Which field to use when ordering the results.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Number of results to return per page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The initial index from which to return the results.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "required": [ + "count", + "results" + ], + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "next": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "previous": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/DataFile" + } + } + } + } + } + }, + "tags": [ + "core" + ] + }, + "parameters": [] + }, + "/core/data-files/{id}/": { + "get": { + "operationId": "core_data-files_read", + "description": "", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/DataFile" + } + } + }, + "tags": [ + "core" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this data file.", + "required": true, + "type": "integer" + } + ] + }, + "/core/data-sources/": { + "get": { + "operationId": "core_data-sources_list", + "description": "", + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "enabled", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "updated_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "q", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "type", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "status", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "type__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "status__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ordering", + "in": "query", + "description": "Which field to use when ordering the results.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Number of results to return per page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The initial index from which to return the results.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "required": [ + "count", + "results" + ], + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "next": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "previous": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/DataSource" + } + } + } + } + } + }, + "tags": [ + "core" + ] + }, + "post": { + "operationId": "core_data-sources_create", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableDataSource" + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/DataSource" + } + } + }, + "tags": [ + "core" + ] + }, + "put": { + "operationId": "core_data-sources_bulk_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableDataSource" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/DataSource" + } + } + }, + "tags": [ + "core" + ] + }, + "patch": { + "operationId": "core_data-sources_bulk_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableDataSource" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/DataSource" + } + } + }, + "tags": [ + "core" + ] + }, + "delete": { + "operationId": "core_data-sources_bulk_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "core" + ] + }, + "parameters": [] + }, + "/core/data-sources/{id}/": { + "get": { + "operationId": "core_data-sources_read", + "description": "", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/DataSource" + } + } + }, + "tags": [ + "core" + ] + }, + "put": { + "operationId": "core_data-sources_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableDataSource" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/DataSource" + } + } + }, + "tags": [ + "core" + ] + }, + "patch": { + "operationId": "core_data-sources_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableDataSource" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/DataSource" + } + } + }, + "tags": [ + "core" + ] + }, + "delete": { + "operationId": "core_data-sources_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "core" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this data source.", + "required": true, + "type": "integer" + } + ] + }, + "/core/data-sources/{id}/sync/": { + "post": { + "operationId": "core_data-sources_sync", + "description": "Enqueue a job to synchronize the DataSource.", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableDataSource" + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/DataSource" + } + } + }, + "tags": [ + "core" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this data source.", + "required": true, + "type": "integer" + } + ] + }, + "/core/jobs/": { + "get": { + "operationId": "core_jobs_list", + "description": "Retrieve a list of job results", + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "object_type", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "object_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "interval", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "status", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "user", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "q", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__before", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__after", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "scheduled", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "scheduled__before", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "scheduled__after", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "started", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "started__before", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "started__after", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "completed", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "completed__before", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "completed__after", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "object_type__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "object_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "object_id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "object_id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "object_id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "object_id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "interval__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "interval__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "interval__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "interval__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "interval__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "status__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "user__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ordering", + "in": "query", + "description": "Which field to use when ordering the results.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Number of results to return per page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The initial index from which to return the results.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "required": [ + "count", + "results" + ], + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "next": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "previous": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/Job" + } + } + } + } + } + }, + "tags": [ + "core" + ] + }, + "parameters": [] + }, + "/core/jobs/{id}/": { + "get": { + "operationId": "core_jobs_read", + "description": "Retrieve a list of job results", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/Job" + } + } + }, + "tags": [ + "core" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this job.", + "required": true, + "type": "integer" + } + ] + }, + "/dcim/cable-terminations/": { + "get": { + "operationId": "dcim_cable-terminations_list", + "description": "", + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "cable", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "cable_end", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "termination_type", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "termination_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "cable__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "cable_end__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "termination_type__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "termination_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "termination_id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "termination_id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "termination_id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "termination_id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ordering", + "in": "query", + "description": "Which field to use when ordering the results.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Number of results to return per page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The initial index from which to return the results.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "required": [ + "count", + "results" + ], + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "next": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "previous": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/CableTermination" + } + } + } + } + } + }, + "tags": [ + "dcim" + ] + }, + "post": { + "operationId": "dcim_cable-terminations_create", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/CableTermination" + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/CableTermination" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_cable-terminations_bulk_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/CableTermination" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/CableTermination" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_cable-terminations_bulk_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/CableTermination" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/CableTermination" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_cable-terminations_bulk_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [] + }, + "/dcim/cable-terminations/{id}/": { + "get": { + "operationId": "dcim_cable-terminations_read", + "description": "", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/CableTermination" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_cable-terminations_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/CableTermination" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/CableTermination" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_cable-terminations_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/CableTermination" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/CableTermination" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_cable-terminations_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this cable termination.", + "required": true, + "type": "integer" + } + ] + }, + "/dcim/cables/": { + "get": { + "operationId": "dcim_cables_list", + "description": "", + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "length", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "length_unit", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant_group_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant_group", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "updated_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "q", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "termination_a_type", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "termination_a_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "termination_b_type", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "termination_b_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "type", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "status", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "device_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "device", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "rack_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "rack", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "location_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "location", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "length__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "length__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "length__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "length__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "length__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "length_unit__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant_group_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant_group__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "termination_a_type__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "termination_a_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "termination_a_id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "termination_a_id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "termination_a_id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "termination_a_id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "termination_b_type__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "termination_b_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "termination_b_id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "termination_b_id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "termination_b_id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "termination_b_id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "type__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "status__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ordering", + "in": "query", + "description": "Which field to use when ordering the results.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Number of results to return per page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The initial index from which to return the results.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "required": [ + "count", + "results" + ], + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "next": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "previous": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/Cable" + } + } + } + } + } + }, + "tags": [ + "dcim" + ] + }, + "post": { + "operationId": "dcim_cables_create", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableCable" + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/Cable" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_cables_bulk_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableCable" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/Cable" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_cables_bulk_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableCable" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/Cable" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_cables_bulk_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [] + }, + "/dcim/cables/{id}/": { + "get": { + "operationId": "dcim_cables_read", + "description": "", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/Cable" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_cables_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableCable" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/Cable" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_cables_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableCable" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/Cable" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_cables_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this cable.", + "required": true, + "type": "integer" + } + ] + }, + "/dcim/connected-device/": { + "get": { + "operationId": "dcim_connected-device_list", + "description": "This endpoint allows a user to determine what device (if any) is connected to a given peer device and peer\ninterface. This is useful in a situation where a device boots with no configuration, but can detect its neighbors\nvia a protocol such as LLDP. Two query parameters must be included in the request:\n\n* `peer_device`: The name of the peer device\n* `peer_interface`: The name of the peer interface", + "parameters": [ + { + "name": "peer_device", + "in": "query", + "description": "The name of the peer device", + "required": true, + "type": "string" + }, + { + "name": "peer_interface", + "in": "query", + "description": "The name of the peer interface", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/Device" + } + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [] + }, + "/dcim/console-port-templates/": { + "get": { + "operationId": "dcim_console-port-templates_list", + "description": "", + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "type", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "updated_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "q", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "devicetype_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "moduletype_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "type__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "devicetype_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "moduletype_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ordering", + "in": "query", + "description": "Which field to use when ordering the results.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Number of results to return per page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The initial index from which to return the results.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "required": [ + "count", + "results" + ], + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "next": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "previous": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/ConsolePortTemplate" + } + } + } + } + } + }, + "tags": [ + "dcim" + ] + }, + "post": { + "operationId": "dcim_console-port-templates_create", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableConsolePortTemplate" + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/ConsolePortTemplate" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_console-port-templates_bulk_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableConsolePortTemplate" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ConsolePortTemplate" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_console-port-templates_bulk_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableConsolePortTemplate" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ConsolePortTemplate" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_console-port-templates_bulk_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [] + }, + "/dcim/console-port-templates/{id}/": { + "get": { + "operationId": "dcim_console-port-templates_read", + "description": "", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ConsolePortTemplate" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_console-port-templates_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableConsolePortTemplate" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ConsolePortTemplate" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_console-port-templates_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableConsolePortTemplate" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ConsolePortTemplate" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_console-port-templates_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this console port template.", + "required": true, + "type": "integer" + } + ] + }, + "/dcim/console-ports/": { + "get": { + "operationId": "dcim_console-ports_list", + "description": "", + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "cable_end", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "q", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "location_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "location", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "rack_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "rack", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "device_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "device", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "virtual_chassis_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "virtual_chassis", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "module_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "updated_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "cabled", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "occupied", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "connected", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "type", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "cable_end__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "location_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "location__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "rack_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "rack__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "device_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "device__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "virtual_chassis_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "virtual_chassis__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "module_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "type__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ordering", + "in": "query", + "description": "Which field to use when ordering the results.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Number of results to return per page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The initial index from which to return the results.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "required": [ + "count", + "results" + ], + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "next": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "previous": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/ConsolePort" + } + } + } + } + } + }, + "tags": [ + "dcim" + ] + }, + "post": { + "operationId": "dcim_console-ports_create", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableConsolePort" + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/ConsolePort" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_console-ports_bulk_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableConsolePort" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ConsolePort" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_console-ports_bulk_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableConsolePort" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ConsolePort" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_console-ports_bulk_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [] + }, + "/dcim/console-ports/{id}/": { + "get": { + "operationId": "dcim_console-ports_read", + "description": "", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ConsolePort" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_console-ports_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableConsolePort" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ConsolePort" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_console-ports_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableConsolePort" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ConsolePort" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_console-ports_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this console port.", + "required": true, + "type": "integer" + } + ] + }, + "/dcim/console-ports/{id}/trace/": { + "get": { + "operationId": "dcim_console-ports_trace", + "description": "Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination).", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ConsolePort" + } + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this console port.", + "required": true, + "type": "integer" + } + ] + }, + "/dcim/console-server-port-templates/": { + "get": { + "operationId": "dcim_console-server-port-templates_list", + "description": "", + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "type", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "updated_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "q", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "devicetype_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "moduletype_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "type__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "devicetype_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "moduletype_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ordering", + "in": "query", + "description": "Which field to use when ordering the results.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Number of results to return per page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The initial index from which to return the results.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "required": [ + "count", + "results" + ], + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "next": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "previous": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/ConsoleServerPortTemplate" + } + } + } + } + } + }, + "tags": [ + "dcim" + ] + }, + "post": { + "operationId": "dcim_console-server-port-templates_create", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableConsoleServerPortTemplate" + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/ConsoleServerPortTemplate" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_console-server-port-templates_bulk_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableConsoleServerPortTemplate" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ConsoleServerPortTemplate" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_console-server-port-templates_bulk_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableConsoleServerPortTemplate" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ConsoleServerPortTemplate" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_console-server-port-templates_bulk_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [] + }, + "/dcim/console-server-port-templates/{id}/": { + "get": { + "operationId": "dcim_console-server-port-templates_read", + "description": "", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ConsoleServerPortTemplate" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_console-server-port-templates_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableConsoleServerPortTemplate" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ConsoleServerPortTemplate" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_console-server-port-templates_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableConsoleServerPortTemplate" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ConsoleServerPortTemplate" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_console-server-port-templates_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this console server port template.", + "required": true, + "type": "integer" + } + ] + }, + "/dcim/console-server-ports/": { + "get": { + "operationId": "dcim_console-server-ports_list", + "description": "", + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "cable_end", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "q", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "location_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "location", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "rack_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "rack", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "device_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "device", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "virtual_chassis_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "virtual_chassis", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "module_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "updated_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "cabled", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "occupied", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "connected", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "type", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "cable_end__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "location_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "location__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "rack_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "rack__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "device_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "device__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "virtual_chassis_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "virtual_chassis__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "module_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "type__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ordering", + "in": "query", + "description": "Which field to use when ordering the results.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Number of results to return per page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The initial index from which to return the results.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "required": [ + "count", + "results" + ], + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "next": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "previous": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/ConsoleServerPort" + } + } + } + } + } + }, + "tags": [ + "dcim" + ] + }, + "post": { + "operationId": "dcim_console-server-ports_create", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableConsoleServerPort" + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/ConsoleServerPort" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_console-server-ports_bulk_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableConsoleServerPort" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ConsoleServerPort" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_console-server-ports_bulk_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableConsoleServerPort" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ConsoleServerPort" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_console-server-ports_bulk_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [] + }, + "/dcim/console-server-ports/{id}/": { + "get": { + "operationId": "dcim_console-server-ports_read", + "description": "", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ConsoleServerPort" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_console-server-ports_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableConsoleServerPort" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ConsoleServerPort" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_console-server-ports_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableConsoleServerPort" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ConsoleServerPort" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_console-server-ports_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this console server port.", + "required": true, + "type": "integer" + } + ] + }, + "/dcim/console-server-ports/{id}/trace/": { + "get": { + "operationId": "dcim_console-server-ports_trace", + "description": "Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination).", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ConsoleServerPort" + } + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this console server port.", + "required": true, + "type": "integer" + } + ] + }, + "/dcim/device-bay-templates/": { + "get": { + "operationId": "dcim_device-bay-templates_list", + "description": "", + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "updated_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "q", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "devicetype_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "devicetype_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ordering", + "in": "query", + "description": "Which field to use when ordering the results.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Number of results to return per page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The initial index from which to return the results.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "required": [ + "count", + "results" + ], + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "next": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "previous": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/DeviceBayTemplate" + } + } + } + } + } + }, + "tags": [ + "dcim" + ] + }, + "post": { + "operationId": "dcim_device-bay-templates_create", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableDeviceBayTemplate" + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/DeviceBayTemplate" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_device-bay-templates_bulk_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableDeviceBayTemplate" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/DeviceBayTemplate" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_device-bay-templates_bulk_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableDeviceBayTemplate" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/DeviceBayTemplate" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_device-bay-templates_bulk_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [] + }, + "/dcim/device-bay-templates/{id}/": { + "get": { + "operationId": "dcim_device-bay-templates_read", + "description": "", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/DeviceBayTemplate" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_device-bay-templates_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableDeviceBayTemplate" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/DeviceBayTemplate" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_device-bay-templates_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableDeviceBayTemplate" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/DeviceBayTemplate" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_device-bay-templates_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this device bay template.", + "required": true, + "type": "integer" + } + ] + }, + "/dcim/device-bays/": { + "get": { + "operationId": "dcim_device-bays_list", + "description": "", + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "q", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "location_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "location", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "rack_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "rack", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "device_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "device", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "virtual_chassis_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "virtual_chassis", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "updated_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "location_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "location__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "rack_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "rack__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "device_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "device__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "virtual_chassis_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "virtual_chassis__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ordering", + "in": "query", + "description": "Which field to use when ordering the results.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Number of results to return per page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The initial index from which to return the results.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "required": [ + "count", + "results" + ], + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "next": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "previous": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/DeviceBay" + } + } + } + } + } + }, + "tags": [ + "dcim" + ] + }, + "post": { + "operationId": "dcim_device-bays_create", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableDeviceBay" + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/DeviceBay" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_device-bays_bulk_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableDeviceBay" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/DeviceBay" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_device-bays_bulk_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableDeviceBay" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/DeviceBay" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_device-bays_bulk_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [] + }, + "/dcim/device-bays/{id}/": { + "get": { + "operationId": "dcim_device-bays_read", + "description": "", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/DeviceBay" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_device-bays_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableDeviceBay" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/DeviceBay" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_device-bays_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableDeviceBay" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/DeviceBay" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_device-bays_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this device bay.", + "required": true, + "type": "integer" + } + ] + }, + "/dcim/device-roles/": { + "get": { + "operationId": "dcim_device-roles_list", + "description": "", + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "vm_role", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "updated_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "q", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "config_template_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "config_template_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ordering", + "in": "query", + "description": "Which field to use when ordering the results.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Number of results to return per page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The initial index from which to return the results.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "required": [ + "count", + "results" + ], + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "next": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "previous": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/DeviceRole" + } + } + } + } + } + }, + "tags": [ + "dcim" + ] + }, + "post": { + "operationId": "dcim_device-roles_create", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableDeviceRole" + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/DeviceRole" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_device-roles_bulk_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableDeviceRole" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/DeviceRole" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_device-roles_bulk_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableDeviceRole" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/DeviceRole" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_device-roles_bulk_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [] + }, + "/dcim/device-roles/{id}/": { + "get": { + "operationId": "dcim_device-roles_read", + "description": "", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/DeviceRole" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_device-roles_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableDeviceRole" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/DeviceRole" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_device-roles_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableDeviceRole" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/DeviceRole" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_device-roles_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this device role.", + "required": true, + "type": "integer" + } + ] + }, + "/dcim/device-types/": { + "get": { + "operationId": "dcim_device-types_list", + "description": "", + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "model", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "part_number", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "u_height", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "is_full_depth", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "subdevice_role", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "airflow", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "weight", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "weight_unit", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "updated_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "q", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "manufacturer_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "manufacturer", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "default_platform_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "default_platform", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "has_front_image", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "has_rear_image", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "console_ports", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "console_server_ports", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "power_ports", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "power_outlets", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "interfaces", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "pass_through_ports", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "module_bays", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "device_bays", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "inventory_items", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "model__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "model__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "model__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "model__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "model__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "model__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "model__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "model__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "model__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "model__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "part_number__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "part_number__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "part_number__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "part_number__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "part_number__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "part_number__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "part_number__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "part_number__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "part_number__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "part_number__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "u_height__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "u_height__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "u_height__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "u_height__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "u_height__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "subdevice_role__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "airflow__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "weight__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "weight__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "weight__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "weight__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "weight__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "weight_unit__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "manufacturer_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "manufacturer__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "default_platform_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "default_platform__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ordering", + "in": "query", + "description": "Which field to use when ordering the results.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Number of results to return per page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The initial index from which to return the results.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "required": [ + "count", + "results" + ], + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "next": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "previous": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/DeviceType" + } + } + } + } + } + }, + "tags": [ + "dcim" + ] + }, + "post": { + "operationId": "dcim_device-types_create", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableDeviceType" + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/DeviceType" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_device-types_bulk_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableDeviceType" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/DeviceType" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_device-types_bulk_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableDeviceType" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/DeviceType" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_device-types_bulk_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [] + }, + "/dcim/device-types/{id}/": { + "get": { + "operationId": "dcim_device-types_read", + "description": "", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/DeviceType" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_device-types_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableDeviceType" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/DeviceType" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_device-types_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableDeviceType" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/DeviceType" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_device-types_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this device type.", + "required": true, + "type": "integer" + } + ] + }, + "/dcim/devices/": { + "get": { + "operationId": "dcim_devices_list", + "description": "", + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "asset_tag", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "face", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "position", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "airflow", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "vc_position", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "vc_priority", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "updated_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "q", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant_group_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant_group", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "contact", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "contact_role", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "contact_group", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "local_context_data", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "manufacturer_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "manufacturer", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "device_type", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "device_type_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "role_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "role", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "parent_device_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "platform_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "platform", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "location_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "rack_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "cluster_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "model", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "status", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "is_full_depth", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "mac_address", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "serial", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "has_primary_ip", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "virtual_chassis_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "virtual_chassis_member", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "config_template_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "console_ports", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "console_server_ports", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "power_ports", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "power_outlets", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "interfaces", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "pass_through_ports", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "module_bays", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "device_bays", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "primary_ip4_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "primary_ip6_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "asset_tag__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "asset_tag__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "asset_tag__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "asset_tag__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "asset_tag__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "asset_tag__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "asset_tag__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "asset_tag__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "asset_tag__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "asset_tag__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "face__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "position__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "position__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "position__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "position__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "position__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "airflow__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "vc_position__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "vc_position__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "vc_position__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "vc_position__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "vc_position__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "vc_priority__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "vc_priority__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "vc_priority__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "vc_priority__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "vc_priority__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant_group_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant_group__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "contact__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "contact_role__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "contact_group__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "manufacturer_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "manufacturer__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "device_type__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "device_type_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "role_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "role__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "parent_device_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "platform_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "platform__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "location_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "rack_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "cluster_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "model__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "status__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "mac_address__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "mac_address__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "mac_address__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "mac_address__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "mac_address__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "mac_address__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "mac_address__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "mac_address__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "mac_address__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "serial__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "serial__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "serial__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "serial__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "serial__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "serial__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "serial__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "serial__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "serial__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "serial__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "virtual_chassis_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "config_template_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "primary_ip4_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "primary_ip6_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ordering", + "in": "query", + "description": "Which field to use when ordering the results.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Number of results to return per page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The initial index from which to return the results.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "post": { + "operationId": "dcim_devices_create", + "description": "", + "parameters": [], + "responses": { + "201": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_devices_bulk_update", + "description": "", + "parameters": [], + "responses": { + "200": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_devices_bulk_partial_update", + "description": "", + "parameters": [], + "responses": { + "200": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_devices_bulk_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [] + }, + "/dcim/devices/{id}/": { + "get": { + "operationId": "dcim_devices_read", + "description": "", + "parameters": [], + "responses": { + "200": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_devices_update", + "description": "", + "parameters": [], + "responses": { + "200": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_devices_partial_update", + "description": "", + "parameters": [], + "responses": { + "200": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_devices_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this device.", + "required": true, + "type": "integer" + } + ] + }, + "/dcim/devices/{id}/render-config/": { + "post": { + "operationId": "dcim_devices_render_config", + "description": "Resolve and render the preferred ConfigTemplate for this Device.", + "parameters": [], + "responses": { + "201": { + "description": "" + } + }, + "produces": [ + "application/json", + "text/plain" + ], + "tags": [ + "dcim" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this device.", + "required": true, + "type": "integer" + } + ] + }, + "/dcim/front-port-templates/": { + "get": { + "operationId": "dcim_front-port-templates_list", + "description": "", + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "type", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "updated_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "q", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "devicetype_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "moduletype_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "type__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "devicetype_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "moduletype_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ordering", + "in": "query", + "description": "Which field to use when ordering the results.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Number of results to return per page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The initial index from which to return the results.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "required": [ + "count", + "results" + ], + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "next": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "previous": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/FrontPortTemplate" + } + } + } + } + } + }, + "tags": [ + "dcim" + ] + }, + "post": { + "operationId": "dcim_front-port-templates_create", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableFrontPortTemplate" + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/FrontPortTemplate" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_front-port-templates_bulk_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableFrontPortTemplate" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/FrontPortTemplate" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_front-port-templates_bulk_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableFrontPortTemplate" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/FrontPortTemplate" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_front-port-templates_bulk_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [] + }, + "/dcim/front-port-templates/{id}/": { + "get": { + "operationId": "dcim_front-port-templates_read", + "description": "", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/FrontPortTemplate" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_front-port-templates_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableFrontPortTemplate" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/FrontPortTemplate" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_front-port-templates_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableFrontPortTemplate" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/FrontPortTemplate" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_front-port-templates_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this front port template.", + "required": true, + "type": "integer" + } + ] + }, + "/dcim/front-ports/": { + "get": { + "operationId": "dcim_front-ports_list", + "description": "", + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "type", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "cable_end", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "q", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "location_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "location", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "rack_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "rack", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "device_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "device", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "virtual_chassis_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "virtual_chassis", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "module_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "updated_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "cabled", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "occupied", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "type__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "cable_end__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "location_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "location__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "rack_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "rack__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "device_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "device__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "virtual_chassis_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "virtual_chassis__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "module_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ordering", + "in": "query", + "description": "Which field to use when ordering the results.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Number of results to return per page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The initial index from which to return the results.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "required": [ + "count", + "results" + ], + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "next": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "previous": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/FrontPort" + } + } + } + } + } + }, + "tags": [ + "dcim" + ] + }, + "post": { + "operationId": "dcim_front-ports_create", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableFrontPort" + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/FrontPort" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_front-ports_bulk_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableFrontPort" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/FrontPort" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_front-ports_bulk_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableFrontPort" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/FrontPort" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_front-ports_bulk_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [] + }, + "/dcim/front-ports/{id}/": { + "get": { + "operationId": "dcim_front-ports_read", + "description": "", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/FrontPort" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_front-ports_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableFrontPort" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/FrontPort" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_front-ports_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableFrontPort" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/FrontPort" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_front-ports_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this front port.", + "required": true, + "type": "integer" + } + ] + }, + "/dcim/front-ports/{id}/paths/": { + "get": { + "operationId": "dcim_front-ports_paths", + "description": "Return all CablePaths which traverse a given pass-through port.", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/FrontPort" + } + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this front port.", + "required": true, + "type": "integer" + } + ] + }, + "/dcim/interface-templates/": { + "get": { + "operationId": "dcim_interface-templates_list", + "description": "", + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "type", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "enabled", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "mgmt_only", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "updated_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "q", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "devicetype_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "moduletype_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "bridge_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "poe_mode", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "poe_type", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "type__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "devicetype_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "moduletype_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "bridge_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "poe_mode__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "poe_type__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ordering", + "in": "query", + "description": "Which field to use when ordering the results.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Number of results to return per page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The initial index from which to return the results.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "required": [ + "count", + "results" + ], + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "next": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "previous": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/InterfaceTemplate" + } + } + } + } + } + }, + "tags": [ + "dcim" + ] + }, + "post": { + "operationId": "dcim_interface-templates_create", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableInterfaceTemplate" + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/InterfaceTemplate" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_interface-templates_bulk_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableInterfaceTemplate" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/InterfaceTemplate" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_interface-templates_bulk_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableInterfaceTemplate" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/InterfaceTemplate" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_interface-templates_bulk_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [] + }, + "/dcim/interface-templates/{id}/": { + "get": { + "operationId": "dcim_interface-templates_read", + "description": "", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/InterfaceTemplate" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_interface-templates_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableInterfaceTemplate" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/InterfaceTemplate" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_interface-templates_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableInterfaceTemplate" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/InterfaceTemplate" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_interface-templates_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this interface template.", + "required": true, + "type": "integer" + } + ] + }, + "/dcim/interfaces/": { + "get": { + "operationId": "dcim_interfaces_list", + "description": "", + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "type", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "enabled", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "mtu", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "mgmt_only", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "poe_mode", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "poe_type", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "mode", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "rf_role", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "rf_channel", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "rf_channel_frequency", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "rf_channel_width", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tx_power", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "cable_end", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "q", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "location_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "location", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "rack_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "rack", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "device_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "device", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "virtual_chassis_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "virtual_chassis", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "module_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "updated_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "cabled", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "occupied", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "connected", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "kind", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "parent_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "bridge_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "lag_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "speed", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "duplex", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "mac_address", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "wwn", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "vlan_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "vlan", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "vrf_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "vrf", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "vdc_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "vdc_identifier", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "vdc", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "l2vpn_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "l2vpn", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "type__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "mtu__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "mtu__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "mtu__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "mtu__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "mtu__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "poe_mode__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "poe_type__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "mode__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "rf_role__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "rf_channel__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "rf_channel_frequency__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "rf_channel_frequency__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "rf_channel_frequency__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "rf_channel_frequency__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "rf_channel_frequency__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "rf_channel_width__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "rf_channel_width__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "rf_channel_width__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "rf_channel_width__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "rf_channel_width__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tx_power__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tx_power__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tx_power__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tx_power__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tx_power__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "cable_end__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "location_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "location__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "rack_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "rack__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "virtual_chassis_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "virtual_chassis__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "module_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "parent_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "bridge_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "lag_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "speed__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "speed__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "speed__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "speed__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "speed__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "duplex__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "mac_address__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "mac_address__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "mac_address__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "mac_address__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "mac_address__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "mac_address__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "mac_address__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "mac_address__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "mac_address__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "wwn__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "wwn__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "wwn__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "wwn__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "wwn__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "wwn__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "wwn__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "wwn__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "wwn__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "vrf_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "vrf__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "vdc_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "vdc_identifier__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "vdc__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "l2vpn_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "l2vpn__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ordering", + "in": "query", + "description": "Which field to use when ordering the results.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Number of results to return per page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The initial index from which to return the results.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "required": [ + "count", + "results" + ], + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "next": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "previous": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/Interface" + } + } + } + } + } + }, + "tags": [ + "dcim" + ] + }, + "post": { + "operationId": "dcim_interfaces_create", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableInterface" + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/Interface" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_interfaces_bulk_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableInterface" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/Interface" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_interfaces_bulk_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableInterface" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/Interface" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_interfaces_bulk_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [] + }, + "/dcim/interfaces/{id}/": { + "get": { + "operationId": "dcim_interfaces_read", + "description": "", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/Interface" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_interfaces_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableInterface" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/Interface" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_interfaces_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableInterface" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/Interface" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_interfaces_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this interface.", + "required": true, + "type": "integer" + } + ] + }, + "/dcim/interfaces/{id}/trace/": { + "get": { + "operationId": "dcim_interfaces_trace", + "description": "Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination).", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/Interface" + } + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this interface.", + "required": true, + "type": "integer" + } + ] + }, + "/dcim/inventory-item-roles/": { + "get": { + "operationId": "dcim_inventory-item-roles_list", + "description": "", + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "updated_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "q", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ordering", + "in": "query", + "description": "Which field to use when ordering the results.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Number of results to return per page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The initial index from which to return the results.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "required": [ + "count", + "results" + ], + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "next": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "previous": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/InventoryItemRole" + } + } + } + } + } + }, + "tags": [ + "dcim" + ] + }, + "post": { + "operationId": "dcim_inventory-item-roles_create", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/InventoryItemRole" + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/InventoryItemRole" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_inventory-item-roles_bulk_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/InventoryItemRole" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/InventoryItemRole" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_inventory-item-roles_bulk_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/InventoryItemRole" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/InventoryItemRole" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_inventory-item-roles_bulk_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [] + }, + "/dcim/inventory-item-roles/{id}/": { + "get": { + "operationId": "dcim_inventory-item-roles_read", + "description": "", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/InventoryItemRole" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_inventory-item-roles_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/InventoryItemRole" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/InventoryItemRole" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_inventory-item-roles_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/InventoryItemRole" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/InventoryItemRole" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_inventory-item-roles_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this inventory item role.", + "required": true, + "type": "integer" + } + ] + }, + "/dcim/inventory-item-templates/": { + "get": { + "operationId": "dcim_inventory-item-templates_list", + "description": "", + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "part_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "updated_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "q", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "devicetype_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "parent_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "manufacturer_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "manufacturer", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "role_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "role", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "component_type", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "component_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "part_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "part_id__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "part_id__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "part_id__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "part_id__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "part_id__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "part_id__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "part_id__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "part_id__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "part_id__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "devicetype_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "parent_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "manufacturer_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "manufacturer__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "role_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "role__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "component_type__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "component_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "component_id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "component_id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "component_id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "component_id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ordering", + "in": "query", + "description": "Which field to use when ordering the results.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Number of results to return per page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The initial index from which to return the results.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "required": [ + "count", + "results" + ], + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "next": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "previous": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/InventoryItemTemplate" + } + } + } + } + } + }, + "tags": [ + "dcim" + ] + }, + "post": { + "operationId": "dcim_inventory-item-templates_create", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableInventoryItemTemplate" + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/InventoryItemTemplate" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_inventory-item-templates_bulk_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableInventoryItemTemplate" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/InventoryItemTemplate" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_inventory-item-templates_bulk_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableInventoryItemTemplate" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/InventoryItemTemplate" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_inventory-item-templates_bulk_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [] + }, + "/dcim/inventory-item-templates/{id}/": { + "get": { + "operationId": "dcim_inventory-item-templates_read", + "description": "", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/InventoryItemTemplate" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_inventory-item-templates_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableInventoryItemTemplate" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/InventoryItemTemplate" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_inventory-item-templates_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableInventoryItemTemplate" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/InventoryItemTemplate" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_inventory-item-templates_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this inventory item template.", + "required": true, + "type": "integer" + } + ] + }, + "/dcim/inventory-items/": { + "get": { + "operationId": "dcim_inventory-items_list", + "description": "", + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "part_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "asset_tag", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "discovered", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "q", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "location_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "location", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "rack_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "rack", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "device_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "device", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "virtual_chassis_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "virtual_chassis", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "updated_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "parent_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "manufacturer_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "manufacturer", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "role_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "role", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "component_type", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "component_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "serial", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "part_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "part_id__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "part_id__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "part_id__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "part_id__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "part_id__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "part_id__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "part_id__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "part_id__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "part_id__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "asset_tag__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "asset_tag__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "asset_tag__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "asset_tag__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "asset_tag__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "asset_tag__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "asset_tag__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "asset_tag__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "asset_tag__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "asset_tag__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "location_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "location__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "rack_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "rack__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "device_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "device__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "virtual_chassis_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "virtual_chassis__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "parent_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "manufacturer_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "manufacturer__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "role_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "role__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "component_type__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "component_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "component_id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "component_id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "component_id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "component_id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "serial__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "serial__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "serial__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "serial__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "serial__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "serial__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "serial__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "serial__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "serial__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "serial__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ordering", + "in": "query", + "description": "Which field to use when ordering the results.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Number of results to return per page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The initial index from which to return the results.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "required": [ + "count", + "results" + ], + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "next": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "previous": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/InventoryItem" + } + } + } + } + } + }, + "tags": [ + "dcim" + ] + }, + "post": { + "operationId": "dcim_inventory-items_create", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableInventoryItem" + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/InventoryItem" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_inventory-items_bulk_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableInventoryItem" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/InventoryItem" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_inventory-items_bulk_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableInventoryItem" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/InventoryItem" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_inventory-items_bulk_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [] + }, + "/dcim/inventory-items/{id}/": { + "get": { + "operationId": "dcim_inventory-items_read", + "description": "", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/InventoryItem" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_inventory-items_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableInventoryItem" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/InventoryItem" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_inventory-items_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableInventoryItem" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/InventoryItem" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_inventory-items_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this inventory item.", + "required": true, + "type": "integer" + } + ] + }, + "/dcim/locations/": { + "get": { + "operationId": "dcim_locations_list", + "description": "", + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "status", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant_group_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant_group", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "contact", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "contact_role", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "contact_group", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "updated_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "q", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "parent_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "parent", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "status__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant_group_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant_group__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "contact__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "contact_role__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "contact_group__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "parent_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "parent__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ordering", + "in": "query", + "description": "Which field to use when ordering the results.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Number of results to return per page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The initial index from which to return the results.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "required": [ + "count", + "results" + ], + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "next": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "previous": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/Location" + } + } + } + } + } + }, + "tags": [ + "dcim" + ] + }, + "post": { + "operationId": "dcim_locations_create", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableLocation" + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/Location" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_locations_bulk_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableLocation" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/Location" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_locations_bulk_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableLocation" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/Location" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_locations_bulk_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [] + }, + "/dcim/locations/{id}/": { + "get": { + "operationId": "dcim_locations_read", + "description": "", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/Location" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_locations_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableLocation" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/Location" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_locations_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableLocation" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/Location" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_locations_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this location.", + "required": true, + "type": "integer" + } + ] + }, + "/dcim/manufacturers/": { + "get": { + "operationId": "dcim_manufacturers_list", + "description": "", + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "updated_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "q", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "contact", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "contact_role", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "contact_group", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "contact__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "contact_role__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "contact_group__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ordering", + "in": "query", + "description": "Which field to use when ordering the results.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Number of results to return per page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The initial index from which to return the results.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "required": [ + "count", + "results" + ], + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "next": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "previous": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/Manufacturer" + } + } + } + } + } + }, + "tags": [ + "dcim" + ] + }, + "post": { + "operationId": "dcim_manufacturers_create", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Manufacturer" + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/Manufacturer" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_manufacturers_bulk_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Manufacturer" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/Manufacturer" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_manufacturers_bulk_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Manufacturer" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/Manufacturer" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_manufacturers_bulk_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [] + }, + "/dcim/manufacturers/{id}/": { + "get": { + "operationId": "dcim_manufacturers_read", + "description": "", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/Manufacturer" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_manufacturers_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Manufacturer" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/Manufacturer" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_manufacturers_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Manufacturer" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/Manufacturer" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_manufacturers_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this manufacturer.", + "required": true, + "type": "integer" + } + ] + }, + "/dcim/module-bay-templates/": { + "get": { + "operationId": "dcim_module-bay-templates_list", + "description": "", + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "updated_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "q", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "devicetype_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "devicetype_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ordering", + "in": "query", + "description": "Which field to use when ordering the results.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Number of results to return per page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The initial index from which to return the results.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "required": [ + "count", + "results" + ], + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "next": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "previous": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/ModuleBayTemplate" + } + } + } + } + } + }, + "tags": [ + "dcim" + ] + }, + "post": { + "operationId": "dcim_module-bay-templates_create", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableModuleBayTemplate" + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/ModuleBayTemplate" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_module-bay-templates_bulk_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableModuleBayTemplate" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ModuleBayTemplate" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_module-bay-templates_bulk_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableModuleBayTemplate" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ModuleBayTemplate" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_module-bay-templates_bulk_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [] + }, + "/dcim/module-bay-templates/{id}/": { + "get": { + "operationId": "dcim_module-bay-templates_read", + "description": "", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ModuleBayTemplate" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_module-bay-templates_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableModuleBayTemplate" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ModuleBayTemplate" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_module-bay-templates_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableModuleBayTemplate" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ModuleBayTemplate" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_module-bay-templates_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this module bay template.", + "required": true, + "type": "integer" + } + ] + }, + "/dcim/module-bays/": { + "get": { + "operationId": "dcim_module-bays_list", + "description": "", + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "q", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "location_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "location", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "rack_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "rack", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "device_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "device", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "virtual_chassis_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "virtual_chassis", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "updated_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "location_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "location__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "rack_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "rack__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "device_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "device__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "virtual_chassis_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "virtual_chassis__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ordering", + "in": "query", + "description": "Which field to use when ordering the results.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Number of results to return per page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The initial index from which to return the results.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "required": [ + "count", + "results" + ], + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "next": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "previous": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/ModuleBay" + } + } + } + } + } + }, + "tags": [ + "dcim" + ] + }, + "post": { + "operationId": "dcim_module-bays_create", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableModuleBay" + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/ModuleBay" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_module-bays_bulk_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableModuleBay" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ModuleBay" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_module-bays_bulk_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableModuleBay" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ModuleBay" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_module-bays_bulk_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [] + }, + "/dcim/module-bays/{id}/": { + "get": { + "operationId": "dcim_module-bays_read", + "description": "", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ModuleBay" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_module-bays_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableModuleBay" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ModuleBay" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_module-bays_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableModuleBay" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ModuleBay" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_module-bays_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this module bay.", + "required": true, + "type": "integer" + } + ] + }, + "/dcim/module-types/": { + "get": { + "operationId": "dcim_module-types_list", + "description": "", + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "model", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "part_number", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "weight", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "weight_unit", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "updated_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "q", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "manufacturer_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "manufacturer", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "console_ports", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "console_server_ports", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "power_ports", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "power_outlets", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "interfaces", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "pass_through_ports", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "model__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "model__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "model__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "model__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "model__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "model__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "model__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "model__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "model__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "model__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "part_number__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "part_number__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "part_number__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "part_number__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "part_number__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "part_number__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "part_number__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "part_number__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "part_number__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "part_number__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "weight__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "weight__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "weight__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "weight__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "weight__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "weight_unit__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "manufacturer_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "manufacturer__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ordering", + "in": "query", + "description": "Which field to use when ordering the results.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Number of results to return per page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The initial index from which to return the results.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "required": [ + "count", + "results" + ], + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "next": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "previous": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/ModuleType" + } + } + } + } + } + }, + "tags": [ + "dcim" + ] + }, + "post": { + "operationId": "dcim_module-types_create", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableModuleType" + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/ModuleType" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_module-types_bulk_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableModuleType" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ModuleType" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_module-types_bulk_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableModuleType" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ModuleType" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_module-types_bulk_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [] + }, + "/dcim/module-types/{id}/": { + "get": { + "operationId": "dcim_module-types_read", + "description": "", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ModuleType" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_module-types_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableModuleType" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ModuleType" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_module-types_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableModuleType" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ModuleType" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_module-types_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this module type.", + "required": true, + "type": "integer" + } + ] + }, + "/dcim/modules/": { + "get": { + "operationId": "dcim_modules_list", + "description": "", + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "status", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "asset_tag", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "updated_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "q", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "manufacturer_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "manufacturer", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "module_type_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "module_type", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "module_bay_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "device_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "serial", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "status__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "asset_tag__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "asset_tag__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "asset_tag__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "asset_tag__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "asset_tag__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "asset_tag__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "asset_tag__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "asset_tag__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "asset_tag__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "asset_tag__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "manufacturer_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "manufacturer__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "module_type_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "module_type__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "module_bay_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "device_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "serial__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "serial__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "serial__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "serial__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "serial__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "serial__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "serial__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "serial__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "serial__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "serial__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ordering", + "in": "query", + "description": "Which field to use when ordering the results.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Number of results to return per page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The initial index from which to return the results.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "required": [ + "count", + "results" + ], + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "next": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "previous": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/Module" + } + } + } + } + } + }, + "tags": [ + "dcim" + ] + }, + "post": { + "operationId": "dcim_modules_create", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableModule" + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/Module" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_modules_bulk_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableModule" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/Module" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_modules_bulk_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableModule" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/Module" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_modules_bulk_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [] + }, + "/dcim/modules/{id}/": { + "get": { + "operationId": "dcim_modules_read", + "description": "", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/Module" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_modules_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableModule" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/Module" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_modules_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableModule" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/Module" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_modules_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this module.", + "required": true, + "type": "integer" + } + ] + }, + "/dcim/platforms/": { + "get": { + "operationId": "dcim_platforms_list", + "description": "", + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "updated_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "q", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "manufacturer_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "manufacturer", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "config_template_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "manufacturer_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "manufacturer__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "config_template_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ordering", + "in": "query", + "description": "Which field to use when ordering the results.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Number of results to return per page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The initial index from which to return the results.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "required": [ + "count", + "results" + ], + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "next": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "previous": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/Platform" + } + } + } + } + } + }, + "tags": [ + "dcim" + ] + }, + "post": { + "operationId": "dcim_platforms_create", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritablePlatform" + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/Platform" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_platforms_bulk_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritablePlatform" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/Platform" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_platforms_bulk_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritablePlatform" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/Platform" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_platforms_bulk_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [] + }, + "/dcim/platforms/{id}/": { + "get": { + "operationId": "dcim_platforms_read", + "description": "", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/Platform" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_platforms_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritablePlatform" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/Platform" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_platforms_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritablePlatform" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/Platform" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_platforms_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this platform.", + "required": true, + "type": "integer" + } + ] + }, + "/dcim/power-feeds/": { + "get": { + "operationId": "dcim_power-feeds_list", + "description": "", + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "status", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "type", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "supply", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "phase", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "voltage", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "amperage", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "max_utilization", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "cable_end", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "updated_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "q", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "cabled", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "occupied", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "connected", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "power_panel_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "rack_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "status__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "type__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "supply__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "phase__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "voltage__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "voltage__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "voltage__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "voltage__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "voltage__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "amperage__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "amperage__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "amperage__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "amperage__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "amperage__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "max_utilization__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "max_utilization__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "max_utilization__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "max_utilization__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "max_utilization__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "cable_end__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "power_panel_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "rack_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ordering", + "in": "query", + "description": "Which field to use when ordering the results.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Number of results to return per page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The initial index from which to return the results.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "required": [ + "count", + "results" + ], + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "next": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "previous": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/PowerFeed" + } + } + } + } + } + }, + "tags": [ + "dcim" + ] + }, + "post": { + "operationId": "dcim_power-feeds_create", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritablePowerFeed" + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/PowerFeed" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_power-feeds_bulk_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritablePowerFeed" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/PowerFeed" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_power-feeds_bulk_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritablePowerFeed" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/PowerFeed" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_power-feeds_bulk_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [] + }, + "/dcim/power-feeds/{id}/": { + "get": { + "operationId": "dcim_power-feeds_read", + "description": "", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/PowerFeed" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_power-feeds_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritablePowerFeed" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/PowerFeed" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_power-feeds_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritablePowerFeed" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/PowerFeed" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_power-feeds_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this power feed.", + "required": true, + "type": "integer" + } + ] + }, + "/dcim/power-feeds/{id}/trace/": { + "get": { + "operationId": "dcim_power-feeds_trace", + "description": "Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination).", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/PowerFeed" + } + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this power feed.", + "required": true, + "type": "integer" + } + ] + }, + "/dcim/power-outlet-templates/": { + "get": { + "operationId": "dcim_power-outlet-templates_list", + "description": "", + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "type", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "feed_leg", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "updated_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "q", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "devicetype_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "moduletype_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "type__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "feed_leg__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "devicetype_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "moduletype_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ordering", + "in": "query", + "description": "Which field to use when ordering the results.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Number of results to return per page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The initial index from which to return the results.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "required": [ + "count", + "results" + ], + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "next": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "previous": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/PowerOutletTemplate" + } + } + } + } + } + }, + "tags": [ + "dcim" + ] + }, + "post": { + "operationId": "dcim_power-outlet-templates_create", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritablePowerOutletTemplate" + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/PowerOutletTemplate" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_power-outlet-templates_bulk_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritablePowerOutletTemplate" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/PowerOutletTemplate" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_power-outlet-templates_bulk_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritablePowerOutletTemplate" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/PowerOutletTemplate" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_power-outlet-templates_bulk_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [] + }, + "/dcim/power-outlet-templates/{id}/": { + "get": { + "operationId": "dcim_power-outlet-templates_read", + "description": "", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/PowerOutletTemplate" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_power-outlet-templates_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritablePowerOutletTemplate" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/PowerOutletTemplate" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_power-outlet-templates_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritablePowerOutletTemplate" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/PowerOutletTemplate" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_power-outlet-templates_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this power outlet template.", + "required": true, + "type": "integer" + } + ] + }, + "/dcim/power-outlets/": { + "get": { + "operationId": "dcim_power-outlets_list", + "description": "", + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "feed_leg", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "cable_end", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "q", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "location_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "location", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "rack_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "rack", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "device_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "device", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "virtual_chassis_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "virtual_chassis", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "module_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "updated_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "cabled", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "occupied", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "connected", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "type", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "feed_leg__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "cable_end__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "location_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "location__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "rack_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "rack__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "device_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "device__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "virtual_chassis_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "virtual_chassis__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "module_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "type__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ordering", + "in": "query", + "description": "Which field to use when ordering the results.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Number of results to return per page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The initial index from which to return the results.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "required": [ + "count", + "results" + ], + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "next": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "previous": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/PowerOutlet" + } + } + } + } + } + }, + "tags": [ + "dcim" + ] + }, + "post": { + "operationId": "dcim_power-outlets_create", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritablePowerOutlet" + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/PowerOutlet" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_power-outlets_bulk_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritablePowerOutlet" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/PowerOutlet" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_power-outlets_bulk_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritablePowerOutlet" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/PowerOutlet" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_power-outlets_bulk_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [] + }, + "/dcim/power-outlets/{id}/": { + "get": { + "operationId": "dcim_power-outlets_read", + "description": "", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/PowerOutlet" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_power-outlets_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritablePowerOutlet" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/PowerOutlet" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_power-outlets_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritablePowerOutlet" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/PowerOutlet" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_power-outlets_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this power outlet.", + "required": true, + "type": "integer" + } + ] + }, + "/dcim/power-outlets/{id}/trace/": { + "get": { + "operationId": "dcim_power-outlets_trace", + "description": "Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination).", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/PowerOutlet" + } + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this power outlet.", + "required": true, + "type": "integer" + } + ] + }, + "/dcim/power-panels/": { + "get": { + "operationId": "dcim_power-panels_list", + "description": "", + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "updated_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "q", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "contact", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "contact_role", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "contact_group", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "location_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "contact__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "contact_role__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "contact_group__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "location_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ordering", + "in": "query", + "description": "Which field to use when ordering the results.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Number of results to return per page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The initial index from which to return the results.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "required": [ + "count", + "results" + ], + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "next": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "previous": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/PowerPanel" + } + } + } + } + } + }, + "tags": [ + "dcim" + ] + }, + "post": { + "operationId": "dcim_power-panels_create", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritablePowerPanel" + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/PowerPanel" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_power-panels_bulk_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritablePowerPanel" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/PowerPanel" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_power-panels_bulk_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritablePowerPanel" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/PowerPanel" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_power-panels_bulk_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [] + }, + "/dcim/power-panels/{id}/": { + "get": { + "operationId": "dcim_power-panels_read", + "description": "", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/PowerPanel" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_power-panels_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritablePowerPanel" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/PowerPanel" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_power-panels_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritablePowerPanel" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/PowerPanel" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_power-panels_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this power panel.", + "required": true, + "type": "integer" + } + ] + }, + "/dcim/power-port-templates/": { + "get": { + "operationId": "dcim_power-port-templates_list", + "description": "", + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "type", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "maximum_draw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "allocated_draw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "updated_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "q", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "devicetype_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "moduletype_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "type__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "maximum_draw__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "maximum_draw__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "maximum_draw__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "maximum_draw__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "maximum_draw__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "allocated_draw__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "allocated_draw__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "allocated_draw__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "allocated_draw__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "allocated_draw__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "devicetype_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "moduletype_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ordering", + "in": "query", + "description": "Which field to use when ordering the results.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Number of results to return per page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The initial index from which to return the results.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "required": [ + "count", + "results" + ], + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "next": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "previous": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/PowerPortTemplate" + } + } + } + } + } + }, + "tags": [ + "dcim" + ] + }, + "post": { + "operationId": "dcim_power-port-templates_create", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritablePowerPortTemplate" + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/PowerPortTemplate" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_power-port-templates_bulk_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritablePowerPortTemplate" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/PowerPortTemplate" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_power-port-templates_bulk_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritablePowerPortTemplate" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/PowerPortTemplate" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_power-port-templates_bulk_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [] + }, + "/dcim/power-port-templates/{id}/": { + "get": { + "operationId": "dcim_power-port-templates_read", + "description": "", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/PowerPortTemplate" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_power-port-templates_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritablePowerPortTemplate" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/PowerPortTemplate" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_power-port-templates_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritablePowerPortTemplate" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/PowerPortTemplate" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_power-port-templates_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this power port template.", + "required": true, + "type": "integer" + } + ] + }, + "/dcim/power-ports/": { + "get": { + "operationId": "dcim_power-ports_list", + "description": "", + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "maximum_draw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "allocated_draw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "cable_end", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "q", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "location_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "location", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "rack_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "rack", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "device_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "device", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "virtual_chassis_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "virtual_chassis", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "module_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "updated_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "cabled", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "occupied", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "connected", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "type", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "maximum_draw__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "maximum_draw__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "maximum_draw__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "maximum_draw__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "maximum_draw__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "allocated_draw__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "allocated_draw__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "allocated_draw__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "allocated_draw__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "allocated_draw__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "cable_end__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "location_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "location__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "rack_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "rack__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "device_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "device__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "virtual_chassis_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "virtual_chassis__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "module_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "type__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ordering", + "in": "query", + "description": "Which field to use when ordering the results.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Number of results to return per page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The initial index from which to return the results.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "required": [ + "count", + "results" + ], + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "next": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "previous": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/PowerPort" + } + } + } + } + } + }, + "tags": [ + "dcim" + ] + }, + "post": { + "operationId": "dcim_power-ports_create", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritablePowerPort" + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/PowerPort" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_power-ports_bulk_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritablePowerPort" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/PowerPort" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_power-ports_bulk_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritablePowerPort" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/PowerPort" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_power-ports_bulk_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [] + }, + "/dcim/power-ports/{id}/": { + "get": { + "operationId": "dcim_power-ports_read", + "description": "", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/PowerPort" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_power-ports_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritablePowerPort" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/PowerPort" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_power-ports_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritablePowerPort" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/PowerPort" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_power-ports_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this power port.", + "required": true, + "type": "integer" + } + ] + }, + "/dcim/power-ports/{id}/trace/": { + "get": { + "operationId": "dcim_power-ports_trace", + "description": "Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination).", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/PowerPort" + } + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this power port.", + "required": true, + "type": "integer" + } + ] + }, + "/dcim/rack-reservations/": { + "get": { + "operationId": "dcim_rack-reservations_list", + "description": "", + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "updated_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "q", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant_group_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant_group", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "rack_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "location_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "location", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "user_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "user", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant_group_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant_group__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "rack_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "location_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "location__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "user_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "user__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ordering", + "in": "query", + "description": "Which field to use when ordering the results.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Number of results to return per page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The initial index from which to return the results.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "required": [ + "count", + "results" + ], + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "next": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "previous": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/RackReservation" + } + } + } + } + } + }, + "tags": [ + "dcim" + ] + }, + "post": { + "operationId": "dcim_rack-reservations_create", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableRackReservation" + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/RackReservation" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_rack-reservations_bulk_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableRackReservation" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/RackReservation" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_rack-reservations_bulk_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableRackReservation" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/RackReservation" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_rack-reservations_bulk_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [] + }, + "/dcim/rack-reservations/{id}/": { + "get": { + "operationId": "dcim_rack-reservations_read", + "description": "", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/RackReservation" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_rack-reservations_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableRackReservation" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/RackReservation" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_rack-reservations_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableRackReservation" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/RackReservation" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_rack-reservations_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this rack reservation.", + "required": true, + "type": "integer" + } + ] + }, + "/dcim/rack-roles/": { + "get": { + "operationId": "dcim_rack-roles_list", + "description": "", + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "updated_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "q", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ordering", + "in": "query", + "description": "Which field to use when ordering the results.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Number of results to return per page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The initial index from which to return the results.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "required": [ + "count", + "results" + ], + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "next": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "previous": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/RackRole" + } + } + } + } + } + }, + "tags": [ + "dcim" + ] + }, + "post": { + "operationId": "dcim_rack-roles_create", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/RackRole" + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/RackRole" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_rack-roles_bulk_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/RackRole" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/RackRole" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_rack-roles_bulk_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/RackRole" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/RackRole" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_rack-roles_bulk_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [] + }, + "/dcim/rack-roles/{id}/": { + "get": { + "operationId": "dcim_rack-roles_read", + "description": "", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/RackRole" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_rack-roles_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/RackRole" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/RackRole" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_rack-roles_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/RackRole" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/RackRole" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_rack-roles_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this rack role.", + "required": true, + "type": "integer" + } + ] + }, + "/dcim/racks/": { + "get": { + "operationId": "dcim_racks_list", + "description": "", + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "facility_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "asset_tag", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "u_height", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "desc_units", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "outer_width", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "outer_depth", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "outer_unit", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "mounting_depth", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "weight", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "max_weight", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "weight_unit", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "updated_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "q", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant_group_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant_group", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "contact", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "contact_role", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "contact_group", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "location_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "location", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "status", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "type", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "width", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "role_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "role", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "serial", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "facility_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "facility_id__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "facility_id__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "facility_id__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "facility_id__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "facility_id__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "facility_id__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "facility_id__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "facility_id__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "facility_id__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "asset_tag__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "asset_tag__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "asset_tag__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "asset_tag__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "asset_tag__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "asset_tag__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "asset_tag__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "asset_tag__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "asset_tag__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "asset_tag__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "u_height__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "u_height__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "u_height__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "u_height__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "u_height__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "outer_width__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "outer_width__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "outer_width__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "outer_width__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "outer_width__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "outer_depth__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "outer_depth__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "outer_depth__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "outer_depth__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "outer_depth__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "outer_unit__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "mounting_depth__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "mounting_depth__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "mounting_depth__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "mounting_depth__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "mounting_depth__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "weight__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "weight__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "weight__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "weight__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "weight__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "max_weight__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "max_weight__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "max_weight__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "max_weight__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "max_weight__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "weight_unit__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant_group_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant_group__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "contact__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "contact_role__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "contact_group__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "location_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "location__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "status__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "type__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "width__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "role_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "role__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "serial__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "serial__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "serial__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "serial__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "serial__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "serial__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "serial__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "serial__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "serial__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "serial__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ordering", + "in": "query", + "description": "Which field to use when ordering the results.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Number of results to return per page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The initial index from which to return the results.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "required": [ + "count", + "results" + ], + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "next": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "previous": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/Rack" + } + } + } + } + } + }, + "tags": [ + "dcim" + ] + }, + "post": { + "operationId": "dcim_racks_create", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableRack" + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/Rack" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_racks_bulk_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableRack" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/Rack" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_racks_bulk_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableRack" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/Rack" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_racks_bulk_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [] + }, + "/dcim/racks/{id}/": { + "get": { + "operationId": "dcim_racks_read", + "description": "", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/Rack" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_racks_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableRack" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/Rack" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_racks_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableRack" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/Rack" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_racks_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this rack.", + "required": true, + "type": "integer" + } + ] + }, + "/dcim/racks/{id}/elevation/": { + "get": { + "operationId": "dcim_racks_elevation", + "description": "Rack elevation representing the list of rack units. Also supports rendering the elevation as an SVG.", + "parameters": [ + { + "name": "q", + "in": "query", + "required": false, + "type": "string", + "minLength": 1 + }, + { + "name": "face", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "front", + "rear" + ], + "default": "front" + }, + { + "name": "render", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "json", + "svg" + ], + "default": "json" + }, + { + "name": "unit_width", + "in": "query", + "required": false, + "type": "integer", + "default": 220 + }, + { + "name": "unit_height", + "in": "query", + "required": false, + "type": "integer", + "default": 22 + }, + { + "name": "legend_width", + "in": "query", + "required": false, + "type": "integer", + "default": 30 + }, + { + "name": "margin_width", + "in": "query", + "required": false, + "type": "integer", + "default": 15 + }, + { + "name": "exclude", + "in": "query", + "required": false, + "type": "integer" + }, + { + "name": "expand_devices", + "in": "query", + "required": false, + "type": "boolean", + "default": true + }, + { + "name": "include_images", + "in": "query", + "required": false, + "type": "boolean", + "default": true + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/RackUnit" + } + } + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this rack.", + "required": true, + "type": "integer" + } + ] + }, + "/dcim/rear-port-templates/": { + "get": { + "operationId": "dcim_rear-port-templates_list", + "description": "", + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "type", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "positions", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "updated_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "q", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "devicetype_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "moduletype_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "type__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "positions__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "positions__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "positions__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "positions__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "positions__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "devicetype_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "moduletype_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ordering", + "in": "query", + "description": "Which field to use when ordering the results.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Number of results to return per page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The initial index from which to return the results.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "required": [ + "count", + "results" + ], + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "next": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "previous": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/RearPortTemplate" + } + } + } + } + } + }, + "tags": [ + "dcim" + ] + }, + "post": { + "operationId": "dcim_rear-port-templates_create", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableRearPortTemplate" + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/RearPortTemplate" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_rear-port-templates_bulk_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableRearPortTemplate" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/RearPortTemplate" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_rear-port-templates_bulk_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableRearPortTemplate" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/RearPortTemplate" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_rear-port-templates_bulk_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [] + }, + "/dcim/rear-port-templates/{id}/": { + "get": { + "operationId": "dcim_rear-port-templates_read", + "description": "", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/RearPortTemplate" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_rear-port-templates_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableRearPortTemplate" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/RearPortTemplate" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_rear-port-templates_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableRearPortTemplate" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/RearPortTemplate" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_rear-port-templates_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this rear port template.", + "required": true, + "type": "integer" + } + ] + }, + "/dcim/rear-ports/": { + "get": { + "operationId": "dcim_rear-ports_list", + "description": "", + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "type", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "positions", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "cable_end", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "q", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "location_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "location", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "rack_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "rack", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "device_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "device", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "virtual_chassis_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "virtual_chassis", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "module_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "updated_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "cabled", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "occupied", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "label__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "type__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "color__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "positions__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "positions__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "positions__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "positions__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "positions__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "cable_end__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "location_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "location__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "rack_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "rack__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "device_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "device__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "virtual_chassis_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "virtual_chassis__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "module_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ordering", + "in": "query", + "description": "Which field to use when ordering the results.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Number of results to return per page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The initial index from which to return the results.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "required": [ + "count", + "results" + ], + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "next": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "previous": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/RearPort" + } + } + } + } + } + }, + "tags": [ + "dcim" + ] + }, + "post": { + "operationId": "dcim_rear-ports_create", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableRearPort" + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/RearPort" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_rear-ports_bulk_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableRearPort" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/RearPort" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_rear-ports_bulk_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableRearPort" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/RearPort" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_rear-ports_bulk_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [] + }, + "/dcim/rear-ports/{id}/": { + "get": { + "operationId": "dcim_rear-ports_read", + "description": "", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/RearPort" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_rear-ports_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableRearPort" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/RearPort" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_rear-ports_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableRearPort" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/RearPort" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_rear-ports_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this rear port.", + "required": true, + "type": "integer" + } + ] + }, + "/dcim/rear-ports/{id}/paths/": { + "get": { + "operationId": "dcim_rear-ports_paths", + "description": "Return all CablePaths which traverse a given pass-through port.", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/RearPort" + } + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this rear port.", + "required": true, + "type": "integer" + } + ] + }, + "/dcim/regions/": { + "get": { + "operationId": "dcim_regions_list", + "description": "", + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "updated_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "q", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "contact", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "contact_role", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "contact_group", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "parent_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "parent", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "contact__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "contact_role__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "contact_group__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "parent_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "parent__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ordering", + "in": "query", + "description": "Which field to use when ordering the results.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Number of results to return per page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The initial index from which to return the results.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "required": [ + "count", + "results" + ], + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "next": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "previous": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/Region" + } + } + } + } + } + }, + "tags": [ + "dcim" + ] + }, + "post": { + "operationId": "dcim_regions_create", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableRegion" + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/Region" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_regions_bulk_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableRegion" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/Region" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_regions_bulk_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableRegion" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/Region" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_regions_bulk_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [] + }, + "/dcim/regions/{id}/": { + "get": { + "operationId": "dcim_regions_read", + "description": "", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/Region" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_regions_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableRegion" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/Region" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_regions_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableRegion" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/Region" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_regions_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this region.", + "required": true, + "type": "integer" + } + ] + }, + "/dcim/site-groups/": { + "get": { + "operationId": "dcim_site-groups_list", + "description": "", + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "updated_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "q", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "contact", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "contact_role", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "contact_group", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "parent_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "parent", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "contact__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "contact_role__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "contact_group__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "parent_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "parent__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ordering", + "in": "query", + "description": "Which field to use when ordering the results.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Number of results to return per page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The initial index from which to return the results.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "required": [ + "count", + "results" + ], + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "next": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "previous": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/SiteGroup" + } + } + } + } + } + }, + "tags": [ + "dcim" + ] + }, + "post": { + "operationId": "dcim_site-groups_create", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableSiteGroup" + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/SiteGroup" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_site-groups_bulk_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableSiteGroup" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/SiteGroup" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_site-groups_bulk_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableSiteGroup" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/SiteGroup" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_site-groups_bulk_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [] + }, + "/dcim/site-groups/{id}/": { + "get": { + "operationId": "dcim_site-groups_read", + "description": "", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/SiteGroup" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_site-groups_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableSiteGroup" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/SiteGroup" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_site-groups_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableSiteGroup" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/SiteGroup" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_site-groups_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this site group.", + "required": true, + "type": "integer" + } + ] + }, + "/dcim/sites/": { + "get": { + "operationId": "dcim_sites_list", + "description": "", + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "facility", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "latitude", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "longitude", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "updated_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "q", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant_group_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant_group", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "contact", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "contact_role", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "contact_group", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "status", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "group_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "group", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "asn", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "asn_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "slug__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "facility__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "facility__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "facility__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "facility__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "facility__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "facility__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "facility__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "facility__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "facility__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "facility__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "latitude__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "latitude__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "latitude__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "latitude__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "latitude__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "longitude__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "longitude__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "longitude__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "longitude__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "longitude__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant_group_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant_group__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "contact__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "contact_role__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "contact_group__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "status__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "group_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "group__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "asn__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "asn_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ordering", + "in": "query", + "description": "Which field to use when ordering the results.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Number of results to return per page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The initial index from which to return the results.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "required": [ + "count", + "results" + ], + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "next": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "previous": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/Site" + } + } + } + } + } + }, + "tags": [ + "dcim" + ] + }, + "post": { + "operationId": "dcim_sites_create", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableSite" + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/Site" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_sites_bulk_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableSite" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/Site" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_sites_bulk_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableSite" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/Site" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_sites_bulk_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [] + }, + "/dcim/sites/{id}/": { + "get": { + "operationId": "dcim_sites_read", + "description": "", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/Site" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_sites_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableSite" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/Site" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_sites_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableSite" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/Site" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_sites_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this site.", + "required": true, + "type": "integer" + } + ] + }, + "/dcim/virtual-chassis/": { + "get": { + "operationId": "dcim_virtual-chassis_list", + "description": "", + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "domain", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "updated_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "q", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "master_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "master", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "domain__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "domain__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "domain__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "domain__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "domain__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "domain__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "domain__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "domain__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "domain__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "domain__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "master_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "master__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ordering", + "in": "query", + "description": "Which field to use when ordering the results.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Number of results to return per page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The initial index from which to return the results.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "required": [ + "count", + "results" + ], + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "next": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "previous": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/VirtualChassis" + } + } + } + } + } + }, + "tags": [ + "dcim" + ] + }, + "post": { + "operationId": "dcim_virtual-chassis_create", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableVirtualChassis" + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/VirtualChassis" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_virtual-chassis_bulk_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableVirtualChassis" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/VirtualChassis" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_virtual-chassis_bulk_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableVirtualChassis" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/VirtualChassis" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_virtual-chassis_bulk_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [] + }, + "/dcim/virtual-chassis/{id}/": { + "get": { + "operationId": "dcim_virtual-chassis_read", + "description": "", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/VirtualChassis" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_virtual-chassis_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableVirtualChassis" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/VirtualChassis" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_virtual-chassis_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableVirtualChassis" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/VirtualChassis" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_virtual-chassis_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this virtual chassis.", + "required": true, + "type": "integer" + } + ] + }, + "/dcim/virtual-device-contexts/": { + "get": { + "operationId": "dcim_virtual-device-contexts_list", + "description": "", + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "device", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "updated_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "q", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant_group_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant_group", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "device_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "status", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "has_primary_ip", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "device__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant_group_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant_group__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "device_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "status__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ordering", + "in": "query", + "description": "Which field to use when ordering the results.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Number of results to return per page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The initial index from which to return the results.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "required": [ + "count", + "results" + ], + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "next": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "previous": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/VirtualDeviceContext" + } + } + } + } + } + }, + "tags": [ + "dcim" + ] + }, + "post": { + "operationId": "dcim_virtual-device-contexts_create", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableVirtualDeviceContext" + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/VirtualDeviceContext" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_virtual-device-contexts_bulk_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableVirtualDeviceContext" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/VirtualDeviceContext" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_virtual-device-contexts_bulk_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableVirtualDeviceContext" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/VirtualDeviceContext" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_virtual-device-contexts_bulk_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [] + }, + "/dcim/virtual-device-contexts/{id}/": { + "get": { + "operationId": "dcim_virtual-device-contexts_read", + "description": "", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/VirtualDeviceContext" + } + } + }, + "tags": [ + "dcim" + ] + }, + "put": { + "operationId": "dcim_virtual-device-contexts_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableVirtualDeviceContext" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/VirtualDeviceContext" + } + } + }, + "tags": [ + "dcim" + ] + }, + "patch": { + "operationId": "dcim_virtual-device-contexts_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableVirtualDeviceContext" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/VirtualDeviceContext" + } + } + }, + "tags": [ + "dcim" + ] + }, + "delete": { + "operationId": "dcim_virtual-device-contexts_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "dcim" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this virtual device context.", + "required": true, + "type": "integer" + } + ] + }, + "/extras/config-contexts/": { + "get": { + "operationId": "extras_config-contexts_list", + "description": "", + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "is_active", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "data_synced", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "updated_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "q", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "location_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "location", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "device_type_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "role_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "role", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "platform_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "platform", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "cluster_type_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "cluster_type", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "cluster_group_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "cluster_group", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "cluster_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant_group_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant_group", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "data_source_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "data_file_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "data_synced__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "data_synced__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "data_synced__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "data_synced__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "data_synced__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "region__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_group_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "site__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "location_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "location__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "device_type_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "role_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "role__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "platform_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "platform__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "cluster_type_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "cluster_type__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "cluster_group_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "cluster_group__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "cluster_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant_group_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant_group__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tenant__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "data_source_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "data_file_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ordering", + "in": "query", + "description": "Which field to use when ordering the results.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Number of results to return per page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The initial index from which to return the results.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "required": [ + "count", + "results" + ], + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "next": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "previous": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/ConfigContext" + } + } + } + } + } + }, + "tags": [ + "extras" + ] + }, + "post": { + "operationId": "extras_config-contexts_create", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableConfigContext" + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/ConfigContext" + } + } + }, + "tags": [ + "extras" + ] + }, + "put": { + "operationId": "extras_config-contexts_bulk_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableConfigContext" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ConfigContext" + } + } + }, + "tags": [ + "extras" + ] + }, + "patch": { + "operationId": "extras_config-contexts_bulk_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableConfigContext" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ConfigContext" + } + } + }, + "tags": [ + "extras" + ] + }, + "delete": { + "operationId": "extras_config-contexts_bulk_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "extras" + ] + }, + "parameters": [] + }, + "/extras/config-contexts/{id}/": { + "get": { + "operationId": "extras_config-contexts_read", + "description": "", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ConfigContext" + } + } + }, + "tags": [ + "extras" + ] + }, + "put": { + "operationId": "extras_config-contexts_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableConfigContext" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ConfigContext" + } + } + }, + "tags": [ + "extras" + ] + }, + "patch": { + "operationId": "extras_config-contexts_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableConfigContext" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ConfigContext" + } + } + }, + "tags": [ + "extras" + ] + }, + "delete": { + "operationId": "extras_config-contexts_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "extras" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this config context.", + "required": true, + "type": "integer" + } + ] + }, + "/extras/config-contexts/{id}/sync/": { + "post": { + "operationId": "extras_config-contexts_sync", + "description": "Provide a /sync API endpoint to synchronize an object's data from its associated DataFile (if any).", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableConfigContext" + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/ConfigContext" + } + } + }, + "tags": [ + "extras" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this config context.", + "required": true, + "type": "integer" + } + ] + }, + "/extras/config-templates/": { + "get": { + "operationId": "extras_config-templates_list", + "description": "", + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "data_synced", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "q", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "data_source_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "data_file_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "data_synced__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "data_synced__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "data_synced__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "data_synced__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "data_synced__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "data_source_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "data_file_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ordering", + "in": "query", + "description": "Which field to use when ordering the results.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Number of results to return per page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The initial index from which to return the results.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "required": [ + "count", + "results" + ], + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "next": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "previous": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/ConfigTemplate" + } + } + } + } + } + }, + "tags": [ + "extras" + ] + }, + "post": { + "operationId": "extras_config-templates_create", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableConfigTemplate" + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/ConfigTemplate" + } + } + }, + "tags": [ + "extras" + ] + }, + "put": { + "operationId": "extras_config-templates_bulk_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableConfigTemplate" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ConfigTemplate" + } + } + }, + "tags": [ + "extras" + ] + }, + "patch": { + "operationId": "extras_config-templates_bulk_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableConfigTemplate" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ConfigTemplate" + } + } + }, + "tags": [ + "extras" + ] + }, + "delete": { + "operationId": "extras_config-templates_bulk_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "extras" + ] + }, + "parameters": [] + }, + "/extras/config-templates/{id}/": { + "get": { + "operationId": "extras_config-templates_read", + "description": "", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ConfigTemplate" + } + } + }, + "tags": [ + "extras" + ] + }, + "put": { + "operationId": "extras_config-templates_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableConfigTemplate" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ConfigTemplate" + } + } + }, + "tags": [ + "extras" + ] + }, + "patch": { + "operationId": "extras_config-templates_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableConfigTemplate" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ConfigTemplate" + } + } + }, + "tags": [ + "extras" + ] + }, + "delete": { + "operationId": "extras_config-templates_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "extras" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this config template.", + "required": true, + "type": "integer" + } + ] + }, + "/extras/config-templates/{id}/render/": { + "post": { + "operationId": "extras_config-templates_render", + "description": "Render a ConfigTemplate using the context data provided (if any). If the client requests \"text/plain\" data,\nreturn the raw rendered content, rather than serialized JSON.", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableConfigTemplate" + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/ConfigTemplate" + } + } + }, + "produces": [ + "application/json", + "text/plain" + ], + "tags": [ + "extras" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this config template.", + "required": true, + "type": "integer" + } + ] + }, + "/extras/config-templates/{id}/sync/": { + "post": { + "operationId": "extras_config-templates_sync", + "description": "Provide a /sync API endpoint to synchronize an object's data from its associated DataFile (if any).", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableConfigTemplate" + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/ConfigTemplate" + } + } + }, + "tags": [ + "extras" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this config template.", + "required": true, + "type": "integer" + } + ] + }, + "/extras/content-types/": { + "get": { + "operationId": "extras_content-types_list", + "description": "Read-only list of ContentTypes. Limit results to ContentTypes pertinent to NetBox objects.", + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "type": "number" + }, + { + "name": "app_label", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "model", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "q", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ordering", + "in": "query", + "description": "Which field to use when ordering the results.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Number of results to return per page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The initial index from which to return the results.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "required": [ + "count", + "results" + ], + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "next": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "previous": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/ContentType" + } + } + } + } + } + }, + "tags": [ + "extras" + ] + }, + "parameters": [] + }, + "/extras/content-types/{id}/": { + "get": { + "operationId": "extras_content-types_read", + "description": "Read-only list of ContentTypes. Limit results to ContentTypes pertinent to NetBox objects.", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ContentType" + } + } + }, + "tags": [ + "extras" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this content type.", + "required": true, + "type": "integer" + } + ] + }, + "/extras/custom-fields/": { + "get": { + "operationId": "extras_custom-fields_list", + "description": "", + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_types", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "group_name", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "required", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "search_weight", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "filter_logic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ui_visibility", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "weight", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "is_cloneable", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "q", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "type", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_type_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_types__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_types__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_types__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_types__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_types__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_types__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_types__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_types__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_types__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "group_name__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "group_name__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "group_name__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "group_name__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "group_name__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "group_name__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "group_name__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "group_name__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "group_name__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "group_name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "search_weight__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "search_weight__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "search_weight__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "search_weight__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "search_weight__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "filter_logic__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ui_visibility__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "weight__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "weight__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "weight__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "weight__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "weight__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "type__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_type_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_type_id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_type_id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_type_id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_type_id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ordering", + "in": "query", + "description": "Which field to use when ordering the results.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Number of results to return per page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The initial index from which to return the results.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "required": [ + "count", + "results" + ], + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "next": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "previous": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/CustomField" + } + } + } + } + } + }, + "tags": [ + "extras" + ] + }, + "post": { + "operationId": "extras_custom-fields_create", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableCustomField" + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/CustomField" + } + } + }, + "tags": [ + "extras" + ] + }, + "put": { + "operationId": "extras_custom-fields_bulk_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableCustomField" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/CustomField" + } + } + }, + "tags": [ + "extras" + ] + }, + "patch": { + "operationId": "extras_custom-fields_bulk_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableCustomField" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/CustomField" + } + } + }, + "tags": [ + "extras" + ] + }, + "delete": { + "operationId": "extras_custom-fields_bulk_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "extras" + ] + }, + "parameters": [] + }, + "/extras/custom-fields/{id}/": { + "get": { + "operationId": "extras_custom-fields_read", + "description": "", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/CustomField" + } + } + }, + "tags": [ + "extras" + ] + }, + "put": { + "operationId": "extras_custom-fields_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableCustomField" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/CustomField" + } + } + }, + "tags": [ + "extras" + ] + }, + "patch": { + "operationId": "extras_custom-fields_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableCustomField" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/CustomField" + } + } + }, + "tags": [ + "extras" + ] + }, + "delete": { + "operationId": "extras_custom-fields_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "extras" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this custom field.", + "required": true, + "type": "integer" + } + ] + }, + "/extras/custom-links/": { + "get": { + "operationId": "extras_custom-links_list", + "description": "", + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_types", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "enabled", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "link_text", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "link_url", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "weight", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "group_name", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "new_window", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "q", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_type_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_types__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_types__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_types__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_types__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_types__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_types__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_types__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_types__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_types__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "link_text__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "link_text__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "link_text__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "link_text__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "link_text__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "link_text__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "link_text__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "link_text__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "link_text__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "link_url__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "link_url__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "link_url__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "link_url__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "link_url__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "link_url__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "link_url__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "link_url__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "link_url__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "weight__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "weight__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "weight__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "weight__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "weight__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "group_name__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "group_name__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "group_name__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "group_name__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "group_name__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "group_name__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "group_name__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "group_name__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "group_name__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "group_name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_type_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_type_id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_type_id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_type_id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_type_id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ordering", + "in": "query", + "description": "Which field to use when ordering the results.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Number of results to return per page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The initial index from which to return the results.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "required": [ + "count", + "results" + ], + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "next": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "previous": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/CustomLink" + } + } + } + } + } + }, + "tags": [ + "extras" + ] + }, + "post": { + "operationId": "extras_custom-links_create", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/CustomLink" + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/CustomLink" + } + } + }, + "tags": [ + "extras" + ] + }, + "put": { + "operationId": "extras_custom-links_bulk_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/CustomLink" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/CustomLink" + } + } + }, + "tags": [ + "extras" + ] + }, + "patch": { + "operationId": "extras_custom-links_bulk_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/CustomLink" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/CustomLink" + } + } + }, + "tags": [ + "extras" + ] + }, + "delete": { + "operationId": "extras_custom-links_bulk_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "extras" + ] + }, + "parameters": [] + }, + "/extras/custom-links/{id}/": { + "get": { + "operationId": "extras_custom-links_read", + "description": "", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/CustomLink" + } + } + }, + "tags": [ + "extras" + ] + }, + "put": { + "operationId": "extras_custom-links_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/CustomLink" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/CustomLink" + } + } + }, + "tags": [ + "extras" + ] + }, + "patch": { + "operationId": "extras_custom-links_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/CustomLink" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/CustomLink" + } + } + }, + "tags": [ + "extras" + ] + }, + "delete": { + "operationId": "extras_custom-links_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "extras" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this custom link.", + "required": true, + "type": "integer" + } + ] + }, + "/extras/dashboard/": { + "get": { + "operationId": "extras_dashboard_read", + "description": "", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/Dashboard" + } + } + }, + "tags": [ + "extras" + ] + }, + "put": { + "operationId": "extras_dashboard_bulk_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Dashboard" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/Dashboard" + } + } + }, + "tags": [ + "extras" + ] + }, + "patch": { + "operationId": "extras_dashboard_bulk_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Dashboard" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/Dashboard" + } + } + }, + "tags": [ + "extras" + ] + }, + "delete": { + "operationId": "extras_dashboard_bulk_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "extras" + ] + }, + "parameters": [] + }, + "/extras/export-templates/": { + "get": { + "operationId": "extras_export-templates_list", + "description": "", + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_types", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "data_synced", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "q", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_type_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "data_source_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "data_file_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_types__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_types__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_types__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_types__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_types__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_types__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_types__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_types__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_types__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "description__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "data_synced__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "data_synced__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "data_synced__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "data_synced__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "data_synced__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_type_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_type_id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_type_id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_type_id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_type_id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "data_source_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "data_file_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ordering", + "in": "query", + "description": "Which field to use when ordering the results.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Number of results to return per page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The initial index from which to return the results.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "required": [ + "count", + "results" + ], + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "next": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "previous": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/ExportTemplate" + } + } + } + } + } + }, + "tags": [ + "extras" + ] + }, + "post": { + "operationId": "extras_export-templates_create", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableExportTemplate" + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/ExportTemplate" + } + } + }, + "tags": [ + "extras" + ] + }, + "put": { + "operationId": "extras_export-templates_bulk_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableExportTemplate" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ExportTemplate" + } + } + }, + "tags": [ + "extras" + ] + }, + "patch": { + "operationId": "extras_export-templates_bulk_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableExportTemplate" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ExportTemplate" + } + } + }, + "tags": [ + "extras" + ] + }, + "delete": { + "operationId": "extras_export-templates_bulk_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "extras" + ] + }, + "parameters": [] + }, + "/extras/export-templates/{id}/": { + "get": { + "operationId": "extras_export-templates_read", + "description": "", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ExportTemplate" + } + } + }, + "tags": [ + "extras" + ] + }, + "put": { + "operationId": "extras_export-templates_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableExportTemplate" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ExportTemplate" + } + } + }, + "tags": [ + "extras" + ] + }, + "patch": { + "operationId": "extras_export-templates_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableExportTemplate" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ExportTemplate" + } + } + }, + "tags": [ + "extras" + ] + }, + "delete": { + "operationId": "extras_export-templates_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "extras" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this export template.", + "required": true, + "type": "integer" + } + ] + }, + "/extras/export-templates/{id}/sync/": { + "post": { + "operationId": "extras_export-templates_sync", + "description": "Provide a /sync API endpoint to synchronize an object's data from its associated DataFile (if any).", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableExportTemplate" + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/ExportTemplate" + } + } + }, + "tags": [ + "extras" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this export template.", + "required": true, + "type": "integer" + } + ] + }, + "/extras/image-attachments/": { + "get": { + "operationId": "extras_image-attachments_list", + "description": "", + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_type_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "object_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "q", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_type", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_type_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "object_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "object_id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "object_id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "object_id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "object_id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "content_type__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ordering", + "in": "query", + "description": "Which field to use when ordering the results.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Number of results to return per page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The initial index from which to return the results.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "required": [ + "count", + "results" + ], + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "next": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "previous": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/ImageAttachment" + } + } + } + } + } + }, + "tags": [ + "extras" + ] + }, + "post": { + "operationId": "extras_image-attachments_create", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ImageAttachment" + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/ImageAttachment" + } + } + }, + "tags": [ + "extras" + ] + }, + "put": { + "operationId": "extras_image-attachments_bulk_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ImageAttachment" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ImageAttachment" + } + } + }, + "tags": [ + "extras" + ] + }, + "patch": { + "operationId": "extras_image-attachments_bulk_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ImageAttachment" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ImageAttachment" + } + } + }, + "tags": [ + "extras" + ] + }, + "delete": { + "operationId": "extras_image-attachments_bulk_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "extras" + ] + }, + "parameters": [] + }, + "/extras/image-attachments/{id}/": { + "get": { + "operationId": "extras_image-attachments_read", + "description": "", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ImageAttachment" + } + } + }, + "tags": [ + "extras" + ] + }, + "put": { + "operationId": "extras_image-attachments_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ImageAttachment" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ImageAttachment" + } + } + }, + "tags": [ + "extras" + ] + }, + "patch": { + "operationId": "extras_image-attachments_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ImageAttachment" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ImageAttachment" + } + } + }, + "tags": [ + "extras" + ] + }, + "delete": { + "operationId": "extras_image-attachments_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "extras" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this image attachment.", + "required": true, + "type": "integer" + } + ] + }, + "/extras/journal-entries/": { + "get": { + "operationId": "extras_journal-entries_list", + "description": "", + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "assigned_object_type_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "assigned_object_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "kind", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "updated_by_request", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "q", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "assigned_object_type", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created_by_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created_by", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "assigned_object_type_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "assigned_object_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "assigned_object_id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "assigned_object_id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "assigned_object_id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "assigned_object_id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "kind__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "last_updated__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "tag__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "assigned_object_type__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created_by_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "created_by__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ordering", + "in": "query", + "description": "Which field to use when ordering the results.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Number of results to return per page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The initial index from which to return the results.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "required": [ + "count", + "results" + ], + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "next": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "previous": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/JournalEntry" + } + } + } + } + } + }, + "tags": [ + "extras" + ] + }, + "post": { + "operationId": "extras_journal-entries_create", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableJournalEntry" + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/JournalEntry" + } + } + }, + "tags": [ + "extras" + ] + }, + "put": { + "operationId": "extras_journal-entries_bulk_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableJournalEntry" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/JournalEntry" + } + } + }, + "tags": [ + "extras" + ] + }, + "patch": { + "operationId": "extras_journal-entries_bulk_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableJournalEntry" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/JournalEntry" + } + } + }, + "tags": [ + "extras" + ] + }, + "delete": { + "operationId": "extras_journal-entries_bulk_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "extras" + ] + }, + "parameters": [] + }, + "/extras/journal-entries/{id}/": { + "get": { + "operationId": "extras_journal-entries_read", + "description": "", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/JournalEntry" + } + } + }, + "tags": [ + "extras" + ] + }, + "put": { + "operationId": "extras_journal-entries_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableJournalEntry" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/JournalEntry" + } + } + }, + "tags": [ + "extras" + ] + }, + "patch": { + "operationId": "extras_journal-entries_partial_update", + "description": "", + "parameters": [ + { + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WritableJournalEntry" + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/JournalEntry" + } + } + }, + "tags": [ + "extras" + ] + }, + "delete": { + "operationId": "extras_journal-entries_delete", + "description": "", + "parameters": [], + "responses": { + "204": { + "description": "" + } + }, + "tags": [ + "extras" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this journal entry.", + "required": true, + "type": "integer" + } + ] + }, + "/extras/object-changes/": { + "get": { + "operationId": "extras_object-changes_list", + "description": "Retrieve a list of recent changes.", + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "user", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "user_name", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "request_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "action", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "changed_object_type_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "changed_object_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "object_repr", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "q", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "time", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "changed_object_type", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "user_id", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "user__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "user_name__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "user_name__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "user_name__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "user_name__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "user_name__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "user_name__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "user_name__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "user_name__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "user_name__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "user_name__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "action__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "changed_object_type_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "changed_object_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "changed_object_id__lte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "changed_object_id__lt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "changed_object_id__gte", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "changed_object_id__gt", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "object_repr__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "object_repr__ic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "object_repr__nic", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "object_repr__iew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "object_repr__niew", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "object_repr__isw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "object_repr__nisw", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "object_repr__ie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "object_repr__nie", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "object_repr__empty", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "changed_object_type__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "user_id__n", + "in": "query", + "description": "", + "required": false, + "type": "string" + }, + { + "name": "ordering", + "in": "query", + "description": "Which field to use when ordering the results.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Number of results to return per page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The initial index from which to return the results.", + "required": false, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "required": [ + "count", + "results" + ], + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "next": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "previous": { + "type": "string", + "format": "uri", + "x-nullable": true + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/ObjectChange" + } + } + } + } + } + }, + "tags": [ + "extras" + ] + }, + "parameters": [] + }, + "/extras/object-changes/{id}/": { + "get": { + "operationId": "extras_object-changes_read", + "description": "Retrieve a list of recent changes.", + "parameters": [], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ObjectChange" + } + } + }, + "tags": [ + "extras" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "A unique integer value identifying this object change.", + "required": true, + "type": "integer" + } + ] + }, + "/extras/reports/": { + "get": { + "operationId": "extras_reports_list", + "description": "Compile all reports and their related results (if any). Result data is deferred in the list view.", + "parameters": [], + "responses": { + "200": { + "description": "" + } + }, + "tags": [ + "extras" + ] + }, + "parameters": [] + }, + "/extras/reports/{id}/": { + "get": { + "operationId": "extras_reports_read", + "description": "Retrieve a single Report identified as \".\".", + "parameters": [], + "responses": { + "200": { + "description": "" + } + }, + "tags": [ + "extras" + ] + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + } + ] + }, + "/extras/reports/{id}/run/": { + "post": { + "operationId": "extras_reports_run", + "description": "Run a Report identified as \". -{% endblock %} - -{% block content %} -
-
-
-
-
- Loading... -
-
-
Device Configuration
-
- -
-
-

-                    
-
-

-                    
-
-

-                    
-
-
-
-
-
-{% endblock %} - -{% block data %} - -{% endblock %} diff --git a/netbox/templates/dcim/device/consoleports.html b/netbox/templates/dcim/device/consoleports.html index 1f7cd037e9..ccd12f61c8 100644 --- a/netbox/templates/dcim/device/consoleports.html +++ b/netbox/templates/dcim/device/consoleports.html @@ -10,7 +10,7 @@ {% csrf_token %}
-
+
{% include 'htmx/table.html' %}
diff --git a/netbox/templates/dcim/device/consoleserverports.html b/netbox/templates/dcim/device/consoleserverports.html index 259a072b43..43396651d2 100644 --- a/netbox/templates/dcim/device/consoleserverports.html +++ b/netbox/templates/dcim/device/consoleserverports.html @@ -10,7 +10,7 @@ {% csrf_token %}
-
+
{% include 'htmx/table.html' %}
diff --git a/netbox/templates/dcim/device/devicebays.html b/netbox/templates/dcim/device/devicebays.html index 5081b752ba..9453b9a59a 100644 --- a/netbox/templates/dcim/device/devicebays.html +++ b/netbox/templates/dcim/device/devicebays.html @@ -10,7 +10,7 @@ {% csrf_token %}
-
+
{% include 'htmx/table.html' %}
diff --git a/netbox/templates/dcim/device/frontports.html b/netbox/templates/dcim/device/frontports.html index 044337d007..dd0767d954 100644 --- a/netbox/templates/dcim/device/frontports.html +++ b/netbox/templates/dcim/device/frontports.html @@ -10,7 +10,7 @@ {% csrf_token %}
-
+
{% include 'htmx/table.html' %}
diff --git a/netbox/templates/dcim/device/interfaces.html b/netbox/templates/dcim/device/interfaces.html index 9de486a6fe..c0e9a38b63 100644 --- a/netbox/templates/dcim/device/interfaces.html +++ b/netbox/templates/dcim/device/interfaces.html @@ -10,7 +10,7 @@ {% csrf_token %}
-
+
{% include 'htmx/table.html' %}
diff --git a/netbox/templates/dcim/device/inventory.html b/netbox/templates/dcim/device/inventory.html index 065fd92f61..9e11031ec1 100644 --- a/netbox/templates/dcim/device/inventory.html +++ b/netbox/templates/dcim/device/inventory.html @@ -10,7 +10,7 @@ {% csrf_token %}
-
+
{% include 'htmx/table.html' %}
diff --git a/netbox/templates/dcim/device/lldp_neighbors.html b/netbox/templates/dcim/device/lldp_neighbors.html deleted file mode 100644 index 2be6aba4d9..0000000000 --- a/netbox/templates/dcim/device/lldp_neighbors.html +++ /dev/null @@ -1,66 +0,0 @@ -{% extends 'dcim/device/base.html' %} -{% load static %} - -{% block title %}{{ object }} - LLDP Neighbors{% endblock %} - -{% block head %} - -{% endblock %} - -{% block content %} -
-
-
- Loading... -
-
-
-
LLDP Neighbors
-
-
- - - - - - - - - - - - {% for iface in interfaces %} - - - {% with peer=iface.connected_endpoints.0 %} - {% if peer.device %} - - - {% elif peer.circuit %} - {% with circuit=peer.circuit %} - - {% endwith %} - {% else %} - - {% endif %} - {% endwith %} - - - - {% endfor %} - -
InterfaceConfigured DeviceConfigured InterfaceLLDP DeviceLLDP Interface
{{ iface }} - {{ peer.device }} - - {{ peer }} - - - {{ circuit.provider }} {{ circuit }} - None
-
-
-{% endblock %} - -{% block data %} - -{% endblock %} diff --git a/netbox/templates/dcim/device/modulebays.html b/netbox/templates/dcim/device/modulebays.html index 6358a38157..7f0aacf1f2 100644 --- a/netbox/templates/dcim/device/modulebays.html +++ b/netbox/templates/dcim/device/modulebays.html @@ -10,7 +10,7 @@ {% csrf_token %}
-
+
{% include 'htmx/table.html' %}
diff --git a/netbox/templates/dcim/device/poweroutlets.html b/netbox/templates/dcim/device/poweroutlets.html index 35a9795d57..66b21b7afb 100644 --- a/netbox/templates/dcim/device/poweroutlets.html +++ b/netbox/templates/dcim/device/poweroutlets.html @@ -10,7 +10,7 @@ {% csrf_token %}
-
+
{% include 'htmx/table.html' %}
diff --git a/netbox/templates/dcim/device/powerports.html b/netbox/templates/dcim/device/powerports.html index 69485c9851..d9e1e121a3 100644 --- a/netbox/templates/dcim/device/powerports.html +++ b/netbox/templates/dcim/device/powerports.html @@ -10,7 +10,7 @@ {% csrf_token %}
-
+
{% include 'htmx/table.html' %}
diff --git a/netbox/templates/dcim/device/rearports.html b/netbox/templates/dcim/device/rearports.html index 109e195dcc..ce194cc787 100644 --- a/netbox/templates/dcim/device/rearports.html +++ b/netbox/templates/dcim/device/rearports.html @@ -10,7 +10,7 @@ {% csrf_token %}
-
+
{% include 'htmx/table.html' %}
diff --git a/netbox/templates/dcim/device/render_config.html b/netbox/templates/dcim/device/render_config.html new file mode 100644 index 0000000000..b6e16701f0 --- /dev/null +++ b/netbox/templates/dcim/device/render_config.html @@ -0,0 +1,55 @@ +{% extends 'dcim/device/base.html' %} +{% load static %} + +{% block title %}{{ object }} - Config{% endblock %} + +{% block content %} +
+
+
+
Config Template
+
+ + + + + + + + + + + + + +
Config Template{{ config_template|linkify|placeholder }}
Data Source{{ config_template.data_file.source|linkify|placeholder }}
Data File{{ config_template.data_file|linkify|placeholder }}
+
+
+
+
+
+
Context Data
+
{{ context_data|pprint }}
+
+
+
+
+
+
+
+ +
Rendered Config
+
+ {% if config_template %} +
{{ rendered_config }}
+ {% else %} +
No configuration template found
+ {% endif %} +
+
+
+{% endblock %} diff --git a/netbox/templates/dcim/device/status.html b/netbox/templates/dcim/device/status.html deleted file mode 100644 index 51dd7d27e2..0000000000 --- a/netbox/templates/dcim/device/status.html +++ /dev/null @@ -1,93 +0,0 @@ -{% extends 'dcim/device/base.html' %} -{% load static %} - -{% block title %}{{ object }} - Status{% endblock %} - -{% block head %} - -{% endblock %} - -{% block content %} -
-
-
-
-
- Loading... -
-
-
Device Facts
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Hostname
FQDN
Vendor
Model
Serial Number
OS Version
Uptime -
-
-
-
-
-
-
-
-
-
- Loading... -
-
-
Environment
-
- - - - - - - - - - - - - - - - - - -
CPU
Memory
Temperature
Fans
Power
-
-
-
-
-{% endblock %} - -{% block data %} - -{% endblock %} diff --git a/netbox/templates/dcim/device_edit.html b/netbox/templates/dcim/device_edit.html index 1854821629..17780b5133 100644 --- a/netbox/templates/dcim/device_edit.html +++ b/netbox/templates/dcim/device_edit.html @@ -18,7 +18,6 @@
Device
Hardware
- {% render_field form.manufacturer %} {% render_field form.device_type %} {% render_field form.airflow %} {% render_field form.serial %} @@ -29,8 +28,6 @@
Hardware
Location
- {% render_field form.region %} - {% render_field form.site_group %} {% render_field form.site %} {% render_field form.location %} {% render_field form.rack %} @@ -65,6 +62,7 @@
Management
{% render_field form.status %} {% render_field form.platform %} + {% render_field form.config_template %} {% if object.pk %} {% render_field form.primary_ip4 %} {% render_field form.primary_ip6 %} @@ -75,7 +73,6 @@
Management
Virtualization
- {% render_field form.cluster_group %} {% render_field form.cluster %}
diff --git a/netbox/templates/dcim/devicerole.html b/netbox/templates/dcim/devicerole.html index 6724333d91..7c0bf67f64 100644 --- a/netbox/templates/dcim/devicerole.html +++ b/netbox/templates/dcim/devicerole.html @@ -43,20 +43,8 @@
{% checkmark object.vm_role %} - Devices - - {{ device_count }} - - - - Virtual Machines - - {% if object.vm_role %} - {{ virtualmachine_count }} - {% else %} - {{ ''|placeholder }} - {% endif %} - + Config Template + {{ object.config_template|linkify|placeholder }}
@@ -65,6 +53,7 @@
{% plugin_left_page object %}
+ {% include 'inc/panels/related_objects.html' %} {% include 'inc/panels/custom_fields.html' %} {% plugin_right_page object %}
diff --git a/netbox/templates/dcim/devicerole/devices.html b/netbox/templates/dcim/devicerole/devices.html deleted file mode 100644 index d7a69f013f..0000000000 --- a/netbox/templates/dcim/devicerole/devices.html +++ /dev/null @@ -1,20 +0,0 @@ -{% extends 'dcim/devicerole.html' %} -{% load helpers %} -{% load render_table from django_tables2 %} - -{% block content %} - {% include 'inc/table_controls_htmx.html' with table_modal='DeviceTable_config' %} -
- {% csrf_token %} -
-
- {% include 'htmx/table.html' %} -
-
-
-{% endblock content %} - -{% block modals %} - {{ block.super }} - {% table_config_form table %} -{% endblock modals %} \ No newline at end of file diff --git a/netbox/templates/dcim/devicerole/virtual_machines.html b/netbox/templates/dcim/devicerole/virtual_machines.html deleted file mode 100644 index d94e868394..0000000000 --- a/netbox/templates/dcim/devicerole/virtual_machines.html +++ /dev/null @@ -1,20 +0,0 @@ -{% extends 'dcim/devicerole.html' %} -{% load helpers %} -{% load render_table from django_tables2 %} - -{% block content %} - {% include 'inc/table_controls_htmx.html' with table_modal='VirtualMachineTable_config' %} -
- {% csrf_token %} -
-
- {% include 'htmx/table.html' %} -
-
-
-{% endblock content %} - -{% block modals %} - {{ block.super }} - {% table_config_form table %} -{% endblock modals %} \ No newline at end of file diff --git a/netbox/templates/dcim/devicetype.html b/netbox/templates/dcim/devicetype.html index ab2fa3382e..9d18655731 100644 --- a/netbox/templates/dcim/devicetype.html +++ b/netbox/templates/dcim/devicetype.html @@ -27,6 +27,10 @@
Part Number {{ object.part_number|placeholder }} + + Default Platform + {{ object.default_platform|linkify }} + Description {{ object.description|placeholder }} @@ -85,18 +89,15 @@
{% endif %} - - Instances - {{ instance_count }} -
+ {% include 'inc/panels/tags.html' %} {% plugin_left_page object %}
+ {% include 'inc/panels/related_objects.html' %} {% include 'inc/panels/custom_fields.html' %} - {% include 'inc/panels/tags.html' %} {% include 'inc/panels/comments.html' %} {% include 'inc/panels/image_attachments.html' %} {% plugin_right_page object %} diff --git a/netbox/templates/dcim/devicetype/component_templates.html b/netbox/templates/dcim/devicetype/component_templates.html index 002a2044b8..ca552a5555 100644 --- a/netbox/templates/dcim/devicetype/component_templates.html +++ b/netbox/templates/dcim/devicetype/component_templates.html @@ -8,7 +8,7 @@ {% csrf_token %}
{{ title }}
-
+
{% include 'htmx/table.html' %}
@@ -242,7 +242,7 @@
Wireless
Channel Frequency {% if object.rf_channel_frequency %} - {{ object.rf_channel_frequency|simplify_decimal }} MHz + {{ object.rf_channel_frequency|floatformat:"-2" }} MHz {% else %} {{ ''|placeholder }} {% endif %} @@ -250,7 +250,7 @@
Wireless
{% if peer %} {% if peer.rf_channel_frequency %} - {{ peer.rf_channel_frequency|simplify_decimal }} MHz + {{ peer.rf_channel_frequency|floatformat:"-2" }} MHz {% else %} {{ ''|placeholder }} {% endif %} @@ -261,7 +261,7 @@
Wireless
Channel Width {% if object.rf_channel_width %} - {{ object.rf_channel_width|simplify_decimal }} MHz + {{ object.rf_channel_width|floatformat:"-3" }} MHz {% else %} {{ ''|placeholder }} {% endif %} @@ -269,7 +269,7 @@
Wireless
{% if peer %} {% if peer.rf_channel_width %} - {{ peer.rf_channel_width|simplify_decimal }} MHz + {{ peer.rf_channel_width|floatformat:"-3" }} MHz {% else %} {{ ''|placeholder }} {% endif %} @@ -344,13 +344,10 @@
LAG Members
IP Addresses
-
- {% if ipaddress_table.rows %} - {% render_table ipaddress_table 'inc/table.html' %} - {% else %} -
None
- {% endif %} -
+
{% if perms.ipam.add_ipaddress %}
{% include 'inc/panels/tags.html' %} + {% include 'inc/panels/custom_fields.html' %} {% plugin_left_page object %}
- {% include 'inc/panels/custom_fields.html' %} + {% include 'inc/panels/related_objects.html' %} {% include 'inc/panels/contacts.html' %} {% include 'dcim/inc/nonracked_devices.html' %} {% include 'inc/panels/image_attachments.html' %} @@ -92,11 +74,11 @@
-
Locations
-
- {% render_table child_locations_table 'inc/table.html' %} - {% include 'inc/paginator.html' with paginator=child_locations_table.paginator page=child_locations_table.page %} -
+
Child Locations
+
{% plugin_full_width_page object %}
diff --git a/netbox/templates/dcim/manufacturer.html b/netbox/templates/dcim/manufacturer.html index ad975f2eab..a60b3503c8 100644 --- a/netbox/templates/dcim/manufacturer.html +++ b/netbox/templates/dcim/manufacturer.html @@ -42,24 +42,6 @@
Description {{ object.description|placeholder }} - - Device types - - {{ devicetypes_table.rows|length }} - - - - Module types - - {{ module_type_count }} - - - - Inventory Items - - {{ inventory_item_count }} - -
@@ -67,6 +49,7 @@
{% plugin_left_page object %}
+ {% include 'inc/panels/related_objects.html' %} {% include 'inc/panels/custom_fields.html' %} {% include 'inc/panels/contacts.html' %} {% plugin_right_page object %} @@ -74,13 +57,6 @@
-
-
Device Types
-
- {% render_table devicetypes_table 'inc/table.html' %} - {% include 'inc/paginator.html' with paginator=devicetypes_table.paginator page=devicetypes_table.page %} -
-
{% plugin_full_width_page object %}
diff --git a/netbox/templates/dcim/module.html b/netbox/templates/dcim/module.html index 78d5a1a05b..e46bc65f5d 100644 --- a/netbox/templates/dcim/module.html +++ b/netbox/templates/dcim/module.html @@ -81,104 +81,14 @@
Module
- {% include 'inc/panels/custom_fields.html' %} {% include 'inc/panels/tags.html' %} {% include 'inc/panels/comments.html' %} {% plugin_left_page object %} -
-
-
-
Components
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Interfaces - {% with component_count=object.interfaces.count %} - {% if component_count %} - {{ component_count }} - {% else %} - {{ ''|placeholder }} - {% endif %} - {% endwith %} -
Console Ports - {% with component_count=object.consoleports.count %} - {% if component_count %} - {{ component_count }} - {% else %} - {{ ''|placeholder }} - {% endif %} - {% endwith %} -
Console Server Ports - {% with component_count=object.consoleserverports.count %} - {% if component_count %} - {{ component_count }} - {% else %} - {{ ''|placeholder }} - {% endif %} - {% endwith %} -
Power Ports - {% with component_count=object.powerports.count %} - {% if component_count %} - {{ component_count }} - {% else %} - {{ ''|placeholder }} - {% endif %} - {% endwith %} -
Power Outlets - {% with component_count=object.poweroutlets.count %} - {% if component_count %} - {{ component_count }} - {% else %} - {{ ''|placeholder }} - {% endif %} - {% endwith %} -
Front Ports - {% with component_count=object.frontports.count %} - {% if component_count %} - {{ component_count }} - {% else %} - {{ ''|placeholder }} - {% endif %} - {% endwith %} -
Rear Ports - {% with component_count=object.rearports.count %} - {% if component_count %} - {{ component_count }} - {% else %} - {{ ''|placeholder }} - {% endif %} - {% endwith %} -
-
-
- {% plugin_right_page object %} +
+
+ {% include 'inc/panels/related_objects.html' %} + {% include 'inc/panels/custom_fields.html' %} + {% plugin_right_page object %}
diff --git a/netbox/templates/dcim/moduletype.html b/netbox/templates/dcim/moduletype.html index fd0148c2f1..8929678b75 100644 --- a/netbox/templates/dcim/moduletype.html +++ b/netbox/templates/dcim/moduletype.html @@ -36,19 +36,16 @@
Module Type
{% endif %} - - Instances - {{ instance_count }} -
- {% include 'inc/panels/custom_fields.html' %} + {% include 'inc/panels/tags.html' %} + {% include 'inc/panels/comments.html' %} {% plugin_left_page object %}
- {% include 'inc/panels/tags.html' %} - {% include 'inc/panels/comments.html' %} + {% include 'inc/panels/related_objects.html' %} + {% include 'inc/panels/custom_fields.html' %} {% include 'inc/panels/image_attachments.html' %} {% plugin_right_page object %}
diff --git a/netbox/templates/dcim/moduletype/component_templates.html b/netbox/templates/dcim/moduletype/component_templates.html index d2806330a8..15dedc0e1e 100644 --- a/netbox/templates/dcim/moduletype/component_templates.html +++ b/netbox/templates/dcim/moduletype/component_templates.html @@ -8,7 +8,7 @@ {% csrf_token %}
{{ title }}
-
+
{% include 'htmx/table.html' %}
{% include 'inc/panels/tags.html' %} - {% plugin_left_page object %} -
-
NAPALM Arguments +
{{ object.napalm_args|json }}
+ {% plugin_left_page object %} +
+
+ {% include 'inc/panels/related_objects.html' %} {% include 'inc/panels/custom_fields.html' %} {% plugin_right_page object %}
-
-
Devices
-
- {% render_table devices_table 'inc/table.html' %} - {% include 'inc/paginator.html' with paginator=devices_table.paginator page=devices_table.page %} -
-
{% plugin_full_width_page object %}
diff --git a/netbox/templates/dcim/powerfeed.html b/netbox/templates/dcim/powerfeed.html index 4b8a6dc349..bda324f64a 100644 --- a/netbox/templates/dcim/powerfeed.html +++ b/netbox/templates/dcim/powerfeed.html @@ -122,7 +122,7 @@
Connection
{% if not object.mark_connected and not object.cable %}
-
-
- {% csrf_token %} -
-
- {% render_table powerfeed_table 'inc/table.html' %} -
- +
+ + {% csrf_token %} +
+
Power Feeds
+
+ + {% endif %} +
+
+ + {% plugin_full_width_page object %} +
{% endblock %} diff --git a/netbox/templates/dcim/powerport.html b/netbox/templates/dcim/powerport.html index d0ee779cb0..b0b7e2df95 100644 --- a/netbox/templates/dcim/powerport.html +++ b/netbox/templates/dcim/powerport.html @@ -77,10 +77,10 @@
Connection
diff --git a/netbox/templates/dcim/rack.html b/netbox/templates/dcim/rack.html index 2384ca4eea..9cb046b4e4 100644 --- a/netbox/templates/dcim/rack.html +++ b/netbox/templates/dcim/rack.html @@ -1,50 +1,9 @@ -{% extends 'generic/object.html' %} +{% extends 'dcim/rack/base.html' %} {% load buttons %} {% load helpers %} {% load static %} {% load plugins %} -{% block title %}Rack {{ object }}{% endblock %} - -{% block breadcrumbs %} - {{ block.super }} - - {% if object.location %} - {% for location in object.location.get_ancestors %} - - {% endfor %} - - {% endif %} -{% endblock %} - -{% block extra_controls %} -
- {% if prev_rack %} - - {{ prev_rack }} - - {% endif %} - - {% if peer_racks %} -
- - -
- {% endif %} - - {% if next_rack %} - - {{ next_rack }} - - {% endif %} - -
-{% endblock %} - {% block content %}
@@ -109,12 +68,6 @@
Asset Tag {{ object.asset_tag|placeholder }} - - Devices - - {{ device_count }} - - Space Utilization {% utilization_graph object.get_utilization %} @@ -211,90 +164,7 @@
Dimensions
{% include 'inc/panels/custom_fields.html' %} {% include 'inc/panels/tags.html' %} {% include 'inc/panels/comments.html' %} - {% if power_feeds %} -
-
- Power Feeds -
-
- - - - - - - - - {% for powerfeed in power_feeds %} - - - - - - {% with power_port=powerfeed.connected_endpoints.0 %} - {% if power_port %} - - {% else %} - - {% endif %} - {% endwith %} - - {% endfor %} -
PanelFeedStatusTypeUtilization
{{ powerfeed.power_panel|linkify }}{{ powerfeed|linkify }}{% badge powerfeed.get_status_display bg_color=powerfeed.get_status_color %}{% badge powerfeed.get_type_display bg_color=powerfeed.get_type_color %}{% utilization_graph power_port.get_power_draw.allocated|percentage:powerfeed.available_power %}N/A
-
-
- {% endif %} - {% include 'inc/panels/image_attachments.html' %} -
-
- Reservations -
-
- {% if reservations %} - - - - - - - - {% for resv in reservations %} - - - - - - - {% endfor %} -
UnitsTenantDescription
{{ resv|linkify:"unit_list" }}{{ resv.tenant|linkify|placeholder }} - {{ resv.description }}
- {{ resv.user }} · {{ resv.created|annotated_date }} -
- {% if perms.dcim.change_rackreservation %} - - - - {% endif %} - {% if perms.dcim.delete_rackreservation %} - - - - {% endif %} -
- {% else %} -
None
- {% endif %} -
- {% if perms.dcim.add_rackreservation %} - - {% endif %} -
{% plugin_left_page object %}
@@ -319,6 +189,7 @@

Rear

+ {% include 'inc/panels/related_objects.html' %} {% include 'dcim/inc/nonracked_devices.html' %} {% include 'inc/panels/contacts.html' %} {% plugin_right_page object %} diff --git a/netbox/templates/dcim/rack/base.html b/netbox/templates/dcim/rack/base.html new file mode 100644 index 0000000000..16e7b42ec2 --- /dev/null +++ b/netbox/templates/dcim/rack/base.html @@ -0,0 +1,42 @@ +{% extends 'generic/object.html' %} + +{% block title %}Rack {{ object }}{% endblock %} + +{% block breadcrumbs %} + {{ block.super }} + + {% if object.location %} + {% for location in object.location.get_ancestors %} + + {% endfor %} + + {% endif %} +{% endblock %} + +{% block extra_controls %} +
+ {% if prev_rack %} + + {{ prev_rack }} + + {% endif %} + + {% if peer_racks %} +
+ + +
+ {% endif %} + + {% if next_rack %} + + {{ next_rack }} + + {% endif %} + +
+{% endblock %} diff --git a/netbox/templates/dcim/rack/reservations.html b/netbox/templates/dcim/rack/reservations.html new file mode 100644 index 0000000000..fb357e592a --- /dev/null +++ b/netbox/templates/dcim/rack/reservations.html @@ -0,0 +1,43 @@ +{% extends 'dcim/rack/base.html' %} +{% load helpers %} + +{% block content %} + {% include 'inc/table_controls_htmx.html' with table_modal="RackReservationTable_config" %} + +
+ {% csrf_token %} + +
+
+ {% include 'htmx/table.html' %} +
+
+ +
+
+ {% if 'bulk_edit' in actions %} + + {% endif %} + {% if 'bulk_delete' in actions %} + + {% endif %} +
+ {% if perms.dcim.add_rackreservation %} + + {% endif %} +
+
+{% endblock %} + +{% block modals %} + {{ block.super }} + {% table_config_form table %} +{% endblock modals %} diff --git a/netbox/templates/dcim/rack_edit.html b/netbox/templates/dcim/rack_edit.html index 03624df1fb..4bbd72405f 100644 --- a/netbox/templates/dcim/rack_edit.html +++ b/netbox/templates/dcim/rack_edit.html @@ -6,8 +6,6 @@
Rack
- {% render_field form.region %} - {% render_field form.site_group %} {% render_field form.site %} {% render_field form.location %} {% render_field form.name %} diff --git a/netbox/templates/dcim/rackrole.html b/netbox/templates/dcim/rackrole.html index 8c31be4828..2d29450254 100644 --- a/netbox/templates/dcim/rackrole.html +++ b/netbox/templates/dcim/rackrole.html @@ -34,12 +34,6 @@
  - - Racks - - {{ racks_table.rows|length }} - - @@ -47,19 +41,13 @@
{% plugin_left_page object %}
+ {% include 'inc/panels/related_objects.html' %} {% include 'inc/panels/custom_fields.html' %} {% plugin_right_page object %}
-
-
Racks
-
- {% render_table racks_table 'inc/table.html' %} - {% include 'inc/paginator.html' with paginator=racks_table.paginator page=racks_table.page %} -
-
{% plugin_full_width_page object %}
diff --git a/netbox/templates/dcim/rearport.html b/netbox/templates/dcim/rearport.html index f3b02f5a29..0ebb3e04dd 100644 --- a/netbox/templates/dcim/rearport.html +++ b/netbox/templates/dcim/rearport.html @@ -105,16 +105,16 @@
diff --git a/netbox/templates/dcim/region.html b/netbox/templates/dcim/region.html index 8a548dd4ae..85587e4b5e 100644 --- a/netbox/templates/dcim/region.html +++ b/netbox/templates/dcim/region.html @@ -22,9 +22,7 @@
-
- Region -
+
Region
@@ -39,28 +37,27 @@
- - - -
Parent {{ object.parent|linkify|placeholder }}
Sites - {{ sites_table.rows|length }} -
{% include 'inc/panels/tags.html' %} {% include 'inc/panels/custom_fields.html' %} - {% include 'inc/panels/contacts.html' %} {% plugin_left_page object %}
+ {% include 'inc/panels/related_objects.html' %} + {% include 'inc/panels/contacts.html' %} + {% plugin_right_page object %} +
+
+
+
-
- Child Regions -
-
- {% render_table child_regions_table 'inc/table.html' %} -
+
Child Regions
+
{% if perms.dcim.add_region %} {% endif %}
- {% plugin_right_page object %} -
-
-
-
-
-
Sites
-
- {% render_table sites_table 'inc/table.html' %} - {% include 'inc/paginator.html' with paginator=sites_table.paginator page=sites_table.page %} -
-
{% plugin_full_width_page object %}
diff --git a/netbox/templates/dcim/site.html b/netbox/templates/dcim/site.html index a4ee4180fb..d6de8f3cbd 100644 --- a/netbox/templates/dcim/site.html +++ b/netbox/templates/dcim/site.html @@ -126,112 +126,7 @@
Site
{% plugin_left_page object %}
-
-
Related Objects
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Locations - {% if stats.location_count %} - {{ stats.location_count }} - {% else %} - {{ ''|placeholder }} - {% endif %} -
Racks - {% if stats.rack_count %} - - {% else %} - {{ ''|placeholder }} - {% endif %} -
Devices - {% if stats.device_count %} - {{ stats.device_count }} - {% else %} - {{ ''|placeholder }} - {% endif %} -
Virtual Machines - {% if stats.vm_count %} - {{ stats.vm_count }} - {% else %} - {{ ''|placeholder }} - {% endif %} -
Prefixes - {% if stats.prefix_count %} - {{ stats.prefix_count }} - {% else %} - {{ ''|placeholder }} - {% endif %} -
VLAN Groups - {% if stats.vlangroup_count %} - {{ stats.vlangroup_count }} - {% else %} - {{ ''|placeholder }} - {% endif %} -
VLANs - {% if stats.vlan_count %} - {{ stats.vlan_count }} - {% else %} - {{ ''|placeholder }} - {% endif %} -
ASNs - {% if stats.asn_count %} - {{ stats.asn_count }} - {% else %} - {{ ''|placeholder }} - {% endif %} -
Circuits - {% if stats.circuit_count %} - {{ stats.circuit_count }} - {% else %} - {{ ''|placeholder }} - {% endif %} -
-
-
- {% include 'dcim/inc/nonracked_devices.html' %} + {% include 'inc/panels/related_objects.html' with filter_name='site_id' %} {% include 'inc/panels/contacts.html' %}
Locations
@@ -276,40 +171,13 @@
Locations
{% endif %}
-
{% include 'inc/panels/image_attachments.html' %} {% plugin_right_page object %}
+ {% include 'dcim/inc/nonracked_devices.html' %} {% plugin_full_width_page object %}
diff --git a/netbox/templates/dcim/sitegroup.html b/netbox/templates/dcim/sitegroup.html index 3962711478..2cf8e71684 100644 --- a/netbox/templates/dcim/sitegroup.html +++ b/netbox/templates/dcim/sitegroup.html @@ -22,9 +22,7 @@
-
- Site Group -
+
Site Group
@@ -39,12 +37,6 @@
- - - -
Parent {{ object.parent|linkify|placeholder }}
Sites - {{ sites_table.rows|length }} -
@@ -54,13 +46,18 @@
{% plugin_left_page object %}
+ {% include 'inc/panels/related_objects.html' %} + {% plugin_right_page object %} +
+
+
+
-
- Child Groups -
-
- {% render_table child_groups_table 'inc/table.html' %} -
+
Child Groups
+
{% if perms.dcim.add_sitegroup %} {% endif %}
- {% plugin_right_page object %} -
-
-
-
-
-
Sites
-
- {% render_table sites_table 'inc/table.html' %} - {% include 'inc/paginator.html' with paginator=sites_table.paginator page=sites_table.page %} -
-
{% plugin_full_width_page object %}
diff --git a/netbox/templates/dcim/virtualdevicecontext.html b/netbox/templates/dcim/virtualdevicecontext.html index c7b2b96595..d6e3e0c635 100644 --- a/netbox/templates/dcim/virtualdevicecontext.html +++ b/netbox/templates/dcim/virtualdevicecontext.html @@ -49,14 +49,21 @@
{{ object.tenant|linkify|placeholder }} + + Interfaces + + {{ object.interfaces.count }} + + {% plugin_left_page object %} + {% include 'inc/panels/tags.html' %}
+ {% include 'inc/panels/related_objects.html' %} {% include 'inc/panels/comments.html' %} - {% include 'inc/panels/tags.html' %} {% include 'inc/panels/custom_fields.html' %} {% plugin_right_page object %}
@@ -65,10 +72,10 @@
Interfaces
-
- {% render_table interfaces_table 'inc/table.html' %} - {% include 'inc/paginator.html' with paginator=interfaces_table.paginator page=interfaces_table.page %} -
+
{% plugin_full_width_page object %}
diff --git a/netbox/templates/extras/configcontext.html b/netbox/templates/extras/configcontext.html index 56ec52c078..e9513a3a86 100644 --- a/netbox/templates/extras/configcontext.html +++ b/netbox/templates/extras/configcontext.html @@ -3,81 +3,93 @@ {% load static %} {% block content %} -
-
-
-
- Config Context -
-
- - - - - - - - - - - - - - - - - -
Name - {{ object.name }} -
Weight - {{ object.weight }} -
Description{{ object.description|placeholder }}
Active - {% if object.is_active %} - - - - {% else %} - - - - {% endif %} -
-
-
-
-
- Assignment -
-
- - {% for title, objects in assigned_objects %} - - - - - {% endfor %} -
{{ title }} -
    - {% for object in objects %} -
  • {{ object|linkify }}
  • - {% empty %} -
  • None
  • - {% endfor %} -
-
-
-
+
+
+
+
Config Context
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Name{{ object.name }}
Weight{{ object.weight }}
Description{{ object.description|placeholder }}
Active{% checkmark object.is_active %}
Data Source + {% if object.data_source %} + {{ object.data_source }} + {% else %} + {{ ''|placeholder }} + {% endif %} +
Data File + {% if object.data_file %} + {{ object.data_file }} + {% elif object.data_path %} +
+ +
+ {{ object.data_path }} + {% else %} + {{ ''|placeholder }} + {% endif %} +
Data Synced{{ object.data_synced|placeholder }}
-
-
-
-
Data
- {% include 'extras/inc/configcontext_format.html' %} -
-
- {% include 'extras/inc/configcontext_data.html' with data=object.data format=format %} -
-
+
+
+
Assignment
+
+ + {% for title, objects in assigned_objects %} + + + + + {% endfor %} +
{{ title }} +
    + {% for object in objects %} +
  • {{ object|linkify }}
  • + {% empty %} +
  • None
  • + {% endfor %} +
+
+
+
+
+
+
Data
+ {% include 'extras/inc/configcontext_format.html' %} +
+
+ {% include 'inc/sync_warning.html' %} + {% include 'extras/inc/configcontext_data.html' with data=object.data format=format %} +
+
+
+
{% endblock %} diff --git a/netbox/templates/extras/configcontext_list.html b/netbox/templates/extras/configcontext_list.html new file mode 100644 index 0000000000..31e7087ad8 --- /dev/null +++ b/netbox/templates/extras/configcontext_list.html @@ -0,0 +1,10 @@ +{% extends 'generic/object_list.html' %} + +{% block bulk_buttons %} + {% if perms.extras.sync_configcontext %} + + {% endif %} + {{ block.super }} +{% endblock %} diff --git a/netbox/templates/extras/configtemplate.html b/netbox/templates/extras/configtemplate.html new file mode 100644 index 0000000000..937789ee2b --- /dev/null +++ b/netbox/templates/extras/configtemplate.html @@ -0,0 +1,77 @@ +{% extends 'generic/object.html' %} +{% load helpers %} +{% load plugins %} + +{% block content %} +
+
+
+
Config Template
+
+ + + + + + + + + + + + + + + + + + + + + +
Name{{ object.name }}
Description{{ object.description|placeholder }}
Data Source + {% if object.data_source %} + {{ object.data_source }} + {% else %} + {{ ''|placeholder }} + {% endif %} +
Data File + {% if object.data_file %} + {{ object.data_file }} + {% elif object.data_path %} +
+ +
+ {{ object.data_path }} + {% else %} + {{ ''|placeholder }} + {% endif %} +
Data Synced{{ object.data_synced|placeholder }}
+
+
+ {% include 'inc/panels/tags.html' %} + {% plugin_left_page object %} +
+
+
+
Environment Parameters
+
+
{{ object.environment_params }}
+
+
+ {% plugin_right_page object %} +
+
+
+
+
+
Template
+
+ {% include 'inc/sync_warning.html' %} +
{{ object.template_code }}
+
+
+ {% plugin_full_width_page object %} +
+
+{% endblock %} diff --git a/netbox/templates/extras/configtemplate_list.html b/netbox/templates/extras/configtemplate_list.html new file mode 100644 index 0000000000..5a3e8781ef --- /dev/null +++ b/netbox/templates/extras/configtemplate_list.html @@ -0,0 +1,10 @@ +{% extends 'generic/object_list.html' %} + +{% block bulk_buttons %} + {% if perms.extras.sync_configtemplate %} + + {% endif %} + {{ block.super }} +{% endblock %} diff --git a/netbox/templates/extras/customfield.html b/netbox/templates/extras/customfield.html index 4350bb7386..4c103d4c6a 100644 --- a/netbox/templates/extras/customfield.html +++ b/netbox/templates/extras/customfield.html @@ -60,6 +60,10 @@
UI Visibility {{ object.get_ui_visibility_display }} + + Cloneable + {% checkmark object.is_cloneable %} +
diff --git a/netbox/templates/extras/dashboard/reset.html b/netbox/templates/extras/dashboard/reset.html new file mode 100644 index 0000000000..8acbd3f986 --- /dev/null +++ b/netbox/templates/extras/dashboard/reset.html @@ -0,0 +1,8 @@ +{% extends 'generic/confirmation_form.html' %} + +{% block title %}Reset Dashboard?{% endblock %} + +{% block message %} +

This will remove all configured widgets and restore the default dashboard configuration.

+

This change affects on your dashboard, and will not impact other users.

+{% endblock %} diff --git a/netbox/templates/extras/dashboard/widget.html b/netbox/templates/extras/dashboard/widget.html new file mode 100644 index 0000000000..1559363d3e --- /dev/null +++ b/netbox/templates/extras/dashboard/widget.html @@ -0,0 +1,37 @@ +{% load dashboard %} + +
+
+
+
+ +
+
+ +
+ {% if widget.title %} + {{ widget.title }} + {% endif %} +
+
+ {% render_widget widget %} +
+
+
diff --git a/netbox/templates/extras/dashboard/widget_add.html b/netbox/templates/extras/dashboard/widget_add.html new file mode 100644 index 0000000000..70e259b22b --- /dev/null +++ b/netbox/templates/extras/dashboard/widget_add.html @@ -0,0 +1,28 @@ +{% load form_helpers %} + +
+ {% csrf_token %} + + + +
diff --git a/netbox/templates/extras/dashboard/widget_config.html b/netbox/templates/extras/dashboard/widget_config.html new file mode 100644 index 0000000000..58696b863f --- /dev/null +++ b/netbox/templates/extras/dashboard/widget_config.html @@ -0,0 +1,21 @@ +{% load form_helpers %} + +
+ {% csrf_token %} + + + +
diff --git a/netbox/templates/extras/dashboard/widgets/objectcounts.html b/netbox/templates/extras/dashboard/widgets/objectcounts.html new file mode 100644 index 0000000000..d0e604c9a2 --- /dev/null +++ b/netbox/templates/extras/dashboard/widgets/objectcounts.html @@ -0,0 +1,21 @@ +{% load helpers %} + +{% if counts %} +
+ {% for model, count in counts %} + {% if count != None %} + +
+ {{ model|meta:"verbose_name_plural"|bettertitle }} +
{{ count }}
+
+
+ {% else %} +
+ {{ model|meta:"verbose_name_plural"|bettertitle }} +
+
+ {% endif %} + {% endfor %} +
+{% endif %} diff --git a/netbox/templates/extras/dashboard/widgets/objectlist.html b/netbox/templates/extras/dashboard/widgets/objectlist.html new file mode 100644 index 0000000000..76c4e658cd --- /dev/null +++ b/netbox/templates/extras/dashboard/widgets/objectlist.html @@ -0,0 +1,11 @@ +{% if htmx_url and has_permission %} +
+{% elif htmx_url %} +
+ No permission to view this content. +
+{% else %} +
+ Unable to load content. Invalid view name: {{ viewname }} +
+{% endif %} diff --git a/netbox/templates/extras/dashboard/widgets/rssfeed.html b/netbox/templates/extras/dashboard/widgets/rssfeed.html new file mode 100644 index 0000000000..5de3c3105b --- /dev/null +++ b/netbox/templates/extras/dashboard/widgets/rssfeed.html @@ -0,0 +1,22 @@ +{% if not feed.bozo %} +
+ {% for entry in feed.entries %} +
+
{{ entry.title }}
+
+ {{ entry.summary|safe }} +
+
+ {% empty %} +
No content found
+ {% endfor %} +
+{% else %} + {# There was an error retrieving/parsing the feed #} + + There was a problem fetching the RSS feed: + +
+Response status: {{ feed.status }}
+Error: {{ feed.bozo_exception|escape }}
+{% endif %} diff --git a/netbox/templates/extras/exporttemplate.html b/netbox/templates/extras/exporttemplate.html index d142943555..a80db8fca0 100644 --- a/netbox/templates/extras/exporttemplate.html +++ b/netbox/templates/extras/exporttemplate.html @@ -10,66 +10,92 @@ {% endblock %} {% block content %} -
-
-
-
- Export Template -
-
- - - - - - - - - - - - - - - - - - - - - -
Name{{ object.name }}
Description{{ object.description|placeholder }}
MIME Type{{ object.mime_type|placeholder }}
File Extension{{ object.file_extension|placeholder }}
Attachment{% checkmark object.as_attachment %}
-
-
-
-
Assigned Models
-
- - {% for ct in object.content_types.all %} +
+
+
+
Export Template
+
+
+ + + + + + + + - + + - {% endfor %} -
Name{{ object.name }}
Description{{ object.description|placeholder }}
{{ ct }}MIME Type{{ object.mime_type|placeholder }}
+ + File Extension + {{ object.file_extension|placeholder }} + + + Attachment + {% checkmark object.as_attachment %} + + + Data Source + + {% if object.data_source %} + {{ object.data_source }} + {% else %} + {{ ''|placeholder }} + {% endif %} + + + + Data File + + {% if object.data_file %} + {{ object.data_file }} + {% elif object.data_path %} +
+ +
+ {{ object.data_path }} + {% else %} + {{ ''|placeholder }} + {% endif %} + + + + Data Synced + {{ object.data_synced|placeholder }} + + +
+
+
+
Assigned Models
+
+ + {% for ct in object.content_types.all %} + + + + {% endfor %} +
{{ ct }}
+
+ {% plugin_left_page object %}
- {% plugin_left_page object %} -
-
-
-
- Template -
-
-
{{ object.template_code }}
+
+
+
Template
+
+ {% include 'inc/sync_warning.html' %} +
{{ object.template_code }}
+
+ {% plugin_right_page object %}
- {% plugin_right_page object %}
-
-
+
- {% plugin_full_width_page object %} + {% plugin_full_width_page object %}
-
+
{% endblock %} diff --git a/netbox/templates/extras/exporttemplate_list.html b/netbox/templates/extras/exporttemplate_list.html new file mode 100644 index 0000000000..c79f9259a7 --- /dev/null +++ b/netbox/templates/extras/exporttemplate_list.html @@ -0,0 +1,10 @@ +{% extends 'generic/object_list.html' %} + +{% block bulk_buttons %} + {% if perms.extras.sync_configcontext %} + + {% endif %} + {{ block.super }} +{% endblock %} diff --git a/netbox/templates/extras/htmx/report_result.html b/netbox/templates/extras/htmx/report_result.html index ddf2c94f4b..d15898c3d4 100644 --- a/netbox/templates/extras/htmx/report_result.html +++ b/netbox/templates/extras/htmx/report_result.html @@ -2,24 +2,24 @@ {% load helpers %}

- {% if result.started %} - Started: {{ result.started|annotated_date }} - {% elif result.scheduled %} - Scheduled for: {{ result.scheduled|annotated_date }} ({{ result.scheduled|naturaltime }}) + {% if job.started %} + Started: {{ job.started|annotated_date }} + {% elif job.scheduled %} + Scheduled for: {{ job.scheduled|annotated_date }} ({{ job.scheduled|naturaltime }}) {% else %} - Created: {{ result.created|annotated_date }} + Created: {{ job.created|annotated_date }} {% endif %} - {% if result.completed %} - Duration: {{ result.duration }} + {% if job.completed %} + Duration: {{ job.duration }} {% endif %} - {% include 'extras/inc/job_label.html' %} + {% badge job.get_status_display job.get_status_color %}

-{% if result.completed %} +{% if job.completed %}
Report Methods
- {% for method, data in result.data.items %} + {% for method, data in job.data.items %} - {% for method, data in result.data.items %} + {% for method, data in job.data.items %}
{{ method }} @@ -46,7 +46,7 @@
Report Results
{{ method }} @@ -75,6 +75,6 @@
Report Results
-{% elif result.started %} +{% elif job.started %} {% include 'extras/inc/result_pending.html' %} {% endif %} diff --git a/netbox/templates/extras/htmx/script_result.html b/netbox/templates/extras/htmx/script_result.html index fe06b83098..5b2ac8cf39 100644 --- a/netbox/templates/extras/htmx/script_result.html +++ b/netbox/templates/extras/htmx/script_result.html @@ -3,19 +3,19 @@ {% load log_levels %}

- {% if result.started %} - Started: {{ result.started|annotated_date }} - {% elif result.scheduled %} - Scheduled for: {{ result.scheduled|annotated_date }} ({{ result.scheduled|naturaltime }}) + {% if job.started %} + Started: {{ job.started|annotated_date }} + {% elif job.scheduled %} + Scheduled for: {{ job.scheduled|annotated_date }} ({{ job.scheduled|naturaltime }}) {% else %} - Created: {{ result.created|annotated_date }} + Created: {{ job.created|annotated_date }} {% endif %} - {% if result.completed %} - Duration: {{ result.duration }} + {% if job.completed %} + Duration: {{ job.duration }} {% endif %} - {% include 'extras/inc/job_label.html' %} + {% badge job.get_status_display job.get_status_color %}

-{% if result.completed %} +{% if job.completed %}
Script Log
@@ -25,7 +25,7 @@
Script Log
Level Message - {% for log in result.data.log %} + {% for log in job.data.log %} {{ forloop.counter }} {% log_level log.status %} @@ -47,11 +47,11 @@
Script Log
{% endif %}

Output

- {% if result.data.output %} -
{{ result.data.output }}
+ {% if job.data.output %} +
{{ job.data.output }}
{% else %}

None

{% endif %} -{% elif result.started %} +{% elif job.started %} {% include 'extras/inc/result_pending.html' %} {% endif %} diff --git a/netbox/templates/extras/inc/job_label.html b/netbox/templates/extras/inc/job_label.html deleted file mode 100644 index 7ff788edef..0000000000 --- a/netbox/templates/extras/inc/job_label.html +++ /dev/null @@ -1,15 +0,0 @@ -{% if result.status == 'failed' %} - Failed -{% elif result.status == 'errored' %} - Errored -{% elif result.status == 'pending' %} - Pending -{% elif result.status == 'scheduled' %} - Scheduled -{% elif result.status == 'running' %} - Running -{% elif result.status == 'completed' %} - Completed -{% else %} - N/A -{% endif %} diff --git a/netbox/templates/extras/report.html b/netbox/templates/extras/report.html index a3876d3192..fa6b9660f6 100644 --- a/netbox/templates/extras/report.html +++ b/netbox/templates/extras/report.html @@ -1,36 +1,7 @@ -{% extends 'generic/object.html' %} +{% extends 'extras/report/base.html' %} {% load helpers %} {% load form_helpers %} -{% block title %}{{ report.name }}{% endblock %} - -{% block object_identifier %} - {{ report.full_name }} -{% endblock %} - -{% block breadcrumbs %} - - -{% endblock breadcrumbs %} - -{% block subtitle %} - {% if report.description %} -
-
{{ report.description|markdown }}
-
- {% endif %} -{% endblock subtitle %} - -{% block controls %}{% endblock %} - -{% block tabs %} - -{% endblock tabs %} - {% block content %}
{% if perms.extras.run_report %} @@ -55,7 +26,7 @@
{% if report.result %} - Last run: + Last run: {{ report.result.created|annotated_date }} {% endif %} diff --git a/netbox/templates/extras/report/base.html b/netbox/templates/extras/report/base.html new file mode 100644 index 0000000000..3a4bb13a16 --- /dev/null +++ b/netbox/templates/extras/report/base.html @@ -0,0 +1,40 @@ +{% extends 'generic/object.html' %} +{% load helpers %} +{% load form_helpers %} + +{% block title %}{{ report.name }}{% endblock %} + +{% block object_identifier %} + {{ report.full_name }} +{% endblock %} + +{% block breadcrumbs %} + + +{% endblock breadcrumbs %} + +{% block subtitle %} + {% if report.description %} +
+
{{ report.description|markdown }}
+
+ {% endif %} +{% endblock subtitle %} + +{% block controls %}{% endblock %} + +{% block tabs %} + +{% endblock tabs %} diff --git a/netbox/templates/extras/report/jobs.html b/netbox/templates/extras/report/jobs.html new file mode 100644 index 0000000000..a42e290cc1 --- /dev/null +++ b/netbox/templates/extras/report/jobs.html @@ -0,0 +1,15 @@ +{% extends 'extras/report/base.html' %} +{% load render_table from django_tables2 %} + +{% block content %} +
+
+
+
+ {% render_table table 'inc/table.html' %} + {% include 'inc/paginator.html' with paginator=table.paginator page=table.page %} +
+
+
+
+{% endblock %} diff --git a/netbox/templates/extras/report/source.html b/netbox/templates/extras/report/source.html new file mode 100644 index 0000000000..2914f093d0 --- /dev/null +++ b/netbox/templates/extras/report/source.html @@ -0,0 +1,6 @@ +{% extends 'extras/report/base.html' %} + +{% block content %} + {{ report.filename }} +
{{ report.source }}
+{% endblock %} diff --git a/netbox/templates/extras/report_list.html b/netbox/templates/extras/report_list.html index 56b92c96dd..0c27eefda4 100644 --- a/netbox/templates/extras/report_list.html +++ b/netbox/templates/extras/report_list.html @@ -1,5 +1,7 @@ {% extends 'base/layout.html' %} +{% load buttons %} {% load helpers %} +{% load perms %} {% block title %}Reports{% endblock %} @@ -11,86 +13,105 @@ {% endblock tabs %} +{% block controls %} +
+
+ {% block extra_controls %}{% endblock %} + {% add_button model %} +
+
+{% endblock controls %} + {% block content-wrapper %}
- {% if reports %} - {% for module, module_reports in reports %} -
-
- - {{ module|bettertitle }} -
-
- - - - - - - - - - - - {% for report in module_reports %} - - - - - - - - {% for method, stats in report.result.data.items %} + {% for module in report_modules %} +
+
+ {% if perms.extras.delete_reportmodule %} + + {% endif %} + {{ module }} +
+
+ {% include 'inc/sync_warning.html' with object=module %} +
NameStatusDescriptionLast Run
- {{ report.name }} - - {% include 'extras/inc/job_label.html' with result=report.result %} - {{ report.description|markdown|placeholder }} - {% if report.result %} - {{ report.result.created|annotated_date }} - {% else %} - Never - {% endif %} - - {% if perms.extras.run_report %} -
-
- {% csrf_token %} - -
-
- {% endif %} -
+ + + + + + + + + + + {% with jobs=module.get_latest_jobs %} + {% for report_name, report in module.reports.items %} + {% with last_job=jobs|get_key:report.name %} - - + {% if last_job %} + + + {% else %} + + + {% endif %} + - {% endfor %} + {% for method, stats in last_job.data.items %} + + + + + {% endfor %} + {% endwith %} {% endfor %} - -
NameDescriptionLast RunStatus
- {{ method }} + + {{ report.name }} - {{ stats.success }} - {{ stats.info }} - {{ stats.warning }} - {{ stats.failure }} + {{ report.description|markdown|placeholder }} + {{ last_job.created|annotated_date }} + + {% badge last_job.get_status_display last_job.get_status_color %} + Never{{ ''|placeholder }} + {% if perms.extras.run_report %} +
+
+ {% csrf_token %} + +
+
+ {% endif %}
+ {{ method }} + + {{ stats.success }} + {{ stats.info }} + {{ stats.warning }} + {{ stats.failure }} +
-
+ {% endwith %} + +
- {% endfor %} - {% else %} +
+ {% empty %} - {% endif %} + {% endfor %}
{% endblock content-wrapper %} diff --git a/netbox/templates/extras/report_result.html b/netbox/templates/extras/report_result.html index ffa52f9b79..9358af3647 100644 --- a/netbox/templates/extras/report_result.html +++ b/netbox/templates/extras/report_result.html @@ -4,7 +4,7 @@ {% block content-wrapper %}
-
+
{% include 'extras/htmx/report_result.html' %}
@@ -13,8 +13,8 @@ {% block controls %}
- {% if request.user|can_delete:result %} - {% delete_button result %} + {% if request.user|can_delete:job %} + {% delete_button job %} {% endif %}
diff --git a/netbox/templates/extras/script.html b/netbox/templates/extras/script.html index a7093ec151..b7ef2a9089 100644 --- a/netbox/templates/extras/script.html +++ b/netbox/templates/extras/script.html @@ -1,91 +1,47 @@ -{% extends 'generic/object.html' %} +{% extends 'extras/script/base.html' %} {% load helpers %} {% load form_helpers %} {% load log_levels %} -{% block title %}{{ script }}{% endblock %} - -{% block object_identifier %} - {{ script.full_name }} -{% endblock object_identifier %} - -{% block breadcrumbs %} - - -{% endblock breadcrumbs %} - -{% block subtitle %} -
-
{{ script.Meta.description|markdown }}
-
-{% endblock subtitle %} - -{% block controls %}{% endblock %} - -{% block tabs %} - -{% endblock tabs %} - {% block content %} -
-
-
- {% if not perms.extras.run_script %} -
- - You do not have permission to run scripts. -
- {% endif %} -
- {% csrf_token %} -
- {% if form.requires_input %} - {% if script.Meta.fieldsets %} - {# Render grouped fields according to declared fieldsets #} - {% for group, fields in script.Meta.fieldsets %} -
-
-
{{ group }}
-
- {% for name in fields %} - {% with field=form|getfield:name %} - {% render_field field %} - {% endwith %} - {% endfor %} -
- {% endfor %} - {% else %} - {# Render all fields as a single group #} +
+
+ {% if not perms.extras.run_script %} +
+ + You do not have permission to run scripts. +
+ {% endif %} + + {% csrf_token %} +
+ {% if form.requires_input %} + {# Render grouped fields according to declared fieldsets #} + {% for group, fields in script.get_fieldsets %} +
-
Script Data
+
{{ group }}
- {% render_form form %} - {% endif %} - {% else %} -
- - This script does not require any input to run. + {% for name in fields %} + {% with field=form|getfield:name %} + {% render_field field %} + {% endwith %} + {% endfor %}
- {% render_form form %} - {% endif %} -
-
- Cancel - -
- -
+ {% endfor %} + {% else %} +
+ + This script does not require any input to run. +
+ {% render_form form %} + {% endif %} +
+
+ Cancel + +
+
-
- {{ script.filename }} -
{{ script.source }}
-
{% endblock content %} diff --git a/netbox/templates/extras/script/base.html b/netbox/templates/extras/script/base.html new file mode 100644 index 0000000000..118780319f --- /dev/null +++ b/netbox/templates/extras/script/base.html @@ -0,0 +1,39 @@ +{% extends 'generic/object.html' %} +{% load helpers %} +{% load form_helpers %} +{% load log_levels %} + +{% block title %}{{ script }}{% endblock %} + +{% block object_identifier %} + {{ script.full_name }} +{% endblock object_identifier %} + +{% block breadcrumbs %} + + +{% endblock breadcrumbs %} + +{% block subtitle %} +
+
{{ script.Meta.description|markdown }}
+
+{% endblock subtitle %} + +{% block controls %}{% endblock %} + +{% block tabs %} + +{% endblock tabs %} diff --git a/netbox/templates/extras/script/jobs.html b/netbox/templates/extras/script/jobs.html new file mode 100644 index 0000000000..c550e5de74 --- /dev/null +++ b/netbox/templates/extras/script/jobs.html @@ -0,0 +1,15 @@ +{% extends 'extras/script/base.html' %} +{% load render_table from django_tables2 %} + +{% block content %} +
+
+
+
+ {% render_table table 'inc/table.html' %} + {% include 'inc/paginator.html' with paginator=table.paginator page=table.page %} +
+
+
+
+{% endblock %} diff --git a/netbox/templates/extras/script/source.html b/netbox/templates/extras/script/source.html new file mode 100644 index 0000000000..733f6a1f3a --- /dev/null +++ b/netbox/templates/extras/script/source.html @@ -0,0 +1,6 @@ +{% extends 'extras/script/base.html' %} + +{% block content %} + {{ script.filename }} +
{{ script.source }}
+{% endblock %} diff --git a/netbox/templates/extras/script_list.html b/netbox/templates/extras/script_list.html index 1f34f4d5eb..bccbce5890 100644 --- a/netbox/templates/extras/script_list.html +++ b/netbox/templates/extras/script_list.html @@ -1,8 +1,18 @@ {% extends 'base/layout.html' %} +{% load buttons %} {% load helpers %} {% block title %}Scripts{% endblock %} +{% block controls %} +
+
+ {% block extra_controls %}{% endblock %} + {% add_button model %} +
+
+{% endblock controls %} + {% block tabs %}
{% endblock content-wrapper %} diff --git a/netbox/templates/extras/script_result.html b/netbox/templates/extras/script_result.html index bff3fc61ea..4dfd7482a8 100644 --- a/netbox/templates/extras/script_result.html +++ b/netbox/templates/extras/script_result.html @@ -16,8 +16,8 @@
@@ -28,8 +28,8 @@ {% block controls %}
- {% if request.user|can_delete:result %} - {% delete_button result %} + {% if request.user|can_delete:job %} + {% delete_button job %} {% endif %}
@@ -47,7 +47,7 @@
-
+
{% include 'extras/htmx/script_result.html' %}
diff --git a/netbox/templates/extras/webhook.html b/netbox/templates/extras/webhook.html index 78aaaa1053..11fdcafb94 100644 --- a/netbox/templates/extras/webhook.html +++ b/netbox/templates/extras/webhook.html @@ -40,6 +40,14 @@
Delete {% checkmark object.type_delete %} + + Job start + {% checkmark object.type_job_start %} + + + Job end + {% checkmark object.type_job_end %} +
diff --git a/netbox/templates/generic/bulk_import.html b/netbox/templates/generic/bulk_import.html index 92223b04fc..4396585b29 100644 --- a/netbox/templates/generic/bulk_import.html +++ b/netbox/templates/generic/bulk_import.html @@ -15,15 +15,20 @@ {% block tabs %} {% endblock tabs %} @@ -31,45 +36,66 @@
{# Data Import Form #} -
- {% block content %} -
-
-
- {% csrf_token %} - {% render_field form.data %} - {% render_field form.format %} -
-
- - {% if return_url %} - Cancel - {% endif %} -
-
-
+
+
+
+
+ {% csrf_token %} + + {% render_field form.data %} + {% render_field form.format %} +
+
+ + {% if return_url %} + Cancel + {% endif %}
-
- {% endblock content %} +
+ +
+
{# File Upload Form #} -
-
-
- {% csrf_token %} - {% render_field form.data_file %} - {% render_field form.format %} -
-
- - {% if return_url %} - Cancel - {% endif %} -
-
-
-
+
+
+
+ {% csrf_token %} + + {% render_field form.upload_file %} + {% render_field form.format %} +
+
+ + {% if return_url %} + Cancel + {% endif %} +
+
+
+
+
+ + {# DataFile Form #} +
+
+
+ {% csrf_token %} + + {% render_field form.data_source %} + {% render_field form.data_file %} + {% render_field form.format %} +
+
+ + {% if return_url %} + Cancel + {% endif %} +
+
+
+
{% if fields %} diff --git a/netbox/templates/generic/object.html b/netbox/templates/generic/object.html index 023726a30e..d3a6174551 100644 --- a/netbox/templates/generic/object.html +++ b/netbox/templates/generic/object.html @@ -11,7 +11,6 @@ breadcrumbs: Breadcrumb list items (HTML
  • elements) object_identifier: Unique identifier for the object extra_controls: Additional action buttons to display - extra_tabs: Additional tabs to include content: Page content Context: @@ -84,9 +83,6 @@ {{ object|meta:"verbose_name"|bettertitle }}
  • - {# Include any extra tabs passed by the view #} - {% block extra_tabs %}{% endblock %} - {# Include tabs for registered model views #} {% model_view_tabs object %} diff --git a/netbox/templates/generic/object_edit.html b/netbox/templates/generic/object_edit.html index ff2ca26ad1..26ceb79878 100644 --- a/netbox/templates/generic/object_edit.html +++ b/netbox/templates/generic/object_edit.html @@ -1,6 +1,4 @@ {% extends 'base/layout.html' %} -{% load form_helpers %} -{% load helpers %} {% comment %} Blocks: @@ -48,55 +46,11 @@
    {% csrf_token %} - {% block form %} - {% if form.fieldsets %} - - {# Render hidden fields #} - {% for field in form.hidden_fields %} - {{ field }} - {% endfor %} - - {# Render grouped fields according to Form #} - {% for group, fields in form.fieldsets %} -
    - {% if group %} -
    -
    {{ group }}
    -
    - {% endif %} - {% for name in fields %} - {% with field=form|getfield:name %} - {% if not field.field.widget.is_hidden %} - {% render_field field %} - {% endif %} - {% endwith %} - {% endfor %} -
    - {% endfor %} - - {% if form.custom_fields %} -
    -
    -
    Custom Fields
    -
    - {% render_custom_fields form %} -
    - {% endif %} - - {% if form.comments %} -
    - {% render_field form.comments %} -
    - {% endif %} - - {% else %} - {# Render all fields in a single group #} -
    - {% render_form form %} -
    - {% endif %} - - {% endblock form %} +
    + {% block form %} + {% include 'htmx/form.html' %} + {% endblock form %} +
    {% block buttons %} @@ -120,3 +74,7 @@
    Custom Fields
    {% endblock content-wrapper %} + +{% block modals %} + {% include 'inc/htmx_modal.html' with size='lg' %} +{% endblock %} diff --git a/netbox/templates/generic/object_list.html b/netbox/templates/generic/object_list.html index e269e9da62..b80fb7288d 100644 --- a/netbox/templates/generic/object_list.html +++ b/netbox/templates/generic/object_list.html @@ -109,7 +109,7 @@ {% endif %}
    -
    +
    {% include 'htmx/table.html' %}
    diff --git a/netbox/templates/home.html b/netbox/templates/home.html index f98d0ccf30..414ac3488f 100644 --- a/netbox/templates/home.html +++ b/netbox/templates/home.html @@ -3,79 +3,69 @@ {% load render_table from django_tables2 %} {% block header %} - {% if new_release %} - {# new_release is set only if the current user is a superuser or staff member #} -
    - -
    - {% endif %} + {% if new_release %} + {# new_release is set only if the current user is a superuser or staff member #} +
    + +
    + {% endif %} {% endblock %} {% block title %}Home{% endblock %} {% block content-wrapper %} -
    - {# General stats #} -
    - {% for section, items, icon in stats %} -
    -
    -
    - - {{ section }} -
    -
    -
    - {% for item in items %} - {% if item.permission in perms %} - -
    - {{ item.label }} -

    {{ item.count }}

    -
    -
    - {% else %} -
  • -
    - {{ item.label }} -

    - -

    -
    -
  • - {% endif %} - {% endfor %} -
    -
    -
    -
    - {% endfor %} + {# Render the user's customized dashboard #} +
    + {% for widget in dashboard %} + {% include 'extras/dashboard/widget.html' %} + {% endfor %} +
    +
    +
    +
    + +
    - - {# Changelog #} - {% if perms.extras.view_objectchange %} -
    -
    -
    -
    - - Change Log -
    -
    - {% render_table changelog_table 'inc/table.html' %} -
    -
    -
    +
    +
    +
    +
    + +
    + - {% endif %} +
    {% endblock content-wrapper %} + +{% block modals %} + {% include 'inc/htmx_modal.html' %} +{% endblock modals %} diff --git a/netbox/templates/htmx/form.html b/netbox/templates/htmx/form.html new file mode 100644 index 0000000000..09360d9965 --- /dev/null +++ b/netbox/templates/htmx/form.html @@ -0,0 +1,50 @@ +{% load form_helpers %} + +{% if form.fieldsets %} + + {# Render hidden fields #} + {% for field in form.hidden_fields %} + {{ field }} + {% endfor %} + + {# Render grouped fields according to Form #} + {% for group, fields in form.fieldsets %} +
    + {% if group %} +
    +
    {{ group }}
    +
    + {% endif %} + {% for name in fields %} + {% with field=form|getfield:name %} + {% if field and not field.field.widget.is_hidden %} + {% render_field field %} + {% endif %} + {% endwith %} + {% endfor %} +
    + {% endfor %} + + {% if form.custom_fields %} +
    +
    +
    Custom Fields
    +
    + {% render_custom_fields form %} +
    + {% endif %} + + {% if form.comments %} +
    + {% render_field form.comments %} +
    + {% endif %} + +{% else %} + + {# Render all fields in a single group #} +
    + {% render_form form %} +
    + +{% endif %} diff --git a/netbox/templates/htmx/object_selector.html b/netbox/templates/htmx/object_selector.html new file mode 100644 index 0000000000..f0b6da4040 --- /dev/null +++ b/netbox/templates/htmx/object_selector.html @@ -0,0 +1,32 @@ +{% load form_helpers %} + + + diff --git a/netbox/templates/htmx/object_selector_results.html b/netbox/templates/htmx/object_selector_results.html new file mode 100644 index 0000000000..67529967e5 --- /dev/null +++ b/netbox/templates/htmx/object_selector_results.html @@ -0,0 +1,13 @@ + diff --git a/netbox/templates/htmx/table.html b/netbox/templates/htmx/table.html index 6f168ac52d..8d56a44274 100644 --- a/netbox/templates/htmx/table.html +++ b/netbox/templates/htmx/table.html @@ -4,10 +4,10 @@ {% with preferences|get_key:"pagination.placement" as paginator_placement %} {% if paginator_placement == 'top' or paginator_placement == 'both' %} - {% include 'inc/paginator_htmx.html' with paginator=table.paginator page=table.page %} + {% include 'inc/paginator_htmx.html' with table=table paginator=table.paginator page=table.page %} {% endif %} {% render_table table 'inc/table_htmx.html' %} {% if paginator_placement != 'top' %} - {% include 'inc/paginator_htmx.html' with paginator=table.paginator page=table.page %} + {% include 'inc/paginator_htmx.html' with table=table paginator=table.paginator page=table.page %} {% endif %} {% endwith %} diff --git a/netbox/templates/import_success.html b/netbox/templates/import_success.html deleted file mode 100644 index 122555b810..0000000000 --- a/netbox/templates/import_success.html +++ /dev/null @@ -1,17 +0,0 @@ -{% extends 'base/layout.html' %} -{% load render_table from django_tables2 %} - -{% block title %}Import Completed{% endblock %} - -{% block content %} -
    - {% render_table table 'inc/table.html' %} -
    - {% if return_url %} - View All - {% endif %} - - - Import More - -{% endblock content %} diff --git a/netbox/templates/inc/htmx_modal.html b/netbox/templates/inc/htmx_modal.html index d15e5b799d..5361fc5f76 100644 --- a/netbox/templates/inc/htmx_modal.html +++ b/netbox/templates/inc/htmx_modal.html @@ -1,5 +1,5 @@
    - {% render_field form.nat_region %} - {% render_field form.nat_site_group %} - {% render_field form.nat_site %} - {% render_field form.nat_rack %} {% render_field form.nat_device %}
    - {% render_field form.nat_cluster %} {% render_field form.nat_virtual_machine %}
    diff --git a/netbox/templates/ipam/iprange.html b/netbox/templates/ipam/iprange.html index 6ba9e4bea1..93c3c28894 100644 --- a/netbox/templates/ipam/iprange.html +++ b/netbox/templates/ipam/iprange.html @@ -30,7 +30,12 @@
    Utilization - {% utilization_graph object.utilization %} + {% if object.mark_utilized %} + {% utilization_graph 100 warning_threshold=0 danger_threshold=0 %} + (Marked fully utilized) + {% else %} + {% utilization_graph object.utilization %} + {% endif %} diff --git a/netbox/templates/ipam/iprange/ip_addresses.html b/netbox/templates/ipam/iprange/ip_addresses.html index 61b2ee335c..9f77f6c78e 100644 --- a/netbox/templates/ipam/iprange/ip_addresses.html +++ b/netbox/templates/ipam/iprange/ip_addresses.html @@ -16,7 +16,7 @@ {% csrf_token %}
    -
    +
    {% include 'htmx/table.html' %}
    diff --git a/netbox/templates/ipam/l2vpn.html b/netbox/templates/ipam/l2vpn.html index 4ffda2c98b..87050eb268 100644 --- a/netbox/templates/ipam/l2vpn.html +++ b/netbox/templates/ipam/l2vpn.html @@ -55,9 +55,10 @@
    L2VPN Attributes
    Terminations
    -
    - {% render_table terminations_table 'inc/table.html' %} -
    +
    {% if perms.ipam.add_l2vpntermination %}
    @@ -69,19 +39,13 @@
    {% plugin_left_page object %}
    + {% include 'inc/panels/related_objects.html' %} {% include 'inc/panels/custom_fields.html' %} {% plugin_right_page object %}
    -
    -
    Prefixes
    -
    - {% render_table prefixes_table 'inc/table.html' %} - {% include 'inc/paginator.html' with paginator=prefixes_table.paginator page=prefixes_table.page %} -
    -
    {% plugin_full_width_page object %}
    diff --git a/netbox/templates/ipam/routetarget.html b/netbox/templates/ipam/routetarget.html index ea7a98c97f..fae9866b54 100644 --- a/netbox/templates/ipam/routetarget.html +++ b/netbox/templates/ipam/routetarget.html @@ -25,16 +25,52 @@
    Route Target
    {% include 'inc/panels/tags.html' %} + {% plugin_left_page object %} +
    +
    {% include 'inc/panels/custom_fields.html' %} {% include 'inc/panels/comments.html' %} - {% plugin_left_page object %} + {% plugin_right_page object %}
    +
    +
    -
    - {% include 'inc/panel_table.html' with table=importing_vrfs_table heading="Importing VRFs" %} +
    +
    Importing VRFs
    +
    +
    +
    +
    +
    +
    Exporting VRFs
    +
    +
    +
    +
    +
    +
    +
    +
    Importing L2VPNs
    +
    +
    +
    +
    +
    +
    Exporting L2VPNs
    +
    - {% include 'inc/panel_table.html' with table=exporting_vrfs_table heading="Exporting VRFs" %} - {% plugin_right_page object %}
    diff --git a/netbox/templates/ipam/vlan.html b/netbox/templates/ipam/vlan.html index c0f68bae22..4dcd2318a8 100644 --- a/netbox/templates/ipam/vlan.html +++ b/netbox/templates/ipam/vlan.html @@ -81,24 +81,22 @@
    -
    -
    -
    - Prefixes -
    -
    - {% render_table prefix_table 'inc/table.html' %} -
    - {% if perms.ipam.add_prefix %} - - {% endif %} +
    +
    +
    Prefixes
    +
    + {% if perms.ipam.add_prefix %} + - {% plugin_full_width_page object %} + {% endif %}
    + {% plugin_full_width_page object %} +
    {% endblock %} diff --git a/netbox/templates/ipam/vlan/interfaces.html b/netbox/templates/ipam/vlan/interfaces.html index 5707d53642..f7bcc85630 100644 --- a/netbox/templates/ipam/vlan/interfaces.html +++ b/netbox/templates/ipam/vlan/interfaces.html @@ -7,7 +7,7 @@
    {% csrf_token %}
    -
    +
    {% include 'htmx/table.html' %}
    diff --git a/netbox/templates/ipam/vlan/vminterfaces.html b/netbox/templates/ipam/vlan/vminterfaces.html index ef4a0730a4..a485b33ebb 100644 --- a/netbox/templates/ipam/vlan/vminterfaces.html +++ b/netbox/templates/ipam/vlan/vminterfaces.html @@ -7,7 +7,7 @@ {% csrf_token %}
    -
    +
    {% include 'htmx/table.html' %}
    diff --git a/netbox/templates/ipam/vlan_edit.html b/netbox/templates/ipam/vlan_edit.html index 0c4b68e7e4..7b8c85cb85 100644 --- a/netbox/templates/ipam/vlan_edit.html +++ b/netbox/templates/ipam/vlan_edit.html @@ -43,12 +43,9 @@
    Assignment
    - {% render_field form.scope_type %} {% render_field form.group %}
    - {% render_field form.region %} - {% render_field form.sitegroup %} {% render_field form.site %}
    diff --git a/netbox/templates/ipam/vlangroup.html b/netbox/templates/ipam/vlangroup.html index 822b4a0460..2917536be5 100644 --- a/netbox/templates/ipam/vlangroup.html +++ b/netbox/templates/ipam/vlangroup.html @@ -42,12 +42,6 @@
    VLAN Group
    Permitted VIDs {{ object.min_vid }} - {{ object.max_vid }} - - VLANs - - {{ vlans_count }} - -
    @@ -55,6 +49,7 @@
    VLAN Group
    {% plugin_left_page object %}
    + {% include 'inc/panels/related_objects.html' %} {% include 'inc/panels/custom_fields.html' %} {% plugin_right_page object %}
    diff --git a/netbox/templates/ipam/vrf.html b/netbox/templates/ipam/vrf.html index b53862f9e7..c365efae36 100644 --- a/netbox/templates/ipam/vrf.html +++ b/netbox/templates/ipam/vrf.html @@ -35,25 +35,14 @@
    Description {{ object.description|placeholder }} - - Prefixes - - {{ prefix_count }} - - - - IP Addresses - - {{ ipaddress_count }} - -
    + {% include 'inc/panels/tags.html' %} {% plugin_left_page object %}
    - {% include 'inc/panels/tags.html' %} + {% include 'inc/panels/related_objects.html' %} {% include 'inc/panels/custom_fields.html' %} {% include 'inc/panels/comments.html' %} {% plugin_right_page object %} diff --git a/netbox/templates/search.html b/netbox/templates/search.html index e801422c96..74eaaac206 100644 --- a/netbox/templates/search.html +++ b/netbox/templates/search.html @@ -30,7 +30,7 @@
    -
    +
    {% include 'htmx/table.html' %}
    diff --git a/netbox/templates/tenancy/contact.html b/netbox/templates/tenancy/contact.html index d92226137b..f249a8858f 100644 --- a/netbox/templates/tenancy/contact.html +++ b/netbox/templates/tenancy/contact.html @@ -67,19 +67,15 @@
    Contact
    Description {{ object.description|placeholder }} - - Assignments - {{ assignment_count }} -
    - {% include 'inc/panels/comments.html' %} + {% include 'inc/panels/tags.html' %} {% plugin_left_page object %}
    + {% include 'inc/panels/comments.html' %} {% include 'inc/panels/custom_fields.html' %} - {% include 'inc/panels/tags.html' %} {% plugin_right_page object %}
    @@ -87,10 +83,10 @@
    Contact
    Assignments
    -
    - {% render_table assignments_table 'inc/table.html' %} - {% include 'inc/paginator.html' with paginator=assignments_table.paginator page=assignments_table.page %} -
    +
    {% plugin_full_width_page object %}
    diff --git a/netbox/templates/tenancy/contactgroup.html b/netbox/templates/tenancy/contactgroup.html index 3f13dc932f..ca2fdaffa8 100644 --- a/netbox/templates/tenancy/contactgroup.html +++ b/netbox/templates/tenancy/contactgroup.html @@ -31,12 +31,6 @@
    Parent {{ object.parent|linkify|placeholder }} - - Contacts - - {{ contacts_table.rows|length }} - -
    @@ -44,35 +38,26 @@
    {% plugin_left_page object %}
    + {% include 'inc/panels/related_objects.html' %} {% include 'inc/panels/custom_fields.html' %} -
    -
    - Child Groups -
    -
    - {% render_table child_groups_table 'inc/table.html' %} -
    - {% if perms.tenancy.add_contactgroup %} - - {% endif %} -
    {% plugin_right_page object %}
    -
    -
    -
    -
    Contacts
    -
    - {% render_table contacts_table 'inc/table.html' %} - {% include 'inc/paginator.html' with paginator=contacts_table.paginator page=contacts_table.page %} +
    +
    +
    Child Groups
    +
    + {% if perms.tenancy.add_contactgroup %} + -
    - {% plugin_full_width_page object %} + {% endif %}
    + {% plugin_full_width_page object %}
    {% endblock %} diff --git a/netbox/templates/tenancy/contactrole.html b/netbox/templates/tenancy/contactrole.html index 85b78578a0..bb48024230 100644 --- a/netbox/templates/tenancy/contactrole.html +++ b/netbox/templates/tenancy/contactrole.html @@ -22,12 +22,6 @@
    Contact Role
    Description {{ object.description|placeholder }} - - Assignments - - {{ assignment_count }} - -
    @@ -35,19 +29,13 @@
    Contact Role
    {% plugin_left_page object %}
    + {% include 'inc/panels/related_objects.html' %} {% include 'inc/panels/custom_fields.html' %} {% plugin_right_page object %}
    -
    -
    Assigned Contacts
    -
    - {% render_table contacts_table 'inc/table.html' %} - {% include 'inc/paginator.html' with paginator=contacts_table.paginator page=contacts_table.page %} -
    -
    {% plugin_full_width_page object %}
    diff --git a/netbox/templates/tenancy/tenant.html b/netbox/templates/tenancy/tenant.html index c13145f42e..da48f1ef59 100644 --- a/netbox/templates/tenancy/tenant.html +++ b/netbox/templates/tenancy/tenant.html @@ -10,127 +10,37 @@ {% endblock breadcrumbs %} {% block content %} -
    -
    -
    -
    - Tenant -
    -
    - - - - - - - - - -
    Group{{ object.group|linkify|placeholder }}
    Description{{ object.description|placeholder }}
    -
    +
    +
    +
    +
    Tenant
    +
    + + + + + + + + + +
    Group{{ object.group|linkify|placeholder }}
    Description{{ object.description|placeholder }}
    - {% include 'inc/panels/custom_fields.html' %} - {% include 'inc/panels/tags.html' %} - {% include 'inc/panels/comments.html' %} - {% include 'inc/panels/contacts.html' %} - {% plugin_left_page object %} -
    -
    -
    -
    - Stats -
    -
    - - -
    -

    {{ stats.rackreservation_count }}

    -

    Rack reservations

    -
    -
    -

    {{ stats.location_count }}

    -

    Locations

    -
    -
    -

    {{ stats.device_count }}

    -

    Devices

    -
    -
    -

    {{ stats.vdc_count }}

    -

    Virtual Device Contexts

    -
    - - -
    -

    {{ stats.aggregate_count }}

    -

    Aggregates

    -
    - -
    -

    {{ stats.prefix_count }}

    -

    Prefixes

    -
    -
    -

    {{ stats.iprange_count }}

    -

    IP Ranges

    -
    -
    -

    {{ stats.ipaddress_count }}

    -

    IP addresses

    -
    - - - - -
    -

    {{ stats.circuit_count }}

    -

    Circuits

    -
    -
    -

    {{ stats.virtualmachine_count }}

    -

    Virtual machines

    -
    -
    -

    {{ stats.cluster_count }}

    -

    Clusters

    -
    -
    -

    {{ stats.wirelesslan_count }}

    -

    Wireless LANs

    -
    -
    -

    {{ stats.wirelesslink_count }}

    -

    Wireless Links

    -
    -
    -
    - {% plugin_right_page object %} +
    + {% include 'inc/panels/custom_fields.html' %} + {% include 'inc/panels/tags.html' %} + {% include 'inc/panels/comments.html' %} + {% include 'inc/panels/contacts.html' %} + {% plugin_left_page object %} +
    +
    + {% include 'inc/panels/related_objects.html' %} + {% plugin_right_page object %}
    -
    -
    +
    +
    - {% plugin_full_width_page object %} + {% plugin_full_width_page object %}
    -
    +
    {% endblock %} diff --git a/netbox/templates/tenancy/tenantgroup.html b/netbox/templates/tenancy/tenantgroup.html index 25f1fef1b8..be9b3fbd0b 100644 --- a/netbox/templates/tenancy/tenantgroup.html +++ b/netbox/templates/tenancy/tenantgroup.html @@ -39,12 +39,6 @@
    Parent {{ object.parent|linkify|placeholder }} - - Tenants - - {{ tenants_table.rows|length }} - -
    @@ -52,6 +46,7 @@
    {% plugin_left_page object %}
    + {% include 'inc/panels/related_objects.html' %} {% include 'inc/panels/custom_fields.html' %} {% plugin_right_page object %}
    @@ -59,11 +54,18 @@
    -
    Tenants
    -
    - {% render_table tenants_table 'inc/table.html' %} - {% include 'inc/paginator.html' with paginator=tenants_table.paginator page=tenants_table.page %} -
    +
    Child Groups
    +
    + {% if perms.tenancy.add_tenantgroup %} + + {% endif %}
    {% plugin_full_width_page object %}
    diff --git a/netbox/templates/virtualization/cluster.html b/netbox/templates/virtualization/cluster.html index 5f34a82c50..3dfef108be 100644 --- a/netbox/templates/virtualization/cluster.html +++ b/netbox/templates/virtualization/cluster.html @@ -44,10 +44,6 @@
    Site {{ object.site|linkify|placeholder }} - - Virtual Machines - {{ object.virtual_machines.count }} -
    diff --git a/netbox/templates/virtualization/cluster/devices.html b/netbox/templates/virtualization/cluster/devices.html index cb4a1b3ee7..0837982332 100644 --- a/netbox/templates/virtualization/cluster/devices.html +++ b/netbox/templates/virtualization/cluster/devices.html @@ -8,7 +8,7 @@ {% csrf_token %}
    -
    +
    {% include 'htmx/table.html' %}
    diff --git a/netbox/templates/virtualization/cluster/virtual_machines.html b/netbox/templates/virtualization/cluster/virtual_machines.html index 9cb33258f8..79c489d6bd 100644 --- a/netbox/templates/virtualization/cluster/virtual_machines.html +++ b/netbox/templates/virtualization/cluster/virtual_machines.html @@ -8,7 +8,7 @@ {% csrf_token %}
    -
    +
    {% include 'htmx/table.html' %}
    diff --git a/netbox/templates/virtualization/clustergroup.html b/netbox/templates/virtualization/clustergroup.html index 1da700cafc..5104330689 100644 --- a/netbox/templates/virtualization/clustergroup.html +++ b/netbox/templates/virtualization/clustergroup.html @@ -28,12 +28,6 @@
    Description {{ object.description|placeholder }} - - Clusters - - {{ clusters_table.rows|length }} - -
    @@ -41,6 +35,7 @@
    {% plugin_left_page object %}
    + {% include 'inc/panels/related_objects.html' %} {% include 'inc/panels/custom_fields.html' %} {% include 'inc/panels/contacts.html' %} {% plugin_right_page object %} @@ -48,13 +43,6 @@
    -
    -
    Clusters
    -
    - {% render_table clusters_table 'inc/table.html' %} - {% include 'inc/paginator.html' with paginator=clusters_table.paginator page=clusters_table.page %} -
    -
    {% plugin_full_width_page object %}
    diff --git a/netbox/templates/virtualization/clustertype.html b/netbox/templates/virtualization/clustertype.html index e0ddc90e04..2881fc1da4 100644 --- a/netbox/templates/virtualization/clustertype.html +++ b/netbox/templates/virtualization/clustertype.html @@ -31,7 +31,7 @@
    Clusters - {{ clusters_table.rows|length }} + {{ object.clusters.count }} @@ -41,19 +41,13 @@
    {% plugin_left_page object %}
    + {% include 'inc/panels/related_objects.html' %} {% include 'inc/panels/custom_fields.html' %} {% plugin_right_page object %}
    -
    -
    Clusters
    -
    - {% render_table clusters_table 'inc/table.html' %} - {% include 'inc/paginator.html' with paginator=clusters_table.paginator page=clusters_table.page %} -
    -
    {% plugin_full_width_page object %}
    diff --git a/netbox/templates/virtualization/virtualmachine.html b/netbox/templates/virtualization/virtualmachine.html index 9b57084865..5098a2f8ff 100644 --- a/netbox/templates/virtualization/virtualmachine.html +++ b/netbox/templates/virtualization/virtualmachine.html @@ -144,7 +144,20 @@
    Resources
    - {% include 'inc/panels/services.html' %} +
    +
    Services
    +
    + {% if perms.ipam.add_service %} + + {% endif %} +
    {% include 'inc/panels/contacts.html' %} {% plugin_right_page object %} diff --git a/netbox/templates/virtualization/virtualmachine/interfaces.html b/netbox/templates/virtualization/virtualmachine/interfaces.html index eff98cdd66..71456d1042 100644 --- a/netbox/templates/virtualization/virtualmachine/interfaces.html +++ b/netbox/templates/virtualization/virtualmachine/interfaces.html @@ -9,7 +9,7 @@ {% csrf_token %}
    -
    +
    {% include 'htmx/table.html' %}
    diff --git a/netbox/templates/virtualization/vminterface.html b/netbox/templates/virtualization/vminterface.html index 635654f86c..a7d4d92ba4 100644 --- a/netbox/templates/virtualization/vminterface.html +++ b/netbox/templates/virtualization/vminterface.html @@ -80,16 +80,11 @@
    + {% include 'inc/panels/related_objects.html' %} {% include 'inc/panels/custom_fields.html' %} {% plugin_right_page object %}
    @@ -57,11 +52,18 @@
    Wireless LAN Group
    -
    Wireless LANs
    -
    - {% render_table wirelesslans_table 'inc/table.html' %} - {% include 'inc/paginator.html' with paginator=wirelesslans_table.paginator page=wirelesslans_table.page %} -
    +
    Child Groups
    +
    + {% if perms.wireless.add_wirelesslangroup %} + + {% endif %}
    {% plugin_full_width_page object %}
    diff --git a/netbox/tenancy/api/nested_serializers.py b/netbox/tenancy/api/nested_serializers.py index 2f95eca8c6..d2d76d96ca 100644 --- a/netbox/tenancy/api/nested_serializers.py +++ b/netbox/tenancy/api/nested_serializers.py @@ -1,3 +1,4 @@ +from drf_spectacular.utils import extend_schema_serializer from rest_framework import serializers from netbox.api.serializers import WritableNestedSerializer @@ -17,6 +18,9 @@ # Tenants # +@extend_schema_serializer( + exclude_fields=('tenant_count',), +) class NestedTenantGroupSerializer(WritableNestedSerializer): url = serializers.HyperlinkedIdentityField(view_name='tenancy-api:tenantgroup-detail') tenant_count = serializers.IntegerField(read_only=True) @@ -39,6 +43,9 @@ class Meta: # Contacts # +@extend_schema_serializer( + exclude_fields=('contact_count',), +) class NestedContactGroupSerializer(WritableNestedSerializer): url = serializers.HyperlinkedIdentityField(view_name='tenancy-api:contactgroup-detail') contact_count = serializers.IntegerField(read_only=True) diff --git a/netbox/tenancy/api/serializers.py b/netbox/tenancy/api/serializers.py index c8ef771178..75d68a4a59 100644 --- a/netbox/tenancy/api/serializers.py +++ b/netbox/tenancy/api/serializers.py @@ -1,5 +1,6 @@ from django.contrib.auth.models import ContentType -from drf_yasg.utils import swagger_serializer_method +from drf_spectacular.types import OpenApiTypes +from drf_spectacular.utils import extend_schema_field from rest_framework import serializers from netbox.api.fields import ChoiceField, ContentTypeField @@ -98,7 +99,7 @@ class ContactAssignmentSerializer(NetBoxModelSerializer): object = serializers.SerializerMethodField(read_only=True) contact = NestedContactSerializer() role = NestedContactRoleSerializer(required=False, allow_null=True) - priority = ChoiceField(choices=ContactPriorityChoices, allow_blank=True, required=False, default='') + priority = ChoiceField(choices=ContactPriorityChoices, allow_blank=True, required=False, default=lambda: '') class Meta: model = ContactAssignment @@ -107,7 +108,7 @@ class Meta: 'last_updated', ] - @swagger_serializer_method(serializer_or_field=serializers.JSONField) + @extend_schema_field(OpenApiTypes.OBJECT) def get_object(self, instance): serializer = get_serializer_for_model(instance.content_type.model_class(), prefix=NESTED_SERIALIZER_PREFIX) context = {'request': self.context['request']} diff --git a/netbox/tenancy/filtersets.py b/netbox/tenancy/filtersets.py index ab74949ff4..1edc8fdc87 100644 --- a/netbox/tenancy/filtersets.py +++ b/netbox/tenancy/filtersets.py @@ -81,6 +81,10 @@ def search(self, queryset, name, value): class ContactAssignmentFilterSet(ChangeLoggedModelFilterSet): + q = django_filters.CharFilter( + method='search', + label=_('Search'), + ) content_type = ContentTypeFilter() contact_id = django_filters.ModelMultipleChoiceFilter( queryset=Contact.objects.all(), @@ -101,6 +105,14 @@ class Meta: model = ContactAssignment fields = ['id', 'content_type_id', 'object_id', 'priority'] + def search(self, queryset, name, value): + if not value.strip(): + return queryset + return queryset.filter( + Q(contact__name__icontains=value) | + Q(role__name__icontains=value) + ) + class ContactModelFilterSet(django_filters.FilterSet): contact = django_filters.ModelMultipleChoiceFilter( diff --git a/netbox/tenancy/forms/bulk_edit.py b/netbox/tenancy/forms/bulk_edit.py index ab882fe7ed..34ca352397 100644 --- a/netbox/tenancy/forms/bulk_edit.py +++ b/netbox/tenancy/forms/bulk_edit.py @@ -1,10 +1,13 @@ from django import forms from netbox.forms import NetBoxModelBulkEditForm +from tenancy.choices import ContactPriorityChoices from tenancy.models import * -from utilities.forms import CommentField, DynamicModelChoiceField +from utilities.forms import add_blank_choice +from utilities.forms.fields import CommentField, DynamicModelChoiceField __all__ = ( + 'ContactAssignmentBulkEditForm', 'ContactBulkEditForm', 'ContactGroupBulkEditForm', 'ContactRoleBulkEditForm', @@ -114,3 +117,24 @@ class ContactBulkEditForm(NetBoxModelBulkEditForm): (None, ('group', 'title', 'phone', 'email', 'address', 'link', 'description')), ) nullable_fields = ('group', 'title', 'phone', 'email', 'address', 'link', 'description', 'comments') + + +class ContactAssignmentBulkEditForm(NetBoxModelBulkEditForm): + contact = DynamicModelChoiceField( + queryset=Contact.objects.all(), + required=False + ) + role = DynamicModelChoiceField( + queryset=ContactRole.objects.all(), + required=False + ) + priority = forms.ChoiceField( + choices=add_blank_choice(ContactPriorityChoices), + required=False + ) + + model = ContactAssignment + fieldsets = ( + (None, ('contact', 'role', 'priority')), + ) + nullable_fields = ('priority',) diff --git a/netbox/tenancy/forms/bulk_import.py b/netbox/tenancy/forms/bulk_import.py index 8a251a3167..f9b8accd9a 100644 --- a/netbox/tenancy/forms/bulk_import.py +++ b/netbox/tenancy/forms/bulk_import.py @@ -1,7 +1,7 @@ from django.utils.translation import gettext as _ from netbox.forms import NetBoxModelImportForm from tenancy.models import * -from utilities.forms import CSVModelChoiceField, SlugField +from utilities.forms.fields import CSVModelChoiceField, SlugField __all__ = ( 'ContactImportForm', diff --git a/netbox/tenancy/forms/filtersets.py b/netbox/tenancy/forms/filtersets.py index c5d7fca0cd..626d267858 100644 --- a/netbox/tenancy/forms/filtersets.py +++ b/netbox/tenancy/forms/filtersets.py @@ -1,11 +1,18 @@ +from django import forms +from django.contrib.contenttypes.models import ContentType from django.utils.translation import gettext as _ +from extras.utils import FeatureQuery from netbox.forms import NetBoxModelFilterSetForm +from tenancy.choices import * from tenancy.models import * from tenancy.forms import ContactModelFilterForm -from utilities.forms import DynamicModelMultipleChoiceField, TagFilterField +from utilities.forms.fields import ( + ContentTypeMultipleChoiceField, DynamicModelMultipleChoiceField, TagFilterField, +) __all__ = ( + 'ContactAssignmentFilterForm', 'ContactFilterForm', 'ContactGroupFilterForm', 'ContactRoleFilterForm', @@ -71,3 +78,36 @@ class ContactFilterForm(NetBoxModelFilterSetForm): label=_('Group') ) tag = TagFilterField(model) + + +class ContactAssignmentFilterForm(NetBoxModelFilterSetForm): + model = ContactAssignment + fieldsets = ( + (None, ('q', 'filter_id')), + ('Assignment', ('content_type_id', 'group_id', 'contact_id', 'role_id', 'priority')), + ) + content_type_id = ContentTypeMultipleChoiceField( + queryset=ContentType.objects.all(), + limit_choices_to=FeatureQuery('custom_fields'), + required=False, + label=_('Object type') + ) + group_id = DynamicModelMultipleChoiceField( + queryset=ContactGroup.objects.all(), + required=False, + label=_('Group') + ) + contact_id = DynamicModelMultipleChoiceField( + queryset=Contact.objects.all(), + required=False, + label=_('Contact') + ) + role_id = DynamicModelMultipleChoiceField( + queryset=ContactRole.objects.all(), + required=False, + label=_('Role') + ) + priority = forms.MultipleChoiceField( + choices=ContactPriorityChoices, + required=False + ) diff --git a/netbox/tenancy/forms/forms.py b/netbox/tenancy/forms/forms.py index 5e78bc5405..789566e94b 100644 --- a/netbox/tenancy/forms/forms.py +++ b/netbox/tenancy/forms/forms.py @@ -2,7 +2,7 @@ from django.utils.translation import gettext as _ from tenancy.models import * -from utilities.forms import DynamicModelChoiceField, DynamicModelMultipleChoiceField +from utilities.forms.fields import DynamicModelChoiceField, DynamicModelMultipleChoiceField __all__ = ( 'ContactModelFilterForm', diff --git a/netbox/tenancy/forms/model_forms.py b/netbox/tenancy/forms/model_forms.py index b466c94b2f..6d6534d40e 100644 --- a/netbox/tenancy/forms/model_forms.py +++ b/netbox/tenancy/forms/model_forms.py @@ -2,9 +2,8 @@ from netbox.forms import NetBoxModelForm from tenancy.models import * -from utilities.forms import ( - BootstrapMixin, CommentField, DynamicModelChoiceField, SlugField, SmallTextarea, StaticSelect, -) +from utilities.forms import BootstrapMixin +from utilities.forms.fields import CommentField, DynamicModelChoiceField, SlugField __all__ = ( 'ContactAssignmentForm', @@ -112,7 +111,7 @@ class Meta: 'group', 'name', 'title', 'phone', 'email', 'address', 'link', 'description', 'comments', 'tags', ) widgets = { - 'address': SmallTextarea(attrs={'rows': 3}), + 'address': forms.Textarea(attrs={'rows': 3}), } @@ -142,5 +141,4 @@ class Meta: widgets = { 'content_type': forms.HiddenInput(), 'object_id': forms.HiddenInput(), - 'priority': StaticSelect(), } diff --git a/netbox/tenancy/graphql/schema.py b/netbox/tenancy/graphql/schema.py index de0a1781a7..8c46488209 100644 --- a/netbox/tenancy/graphql/schema.py +++ b/netbox/tenancy/graphql/schema.py @@ -1,24 +1,44 @@ import graphene from netbox.graphql.fields import ObjectField, ObjectListField +from tenancy import models from .types import * +from utilities.graphql_optimizer import gql_query_optimizer class TenancyQuery(graphene.ObjectType): tenant = ObjectField(TenantType) tenant_list = ObjectListField(TenantType) + def resolve_tenant_list(root, info, **kwargs): + return gql_query_optimizer(models.Tenant.objects.all(), info) + tenant_group = ObjectField(TenantGroupType) tenant_group_list = ObjectListField(TenantGroupType) + def resolve_tenant_group_list(root, info, **kwargs): + return gql_query_optimizer(models.TenantGroup.objects.all(), info) + contact = ObjectField(ContactType) contact_list = ObjectListField(ContactType) + def resolve_contact_list(root, info, **kwargs): + return gql_query_optimizer(models.Contact.objects.all(), info) + contact_role = ObjectField(ContactRoleType) contact_role_list = ObjectListField(ContactRoleType) + def resolve_contact_role_list(root, info, **kwargs): + return gql_query_optimizer(models.ContactRole.objects.all(), info) + contact_group = ObjectField(ContactGroupType) contact_group_list = ObjectListField(ContactGroupType) + def resolve_contact_group_list(root, info, **kwargs): + return gql_query_optimizer(models.ContactGroup.objects.all(), info) + contact_assignment = ObjectField(ContactAssignmentType) contact_assignment_list = ObjectListField(ContactAssignmentType) + + def resolve_contact_assignment_list(root, info, **kwargs): + return gql_query_optimizer(models.ContactAssignment.objects.all(), info) diff --git a/netbox/tenancy/migrations/0010_tenant_relax_uniqueness.py b/netbox/tenancy/migrations/0010_tenant_relax_uniqueness.py new file mode 100644 index 0000000000..6082fbfe99 --- /dev/null +++ b/netbox/tenancy/migrations/0010_tenant_relax_uniqueness.py @@ -0,0 +1,39 @@ +# Generated by Django 4.1.7 on 2023-03-01 01:01 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('tenancy', '0009_standardize_description_comments'), + ] + + operations = [ + migrations.AlterField( + model_name='tenant', + name='name', + field=models.CharField(max_length=100), + ), + migrations.AlterField( + model_name='tenant', + name='slug', + field=models.SlugField(max_length=100), + ), + migrations.AddConstraint( + model_name='tenant', + constraint=models.UniqueConstraint(fields=('group', 'name'), name='tenancy_tenant_unique_group_name', violation_error_message='Tenant name must be unique per group.'), + ), + migrations.AddConstraint( + model_name='tenant', + constraint=models.UniqueConstraint(condition=models.Q(('group__isnull', True)), fields=('name',), name='tenancy_tenant_unique_name'), + ), + migrations.AddConstraint( + model_name='tenant', + constraint=models.UniqueConstraint(fields=('group', 'slug'), name='tenancy_tenant_unique_group_slug', violation_error_message='Tenant slug must be unique per group.'), + ), + migrations.AddConstraint( + model_name='tenant', + constraint=models.UniqueConstraint(condition=models.Q(('group__isnull', True)), fields=('slug',), name='tenancy_tenant_unique_slug'), + ), + ] diff --git a/netbox/tenancy/models/contacts.py b/netbox/tenancy/models/contacts.py index 4fa8d87cba..440541b5f9 100644 --- a/netbox/tenancy/models/contacts.py +++ b/netbox/tenancy/models/contacts.py @@ -4,7 +4,6 @@ from django.urls import reverse from netbox.models import ChangeLoggedModel, NestedGroupModel, OrganizationalModel, PrimaryModel -from netbox.models.features import WebhooksMixin from tenancy.choices import * __all__ = ( @@ -93,7 +92,7 @@ def get_absolute_url(self): return reverse('tenancy:contact', args=[self.pk]) -class ContactAssignment(WebhooksMixin, ChangeLoggedModel): +class ContactAssignment(ChangeLoggedModel): content_type = models.ForeignKey( to=ContentType, on_delete=models.CASCADE diff --git a/netbox/tenancy/models/tenants.py b/netbox/tenancy/models/tenants.py index 4c0c11e2ae..a41b8bf995 100644 --- a/netbox/tenancy/models/tenants.py +++ b/netbox/tenancy/models/tenants.py @@ -1,5 +1,6 @@ from django.contrib.contenttypes.fields import GenericRelation from django.db import models +from django.db.models import Q from django.urls import reverse from netbox.models import NestedGroupModel, PrimaryModel @@ -36,12 +37,10 @@ class Tenant(PrimaryModel): department. """ name = models.CharField( - max_length=100, - unique=True + max_length=100 ) slug = models.SlugField( - max_length=100, - unique=True + max_length=100 ) group = models.ForeignKey( to='tenancy.TenantGroup', @@ -62,6 +61,28 @@ class Tenant(PrimaryModel): class Meta: ordering = ['name'] + constraints = ( + models.UniqueConstraint( + fields=('group', 'name'), + name='%(app_label)s_%(class)s_unique_group_name', + violation_error_message="Tenant name must be unique per group." + ), + models.UniqueConstraint( + fields=('name',), + name='%(app_label)s_%(class)s_unique_name', + condition=Q(group__isnull=True) + ), + models.UniqueConstraint( + fields=('group', 'slug'), + name='%(app_label)s_%(class)s_unique_group_slug', + violation_error_message="Tenant slug must be unique per group." + ), + models.UniqueConstraint( + fields=('slug',), + name='%(app_label)s_%(class)s_unique_slug', + condition=Q(group__isnull=True) + ), + ) def __str__(self): return self.name diff --git a/netbox/tenancy/tables/contacts.py b/netbox/tenancy/tables/contacts.py index d906f0c638..0c697af790 100644 --- a/netbox/tenancy/tables/contacts.py +++ b/netbox/tenancy/tables/contacts.py @@ -58,7 +58,9 @@ class ContactTable(NetBoxTable): linkify=linkify_phone, ) comments = columns.MarkdownColumn() - assignment_count = tables.Column( + assignment_count = columns.LinkedCountColumn( + viewname='tenancy:contactassignment_list', + url_params={'contact_id': 'pk'}, verbose_name='Assignments' ) tags = columns.TagColumn( diff --git a/netbox/tenancy/tests/test_views.py b/netbox/tenancy/tests/test_views.py index 0ac5b16d41..2151a6e8ba 100644 --- a/netbox/tenancy/tests/test_views.py +++ b/netbox/tenancy/tests/test_views.py @@ -1,3 +1,8 @@ +from django.contrib.contenttypes.models import ContentType +from django.urls import reverse + +from dcim.models import Site +from tenancy.choices import ContactPriorityChoices from tenancy.models import * from utilities.testing import ViewTestCases, create_tags @@ -223,3 +228,89 @@ def setUpTestData(cls): cls.bulk_edit_data = { 'group': contact_groups[1].pk, } + + +class ContactAssignmentTestCase( + ViewTestCases.CreateObjectViewTestCase, + ViewTestCases.EditObjectViewTestCase, + ViewTestCases.DeleteObjectViewTestCase, + ViewTestCases.ListObjectsViewTestCase, + ViewTestCases.BulkEditObjectsViewTestCase, + ViewTestCases.BulkDeleteObjectsViewTestCase +): + model = ContactAssignment + + @classmethod + def setUpTestData(cls): + + sites = ( + Site(name='Site 1', slug='site-1'), + Site(name='Site 2', slug='site-2'), + Site(name='Site 3', slug='site-3'), + Site(name='Site 4', slug='site-4'), + ) + Site.objects.bulk_create(sites) + + contacts = ( + Contact(name='Contact 1'), + Contact(name='Contact 2'), + Contact(name='Contact 3'), + Contact(name='Contact 4'), + ) + Contact.objects.bulk_create(contacts) + + contact_roles = ( + ContactRole(name='Contact Role 1', slug='contact-role-1'), + ContactRole(name='Contact Role 2', slug='contact-role-2'), + ContactRole(name='Contact Role 3', slug='contact-role-3'), + ContactRole(name='Contact Role 4', slug='contact-role-4'), + ) + ContactRole.objects.bulk_create(contact_roles) + + assignments = ( + ContactAssignment( + object=sites[0], + contact=contacts[0], + role=contact_roles[0], + priority=ContactPriorityChoices.PRIORITY_PRIMARY + ), + ContactAssignment( + object=sites[1], + contact=contacts[1], + role=contact_roles[1], + priority=ContactPriorityChoices.PRIORITY_SECONDARY + ), + ContactAssignment( + object=sites[2], + contact=contacts[2], + role=contact_roles[2], + priority=ContactPriorityChoices.PRIORITY_TERTIARY + ), + ) + ContactAssignment.objects.bulk_create(assignments) + + tags = create_tags('Alpha', 'Bravo', 'Charlie') + + cls.form_data = { + 'content_type': ContentType.objects.get_for_model(Site).pk, + 'object_id': sites[3].pk, + 'contact': contacts[3].pk, + 'role': contact_roles[3].pk, + 'priority': ContactPriorityChoices.PRIORITY_INACTIVE, + 'tags': [t.pk for t in tags], + } + + cls.bulk_edit_data = { + 'role': contact_roles[3].pk, + 'priority': ContactPriorityChoices.PRIORITY_INACTIVE, + } + + def _get_url(self, action, instance=None): + # Override creation URL to append content_type & object_id parameters + if action == 'add': + url = reverse('tenancy:contactassignment_add') + content_type = ContentType.objects.get_for_model(Site).pk + object_id = Site.objects.first().pk + return f"{url}?content_type={content_type}&object_id={object_id}" + + return super()._get_url(action, instance=instance) diff --git a/netbox/tenancy/urls.py b/netbox/tenancy/urls.py index 3b5addaece..87491ea0e5 100644 --- a/netbox/tenancy/urls.py +++ b/netbox/tenancy/urls.py @@ -47,7 +47,10 @@ path('contacts//', include(get_model_urls('tenancy', 'contact'))), # Contact assignments + path('contact-assignments/', views.ContactAssignmentListView.as_view(), name='contactassignment_list'), path('contact-assignments/add/', views.ContactAssignmentEditView.as_view(), name='contactassignment_add'), + path('contact-assignments/edit/', views.ContactAssignmentBulkEditView.as_view(), name='contactassignment_bulk_edit'), + path('contact-assignments/delete/', views.ContactAssignmentBulkDeleteView.as_view(), name='contactassignment_bulk_delete'), path('contact-assignments//', include(get_model_urls('tenancy', 'contactassignment'))), ] diff --git a/netbox/tenancy/views.py b/netbox/tenancy/views.py index 3ee39f0a73..ba7249c8d4 100644 --- a/netbox/tenancy/views.py +++ b/netbox/tenancy/views.py @@ -1,5 +1,6 @@ from django.contrib.contenttypes.models import ContentType from django.shortcuts import get_object_or_404 +from django.utils.translation import gettext as _ from circuits.models import Circuit from dcim.models import Cable, Device, Location, Rack, RackReservation, Site, VirtualDeviceContext @@ -35,14 +36,13 @@ class TenantGroupView(generic.ObjectView): queryset = TenantGroup.objects.all() def get_extra_context(self, request, instance): - tenants = Tenant.objects.restrict(request.user, 'view').filter( - group=instance + groups = instance.get_descendants(include_self=True) + related_models = ( + (Tenant.objects.restrict(request.user, 'view').filter(group__in=groups), 'group_id'), ) - tenants_table = tables.TenantTable(tenants, user=request.user, exclude=('group',)) - tenants_table.configure(request) return { - 'tenants_table': tenants_table, + 'related_models': related_models, } @@ -60,7 +60,6 @@ class TenantGroupDeleteView(generic.ObjectDeleteView): class TenantGroupBulkImportView(generic.BulkImportView): queryset = TenantGroup.objects.all() model_form = forms.TenantGroupImportForm - table = tables.TenantGroupTable class TenantGroupBulkEditView(generic.BulkEditView): @@ -104,31 +103,36 @@ class TenantView(generic.ObjectView): queryset = Tenant.objects.all() def get_extra_context(self, request, instance): - stats = { - 'site_count': Site.objects.restrict(request.user, 'view').filter(tenant=instance).count(), - 'rack_count': Rack.objects.restrict(request.user, 'view').filter(tenant=instance).count(), - 'rackreservation_count': RackReservation.objects.restrict(request.user, 'view').filter(tenant=instance).count(), - 'location_count': Location.objects.restrict(request.user, 'view').filter(tenant=instance).count(), - 'device_count': Device.objects.restrict(request.user, 'view').filter(tenant=instance).count(), - 'vdc_count': VirtualDeviceContext.objects.restrict(request.user, 'view').filter(tenant=instance).count(), - 'vrf_count': VRF.objects.restrict(request.user, 'view').filter(tenant=instance).count(), - 'aggregate_count': Aggregate.objects.restrict(request.user, 'view').filter(tenant=instance).count(), - 'prefix_count': Prefix.objects.restrict(request.user, 'view').filter(tenant=instance).count(), - 'iprange_count': IPRange.objects.restrict(request.user, 'view').filter(tenant=instance).count(), - 'ipaddress_count': IPAddress.objects.restrict(request.user, 'view').filter(tenant=instance).count(), - 'vlan_count': VLAN.objects.restrict(request.user, 'view').filter(tenant=instance).count(), - 'l2vpn_count': L2VPN.objects.restrict(request.user, 'view').filter(tenant=instance).count(), - 'circuit_count': Circuit.objects.restrict(request.user, 'view').filter(tenant=instance).count(), - 'virtualmachine_count': VirtualMachine.objects.restrict(request.user, 'view').filter(tenant=instance).count(), - 'cluster_count': Cluster.objects.restrict(request.user, 'view').filter(tenant=instance).count(), - 'cable_count': Cable.objects.restrict(request.user, 'view').filter(tenant=instance).count(), - 'asn_count': ASN.objects.restrict(request.user, 'view').filter(tenant=instance).count(), - 'wirelesslan_count': WirelessLAN.objects.restrict(request.user, 'view').filter(tenant=instance).count(), - 'wirelesslink_count': WirelessLink.objects.restrict(request.user, 'view').filter(tenant=instance).count(), - } + related_models = [ + # DCIM + (Site.objects.restrict(request.user, 'view').filter(tenant=instance), 'tenant_id'), + (Rack.objects.restrict(request.user, 'view').filter(tenant=instance), 'tenant_id'), + (RackReservation.objects.restrict(request.user, 'view').filter(tenant=instance), 'tenant_id'), + (Location.objects.restrict(request.user, 'view').filter(tenant=instance), 'tenant_id'), + (Device.objects.restrict(request.user, 'view').filter(tenant=instance), 'tenant_id'), + (VirtualDeviceContext.objects.restrict(request.user, 'view').filter(tenant=instance), 'tenant_id'), + (Cable.objects.restrict(request.user, 'view').filter(tenant=instance), 'tenant_id'), + # IPAM + (VRF.objects.restrict(request.user, 'view').filter(tenant=instance), 'tenant_id'), + (Aggregate.objects.restrict(request.user, 'view').filter(tenant=instance), 'tenant_id'), + (Prefix.objects.restrict(request.user, 'view').filter(tenant=instance), 'tenant_id'), + (IPRange.objects.restrict(request.user, 'view').filter(tenant=instance), 'tenant_id'), + (IPAddress.objects.restrict(request.user, 'view').filter(tenant=instance), 'tenant_id'), + (ASN.objects.restrict(request.user, 'view').filter(tenant=instance), 'tenant_id'), + (VLAN.objects.restrict(request.user, 'view').filter(tenant=instance), 'tenant_id'), + (L2VPN.objects.restrict(request.user, 'view').filter(tenant=instance), 'tenant_id'), + # Circuits + (Circuit.objects.restrict(request.user, 'view').filter(tenant=instance), 'tenant_id'), + # Virtualization + (VirtualMachine.objects.restrict(request.user, 'view').filter(tenant=instance), 'tenant_id'), + (Cluster.objects.restrict(request.user, 'view').filter(tenant=instance), 'tenant_id'), + # Wireless + (WirelessLAN.objects.restrict(request.user, 'view').filter(tenant=instance), 'tenant_id'), + (WirelessLink.objects.restrict(request.user, 'view').filter(tenant=instance), 'tenant_id'), + ] return { - 'stats': stats, + 'related_models': related_models, } @@ -146,7 +150,6 @@ class TenantDeleteView(generic.ObjectDeleteView): class TenantBulkImportView(generic.BulkImportView): queryset = Tenant.objects.all() model_form = forms.TenantImportForm - table = tables.TenantTable class TenantBulkEditView(generic.BulkEditView): @@ -184,29 +187,13 @@ class ContactGroupView(generic.ObjectView): queryset = ContactGroup.objects.all() def get_extra_context(self, request, instance): - child_groups = ContactGroup.objects.add_related_count( - ContactGroup.objects.all(), - Contact, - 'group', - 'contact_count', - cumulative=True - ).restrict(request.user, 'view').filter( - parent__in=instance.get_descendants(include_self=True) + groups = instance.get_descendants(include_self=True) + related_models = ( + (Contact.objects.restrict(request.user, 'view').filter(group__in=groups), 'group_id'), ) - child_groups_table = tables.ContactGroupTable(child_groups) - child_groups_table.columns.hide('actions') - - contacts = Contact.objects.restrict(request.user, 'view').filter( - group=instance - ).annotate( - assignment_count=count_related(ContactAssignment, 'contact') - ) - contacts_table = tables.ContactTable(contacts, user=request.user, exclude=('group',)) - contacts_table.configure(request) return { - 'child_groups_table': child_groups_table, - 'contacts_table': contacts_table, + 'related_models': related_models, } @@ -224,7 +211,6 @@ class ContactGroupDeleteView(generic.ObjectDeleteView): class ContactGroupBulkImportView(generic.BulkImportView): queryset = ContactGroup.objects.all() model_form = forms.ContactGroupImportForm - table = tables.ContactGroupTable class ContactGroupBulkEditView(generic.BulkEditView): @@ -268,16 +254,12 @@ class ContactRoleView(generic.ObjectView): queryset = ContactRole.objects.all() def get_extra_context(self, request, instance): - contact_assignments = ContactAssignment.objects.restrict(request.user, 'view').filter( - role=instance + related_models = ( + (ContactAssignment.objects.restrict(request.user, 'view').filter(role=instance), 'role_id'), ) - contacts_table = tables.ContactAssignmentTable(contact_assignments, user=request.user) - contacts_table.columns.hide('role') - contacts_table.configure(request) return { - 'contacts_table': contacts_table, - 'assignment_count': ContactAssignment.objects.filter(role=instance).count(), + 'related_models': related_models, } @@ -295,7 +277,6 @@ class ContactRoleDeleteView(generic.ObjectDeleteView): class ContactRoleBulkImportView(generic.BulkImportView): queryset = ContactRole.objects.all() model_form = forms.ContactRoleImportForm - table = tables.ContactRoleTable class ContactRoleBulkEditView(generic.BulkEditView): @@ -328,19 +309,6 @@ class ContactListView(generic.ObjectListView): class ContactView(generic.ObjectView): queryset = Contact.objects.all() - def get_extra_context(self, request, instance): - contact_assignments = ContactAssignment.objects.restrict(request.user, 'view').filter( - contact=instance - ) - assignments_table = tables.ContactAssignmentTable(contact_assignments, user=request.user) - assignments_table.columns.hide('contact') - assignments_table.configure(request) - - return { - 'assignments_table': assignments_table, - 'assignment_count': ContactAssignment.objects.filter(contact=instance).count(), - } - @register_model_view(Contact, 'edit') class ContactEditView(generic.ObjectEditView): @@ -356,7 +324,6 @@ class ContactDeleteView(generic.ObjectDeleteView): class ContactBulkImportView(generic.BulkImportView): queryset = Contact.objects.all() model_form = forms.ContactImportForm - table = tables.ContactTable class ContactBulkEditView(generic.BulkEditView): @@ -380,6 +347,13 @@ class ContactBulkDeleteView(generic.BulkDeleteView): # Contact assignments # +class ContactAssignmentListView(generic.ObjectListView): + queryset = ContactAssignment.objects.all() + filterset = filtersets.ContactAssignmentFilterSet + filterset_form = forms.ContactAssignmentFilterForm + table = tables.ContactAssignmentTable + + @register_model_view(ContactAssignment, 'edit') class ContactAssignmentEditView(generic.ObjectEditView): queryset = ContactAssignment.objects.all() @@ -400,6 +374,19 @@ def get_extra_addanother_params(self, request): } +class ContactAssignmentBulkEditView(generic.BulkEditView): + queryset = ContactAssignment.objects.all() + filterset = filtersets.ContactAssignmentFilterSet + table = tables.ContactAssignmentTable + form = forms.ContactAssignmentBulkEditForm + + +class ContactAssignmentBulkDeleteView(generic.BulkDeleteView): + queryset = ContactAssignment.objects.all() + filterset = filtersets.ContactAssignmentFilterSet + table = tables.ContactAssignmentTable + + @register_model_view(ContactAssignment, 'delete') class ContactAssignmentDeleteView(generic.ObjectDeleteView): queryset = ContactAssignment.objects.all() diff --git a/netbox/users/api/nested_serializers.py b/netbox/users/api/nested_serializers.py index 0d8f7ae42f..3510184ae9 100644 --- a/netbox/users/api/nested_serializers.py +++ b/netbox/users/api/nested_serializers.py @@ -1,6 +1,7 @@ from django.contrib.auth.models import Group, User from django.contrib.contenttypes.models import ContentType -from drf_yasg.utils import swagger_serializer_method +from drf_spectacular.utils import extend_schema_field +from drf_spectacular.types import OpenApiTypes from rest_framework import serializers from netbox.api.fields import ContentTypeField @@ -30,6 +31,7 @@ class Meta: model = User fields = ['id', 'url', 'display', 'username'] + @extend_schema_field(OpenApiTypes.STR) def get_display(self, obj): if full_name := obj.get_full_name(): return f"{obj.username} ({full_name})" @@ -57,10 +59,10 @@ class Meta: model = ObjectPermission fields = ['id', 'url', 'display', 'name', 'enabled', 'object_types', 'groups', 'users', 'actions'] - @swagger_serializer_method(serializer_or_field=serializers.ListField) + @extend_schema_field(serializers.ListField) def get_groups(self, obj): return [g.name for g in obj.groups.all()] - @swagger_serializer_method(serializer_or_field=serializers.ListField) + @extend_schema_field(serializers.ListField) def get_users(self, obj): return [u.username for u in obj.users.all()] diff --git a/netbox/users/api/serializers.py b/netbox/users/api/serializers.py index 3194a2d28d..1b975791f4 100644 --- a/netbox/users/api/serializers.py +++ b/netbox/users/api/serializers.py @@ -1,6 +1,8 @@ from django.conf import settings from django.contrib.auth.models import Group, User from django.contrib.contenttypes.models import ContentType +from drf_spectacular.utils import extend_schema_field +from drf_spectacular.types import OpenApiTypes from rest_framework import serializers from rest_framework.exceptions import PermissionDenied @@ -48,6 +50,7 @@ def create(self, validated_data): return user + @extend_schema_field(OpenApiTypes.STR) def get_display(self, obj): if full_name := obj.get_full_name(): return f"{obj.username} ({full_name})" diff --git a/netbox/users/api/views.py b/netbox/users/api/views.py index 86a66a01f5..04b3ae336b 100644 --- a/netbox/users/api/views.py +++ b/netbox/users/api/views.py @@ -1,6 +1,8 @@ from django.contrib.auth import authenticate from django.contrib.auth.models import Group, User from django.db.models import Count +from drf_spectacular.utils import extend_schema +from drf_spectacular.types import OpenApiTypes from rest_framework.exceptions import AuthenticationFailed from rest_framework.permissions import IsAuthenticated from rest_framework.response import Response @@ -55,9 +57,6 @@ def get_queryset(self): Limit the non-superusers to their own Tokens. """ queryset = super().get_queryset() - # Workaround for schema generation (drf_yasg) - if getattr(self, 'swagger_fake_view', False): - return queryset.none() if not self.request.user.is_authenticated: return queryset.none() if self.request.user.is_superuser: @@ -71,6 +70,7 @@ class TokenProvisionView(APIView): """ permission_classes = [] + # @extend_schema(methods=["post"], responses={201: serializers.TokenSerializer}) def post(self, request): serializer = serializers.TokenProvisionSerializer(data=request.data) serializer.is_valid() @@ -93,6 +93,9 @@ def post(self, request): return Response(data, status=HTTP_201_CREATED) + def get_serializer_class(self): + return serializers.TokenSerializer + # # ObjectPermissions @@ -117,6 +120,7 @@ class UserConfigViewSet(ViewSet): def get_queryset(self): return UserConfig.objects.filter(user=self.request.user) + @extend_schema(responses={200: OpenApiTypes.OBJECT}) def list(self, request): """ Return the UserConfig for the currently authenticated User. @@ -125,6 +129,7 @@ def list(self, request): return Response(userconfig.data) + @extend_schema(methods=["patch"], responses={201: OpenApiTypes.OBJECT}) def patch(self, request): """ Update the UserConfig for the currently authenticated User. diff --git a/netbox/users/forms.py b/netbox/users/forms.py index c87d5868bc..027fa53277 100644 --- a/netbox/users/forms.py +++ b/netbox/users/forms.py @@ -8,7 +8,8 @@ from ipam.formfields import IPNetworkFormField from ipam.validators import prefix_validator from netbox.preferences import PREFERENCES -from utilities.forms import BootstrapMixin, DateTimePicker, StaticSelect +from utilities.forms import BootstrapMixin +from utilities.forms.widgets import DateTimePicker from utilities.utils import flatten_dict from .models import Token, UserConfig @@ -36,7 +37,7 @@ def __new__(mcs, name, bases, attrs): 'help_text': mark_safe(help_text), 'coerce': preference.coerce, 'required': False, - 'widget': StaticSelect, + 'widget': forms.Select, } preference_fields[field_name] = forms.TypedChoiceField(**field_kwargs) attrs.update(preference_fields) diff --git a/netbox/users/graphql/schema.py b/netbox/users/graphql/schema.py index 4a58be128c..3b04d84183 100644 --- a/netbox/users/graphql/schema.py +++ b/netbox/users/graphql/schema.py @@ -1,12 +1,20 @@ import graphene +from django.contrib.auth.models import Group, User from netbox.graphql.fields import ObjectField, ObjectListField from .types import * +from utilities.graphql_optimizer import gql_query_optimizer class UsersQuery(graphene.ObjectType): group = ObjectField(GroupType) group_list = ObjectListField(GroupType) + def resolve_group_list(root, info, **kwargs): + return gql_query_optimizer(Group.objects.all(), info) + user = ObjectField(UserType) user_list = ObjectListField(UserType) + + def resolve_user_list(root, info, **kwargs): + return gql_query_optimizer(User.objects.all(), info) diff --git a/netbox/users/models.py b/netbox/users/models.py index 07e9035691..4e7d9ca523 100644 --- a/netbox/users/models.py +++ b/netbox/users/models.py @@ -140,7 +140,10 @@ def set(self, path, value, commit=False): # Set a key based on the last item in the path. Raise TypeError if attempting to overwrite a non-leaf node. key = keys[-1] if key in d and type(d[key]) is dict: - raise TypeError(f"Key '{path}' has child keys; cannot assign a value") + if type(value) is dict: + d[key].update(value) + else: + raise TypeError(f"Key '{path}' is a dictionary; cannot assign a non-dictionary value") else: d[key] = value diff --git a/netbox/utilities/api.py b/netbox/utilities/api.py index e3fc3c8d43..50bb033e48 100644 --- a/netbox/utilities/api.py +++ b/netbox/utilities/api.py @@ -10,6 +10,14 @@ from netbox.api.exceptions import GraphQLTypeNotFound, SerializerNotFound from .utils import dynamic_import +__all__ = ( + 'get_graphql_type_for_model', + 'get_serializer_for_model', + 'get_view_name', + 'is_api_request', + 'rest_api_server_error', +) + def get_serializer_for_model(model, prefix=''): """ diff --git a/netbox/utilities/choices.py b/netbox/utilities/choices.py index ea4c5f9513..5ad05b9891 100644 --- a/netbox/utilities/choices.py +++ b/netbox/utilities/choices.py @@ -203,6 +203,18 @@ class ButtonColorChoices(ChoiceSet): # Import Choices # +class ImportMethodChoices(ChoiceSet): + DIRECT = 'direct' + UPLOAD = 'upload' + DATA_FILE = 'datafile' + + CHOICES = [ + (DIRECT, 'Direct'), + (UPLOAD, 'Upload'), + (DATA_FILE, 'Data file'), + ] + + class ImportFormatChoices(ChoiceSet): AUTO = 'auto' CSV = 'csv' diff --git a/netbox/utilities/constants.py b/netbox/utilities/constants.py index 9303e5f3ad..366d8f7967 100644 --- a/netbox/utilities/constants.py +++ b/netbox/utilities/constants.py @@ -31,20 +31,6 @@ n='in' ) - -# Keys for PostgreSQL advisory locks. These are arbitrary bigints used by -# the advisory_lock contextmanager. When a lock is acquired, -# one of these keys will be used to identify said lock. -# -# When adding a new key, pick something arbitrary and unique so -# that it is easily searchable in query logs. - -ADVISORY_LOCK_KEYS = { - 'available-prefixes': 100100, - 'available-ips': 100200, - 'available-vlans': 100300, -} - # # HTTP Request META safe copy # diff --git a/netbox/utilities/custom_inspectors.py b/netbox/utilities/custom_inspectors.py deleted file mode 100644 index 25358535db..0000000000 --- a/netbox/utilities/custom_inspectors.py +++ /dev/null @@ -1,142 +0,0 @@ -from drf_yasg import openapi -from drf_yasg.inspectors import FieldInspector, NotHandled, PaginatorInspector, SwaggerAutoSchema -from drf_yasg.utils import get_serializer_ref_name -from rest_framework.fields import ChoiceField -from rest_framework.relations import ManyRelatedField - -from extras.api.customfields import CustomFieldsDataField -from netbox.api.fields import ChoiceField, SerializedPKRelatedField -from netbox.api.serializers import WritableNestedSerializer - - -class NetBoxSwaggerAutoSchema(SwaggerAutoSchema): - writable_serializers = {} - - def get_operation_id(self, operation_keys=None): - operation_keys = operation_keys or self.operation_keys - operation_id = self.overrides.get('operation_id', '') - if not operation_id: - # Overwrite the action for bulk update/bulk delete views to ensure they get an operation ID that's - # unique from their single-object counterparts (see #3436) - if operation_keys[-1] in ('delete', 'partial_update', 'update') and not self.view.detail: - operation_keys[-1] = f'bulk_{operation_keys[-1]}' - operation_id = '_'.join(operation_keys) - - return operation_id - - def get_request_serializer(self): - serializer = super().get_request_serializer() - - if serializer is not None and not isinstance(serializer, openapi.Schema) and self.method in self.implicit_body_methods: - if writable_class := self.get_writable_class(serializer): - if hasattr(serializer, 'child'): - child_serializer = self.get_writable_class(serializer.child) - serializer = writable_class(context=serializer.context, child=child_serializer) - else: - serializer = writable_class(context=serializer.context) - return serializer - - def get_writable_class(self, serializer): - properties = {} - fields = {} if hasattr(serializer, 'child') else serializer.fields - for child_name, child in fields.items(): - if isinstance(child, (ChoiceField, WritableNestedSerializer)): - properties[child_name] = None - elif isinstance(child, ManyRelatedField) and isinstance(child.child_relation, SerializedPKRelatedField): - properties[child_name] = None - - if properties: - if type(serializer) not in self.writable_serializers: - writable_name = 'Writable' + type(serializer).__name__ - meta_class = getattr(type(serializer), 'Meta', None) - if meta_class: - ref_name = 'Writable' + get_serializer_ref_name(serializer) - writable_meta = type('Meta', (meta_class,), {'ref_name': ref_name}) - properties['Meta'] = writable_meta - - self.writable_serializers[type(serializer)] = type(writable_name, (type(serializer),), properties) - - writable_class = self.writable_serializers[type(serializer)] - return writable_class - - -class SerializedPKRelatedFieldInspector(FieldInspector): - def field_to_swagger_object(self, field, swagger_object_type, use_references, **kwargs): - SwaggerType, ChildSwaggerType = self._get_partial_types(field, swagger_object_type, use_references, **kwargs) - if isinstance(field, SerializedPKRelatedField): - return self.probe_field_inspectors(field.serializer(), ChildSwaggerType, use_references) - - return NotHandled - - -class ChoiceFieldInspector(FieldInspector): - def field_to_swagger_object(self, field, swagger_object_type, use_references, **kwargs): - # this returns a callable which extracts title, description and other stuff - # https://drf-yasg.readthedocs.io/en/stable/_modules/drf_yasg/inspectors/base.html#FieldInspector._get_partial_types - SwaggerType, _ = self._get_partial_types(field, swagger_object_type, use_references, **kwargs) - - if isinstance(field, ChoiceField): - choices = field._choices - choice_value = list(choices.keys()) - choice_label = list(choices.values()) - value_schema = openapi.Schema(type=openapi.TYPE_STRING, enum=choice_value) - - if set([None] + choice_value) == {None, True, False}: - # DeviceType.subdevice_role and Device.face need to be differentiated since they each have - # subtly different values in their choice keys. - # - subdevice_role and connection_status are booleans, although subdevice_role includes None - # - face is an integer set {0, 1} which is easily confused with {False, True} - schema_type = openapi.TYPE_STRING - if all(type(x) == bool for x in [c for c in choice_value if c is not None]): - schema_type = openapi.TYPE_BOOLEAN - value_schema = openapi.Schema(type=schema_type, enum=choice_value) - value_schema['x-nullable'] = True - - if all(type(x) == int for x in [c for c in choice_value if c is not None]): - # Change value_schema for IPAddressFamilyChoices, RackWidthChoices - value_schema = openapi.Schema(type=openapi.TYPE_INTEGER, enum=choice_value) - - schema = SwaggerType(type=openapi.TYPE_OBJECT, required=["label", "value"], properties={ - "label": openapi.Schema(type=openapi.TYPE_STRING, enum=choice_label), - "value": value_schema - }) - - return schema - - return NotHandled - - -class NullableBooleanFieldInspector(FieldInspector): - def process_result(self, result, method_name, obj, **kwargs): - - if isinstance(result, openapi.Schema) and isinstance(obj, ChoiceField) and result.type == 'boolean': - keys = obj.choices.keys() - if set(keys) == {None, True, False}: - result['x-nullable'] = True - result.type = 'boolean' - - return result - - -class CustomFieldsDataFieldInspector(FieldInspector): - - def field_to_swagger_object(self, field, swagger_object_type, use_references, **kwargs): - SwaggerType, ChildSwaggerType = self._get_partial_types(field, swagger_object_type, use_references, **kwargs) - - if isinstance(field, CustomFieldsDataField) and swagger_object_type == openapi.Schema: - return SwaggerType(type=openapi.TYPE_OBJECT) - - return NotHandled - - -class NullablePaginatorInspector(PaginatorInspector): - def process_result(self, result, method_name, obj, **kwargs): - if method_name == 'get_paginated_response' and isinstance(result, openapi.Schema): - next = result.properties['next'] - if isinstance(next, openapi.Schema): - next['x-nullable'] = True - previous = result.properties['previous'] - if isinstance(previous, openapi.Schema): - previous['x-nullable'] = True - - return result diff --git a/netbox/utilities/exceptions.py b/netbox/utilities/exceptions.py index d7418d0cb5..512bb4b608 100644 --- a/netbox/utilities/exceptions.py +++ b/netbox/utilities/exceptions.py @@ -3,6 +3,7 @@ __all__ = ( 'AbortRequest', + 'AbortScript', 'AbortTransaction', 'PermissionsViolation', 'RQWorkerNotRunningException', diff --git a/netbox/utilities/fields.py b/netbox/utilities/fields.py index b2bc4d2cd0..8934e4ad64 100644 --- a/netbox/utilities/fields.py +++ b/netbox/utilities/fields.py @@ -1,21 +1,23 @@ from collections import defaultdict from django.contrib.contenttypes.fields import GenericForeignKey -from django.core.validators import RegexValidator from django.db import models from utilities.ordering import naturalize -from .forms import ColorSelect - -ColorValidator = RegexValidator( - regex='^[0-9a-f]{6}$', - message='Enter a valid hexadecimal RGB color code.', - code='invalid' +from .forms.widgets import ColorSelect +from .validators import ColorValidator + +__all__ = ( + 'ColorField', + 'NaturalOrderingField', + 'NullableCharField', + 'RestrictedGenericForeignKey', ) # Deprecated: Retained only to ensure successful migration from early releases # Use models.CharField(null=True) instead +# TODO: Remove in v4.0 class NullableCharField(models.CharField): description = "Stores empty values as NULL rather than ''" diff --git a/netbox/utilities/files.py b/netbox/utilities/files.py new file mode 100644 index 0000000000..09ed2c90b5 --- /dev/null +++ b/netbox/utilities/files.py @@ -0,0 +1,13 @@ +import hashlib + +__all__ = ( + 'sha256_hash', +) + + +def sha256_hash(filepath): + """ + Return the SHA256 hash of the file at the specified path. + """ + with open(filepath, 'rb') as f: + return hashlib.sha256(f.read()) diff --git a/netbox/utilities/filters.py b/netbox/utilities/filters.py index 76ff8192cb..1bf17beae3 100644 --- a/netbox/utilities/filters.py +++ b/netbox/utilities/filters.py @@ -3,6 +3,24 @@ from django.conf import settings from django.core.exceptions import ValidationError from django_filters.constants import EMPTY_VALUES +from drf_spectacular.utils import extend_schema_field +from drf_spectacular.types import OpenApiTypes + +__all__ = ( + 'ContentTypeFilter', + 'MACAddressFilter', + 'MultiValueCharFilter', + 'MultiValueDateFilter', + 'MultiValueDateTimeFilter', + 'MultiValueDecimalFilter', + 'MultiValueMACAddressFilter', + 'MultiValueNumberFilter', + 'MultiValueTimeFilter', + 'MultiValueWWNFilter', + 'NullableCharFieldFilter', + 'NumericArrayFilter', + 'TreeNodeMultipleChoiceFilter', +) def multivalue_field_factory(field_class): @@ -37,26 +55,32 @@ def validate(self, value): # Filters # +@extend_schema_field(OpenApiTypes.STR) class MultiValueCharFilter(django_filters.MultipleChoiceFilter): field_class = multivalue_field_factory(forms.CharField) +@extend_schema_field(OpenApiTypes.DATE) class MultiValueDateFilter(django_filters.MultipleChoiceFilter): field_class = multivalue_field_factory(forms.DateField) +@extend_schema_field(OpenApiTypes.DATETIME) class MultiValueDateTimeFilter(django_filters.MultipleChoiceFilter): field_class = multivalue_field_factory(forms.DateTimeField) +@extend_schema_field(OpenApiTypes.INT32) class MultiValueNumberFilter(django_filters.MultipleChoiceFilter): field_class = multivalue_field_factory(forms.IntegerField) +@extend_schema_field(OpenApiTypes.DECIMAL) class MultiValueDecimalFilter(django_filters.MultipleChoiceFilter): field_class = multivalue_field_factory(forms.DecimalField) +@extend_schema_field(OpenApiTypes.TIME) class MultiValueTimeFilter(django_filters.MultipleChoiceFilter): field_class = multivalue_field_factory(forms.TimeField) @@ -65,6 +89,7 @@ class MACAddressFilter(django_filters.CharFilter): pass +@extend_schema_field(OpenApiTypes.STR) class MultiValueMACAddressFilter(django_filters.MultipleChoiceFilter): field_class = multivalue_field_factory(forms.CharField) @@ -75,6 +100,7 @@ def filter(self, qs, value): return qs.none() +@extend_schema_field(OpenApiTypes.STR) class MultiValueWWNFilter(django_filters.MultipleChoiceFilter): field_class = multivalue_field_factory(forms.CharField) diff --git a/netbox/utilities/forms/__init__.py b/netbox/utilities/forms/__init__.py index ce958a99e3..94f7d48c9d 100644 --- a/netbox/utilities/forms/__init__.py +++ b/netbox/utilities/forms/__init__.py @@ -1,5 +1,4 @@ from .constants import * -from .fields import * from .forms import * +from .mixins import * from .utils import * -from .widgets import * diff --git a/netbox/utilities/forms/bulk_import.py b/netbox/utilities/forms/bulk_import.py new file mode 100644 index 0000000000..b7f432e636 --- /dev/null +++ b/netbox/utilities/forms/bulk_import.py @@ -0,0 +1,142 @@ +import csv +import json +from io import StringIO + +import yaml +from django import forms +from django.utils.translation import gettext as _ + +from core.forms.mixins import SyncedDataMixin +from utilities.choices import ImportFormatChoices +from utilities.forms.utils import parse_csv +from .mixins import BootstrapMixin +from ..choices import ImportMethodChoices + + +class BulkImportForm(BootstrapMixin, SyncedDataMixin, forms.Form): + import_method = forms.ChoiceField( + choices=ImportMethodChoices, + required=False + ) + data = forms.CharField( + required=False, + widget=forms.Textarea(attrs={'class': 'font-monospace'}), + help_text=_("Enter object data in CSV, JSON or YAML format.") + ) + upload_file = forms.FileField( + label="Data file", + required=False + ) + format = forms.ChoiceField( + choices=ImportFormatChoices, + initial=ImportFormatChoices.AUTO + ) + + data_field = 'data' + + def clean(self): + super().clean() + + # Determine import method + import_method = self.cleaned_data.get('import_method') or ImportMethodChoices.DIRECT + + # Determine whether we're reading from form data or an uploaded file + if self.cleaned_data['data'] and import_method != ImportMethodChoices.DIRECT: + raise forms.ValidationError("Form data must be empty when uploading/selecting a file.") + if import_method == ImportMethodChoices.UPLOAD: + self.upload_file = 'upload_file' + file = self.files.get('upload_file') + data = file.read().decode('utf-8-sig') + elif import_method == ImportMethodChoices.DATA_FILE: + data = self.cleaned_data['data_file'].data_as_string + else: + data = self.cleaned_data['data'] + + # Determine the data format + if self.cleaned_data['format'] == ImportFormatChoices.AUTO: + format = self._detect_format(data) + else: + format = self.cleaned_data['format'] + + # Process data according to the selected format + if format == ImportFormatChoices.CSV: + self.cleaned_data['data'] = self._clean_csv(data) + elif format == ImportFormatChoices.JSON: + self.cleaned_data['data'] = self._clean_json(data) + elif format == ImportFormatChoices.YAML: + self.cleaned_data['data'] = self._clean_yaml(data) + else: + raise forms.ValidationError(f"Unknown data format: {format}") + + def _detect_format(self, data): + """ + Attempt to automatically detect the format (CSV, JSON, or YAML) of the given data, or raise + a ValidationError. + """ + try: + if data[0] in ('{', '['): + return ImportFormatChoices.JSON + if data.startswith('---') or data.startswith('- '): + return ImportFormatChoices.YAML + if ',' in data.split('\n', 1)[0]: + return ImportFormatChoices.CSV + except IndexError: + pass + raise forms.ValidationError({ + 'format': _('Unable to detect data format. Please specify.') + }) + + def _clean_csv(self, data): + """ + Clean CSV-formatted data. The first row will be treated as column headers. + """ + stream = StringIO(data.strip()) + reader = csv.reader(stream) + headers, records = parse_csv(reader) + + # Set CSV headers for reference by the model form + self._csv_headers = headers + + return records + + def _clean_json(self, data): + """ + Clean JSON-formatted data. If only a single object is defined, it will be encapsulated as a list. + """ + try: + data = json.loads(data) + # Accommodate for users entering single objects + if type(data) is not list: + data = [data] + return data + except json.decoder.JSONDecodeError as err: + raise forms.ValidationError({ + self.data_field: f"Invalid JSON data: {err}" + }) + + def _clean_yaml(self, data): + """ + Clean YAML-formatted data. Data must be either + a) A single document comprising a list of dictionaries (each representing an object), or + b) Multiple documents, separated with the '---' token + """ + records = [] + try: + for data in yaml.load_all(data, Loader=yaml.SafeLoader): + if type(data) == list: + records.extend(data) + elif type(data) == dict: + records.append(data) + else: + raise forms.ValidationError({ + self.data_field: _( + "Invalid YAML data. Data must be in the form of multiple documents, or a single document " + "comprising a list of dictionaries." + ) + }) + except yaml.error.YAMLError as err: + raise forms.ValidationError({ + self.data_field: f"Invalid YAML data: {err}" + }) + + return records diff --git a/netbox/utilities/forms/fields/__init__.py b/netbox/utilities/forms/fields/__init__.py index eacde0040a..7f9f4b4094 100644 --- a/netbox/utilities/forms/fields/__init__.py +++ b/netbox/utilities/forms/fields/__init__.py @@ -1,3 +1,4 @@ +from .array import * from .content_types import * from .csv import * from .dynamic import * diff --git a/netbox/utilities/forms/fields/array.py b/netbox/utilities/forms/fields/array.py new file mode 100644 index 0000000000..6e1a40988d --- /dev/null +++ b/netbox/utilities/forms/fields/array.py @@ -0,0 +1,24 @@ +from django import forms +from django.contrib.postgres.forms import SimpleArrayField + +from ..utils import parse_numeric_range + +__all__ = ( + 'NumericArrayField', +) + + +class NumericArrayField(SimpleArrayField): + + def clean(self, value): + if value and not self.to_python(value): + raise forms.ValidationError(f'Invalid list ({value}). ' + f'Must be numeric and ranges must be in ascending order') + return super().clean(value) + + def to_python(self, value): + if not value: + return [] + if isinstance(value, str): + value = ','.join([str(n) for n in parse_numeric_range(value)]) + return super().to_python(value) diff --git a/netbox/utilities/forms/fields/content_types.py b/netbox/utilities/forms/fields/content_types.py index 80861166c1..0223ab05a1 100644 --- a/netbox/utilities/forms/fields/content_types.py +++ b/netbox/utilities/forms/fields/content_types.py @@ -1,6 +1,5 @@ from django import forms -from utilities.forms import widgets from utilities.utils import content_type_name __all__ = ( @@ -27,11 +26,11 @@ class ContentTypeChoiceField(ContentTypeChoiceMixin, forms.ModelChoiceField): """ Selection field for a single content type. """ - widget = widgets.StaticSelect + pass class ContentTypeMultipleChoiceField(ContentTypeChoiceMixin, forms.ModelMultipleChoiceField): """ Selection field for one or more content types. """ - widget = widgets.StaticSelectMultiple + pass diff --git a/netbox/utilities/forms/fields/csv.py b/netbox/utilities/forms/fields/csv.py index f964d0db01..5d62581939 100644 --- a/netbox/utilities/forms/fields/csv.py +++ b/netbox/utilities/forms/fields/csv.py @@ -1,21 +1,14 @@ -import csv -from io import StringIO - from django import forms from django.contrib.contenttypes.models import ContentType from django.core.exceptions import MultipleObjectsReturned, ObjectDoesNotExist from django.db.models import Q -from django.utils.translation import gettext as _ from utilities.choices import unpack_grouped_choices -from utilities.forms.utils import parse_csv, validate_csv from utilities.utils import content_type_identifier __all__ = ( 'CSVChoiceField', 'CSVContentTypeField', - 'CSVDataField', - 'CSVFileField', 'CSVModelChoiceField', 'CSVModelMultipleChoiceField', 'CSVMultipleChoiceField', @@ -24,90 +17,6 @@ ) -class CSVDataField(forms.CharField): - """ - A CharField (rendered as a Textarea) which accepts CSV-formatted data. It returns data as a two-tuple: The first - item is a dictionary of column headers, mapping field names to the attribute by which they match a related object - (where applicable). The second item is a list of dictionaries, each representing a discrete row of CSV data. - - :param from_form: The form from which the field derives its validation rules. - """ - widget = forms.Textarea - - def __init__(self, from_form, *args, **kwargs): - - form = from_form() - self.model = form.Meta.model - self.fields = form.fields - self.required_fields = [ - name for name, field in form.fields.items() if field.required - ] - - super().__init__(*args, **kwargs) - - self.strip = False - if not self.label: - self.label = '' - if not self.initial: - self.initial = ','.join(self.required_fields) + '\n' - if not self.help_text: - self.help_text = _('Enter the list of column headers followed by one line per record to be imported, using ' - 'commas to separate values. Multi-line data and values containing commas may be wrapped ' - 'in double quotes.') - - def to_python(self, value): - reader = csv.reader(StringIO(value.strip())) - - return parse_csv(reader) - - def validate(self, value): - headers, records = value - validate_csv(headers, self.fields, self.required_fields) - - return value - - -class CSVFileField(forms.FileField): - """ - A FileField (rendered as a file input button) which accepts a file containing CSV-formatted data. It returns - data as a two-tuple: The first item is a dictionary of column headers, mapping field names to the attribute - by which they match a related object (where applicable). The second item is a list of dictionaries, each - representing a discrete row of CSV data. - - :param from_form: The form from which the field derives its validation rules. - """ - - def __init__(self, from_form, *args, **kwargs): - - form = from_form() - self.model = form.Meta.model - self.fields = form.fields - self.required_fields = [ - name for name, field in form.fields.items() if field.required - ] - - super().__init__(*args, **kwargs) - - def to_python(self, file): - if file is None: - return None - - csv_str = file.read().decode('utf-8').strip() - reader = csv.reader(StringIO(csv_str)) - headers, records = parse_csv(reader) - - return headers, records - - def validate(self, value): - if value is None: - return None - - headers, records = value - validate_csv(headers, self.fields, self.required_fields) - - return value - - class CSVChoicesMixin: STATIC_CHOICES = True diff --git a/netbox/utilities/forms/fields/dynamic.py b/netbox/utilities/forms/fields/dynamic.py index 68e71610cd..2719637c86 100644 --- a/netbox/utilities/forms/fields/dynamic.py +++ b/netbox/utilities/forms/fields/dynamic.py @@ -26,24 +26,38 @@ class DynamicModelChoiceMixin: choice (optional) fetch_trigger: The event type which will cause the select element to fetch data from the API. Must be 'load', 'open', or 'collapse'. (optional) + selector: Include an advanced object selection widget to assist the user in identifying the desired object """ filter = django_filters.ModelChoiceFilter widget = widgets.APISelect - def __init__(self, query_params=None, initial_params=None, null_option=None, disabled_indicator=None, - fetch_trigger=None, empty_label=None, *args, **kwargs): + def __init__( + self, + queryset, + *, + query_params=None, + initial_params=None, + null_option=None, + disabled_indicator=None, + fetch_trigger=None, + empty_label=None, + selector=False, + **kwargs + ): + self.model = queryset.model self.query_params = query_params or {} self.initial_params = initial_params or {} self.null_option = null_option self.disabled_indicator = disabled_indicator self.fetch_trigger = fetch_trigger + self.selector = selector # to_field_name is set by ModelChoiceField.__init__(), but we need to set it early for reference # by widget_attrs() self.to_field_name = kwargs.get('to_field_name') self.empty_option = empty_label or "" - super().__init__(*args, **kwargs) + super().__init__(queryset, **kwargs) def widget_attrs(self, widget): attrs = { @@ -70,6 +84,10 @@ def widget_attrs(self, widget): if (len(self.query_params) > 0): widget.add_query_params(self.query_params) + # Include object selector? + if self.selector: + attrs['selector'] = self.model._meta.label_lower + return attrs def get_bound_field(self, form, field_name): diff --git a/netbox/utilities/forms/fields/fields.py b/netbox/utilities/forms/fields/fields.py index bb8226e4d4..cb8c14d6d2 100644 --- a/netbox/utilities/forms/fields/fields.py +++ b/netbox/utilities/forms/fields/fields.py @@ -68,7 +68,6 @@ class TagFilterField(forms.MultipleChoiceField): :param model: The model of the filter """ - widget = widgets.StaticSelectMultiple def __init__(self, model, *args, **kwargs): def get_choices(): @@ -137,13 +136,16 @@ def to_python(self, value): class ChoiceField(forms.ChoiceField): """ - Overrides Django's built-in `ChoiceField` to use NetBox's `StaticSelect` widget + Previously used to override Django's built-in `ChoiceField` to use NetBox's now-obsolete `StaticSelect` widget. """ - widget = widgets.StaticSelect + # TODO: Remove in v3.6 + pass class MultipleChoiceField(forms.MultipleChoiceField): """ - Overrides Django's built-in `MultipleChoiceField` to use NetBox's `StaticSelectMultiple` widget + Previously used to override Django's built-in `MultipleChoiceField` to use NetBox's now-obsolete + `StaticSelectMultiple` widget. """ - widget = widgets.StaticSelectMultiple + # TODO: Remove in v3.6 + pass diff --git a/netbox/utilities/forms/forms.py b/netbox/utilities/forms/forms.py index 41efbe7b13..9f84e100f6 100644 --- a/netbox/utilities/forms/forms.py +++ b/netbox/utilities/forms/forms.py @@ -1,100 +1,32 @@ -import csv -import json import re -from io import StringIO -import yaml from django import forms from django.utils.translation import gettext as _ - -from utilities.choices import ImportFormatChoices -from utilities.forms.utils import parse_csv -from .widgets import APISelect, APISelectMultiple, ClearableFileInput, StaticSelect +from .mixins import BootstrapMixin __all__ = ( - 'BootstrapMixin', 'BulkEditForm', 'BulkRenameForm', 'ConfirmationForm', 'CSVModelForm', 'FilterForm', - 'ImportForm', - 'ReturnURLForm', 'TableConfigForm', ) -# -# Mixins -# - -class BootstrapMixin: - """ - Add the base Bootstrap CSS classes to form elements. - """ - - def __init__(self, *args, **kwargs): - super().__init__(*args, **kwargs) - - exempt_widgets = [ - forms.CheckboxInput, - forms.FileInput, - forms.RadioSelect, - forms.Select, - APISelect, - APISelectMultiple, - ClearableFileInput, - StaticSelect, - ] - - for field_name, field in self.fields.items(): - css = field.widget.attrs.get('class', '') - - if field.widget.__class__ not in exempt_widgets: - field.widget.attrs['class'] = f'{css} form-control' - - elif isinstance(field.widget, forms.CheckboxInput): - field.widget.attrs['class'] = f'{css} form-check-input' - - elif isinstance(field.widget, forms.Select): - field.widget.attrs['class'] = f'{css} form-select' - - if field.required and not isinstance(field.widget, forms.FileInput): - field.widget.attrs['required'] = 'required' - - if 'placeholder' not in field.widget.attrs and field.label is not None: - field.widget.attrs['placeholder'] = field.label - - def is_valid(self): - is_valid = super().is_valid() - - # Apply is-invalid CSS class to fields with errors - if not is_valid: - for field_name in self.errors: - # Ignore e.g. __all__ - if field := self.fields.get(field_name): - css = field.widget.attrs.get('class', '') - field.widget.attrs['class'] = f'{css} is-invalid' - - return is_valid - - -# -# Form classes -# - -class ReturnURLForm(forms.Form): - """ - Provides a hidden return URL field to control where the user is directed after the form is submitted. - """ - return_url = forms.CharField(required=False, widget=forms.HiddenInput()) - - -class ConfirmationForm(BootstrapMixin, ReturnURLForm): +class ConfirmationForm(BootstrapMixin, forms.Form): """ - A generic confirmation form. The form is not valid unless the confirm field is checked. + A generic confirmation form. The form is not valid unless the `confirm` field is checked. """ - confirm = forms.BooleanField(required=True, widget=forms.HiddenInput(), initial=True) + return_url = forms.CharField( + required=False, + widget=forms.HiddenInput() + ) + confirm = forms.BooleanField( + required=True, + widget=forms.HiddenInput(), + initial=True + ) class BulkEditForm(BootstrapMixin, forms.Form): @@ -153,127 +85,6 @@ def __init__(self, *args, headers=None, fields=None, **kwargs): del self.fields[field] -class ImportForm(BootstrapMixin, forms.Form): - data = forms.CharField( - required=False, - widget=forms.Textarea(attrs={'class': 'font-monospace'}), - help_text=_("Enter object data in CSV, JSON or YAML format.") - ) - data_file = forms.FileField( - label="Data file", - required=False - ) - format = forms.ChoiceField( - choices=ImportFormatChoices, - initial=ImportFormatChoices.AUTO, - widget=StaticSelect() - ) - - data_field = 'data' - - def clean(self): - super().clean() - - # Determine whether we're reading from form data or an uploaded file - if self.cleaned_data['data'] and self.cleaned_data['data_file']: - raise forms.ValidationError("Form data must be empty when uploading a file.") - if 'data_file' in self.files: - self.data_field = 'data_file' - file = self.files.get('data_file') - data = file.read().decode('utf-8-sig') - else: - data = self.cleaned_data['data'] - - # Determine the data format - if self.cleaned_data['format'] == ImportFormatChoices.AUTO: - format = self._detect_format(data) - else: - format = self.cleaned_data['format'] - - # Process data according to the selected format - if format == ImportFormatChoices.CSV: - self.cleaned_data['data'] = self._clean_csv(data) - elif format == ImportFormatChoices.JSON: - self.cleaned_data['data'] = self._clean_json(data) - elif format == ImportFormatChoices.YAML: - self.cleaned_data['data'] = self._clean_yaml(data) - else: - raise forms.ValidationError(f"Unknown data format: {format}") - - def _detect_format(self, data): - """ - Attempt to automatically detect the format (CSV, JSON, or YAML) of the given data, or raise - a ValidationError. - """ - try: - if data[0] in ('{', '['): - return ImportFormatChoices.JSON - if data.startswith('---') or data.startswith('- '): - return ImportFormatChoices.YAML - if ',' in data.split('\n', 1)[0]: - return ImportFormatChoices.CSV - except IndexError: - pass - raise forms.ValidationError({ - 'format': _('Unable to detect data format. Please specify.') - }) - - def _clean_csv(self, data): - """ - Clean CSV-formatted data. The first row will be treated as column headers. - """ - stream = StringIO(data.strip()) - reader = csv.reader(stream) - headers, records = parse_csv(reader) - - # Set CSV headers for reference by the model form - self._csv_headers = headers - - return records - - def _clean_json(self, data): - """ - Clean JSON-formatted data. If only a single object is defined, it will be encapsulated as a list. - """ - try: - data = json.loads(data) - # Accommodate for users entering single objects - if type(data) is not list: - data = [data] - return data - except json.decoder.JSONDecodeError as err: - raise forms.ValidationError({ - self.data_field: f"Invalid JSON data: {err}" - }) - - def _clean_yaml(self, data): - """ - Clean YAML-formatted data. Data must be either - a) A single document comprising a list of dictionaries (each representing an object), or - b) Multiple documents, separated with the '---' token - """ - records = [] - try: - for data in yaml.load_all(data, Loader=yaml.SafeLoader): - if type(data) == list: - records.extend(data) - elif type(data) == dict: - records.append(data) - else: - raise forms.ValidationError({ - self.data_field: _( - "Invalid YAML data. Data must be in the form of multiple documents, or a single document " - "comprising a list of dictionaries." - ) - }) - except yaml.error.YAMLError as err: - raise forms.ValidationError({ - self.data_field: f"Invalid YAML data: {err}" - }) - - return records - - class FilterForm(BootstrapMixin, forms.Form): """ Base Form class for FilterSet forms. diff --git a/netbox/utilities/forms/mixins.py b/netbox/utilities/forms/mixins.py new file mode 100644 index 0000000000..dc9c3eb803 --- /dev/null +++ b/netbox/utilities/forms/mixins.py @@ -0,0 +1,62 @@ +from django import forms + +from .widgets import APISelect, APISelectMultiple, ClearableFileInput + +__all__ = ( + 'BootstrapMixin', +) + + +class BootstrapMixin: + """ + Add the base Bootstrap CSS classes to form elements. + """ + + def __init__(self, *args, **kwargs): + super().__init__(*args, **kwargs) + + exempt_widgets = [ + forms.FileInput, + forms.RadioSelect, + APISelect, + APISelectMultiple, + ClearableFileInput, + ] + + for field_name, field in self.fields.items(): + css = field.widget.attrs.get('class', '') + + if field.widget.__class__ in exempt_widgets: + continue + + elif isinstance(field.widget, forms.CheckboxInput): + field.widget.attrs['class'] = f'{css} form-check-input' + + elif isinstance(field.widget, forms.SelectMultiple): + if 'size' not in field.widget.attrs: + field.widget.attrs['class'] = f'{css} netbox-static-select' + + elif isinstance(field.widget, forms.Select): + field.widget.attrs['class'] = f'{css} netbox-static-select' + + else: + field.widget.attrs['class'] = f'{css} form-control' + + if field.required and not isinstance(field.widget, forms.FileInput): + field.widget.attrs['required'] = 'required' + + if 'placeholder' not in field.widget.attrs and field.label is not None: + field.widget.attrs['placeholder'] = field.label + + def is_valid(self): + is_valid = super().is_valid() + + # Apply is-invalid CSS class to fields with errors + if not is_valid: + for field_name in self.errors: + # Ignore e.g. __all__ + if field := self.fields.get(field_name): + css = field.widget.attrs.get('class', '') + field.widget.attrs['class'] = f'{css} is-invalid' + + return is_valid diff --git a/netbox/utilities/forms/utils.py b/netbox/utilities/forms/utils.py index 9f32491c28..5100b1714f 100644 --- a/netbox/utilities/forms/utils.py +++ b/netbox/utilities/forms/utils.py @@ -12,6 +12,7 @@ 'expand_alphanumeric_pattern', 'expand_ipaddress_pattern', 'form_from_model', + 'get_field_value', 'get_selected_values', 'parse_alphanumeric_range', 'parse_numeric_range', @@ -113,6 +114,21 @@ def expand_ipaddress_pattern(string, family): yield ''.join([lead, format(i, 'x' if family == 6 else 'd'), remnant]) +def get_field_value(form, field_name): + """ + Return the current bound or initial value associated with a form field, prior to calling + clean() for the form. + """ + field = form.fields[field_name] + + if form.is_bound: + if data := form.data.get(field_name): + if field.valid_value(data): + return data + + return form.get_initial_for_field(field, field_name) + + def get_selected_values(form, field_name): """ Return the list of selected human-friendly values for a form field diff --git a/netbox/utilities/forms/widgets/__init__.py b/netbox/utilities/forms/widgets/__init__.py new file mode 100644 index 0000000000..9bd9f4faa0 --- /dev/null +++ b/netbox/utilities/forms/widgets/__init__.py @@ -0,0 +1,4 @@ +from .apiselect import * +from .datetime import * +from .misc import * +from .select import * diff --git a/netbox/utilities/forms/widgets.py b/netbox/utilities/forms/widgets/apiselect.py similarity index 55% rename from netbox/utilities/forms/widgets.py rename to netbox/utilities/forms/widgets/apiselect.py index bd828bb8fb..e4b02cb1da 100644 --- a/netbox/utilities/forms/widgets.py +++ b/netbox/utilities/forms/widgets/apiselect.py @@ -1,148 +1,14 @@ import json -from typing import Dict, Sequence, List, Tuple, Union +from typing import Dict, List, Tuple from django import forms from django.conf import settings -from django.contrib.postgres.forms import SimpleArrayField - -from utilities.choices import ColorChoices -from .utils import add_blank_choice, parse_numeric_range __all__ = ( 'APISelect', 'APISelectMultiple', - 'BulkEditNullBooleanSelect', - 'ClearableFileInput', - 'ColorSelect', - 'DatePicker', - 'DateTimePicker', - 'MarkdownWidget', - 'NumericArrayField', - 'SelectDurationWidget', - 'SelectSpeedWidget', - 'SelectWithPK', - 'SlugWidget', - 'SmallTextarea', - 'StaticSelect', - 'StaticSelectMultiple', - 'TimePicker', ) -JSONPrimitive = Union[str, bool, int, float, None] -QueryParamValue = Union[JSONPrimitive, Sequence[JSONPrimitive]] -QueryParam = Dict[str, QueryParamValue] -ProcessedParams = Sequence[Dict[str, Sequence[JSONPrimitive]]] - - -class SmallTextarea(forms.Textarea): - """ - Subclass used for rendering a smaller textarea element. - """ - pass - - -class SlugWidget(forms.TextInput): - """ - Subclass TextInput and add a slug regeneration button next to the form field. - """ - template_name = 'widgets/sluginput.html' - - -class ColorSelect(forms.Select): - """ - Extends the built-in Select widget to colorize each