Provisioning
Create Connection
VMS
Identity Provider (IDP)
Provisioning
- POSTCreate Organization
- GETList Organizations
- GETGet Organization by ID
- DELSoft Delete Organization By Id And Environment Id
- POSTCreate Connection
- GETList Connections
- GETGet Connection by ID
- GETList Jobs by Connection ID
- GETTest Connection Credentials by Connection ID
- DELDelete Connection
- PATCHUpdate Connection by ID and Organization ID
Connectors
Enrichments
Provisioning
Create Connection
Create a connection for a given Organization.
POST
/
provisioning
/
organizations
/
{organization_id}
/
connections
curl --request POST \
--url https://api.leen.dev/v1/provisioning/organizations/{organization_id}/connections \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '{
"vendor": "SNYK",
"credentials": {
"client_key": "<string>",
"secret_key": "<string>"
},
"identifier": "<string>",
"options": {
"oauth2_redirect_urls": {
"success": "<string>",
"error": "<string>"
}
}
}'
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"vendor": "<string>",
"is_active": true,
"refresh_interval_secs": 123,
"timeout_secs": 123,
"organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"oauth2_authorize_url": "<string>",
"identifier": "<string>",
"state": "PENDING",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"health": {
"name": "HEALTHY",
"status": "HEALTHY",
"description": "<string>",
"resolution_owner": "LEEN",
"details": [
{
"data_export_type": "alerts",
"endpoint": "<string>"
}
]
}
}
Authorizations
Headers
Path Parameters
Body
application/json
Response
200
application/json
Successful Response
The response is of type object
.
curl --request POST \
--url https://api.leen.dev/v1/provisioning/organizations/{organization_id}/connections \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '{
"vendor": "SNYK",
"credentials": {
"client_key": "<string>",
"secret_key": "<string>"
},
"identifier": "<string>",
"options": {
"oauth2_redirect_urls": {
"success": "<string>",
"error": "<string>"
}
}
}'
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"vendor": "<string>",
"is_active": true,
"refresh_interval_secs": 123,
"timeout_secs": 123,
"organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"oauth2_authorize_url": "<string>",
"identifier": "<string>",
"state": "PENDING",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"health": {
"name": "HEALTHY",
"status": "HEALTHY",
"description": "<string>",
"resolution_owner": "LEEN",
"details": [
{
"data_export_type": "alerts",
"endpoint": "<string>"
}
]
}
}