Docs Menu
Docs Home
/
Atlas
/ /

HTTPS Connections

Atlas Stream Processing supports source connections over HTTPS.

To add an HTTPS connection to your Stream Processing Instance:

Creating an HTTPS connection to an Stream Processing Instance using the Atlas CLI is not currently supported.

Creating an HTTPS connection to an Stream Processing Instance using the Atlas UI is not currently supported.

The Atlas Administration API provides an endpoint for adding a connection to a connection registry.

Create One Connection

If the API endpoint requires authentication, such as an API key or Bearer Access Token authentication, you should add authentication details as headers when you define the connection to prevent providing these as plaintext as part of the $https operator.

Other authentication schemes, such as Digest Auth or OAuth, are not currently supported.

To learn how to use HTTPS connections with Atlas Stream Processing, see $https.

Example:

curl --user "<publicApiKey>:<privateApiKey>" --digest \
--header "Content-Type: application/json" \
--header "Accept: application/vnd.atlas.2023-02-01+json" \
--include \
--data '{"name": "HTTPSConnection","type": "Https","url": "<apiBasePath>"}' \
--request POST "https://cloud.mongodb.com/api/atlas/v2/groups/<projectID>/streams/<tenantName>/connections"

Back

Atlas Connections