air_sdk.endpoints.interfaces
air_sdk.endpoints.interfaces
Stub file for interfaces endpoint type hints.
Classes
Module Contents
Bases: air_sdk.air_model.AirModel
Interface model representing a network interface.
Unique identifier for the interface
Human-readable name of the interface
Timestamp when the interface was created
Timestamp when the interface was last modified
Node that the interface is related to
Type of the interface
MAC address of the interface
Interface that the interface is connected to
Whether the interface is outbound
Attributes of the interface
Update the interface’s properties.
Parameters:
name– New name for the interfaceinterface_type– New type for the interfaceoutbound– New outbound status for the interfaceattributes– New attributes for the interface
Example:
Delete the interface.
Example:
Connect the interface to another interface.
Parameters:
target– Interface or primary key of the interface to connect to
Example:
Disconnect the interface from its connection.
Example:
Query for the related services of the interface.
Returns:
ServiceEndpointAPI instance filtered for this interface’s services
Example:
Bases: air_sdk.air_model.BaseEndpointAPI[air_sdk.endpoints.interfaces.Interface]
API client for interface endpoints.
Create a new interface.
Parameters:
name– Name of the interfacenode– Node to create the interface on
Returns:
The created Interface instance
Example:
List all interfaces with optional filtering.
Parameters:
interface_type– Filter by interface typemac_address– Filter by MAC addressname– Filter by namenode– Filter by nodeoutbound– Filter by outbound statussimulation– Filter by simulationlimit– Number of results to return per pageoffset– The initial index from which to return the resultssearch– Search by nameordering– Order by field
Returns:
Iterator of Interface instances
Example:
Update the interface’s properties.
Parameters:
interface– Interface or primary key of the interface to updatename– New name for the interfaceinterface_type– New type for the interfaceoutbound– New outbound status for the interfaceattributes– New attributes for the interface
Returns:
The updated Interface instance
Example:
Get a specific interface by ID.
Parameters:
pk– The interface ID (string or UUID)
Returns:
The Interface instance
Example:
Delete a specific interface by ID.
Parameters:
pk– The interface ID (string or UUID)
Example:
Connect the interface to another interface.
Parameters:
interface– Interface or primary key of the interface to connecttarget– Interface or primary key of the interface to connect to
Returns:
The source interface instance
Example:
Disconnect the interface from its connection.
Parameters:
interface– Interface or primary key of the interface to disconnect
Returns:
The source interface instance
Example: