builtin:maintenance-windows)Create and configure maintenance-windows
| Schema ID | Schema groups | Scope |
|---|---|---|
builtin:maintenance-windows | - | environment |
| GET | Managed | https://{your-domain}/e/{your-environment-id}/api/v2/settings/schemas/builtin:maintenance-windows |
| GET | SaaS | https://{your-environment-id}.live.dynatrace.com/api/v2/settings/schemas/builtin:maintenance-windows |
| GET | Environment ActiveGate | https://{your-activegate-domain}/e/{your-environment-id}/api/v2/settings/schemas/builtin:maintenance-windows |
To execute this request, you need an access token with Read settings (settings.read) scope. To learn how to obtain and use it, see Tokens and authentication.
| Property | Type | Description | Required |
|---|---|---|---|
Name of the maintenance windowname | text | - | Required |
Enabledenabled | boolean | - | Required |
Descriptiondescription | text | - | Optional |
Schedule definitionschedule | ScheduleDefinition | - | Required |
DQL Filterfilter | text | - | Required |
Auto-delete after expirationautoDelete | boolean | When enabled, this maintenance window configuration will be automatically deleted 30 days after the end of its last execution. | Required |
ScheduleDefinition object| Property | Type | Description | Required |
|---|---|---|---|
Triggertrigger | Trigger | Trigger definition. | Required |
Time zonetimezone | text | - | Optional |
Durationduration | integer | Duration of the maintenance window in minutes. | Required |
Trigger object| Property | Type | Description | Required |
|---|---|---|---|
Trigger Typetype | enum | Type of trigger. The element has these enums
| Required |
Time triggerrecurring | TimeTrigger | - | Required |
Once Triggeronce | OnceTrigger | - | Required |
TimeTrigger object| Property | Type | Description | Required |
|---|---|---|---|
Timetime | local_time | Time for the trigger. | Required |
Recurring start dateearliestStart | local_date | Earliest start date for when the first instance of this maintenance window should be created. | Optional |
Recurring end dateuntil | local_date | Date after which instances of this recurring maintenance window should no longer be created. | Optional |
Recurrence rulerule | text | Reference to rule which specifies on which days instance of this maintenance window should be created. | Optional |
OnceTrigger object| Property | Type | Description | Required |
|---|---|---|---|
Datedate | local_date_time | Date for the once trigger. | Required |