Mutation
create_scan_freeze_window
Creates a new Scan Freeze Window.
Input Fields
name():
String!
The name of the scan freeze window.
description():
String
The description of the scan freeze window.
active_period():
DateRangeInput
The period during which the scan freeze window is active.
timezone():
Timezone!
The IANA Time zone code for which the scan freeze window's schedule is defined for.
schedule():
ScanFreezeScheduleInput!
The schedule of individual time slots within a week during which scans are frozen.
site_tree_selection():
[ScanFreezeWindowSiteTreeSelectionInput!]!
All sites and folders that this scan freeze window applies to.
enabled():
Boolean!
Whether the scan freeze window is enabled.
Return Fields
scan_freeze_window():
ScanFreezeWindow!
Example
Query
mutation CreateScanFreezeWindow($input: CreateScanFreezeWindowInput!) {
create_scan_freeze_window(input: $input) {
scan_freeze_window {
id
name
description
enabled
timezone
schedule {
time_slots {
begin_day
begin_time
end_day
end_time
}
}
site_tree_selection {
id
}
}
}
}
Variables
{
"input": {
"description": "No scans while the site is being maintained",
"enabled": true,
"name": "Weekend maintenance",
"schedule": {
"time_slots": [
{
"begin_day": "sat",
"begin_time": "22:00",
"end_day": "sun",
"end_time": "06:00"
}
]
},
"site_tree_selection": [
{
"id": "1"
}
],
"timezone": "Europe/London"
}
}
Result
{
"data": {
"create_scan_freeze_window": {
"scan_freeze_window": {
"id": "1",
"name": "Weekend maintenance",
"description": "No scans while the site is being maintained",
"enabled": true,
"timezone": "Europe/London",
"schedule": {
"time_slots": [
{
"begin_day": "sat",
"begin_time": "22:00",
"end_day": "sun",
"end_time": "06:00"
}
]
},
"site_tree_selection": [
{
"id": "1"
}
]
}
}
}
}