airflow is not exposed on device objects through the rest api #6201

Closed
opened 2025-12-29 19:37:57 +01:00 by adam · 0 comments
Owner

Originally created by @jcollie on GitHub (Mar 11, 2022).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

netbox-9959f6cd8-pzbbx (v3.2.0-beta2)

Python version

3.9

Steps to Reproduce

curl -X GET "https://beta-demo.netbox.dev/api/dcim/devices/88/" -H "accept: application/json" -H "X-CSRFToken: eRZ7iDlVQPP5CPs4iyNUBPkMLGPxHiw8LObEJfPxHxEom8GqLRqI7osYkbQsRlvt"

Expected Behavior

Airflow should be returned with the device object.

Observed Behavior

Airflow is not returned.

{
  "id": 88,
  "url": "https://beta-demo.netbox.dev/api/dcim/devices/88/",
  "display": "PP:B117",
  "name": "PP:B117",
  "device_type": {
    "id": 11,
    "url": "https://beta-demo.netbox.dev/api/dcim/device-types/11/",
    "display": "48-Pair Fiber Panel",
    "manufacturer": {
      "id": 13,
      "url": "https://beta-demo.netbox.dev/api/dcim/manufacturers/13/",
      "display": "Generic",
      "name": "Generic",
      "slug": "generic"
    },
    "model": "48-Pair Fiber Panel",
    "slug": "48-pair-fiber-panel"
  },
  "device_role": {
    "id": 6,
    "url": "https://beta-demo.netbox.dev/api/dcim/device-roles/6/",
    "display": "Patch Panel",
    "name": "Patch Panel",
    "slug": "patch-panel"
  },
  "tenant": {
    "id": 13,
    "url": "https://beta-demo.netbox.dev/api/tenancy/tenants/13/",
    "display": "NC State University",
    "name": "NC State University",
    "slug": "nc-state"
  },
  "platform": null,
  "serial": "",
  "asset_tag": null,
  "site": {
    "id": 21,
    "url": "https://beta-demo.netbox.dev/api/dcim/sites/21/",
    "display": "MDF",
    "name": "MDF",
    "slug": "ncsu-065"
  },
  "location": null,
  "rack": {
    "id": 41,
    "url": "https://beta-demo.netbox.dev/api/dcim/racks/41/",
    "display": "Plant 1",
    "name": "Plant 1"
  },
  "position": 37,
  "face": {
    "value": "front",
    "label": "Front"
  },
  "parent_device": null,
  "status": {
    "value": "active",
    "label": "Active"
  },
  "primary_ip": null,
  "primary_ip4": null,
  "primary_ip6": null,
  "cluster": null,
  "virtual_chassis": null,
  "vc_position": null,
  "vc_priority": null,
  "comments": "",
  "local_context_data": null,
  "tags": [],
  "custom_fields": {},
  "config_context": {},
  "created": "2021-04-02T00:00:00Z",
  "last_updated": "2021-04-02T17:17:28.425000Z"
}
Originally created by @jcollie on GitHub (Mar 11, 2022). Originally assigned to: @jeremystretch on GitHub. ### NetBox version netbox-9959f6cd8-pzbbx (v3.2.0-beta2) ### Python version 3.9 ### Steps to Reproduce curl -X GET "https://beta-demo.netbox.dev/api/dcim/devices/88/" -H "accept: application/json" -H "X-CSRFToken: eRZ7iDlVQPP5CPs4iyNUBPkMLGPxHiw8LObEJfPxHxEom8GqLRqI7osYkbQsRlvt" ### Expected Behavior Airflow should be returned with the device object. ### Observed Behavior Airflow is not returned. ``` { "id": 88, "url": "https://beta-demo.netbox.dev/api/dcim/devices/88/", "display": "PP:B117", "name": "PP:B117", "device_type": { "id": 11, "url": "https://beta-demo.netbox.dev/api/dcim/device-types/11/", "display": "48-Pair Fiber Panel", "manufacturer": { "id": 13, "url": "https://beta-demo.netbox.dev/api/dcim/manufacturers/13/", "display": "Generic", "name": "Generic", "slug": "generic" }, "model": "48-Pair Fiber Panel", "slug": "48-pair-fiber-panel" }, "device_role": { "id": 6, "url": "https://beta-demo.netbox.dev/api/dcim/device-roles/6/", "display": "Patch Panel", "name": "Patch Panel", "slug": "patch-panel" }, "tenant": { "id": 13, "url": "https://beta-demo.netbox.dev/api/tenancy/tenants/13/", "display": "NC State University", "name": "NC State University", "slug": "nc-state" }, "platform": null, "serial": "", "asset_tag": null, "site": { "id": 21, "url": "https://beta-demo.netbox.dev/api/dcim/sites/21/", "display": "MDF", "name": "MDF", "slug": "ncsu-065" }, "location": null, "rack": { "id": 41, "url": "https://beta-demo.netbox.dev/api/dcim/racks/41/", "display": "Plant 1", "name": "Plant 1" }, "position": 37, "face": { "value": "front", "label": "Front" }, "parent_device": null, "status": { "value": "active", "label": "Active" }, "primary_ip": null, "primary_ip4": null, "primary_ip6": null, "cluster": null, "virtual_chassis": null, "vc_position": null, "vc_priority": null, "comments": "", "local_context_data": null, "tags": [], "custom_fields": {}, "config_context": {}, "created": "2021-04-02T00:00:00Z", "last_updated": "2021-04-02T17:17:28.425000Z" } ```
adam added the type: bugstatus: accepted labels 2025-12-29 19:37:57 +01:00
adam closed this issue 2025-12-29 19:37:57 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#6201