Legacy Data Integration API Reference (1.0.0) - ConnectionManagement
Create new connections, update them and delete the connections you don't want anymore.
List All Connections
- scope:
connection:list
Authorizations:
Responses
Response Schema: application/json
| cross_id | string The id shared between accounts and environments |
| _id | string A unique id for this connection |
| {{propertyId}}_exists | boolean An indication that the password key of some connection type key is included in the the connection. |
| is_{{propertyId}}_encrypted | boolean An indication that a password key of some connection type key is encrypted. |
| connection_name | string The connection name |
| connection_type | string The connection type. |
Request samples
- cURL
- Python
curl --location --request GET 'https://console.rivery.io/api/connections/list' \ --header 'Authorization: Bearer <token>'
Response samples
- 200
- 403
[- {
- "cross_id": "string",
- "_id": "string",
- "{{propertyId}}_exists": true,
- "is_{{propertyId}}_encrypted": true,
- "connection_name": "string",
- "connection_type": "aws"
}
]Filter Connections By Connection Type
- scope:
connection:list
Authorizations:
query Parameters
| connection_type required | string Example: connection_type=fb Filter connections by connection types |
Responses
Response Schema: application/json
| cross_id | string The id shared between accounts and environments |
| _id | string A unique id for this connection |
| {{propertyId}}_exists | boolean An indication that the password key of some connection type key is included in the the connection. |
| is_{{propertyId}}_encrypted | boolean An indication that a password key of some connection type key is encrypted. |
| connection_name | string The connection name |
| connection_type | string The connection type. |
Request samples
- cURL
- Python
curl --location -g --request GET 'https://console.rivery.io/api/connections/{{connectionTypeId}}?cross_id=' \ --header 'Authorization: Bearer <token>'
Response samples
- 200
- 403
{- "cross_id": "string",
- "_id": "string",
- "{{propertyId}}_exists": true,
- "is_{{propertyId}}_encrypted": true,
- "connection_name": "string",
- "connection_type": "aws"
}Create New Connection
- scope:
connection:edit
Authorizations:
Request Body schema: application/json
Create New Connection using the connection name, connection type, and connection paramters as described in connection parameters API request.
| connection_type required | string |
| connection_name required | string |
Responses
Response Schema: application/json
| cross_id | string The id shared between accounts and environments |
| _id | string A unique id for this connection |
| {{propertyId}}_exists | boolean An indication that the password key of some connection type key is included in the the connection. |
| is_{{propertyId}}_encrypted | boolean An indication that a password key of some connection type key is encrypted. |
| connection_name | string The connection name |
| connection_type | string The connection type. |
Request samples
- Payload
- cURL
- Python
{- "connection_type": "aws",
- "connection_name": "My S3 Connection",
- "aws_access_key": "smd0mLSCJHodKndas",
- "aws_access_secrets": "Amndsjkjns0nmnre3.nkdskndYkHDS",
- "connection_method": "aws_keys"
}Response samples
- 200
- 403
{- "cross_id": "string",
- "_id": "string",
- "{{propertyId}}_exists": true,
- "is_{{propertyId}}_encrypted": true,
- "connection_name": "string",
- "connection_type": "aws"
}Get Specific Connection
- scope:
connection:list
Authorizations:
path Parameters
| connectionId required | string Example: 5faa7bd17bedeb66f4c287c7 connection id |
Responses
Response Schema: application/json
| cross_id | string The id shared between accounts and environments |
| _id | string A unique id for this connection |
| {{propertyId}}_exists | boolean An indication that the password key of some connection type key is included in the the connection. |
| is_{{propertyId}}_encrypted | boolean An indication that a password key of some connection type key is encrypted. |
| connection_name | string The connection name |
| connection_type | string The connection type. |
Request samples
- cURL
- Python
curl --location -g --request GET 'https://console.rivery.io/api/connections/{{connectionId}}' \ --header 'Authorization: Bearer <token>'
Response samples
- 200
- 403
{- "cross_id": "string",
- "_id": "string",
- "{{propertyId}}_exists": true,
- "is_{{propertyId}}_encrypted": true,
- "connection_name": "string",
- "connection_type": "aws"
}Update Connection by ID
- scope:
connection:edit
Authorizations:
path Parameters
| connectionId required | string Example: 5faa7bd17bedeb66f4c287c7 connection id |
Request Body schema: application/json
Create New Connection using the connection name, connection type, and connection paramters as described in connection parameters API request.
| connection_type required | string |
| connection_name required | string |
Responses
Response Schema: application/json
| status | boolean |
| code | integer |
| count | integer |
Request samples
- Payload
{- "connection_type": "aws",
- "connection_name": "My S3 Connection",
- "aws_access_key": "smd0mLSCJHodKndas",
- "aws_access_secrets": "Amndsjkjns0nmnre3.nkdskndYkHDS",
- "connection_method": "aws_keys"
}Response samples
- 200
- 403
- 404
{- "status": true,
- "code": 0,
- "count": 1
}Delete Connection By ID
- scope:
connection:delete
Authorizations:
path Parameters
| connectionId required | string Example: 5faa7bd17bedeb66f4c287c7 connection id |
Responses
Response Schema: application/json
| status | boolean |
| code | integer |
| deleted_count | integer |
Request samples
- cURL
- Python
curl --location -g --request DELETE 'https://console.rivery.io/api/connections/{{connectionId}}' \ --header 'Authorization: Bearer <token>'
Response samples
- 200
- 403
- 404
- 420
{- "status": true,
- "code": 0,
- "deleted_count": 1
}