cURL
curl --request POST \
--url https://{tenant}.chronosphere.io/api/v1/config/external-connections \
--header 'API-Token: <api-key>' \
--header 'Content-Type: application/json' \
--data '{}'package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{tenant}.chronosphere.io/api/v1/config/external-connections"
payload := strings.NewReader("{}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("API-Token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://{tenant}.chronosphere.io/api/v1/config/external-connections")
.header("API-Token", "<api-key>")
.header("Content-Type", "application/json")
.body("{}")
.asString();const options = {
method: 'POST',
headers: {'API-Token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://{tenant}.chronosphere.io/api/v1/config/external-connections', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{tenant}.chronosphere.io/api/v1/config/external-connections"
payload = {}
headers = {
"API-Token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"external_connection": {
"name": "<string>",
"cloudflare": {
"api_token": "<string>"
},
"created_at": "2023-11-07T05:31:56Z",
"mongodb_atlas": {
"client_id": "<string>",
"client_secret": "<string>"
},
"ops_genie": {
"api_key": "<string>",
"api_url": "<string>",
"http_config": {
"basic_auth": {
"password": "<string>",
"username": "<string>"
},
"bearer_token": "<string>",
"tls_config": {
"insecure_skip_verify": true
}
}
},
"pagerduty": {
"events": {
"api_key": "<string>"
},
"rest": {
"api_key": "<string>"
}
},
"sendgrid": {
"api_key": "<string>"
},
"slack": {
"api_url": "<string>",
"token": "<string>"
},
"slug": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"victor_ops": {
"api_key": "<string>",
"api_url": "<string>"
},
"webhook": {
"http_config": {
"basic_auth": {
"password": "<string>",
"username": "<string>"
},
"bearer_token": "<string>",
"tls_config": {
"insecure_skip_verify": true
}
},
"url": "<string>"
}
}
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{}CreateExternalConnections
POST
/
api
/
v1
/
config
/
external-connections
cURL
curl --request POST \
--url https://{tenant}.chronosphere.io/api/v1/config/external-connections \
--header 'API-Token: <api-key>' \
--header 'Content-Type: application/json' \
--data '{}'package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{tenant}.chronosphere.io/api/v1/config/external-connections"
payload := strings.NewReader("{}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("API-Token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://{tenant}.chronosphere.io/api/v1/config/external-connections")
.header("API-Token", "<api-key>")
.header("Content-Type", "application/json")
.body("{}")
.asString();const options = {
method: 'POST',
headers: {'API-Token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://{tenant}.chronosphere.io/api/v1/config/external-connections', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{tenant}.chronosphere.io/api/v1/config/external-connections"
payload = {}
headers = {
"API-Token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"external_connection": {
"name": "<string>",
"cloudflare": {
"api_token": "<string>"
},
"created_at": "2023-11-07T05:31:56Z",
"mongodb_atlas": {
"client_id": "<string>",
"client_secret": "<string>"
},
"ops_genie": {
"api_key": "<string>",
"api_url": "<string>",
"http_config": {
"basic_auth": {
"password": "<string>",
"username": "<string>"
},
"bearer_token": "<string>",
"tls_config": {
"insecure_skip_verify": true
}
}
},
"pagerduty": {
"events": {
"api_key": "<string>"
},
"rest": {
"api_key": "<string>"
}
},
"sendgrid": {
"api_key": "<string>"
},
"slack": {
"api_url": "<string>",
"token": "<string>"
},
"slug": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"victor_ops": {
"api_key": "<string>",
"api_url": "<string>"
},
"webhook": {
"http_config": {
"basic_auth": {
"password": "<string>",
"username": "<string>"
},
"bearer_token": "<string>",
"tls_config": {
"insecure_skip_verify": true
}
},
"url": "<string>"
}
}
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{}Authorizations
Chronosphere API token
Body
application/json
If true, validates the specified configuration without creating the ExternalConnection. If the specified configuration is valid, the endpoint returns a partial response without the ExternalConnection. If the specified configuration is invalid, the endpoint returns an error.
The ExternalConnection to create.
Show child attributes
Show child attributes
Response
A successful response containing the created ExternalConnection.
Show child attributes
Show child attributes
⌘I

