const sources = await client.hostedExtractors.sources.create([
{
type: 'mqtt5',
externalId: 'my-mqtt-broker',
host: 'mqtt.example.com',
authentication: { type: 'basic', username: 'user', password: 'secret' },
},
]);
await client.hostedExtractors.sources.delete(
[{ externalId: 'my-mqtt-broker' }],
{ ignoreUnknownIds: true, force: true }
);
const sources = await client.hostedExtractors.sources
.list()
.autoPagingToArray({ limit: Infinity });
Optionalquery: FilterQueryconst sources = await client.hostedExtractors.sources.retrieve([
{ externalId: 'my-mqtt-broker' },
]);
const sources = await client.hostedExtractors.sources.update([
{
type: 'mqtt5',
externalId: 'my-mqtt-broker',
update: { host: { set: 'mqtt2.example.com' }, port: { setNull: true } },
},
]);
Shared behaviour of the hosted extractor sub-APIs: they identify items by external ID, use
byIds(notbyids), and accept at most 10 items per create or update request and 100 per retrieve or delete request.