Skip to content

Add ability to read "Allocated Resources" for clusters over API #12596

Closed
@stavr666

Description

@stavr666

NetBox version

v3.5.1

Feature type

Change to existing functionality

Proposed functionality

Return calculated "Allocated Resources" values to API endpoint.

If values stored in DB, add them to endpoints:

  • /api/virtualization/clusters/
  • /api/virtualization/clusters/{$id}/

Example in current UI:
image

Returned by API:
image

Example of expected output from same datapoint:
image

Database changes, new views or API endpoints - NOT REQUIRED afaik

Use case

Availability to fast-read actual values, without GraphQL or pipelining several API queries.

Target scenarios:

  • Resource saturation monitoring per cluster (target values defined either externally or in custom fields).
  • Raw resource cost approximation for cloud tenants/projects.

Database changes

No response

External dependencies

No response

Metadata

Metadata

Assignees

Labels

complexity: mediumRequires a substantial but not unusual amount of effort to implementnetboxstatus: acceptedThis issue has been accepted for implementationtype: featureIntroduction of new functionality to the application

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions