air_sdk.endpoints.links
air_sdk.endpoints.links
Stub file for links endpoint type hints.
Classes
Module Contents
Bases: typing.TypedDict
Properties/labels of a link.
Bases: air_sdk.bc.BaseCompatMixin, air_sdk.air_model.AirModel
Link model representing a network link.
Unique identifier for the link
Timestamp when the link was created
Timestamp when the link was last modified
The two interfaces connected by this link
Optional labels/properties of the link (e.g. cable_length)
Delete the link.
Example:
Bases: air_sdk.air_model.BaseEndpointAPI[air_sdk.endpoints.links.Link]
API client for link endpoints.
Create a new link between interfaces.
Parameters:
interfaces– The two interfaces to connectlabels– Optional labels/properties of the link (e.g. cable_length)
Returns:
The created link
Example:
List all links.
Parameters:
interface– Filter by specific interfacelimit– Number of results to return per pagenode– Filter by specific nodeoffset– The initial index from which to return the resultsordering– Order objects by field. Prefix with ”-” for desc ordersearch– Search by interface name or node name of all interfaces in a case-insensitive mannersimulation– Filter by specific simulation
Returns:
Iterator of Link instances
Example:
Get a specific link by ID.
Parameters:
pk– The link ID (string or UUID)
Returns:
The Link instance
Example:
Delete a specific link by ID.
Parameters:
pk– The link ID (string or UUID)
Example: