The cluster's scheduled security report (browser session)
import requests
url = "https://api.platform.ankra.app/org/clusters/imported/{cluster_id}/security/report-schedule"
headers = {"cookie": "ankra_session="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'ankra_session='}};
fetch('https://api.platform.ankra.app/org/clusters/imported/{cluster_id}/security/report-schedule', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api.platform.ankra.app/org/clusters/imported/{cluster_id}/security/report-schedule \
--cookie ankra_session={
"configured": true,
"schedule": {
"frequency": "weekly",
"recipients": [
"<string>"
],
"enabled": true,
"last_sent_at": "2023-11-07T05:31:56Z",
"next_due_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}{
"detail": "permission_denied",
"permission": "<string>",
"scope_type": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}Security
The cluster's scheduled security report (browser session)
Returns the cluster’s scheduled security report configuration: frequency, email recipients and whether it is enabled.
GET
/
org
/
clusters
/
imported
/
{cluster_id}
/
security
/
report-schedule
The cluster's scheduled security report (browser session)
import requests
url = "https://api.platform.ankra.app/org/clusters/imported/{cluster_id}/security/report-schedule"
headers = {"cookie": "ankra_session="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'ankra_session='}};
fetch('https://api.platform.ankra.app/org/clusters/imported/{cluster_id}/security/report-schedule', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api.platform.ankra.app/org/clusters/imported/{cluster_id}/security/report-schedule \
--cookie ankra_session={
"configured": true,
"schedule": {
"frequency": "weekly",
"recipients": [
"<string>"
],
"enabled": true,
"last_sent_at": "2023-11-07T05:31:56Z",
"next_due_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}{
"detail": "permission_denied",
"permission": "<string>",
"scope_type": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}Authorizations
Browser session. Mutations also require X-Ankra-CSRF.