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.

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:
  • server – where to send the request

  • asset_ids – if set, only the shells linked to all these asset IDs

  • limit – maximum number of the identifiers in the page

  • cursor – where to continue the listing from

Returns:

a page of the identifiers of the shells

Implements:
  • GetAllAssetAdministrationShellIdsByAssetLink – GET /lookup/shells

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 name globalAssetId.

Parameters:
  • server – where to send the request

  • asset_links – the asset links which all must match

  • limit – maximum number of the identifiers in the page

  • cursor – where to continue the listing from

Returns:

a page of the identifiers of the shells

Implements:
  • SearchAllAssetAdministrationShellIdsByAssetLink – POST /lookup/shellsByAssetLink

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.

Parameters:
  • server – where to send the request

  • aas_identifier – identifier of the Asset Administration Shell

Returns:

the linked asset IDs

Implements:
  • GetAllAssetLinksById – GET /lookup/shells/{aasIdentifier}

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 without externalSubjectId, which Part 2 forbids for it. The server ignores the semantic IDs of the specific asset IDs.

Parameters:
  • server – where to send the request

  • aas_identifier – identifier of the Asset Administration Shell

  • specific_asset_ids – the asset IDs to be linked

Returns:

the linked asset IDs, as stored by the server

Implements:
  • PostAllAssetLinksById – POST /lookup/shells/{aasIdentifier}

Delete all the asset IDs linked to the shell with the given identifier.

Parameters:
  • server – where to send the request

  • aas_identifier – identifier of the Asset Administration Shell

Implements:
  • DeleteAllAssetLinksById – DELETE /lookup/shells/{aasIdentifier}