curl --request PUT \
--url https://app.aegister.com/api/v1/cloud-defender/{id} \
--header 'Content-Type: application/json' \
--header 'X-Aegister-Token: <api-key>' \
--data '{
"organization": 5,
"fqdn": "sample.com",
"email": "jdoe@sample.com",
"endpoint": "11.22.33.44",
"services": [
"Caching"
]
}'
{
"error": 0,
"messages": [],
"data": {
"id": 2,
"organization": {
"id": 5,
"name": "Sample Organization",
"logo": "https://sample.com/logo.svg"
},
"email": "johndoe@mail.com",
"fqdn": "sample.com",
"check": {
"stat": {
"fqdn": 1,
"proxy": 1,
"endpoint": 1,
"datetime": "2023-11-07T05:31:56Z"
},
"status": 1,
"web_stat": [
{
"datetime": "2023-11-07T05:31:56Z",
"waf_protection": 50,
"total_managed_requests": 200
}
]
},
"endpoint": "11.22.33.44",
"services": [
"Caching"
]
}
}
Edit a Cloud Defender configuration in the Web Application.
You can edit only a Cloud Defender configuration for an organization you can manage.
curl --request PUT \
--url https://app.aegister.com/api/v1/cloud-defender/{id} \
--header 'Content-Type: application/json' \
--header 'X-Aegister-Token: <api-key>' \
--data '{
"organization": 5,
"fqdn": "sample.com",
"email": "jdoe@sample.com",
"endpoint": "11.22.33.44",
"services": [
"Caching"
]
}'
{
"error": 0,
"messages": [],
"data": {
"id": 2,
"organization": {
"id": 5,
"name": "Sample Organization",
"logo": "https://sample.com/logo.svg"
},
"email": "johndoe@mail.com",
"fqdn": "sample.com",
"check": {
"stat": {
"fqdn": 1,
"proxy": 1,
"endpoint": 1,
"datetime": "2023-11-07T05:31:56Z"
},
"status": 1,
"web_stat": [
{
"datetime": "2023-11-07T05:31:56Z",
"waf_protection": 50,
"total_managed_requests": 200
}
]
},
"endpoint": "11.22.33.44",
"services": [
"Caching"
]
}
}
The response is of type object
.