Skip to content

Subscribe to the publication

  • Consumer can subscribe to any discovarable publication
  • Subscribed data are always READ ONLY.

Approval process

Publication can require approval. This is currently not supported and all subscription are auto approved.

The permission for deleting subscriptions are TBD.

Endpoints

GET/api/sharing/subscription/list - The endpoint will list all subscription for the tenant.

POST/api/sharing/subscription - The endpoint will create new subscription - Body content

{
  "reference": "string",  //optional, used for usage identitfication
  "publicationId": <id of the publication>,
  "endDate": "vali date , cannot exceed max. publication date" 
}

Access publication data

GET/api/services/subscriptionsastoken?subscriptionId=<id of the subscription> - The endpoint will return accesstoken and ids for reading resource data - Result:

{
  "resourceId": <id of the source dataset>,
  "projectId":  <project id of the source dataset>,
  "sasToken": <access token to be used in api call fro the source dataset>
}