Links
🧩

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.

Connection

post
https://<<platform-server>>/ds-api
/pool/pg-instances/{connection_name}
Add
Example
cat > body.json << EOF
{
"host": "pg-sales-1734",
"port": 9342,
"user": "datasentinel",
"password": "sentinel",
"tags": "application=sales,environment=production,provider=amazon,datacenter=lyon",
}
EOF
export TOKEN=<<user_token>>
curl -k --header "user-token: $TOKEN" --header 'Content-Type: application/json' --request POST 'https://<<platform-server>>/ds-api/pool/pg-instances/sales-production' -d @body.json
get
https://<<platform-server>>/ds-api
/pool/pg-instances/{connection_name}
Display
put
https://<<platform-server>>/ds-api
/pool/pg-instances/{connection_name}
Update
patch
https://<<platform-server>>/ds-api
/pool/pg-instances/{connection_name}/disable
Disable
patch
https://<<platform-server>>/ds-api
/pool/pg-instances/{connection_name}/enable
Enable
delete
https://<<platform-server>>/ds-api
/pool/pg-instances/{connection_name}