Create up to 100 sources.
Sources to create.
required | Array of any (Items) [ 1 .. 10 ] items |
List of created sources.
The response for a bad request.
Validation Error
from cognite.client.data_classes.hosted_extractors import EventHubSourceWrite source = EventHubSourceWrite('my_event_hub', 'http://myeventhub.com', "My EventHub", 'my_key', 'my_value') res = client.hosted_extractors.sources.create(source)
{- "items": [
- {
- "type": "mqtt3",
- "externalId": "my.known.id",
- "host": "string",
- "port": 1883,
- "authentication": {
- "type": "basic",
- "username": "string"
}, - "useTls": true,
- "createdTime": 1730204346000,
- "lastUpdatedTime": 1730204346000,
- "caCertificate": {
- "thumbprint": "string",
- "expiresAt": 0
}, - "authCertificate": {
- "thumbprint": "string",
- "expiresAt": 0
}
}
]
}