air_sdk.endpoints.platform_information
air_sdk.endpoints.platform_information
Attributes
Classes
Module Contents
Bases: typing.TypedDict
A single port map entry.
The ASIC this entry applies to
The label port for the given ASIC
The local port for the given ASIC
The split number for the given ASIC
Bases: typing.TypedDict
Minimum resources required to run a platform.
Number of CPU cores
Memory, in MiB
Storage, in GiB
Bases: typing.TypedDict
Label port count and split configuration for a platform.
Number of label ports on the platform
Default split factor applied to each label port
('1' = un-split)
Permitted split factors
Bases: air_sdk.air_model.AirModel
Hardware platform characteristics for one model.
Describes the ports, resources and simulator configuration for a single
hardware model. An OSImageManifest pins a specific platform information
version per model.
Exactly one of os_type or emulation_type must be non-empty. The API
enforces this; supplying both or neither returns a 400. The unset one is
returned as None.
Every entry in ports_config['split_options'], and
ports_config['default_split'], must appear as a key in port_map
(the 'mgmt' bucket excepted). The API enforces this; a mismatch
returns a 400.
Unique identifier for the platform information record
Timestamp when the record was created
Timestamp when the record was last modified
Hardware model name, e.g. SN3700
Version of this record, referenced by
the platforms pins on an
OSImageManifest
Split factor to label port to port map entry
Label port count and split configuration
Email of the user who created the record
The OS type this platform runs. Mutually exclusive with
emulation_type; None when unset
The emulation type for this platform. Mutually
exclusive with os_type; None when unset
Free-form key-value variables. Empty when unset
Free-form simulator configuration. Empty when unset
Minimum CPU, memory and storage to run the
platform. None when the API sets no minimum
Delete this platform information record.
Returns:
None
Example:
Bases: air_sdk.air_model.BaseEndpointAPI[air_sdk.endpoints.platform_information.PlatformInformation]
Endpoint API for managing platform information.
Provides listing, retrieval, creation, and deletion of the records describing hardware platform characteristics. The API does not support partial or full updates on this resource.
List platform information records.
Parameters:
creator– Filter by creator emailemulation_type– Filter by emulation typemodel– Filter by hardware model nameos_type– Filter by OS typeplatform_information_version– Filter by versionlimit– Number of results to return per pageoffset– Initial index from which to return resultsordering– Order by field (prefix with ”-” for descending)search– Search across platform information fields**kwargs– Additional filter parameters
Returns:
Iterator of PlatformInformation instances
Example:
Retrieve a specific platform information record.
Parameters:
pk– Platform information UUID**kwargs– Additional query parameters
Returns:
PlatformInformation instance
Example:
Create a platform information record.
Exactly one of os_type or emulation_type must be supplied.
Parameters:
model– Hardware model name, e.g.SN3700platform_information_version– Version of this recordport_map– Split factor ('1','2', … or'mgmt') to label port to port map entryports_config– Label port count and split configurationos_type– The OS type this platform runs. Mutually exclusive withemulation_typeemulation_type– The emulation type. Mutually exclusive withos_typevars– Free-form key-value variablessimulator_config– Free-form simulator configurationminimum_resources– Minimum CPU, memory and storage**kwargs– Additional fields for future API compatibility
Returns:
The created PlatformInformation instance
Example:
Delete a platform information record.
Parameters:
pk– Platform information UUID**kwargs– Additional parameters
Returns:
None
Example: