cURL
curl --request PUT \
--url https://{tenant}.chronosphere.io/api/v1/config/log-scale-actions/{slug} \
--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/log-scale-actions/{slug}"
payload := strings.NewReader("{}")
req, _ := http.NewRequest("PUT", 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.put("https://{tenant}.chronosphere.io/api/v1/config/log-scale-actions/{slug}")
.header("API-Token", "<api-key>")
.header("Content-Type", "application/json")
.body("{}")
.asString();const options = {
method: 'PUT',
headers: {'API-Token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
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}"
payload = {}
headers = {
"API-Token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, 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>"
}{
"message": "<string>"
}{
"message": "<string>"
}{}UpdateLogScaleAction
PUT
/
api
/
v1
/
config
/
log-scale-actions
/
{slug}
cURL
curl --request PUT \
--url https://{tenant}.chronosphere.io/api/v1/config/log-scale-actions/{slug} \
--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/log-scale-actions/{slug}"
payload := strings.NewReader("{}")
req, _ := http.NewRequest("PUT", 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.put("https://{tenant}.chronosphere.io/api/v1/config/log-scale-actions/{slug}")
.header("API-Token", "<api-key>")
.header("Content-Type", "application/json")
.body("{}")
.asString();const options = {
method: 'PUT',
headers: {'API-Token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
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}"
payload = {}
headers = {
"API-Token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, 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>"
}{
"message": "<string>"
}{
"message": "<string>"
}{}Authorizations
Chronosphere API token
Path Parameters
Body
application/json
If true, the LogScaleAction will be created if it does not already exist, identified by slug. If false, an error will be returned if the LogScaleAction does not already exist.
If true, validates the specified configuration without creating or updating the LogScaleAction. If the specified configuration is valid, the endpoint returns a partial response without the LogScaleAction. If the specified configuration is invalid, the endpoint returns an error.
The LogScaleAction to update.
Show child attributes
Show child attributes
Response
A successful response containing the updated LogScaleAction.
Show child attributes
Show child attributes
⌘I

