Skip to content

labs/connector/provider

Step Summary
labs/connector/provider/query_assets List the ids of the assets the provider connector holds.
labs/connector/provider/query_contract_definitions List the contract definitions the provider connector holds.
labs/connector/provider/query_policies List the ids of the policy definitions the provider connector holds.

labs/connector/provider/query_assets

List the ids of the assets the provider connector holds.

Inputs

Parameter Type Required Default Also accepts Description
id_prefix string no '' — Keep only the ids that start with this; empty keeps every one.

Output — the value assertions and returns: read

Output contract of labs/connector/provider/query_assets.

Field Type Description
asset_ids list of string Ids of the matching assets, in the order listed.

labs/connector/provider/query_contract_definitions

List the contract definitions the provider connector holds.

A definition is kept when its id starts with id_prefix or its selector names an asset starting with asset_id_prefix; with neither given, every definition is. Besides their ids it publishes the policies and assets the kept definitions bind, so a test can withdraw a whole offer — definition first, then its policies, then its assets — without knowing any of them.

Inputs

Parameter Type Required Default Also accepts Description
id_prefix string no '' — Keep only the ids that start with this; empty keeps every one.
asset_id_prefix string no '' — Also keep a definition whose asset selector names an asset id that starts with this — the way to find an offer whose own id the connector generated.

Output — the value assertions and returns: read

Output contract of labs/connector/provider/query_contract_definitions.

Field Type Description
contract_definition_ids list of string Ids of the matching contract definitions, in the order listed.
policy_ids list of string Access and contract policies the matching definitions bind, once each.
asset_ids list of string Asset ids the matching definitions' selectors name, once each.

labs/connector/provider/query_policies

List the ids of the policy definitions the provider connector holds.

Inputs

Parameter Type Required Default Also accepts Description
id_prefix string no '' — Keep only the ids that start with this; empty keeps every one.

Output — the value assertions and returns: read

Output contract of labs/connector/provider/query_policies.

Field Type Description
policy_ids list of string Ids of the matching policy definitions, in the order listed.