Skip to main content

Manage Data Ingestion

Obtain Token to Ingest Data

To register a resource in the IUDX Resource Server, a provider should obtain a token using IUDX Authorization Servers Create Token APIs.

To obtain a token, a provider can either specify their clientId and clientSecret in the header or specify a token header. The clientId and clientSecret are generated for a provider on their Successful Registration.

A provider can obtain a token using the Create Token APIs with the following request body.

{
"itemId": "datakaveri.org/04a15c9960ffda227e9546f3f46e629e1fe4132b/rs.iudx.org.in/pune-env-aqm",
"itemType": "resource_group",
"role": "provider"
}

Register Resource in Resource Server

On successfully obtaining a Data Ingestion Token, a provider can register a resource in the IUDX Resource Server for data ingestion.

Register a Resource Group

The Register Ingestion API is used to register a data ingestion at a resource_group level, with the Data Ingestion Token as a header parameter and the following request body.

{
"entities": [
"datakaveri.org/04a15c9960ffda227e9546f3f46e629e1fe4132b/rs.iudx.org.in/pune-env-aqm"
]
}

Register a Resource

The Register Ingestion API is used to register a data ingestion at a resource level, with the Data Ingestion Token as a header parameter and the following request body.

{
"entities": [
"datakaveri.org/04a15c9960ffda227e9546f3f46e629e1fe4132b/rs.iudx.org.in/pune-env-aqm/aqm-device-577"
]
}

Reset Streaming User Password

A provider can reset the password given to them by the streaming server using the Reset Streaming Password API. This change will reset all active connections and a provider should restart their client applications accordingly.