Skip to main content
Ctrl+K
NVIDIA Air SDK - Home NVIDIA Air SDK - Home

NVIDIA Air SDK

NVIDIA Air SDK - Home NVIDIA Air SDK - Home

NVIDIA Air SDK

Table of Contents

Examples

  • Examples
    • Basic Simulation Operations
    • Starting and Stopping Simulations
    • Import and Export functionality
    • Automatic Out-of-band Management (OOB)
    • Reading a Simulation’s History
    • Working with ZTP Scripts
    • Images
    • Nodes
    • Workers, Fleets and Certificates

API Reference

  • air_sdk
    • air_sdk.const
    • air_sdk.endpoints
      • air_sdk.endpoints.checkpoints
      • air_sdk.endpoints.fleets
      • air_sdk.endpoints.history
      • air_sdk.endpoints.images
      • air_sdk.endpoints.interfaces
      • air_sdk.endpoints.links
      • air_sdk.endpoints.manifests
      • air_sdk.endpoints.marketplace_demo_tags
      • air_sdk.endpoints.marketplace_demos
      • air_sdk.endpoints.node_instructions
      • air_sdk.endpoints.nodes
      • air_sdk.endpoints.organizations
      • air_sdk.endpoints.services
      • air_sdk.endpoints.simulations
      • air_sdk.endpoints.ssh_keys
      • air_sdk.endpoints.systems
      • air_sdk.endpoints.trainings
      • air_sdk.endpoints.user_configs
      • air_sdk.endpoints.workers
      • air_sdk.endpoints.ztp_scripts
    • air_sdk.exceptions
    • air_sdk.types
  • air_sdk
  • air_sdk.endpoints
  • air_sdk.endpoints.links

air_sdk.endpoints.links#

Stub file for links endpoint type hints.

Classes#

LinksLabels

Properties/labels of a link.

Link

Link model representing a network link.

LinkEndpointAPI

API client for link endpoints.

Module Contents#

class air_sdk.endpoints.links.LinksLabels[source]#

Bases: TypedDict

Properties/labels of a link.

cable_length: str#
class air_sdk.endpoints.links.Link[source]#

Bases: air_sdk.bc.BaseCompatMixin, air_sdk.air_model.AirModel

Link model representing a network link.

id#

Unique identifier for the link

created#

Timestamp when the link was created

modified#

Timestamp when the link was last modified

interfaces#

The two interfaces connected by this link

labels#

Optional labels/properties of the link (e.g. cable_length)

id: str#
created: datetime.datetime#
modified: datetime.datetime#
interfaces: list[air_sdk.endpoints.interfaces.Interface]#
labels: LinksLabels | None#
classmethod get_model_api() → type[LinkEndpointAPI][source]#

Returns the respective AirModelAPI type for this model.

property model_api: LinkEndpointAPI#
delete() → None#

Delete the link.

Example

>>> link.delete()
class air_sdk.endpoints.links.LinkEndpointAPI(
api: air_sdk.AirApi,
default_filters: dict[str, Any] | None = None,
)[source]#

Bases: air_sdk.air_model.BaseEndpointAPI[Link]

API client for link endpoints.

API_PATH: str#
model: type[Link]#
create(
*,
interfaces: list[air_sdk.endpoints.interfaces.Interface | air_sdk.air_model.PrimaryKey],
labels: LinksLabels | None = ...,
) → Link#

Create a new link between interfaces.

Parameters:
  • interfaces – The two interfaces to connect

  • labels – Optional labels/properties of the link (e.g. cable_length)

Returns:

The created link

Example

>>> link = api.links.create(interfaces=[interface1, interface2])
>>> link = api.links.create(
...     interfaces=[interface1, interface2],
...     labels={'cable_length': '5m'},
... )
list(
*,
interface: air_sdk.endpoints.interfaces.Interface | air_sdk.air_model.PrimaryKey = ...,
limit: int = ...,
node: air_sdk.endpoints.nodes.Node | air_sdk.air_model.PrimaryKey = ...,
offset: int = ...,
search: str = ...,
ordering: str = ...,
simulation: air_sdk.endpoints.simulations.Simulation | air_sdk.air_model.PrimaryKey = ...,
) → Iterator[Link]#

List all links.

Parameters:
  • interface – Filter by specific interface

  • limit – Number of results to return per page

  • node – Filter by specific node

  • offset – The initial index from which to return the results

  • ordering – Order objects by field. Prefix with “-” for desc order

  • search – Search by interface name or node name of all interfaces in a case-insensitive manner

  • simulation – Filter by specific simulation

Returns:

Iterator of Link instances

Example

>>> # List all links
>>> for link in api.links.list():
...     print(link.id)
>>> # Filter by interface
>>> for link in api.links.list(interface=interface1):
...     print(link.id)
>>> # Order by creation date descending
>>> for link in api.links.list(ordering='-created'):
...     print(link.id)
>>> # Search by node name
>>> for link in api.links.list(search='node-name'):
...     print(link.interfaces[0].node.name, link.interfaces[1].node.name)
get(pk: air_sdk.air_model.PrimaryKey) → Link#

Get a specific link by ID.

Parameters:

pk – The link ID (string or UUID)

Returns:

The Link instance

Example

>>> link = api.links.get('link-id')
delete(pk: air_sdk.air_model.PrimaryKey) → None#

Delete a specific link by ID.

Parameters:

pk – The link ID (string or UUID)

Example

>>> api.links.delete('link-id')

previous

air_sdk.endpoints.interfaces

next

air_sdk.endpoints.manifests

On this page
  • Classes
  • Module Contents
    • LinksLabels
      • cable_length
    • Link
      • id
      • created
      • modified
      • interfaces
      • labels
      • id
      • created
      • modified
      • interfaces
      • labels
      • get_model_api()
      • model_api
      • delete()
    • LinkEndpointAPI
      • API_PATH
      • model
      • create()
      • list()
      • get()
      • delete()
NVIDIA NVIDIA
Privacy Policy | Your Privacy Choices | Terms of Service | Accessibility | Corporate Policies | Product Security | Contact

Copyright © 2026, NVIDIA CORPORATION & AFFILIATES.