Create or update a connection with a specified ID
Update the connection identified by the connectionId path parameter.
Body
namestringThe name of the connection
The type of a connection
The status of a connection or resource
uristringrequiredThe URI of the connection
The subscription sources of this connection
The publish targets of this connection
specificConfigobjectConfiguration which is only applicable for a specific connection type
clientCountnumberHow many clients on different cluster nodes should establish the connection
failoverEnabledbooleanWhether or not failover is enabled for this connection
validateCertificatesbooleanWhether or not to validate server certificates on connection establishment
mappingDefinitionsPayloadMappingDefinitionsList of mapping definitions where the key represents the ID of each mapping that can be used in sources and targets to reference a mapping.
MappingContext to apply in this connection containing JavaScript scripts mapping from external messages to internal Ditto Protocol messages. Usage of MappingContext is deprecated, use PayloadMappingDefinitions instead.
sshTunnelobjectThe configuration of a local SSH port forwarding used to tunnel the connection to the actual endpoint.
tagsArray<string>The tags of the connection
Parameters
connectionIdstringrequiredpathThe ID of the connection
Response
The connection was successfully updated.
The request could not be completed. Possible reasons:
- the
connectionIdmust be an URI, - the
IDwas wrongly set in the request body, - the JSON of the connection to be created is invalid.
The request could not be completed due to missing authentication.
The request could not be completed due to invalid authentication.
The request could not be completed. The connection with ID connectionId was not found.
Authorization
DevOpsBasichttp (basic)Eclipse Ditto devops user (devops) + password (foobar)
DevOpsBearerhttp (bearer)A JSON Web Token issued by a supported OAuth 2.0 Identity Provider for the Eclipse Ditto devops user.