cURL
curl --request GET \
--url https://{tenant}.chronosphere.io/api/v1/config/log-scale-actions/{slug} \
--header 'API-Token: <api-key>'package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{tenant}.chronosphere.io/api/v1/config/log-scale-actions/{slug}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("API-Token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{tenant}.chronosphere.io/api/v1/config/log-scale-actions/{slug}")
.header("API-Token", "<api-key>")
.asString();const options = {method: 'GET', headers: {'API-Token': '<api-key>'}};
fetch('https://{tenant}.chronosphere.io/api/v1/config/log-scale-actions/{slug}', 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/log-scale-actions/{slug}"
headers = {"API-Token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"log_scale_action": {
"name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"email_action": {
"attach_csv": true,
"body_template": "<string>",
"recipients": [
"<string>"
],
"subject_template": "<string>",
"use_proxy": true
},
"humio_action": {
"ingest_token": "<string>"
},
"ops_genie_action": {
"api_url": "<string>",
"ops_genie_key": "<string>",
"use_proxy": true
},
"pager_duty_action": {
"routing_key": "<string>",
"use_proxy": true
},
"repository": "<string>",
"slack_action": {
"fields": {},
"url": "<string>",
"use_proxy": true
},
"slack_post_message_action": {
"api_token": "<string>",
"channels": [
"<string>"
],
"fields": {},
"use_proxy": true
},
"slug": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"upload_file_action": {
"file_name": "<string>"
},
"victor_ops_action": {
"message_type": "<string>",
"notify_url": "<string>",
"use_proxy": true
},
"webhook_action": {
"body_template": "<string>",
"headers": {},
"ignore_ssl": true,
"url": "<string>",
"use_proxy": true
}
}
}{
"message": "<string>"
}{
"message": "<string>"
}{}ReadLogScaleAction
GET
/
api
/
v1
/
config
/
log-scale-actions
/
{slug}
cURL
curl --request GET \
--url https://{tenant}.chronosphere.io/api/v1/config/log-scale-actions/{slug} \
--header 'API-Token: <api-key>'package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{tenant}.chronosphere.io/api/v1/config/log-scale-actions/{slug}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("API-Token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{tenant}.chronosphere.io/api/v1/config/log-scale-actions/{slug}")
.header("API-Token", "<api-key>")
.asString();const options = {method: 'GET', headers: {'API-Token': '<api-key>'}};
fetch('https://{tenant}.chronosphere.io/api/v1/config/log-scale-actions/{slug}', 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/log-scale-actions/{slug}"
headers = {"API-Token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"log_scale_action": {
"name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"email_action": {
"attach_csv": true,
"body_template": "<string>",
"recipients": [
"<string>"
],
"subject_template": "<string>",
"use_proxy": true
},
"humio_action": {
"ingest_token": "<string>"
},
"ops_genie_action": {
"api_url": "<string>",
"ops_genie_key": "<string>",
"use_proxy": true
},
"pager_duty_action": {
"routing_key": "<string>",
"use_proxy": true
},
"repository": "<string>",
"slack_action": {
"fields": {},
"url": "<string>",
"use_proxy": true
},
"slack_post_message_action": {
"api_token": "<string>",
"channels": [
"<string>"
],
"fields": {},
"use_proxy": true
},
"slug": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"upload_file_action": {
"file_name": "<string>"
},
"victor_ops_action": {
"message_type": "<string>",
"notify_url": "<string>",
"use_proxy": true
},
"webhook_action": {
"body_template": "<string>",
"headers": {},
"ignore_ssl": true,
"url": "<string>",
"use_proxy": true
}
}
}{
"message": "<string>"
}{
"message": "<string>"
}{}⌘I

