Skip to content

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

@jcollie

Description

@jcollie

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"
}

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions