aas_client3_2.discovery
Implement the operations of the Asset Administration Shell Basic Discovery API.
The discovery links the identifiers of the Asset Administration Shells to the IDs
of their assets: the global asset ID, given as the specific asset ID with the name
globalAssetId (Constraint AASd-116), and the other specific asset IDs.
Every public function implements exactly one operation of the specification. The
private functions _build_* and _parse_* build the request and parse
the response of the operation. They do no I/O, and constitute a semi-public
interface for the testing client, which is released in lockstep with this client.
- aas_client3_2.discovery.get_all_asset_administration_shell_ids_by_asset_link(server: Server, *, asset_ids: Sequence[SpecificAssetID] | None = None, limit: int | None = None, cursor: str | None = None) IdsResult[source]
List a page of the identifiers of the shells linked to all the given asset IDs.
Give the global asset ID as a specific asset ID with the name
globalAssetId.- Parameters:
- Returns:
a page of the identifiers of the shells
- Implements:
GetAllAssetAdministrationShellIdsByAssetLink –
GET /lookup/shells
- aas_client3_2.discovery.search_all_asset_administration_shell_ids_by_asset_link(server: Server, asset_links: Sequence[AssetLink], *, limit: int | None = None, cursor: str | None = None) IdsResult[source]
List a page of the identifiers of the shells linked to all
asset_links.This is the same search as
get_all_asset_administration_shell_ids_by_asset_link(), but with the asset links in the body instead of the query, so that also many links fit. Give the global asset ID as an asset link with the nameglobalAssetId.- Parameters:
- Returns:
a page of the identifiers of the shells
- Implements:
SearchAllAssetAdministrationShellIdsByAssetLink –
POST /lookup/shellsByAssetLink
- aas_client3_2.discovery.get_all_asset_links_by_id(server: Server, aas_identifier: str) List[SpecificAssetID][source]
Get the asset IDs linked to the shell with the given identifier.
The global asset ID is given as the specific asset ID with the name
globalAssetId.
- aas_client3_2.discovery.post_all_asset_links_by_id(server: Server, aas_identifier: str, specific_asset_ids: Sequence[SpecificAssetID]) List[SpecificAssetID][source]
Create or replace all the asset IDs linked to the shell with the given identifier.
Give the global asset ID as the specific asset ID with the name
globalAssetId, and withoutexternalSubjectId, which Part 2 forbids for it. The server ignores the semantic IDs of the specific asset IDs.