🧩Connection API
The Connection API is available solely through an on-premises installation and is reliant on the decision to use the Agentless feature.
If you prefer installing each agent locally, then adding a connection is done at the agent level
To use the Connection API, it's necessary to generate an access token.
🔗Access TokenConnection
Add
POST
https://<<platform-server>>/ds-api/pool/pg-instances/{connection_name}
Create a New Remote Monitored Connection (Agentless Feature)
Path Parameters
Name | Type | Description |
---|---|---|
connection_name* | String | Connection Identifier |
Headers
Name | Type | Description |
---|---|---|
user-token* | String | Generated Access Token |
Request Body
Name | Type | Description |
---|---|---|
host* | String | PostgreSQL Hostname for connection |
port* | Number | Indicate the port used for communication with the PostgreSQL cluster. |
user* | String | PostgreSQL user used by Datasentinel for monitoring |
password* | String | User password |
tags* | String | Tags linked with the instance. Tags should follow the format [key=value],.... Can be empty Refer to Tags section for more details |
Response
Display
GET
https://<<platform-server>>/ds-api/pool/pg-instances/{connection_name}
Display Remote Monitored Connection (Agentless Feature)
Path Parameters
Name | Type | Description |
---|---|---|
connection_name* | String | Connection Identifier |
Headers
Name | Type | Description |
---|---|---|
user-token* | String | Generated Access Token |
Response
Update
PUT
https://<<platform-server>>/ds-api/pool/pg-instances/{connection_name}
Update Remote Monitored Connection (Agentless Feature)
Path Parameters
Name | Type | Description |
---|---|---|
connection_name* | String | Connection Identifier |
Headers
Name | Type | Description |
---|---|---|
user-token* | String | Generated Access Token |
Request Body
Name | Type | Description |
---|---|---|
host | String | PostgreSQL Hostname for connection |
port | Number | Indicate the port used for communication with the PostgreSQL cluster. |
user | String | PostgreSQL user used by Datasentinel for monitoring |
password | String | User password |
tags | String | Tags linked with the instance. Tags should follow the format [key=value],.... Can be empty Refer to Tags section for more details |
Response
Disable
PATCH
https://<<platform-server>>/ds-api/pool/pg-instances/{connection_name}/disable
Disable Remote Monitored Connection (Agentless Feature)
Path Parameters
Name | Type | Description |
---|---|---|
connection_name* | String | Connection Identifier |
Headers
Name | Type | Description |
---|---|---|
user-token* | String | Generated Access Token |
Response
Enable
PATCH
https://<<platform-server>>/ds-api/pool/pg-instances/{connection_name}/enable
Enable Remote Monitored Connection (Agentless Feature)
Path Parameters
Name | Type | Description |
---|---|---|
connection_name* | String | Connection Identifier |
Headers
Name | Type | Description |
---|---|---|
user-token* | String | Generated Access Token |
DELETE
https://<<platform-server>>/ds-api/pool/pg-instances/{connection_name}
Delete Remote Monitored Connection (Agentless Feature)
Path Parameters
Name | Type | Description |
---|---|---|
connection_name* | String | Connection Identifier |
Headers
Name | Type | Description |
---|---|---|
user-token* | String | Generated Access Token |
Response
Last updated