maintenance_configurations
Creates, updates, deletes, gets or lists a maintenance_configurations
resource.
Overview
Name | maintenance_configurations |
Type | Resource |
Id | azure.aks.maintenance_configurations |
Fields
- vw_maintenance_configurations
- maintenance_configurations
Name | Datatype | Description |
---|---|---|
id | text | Resource ID. |
name | text | The name of the resource that is unique within a resource group. This name can be used to access the resource. |
configName | text | field from the properties object |
maintenance_window | text | field from the properties object |
not_allowed_time | text | field from the properties object |
resourceGroupName | text | field from the properties object |
resourceName | text | field from the properties object |
subscriptionId | text | field from the properties object |
system_data | text | field from the properties object |
time_in_week | text | field from the properties object |
type | text | Resource type |
Name | Datatype | Description |
---|---|---|
id | string | Resource ID. |
name | string | The name of the resource that is unique within a resource group. This name can be used to access the resource. |
properties | object | Properties used to configure planned maintenance for a Managed Cluster. |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
type | string | Resource type |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | configName, resourceGroupName, resourceName, subscriptionId | |
list_by_managed_cluster | SELECT | resourceGroupName, resourceName, subscriptionId | |
create_or_update | INSERT | configName, resourceGroupName, resourceName, subscriptionId | |
delete | DELETE | configName, resourceGroupName, resourceName, subscriptionId |
SELECT
examples
- vw_maintenance_configurations
- maintenance_configurations
SELECT
id,
name,
configName,
maintenance_window,
not_allowed_time,
resourceGroupName,
resourceName,
subscriptionId,
system_data,
time_in_week,
type
FROM azure.aks.vw_maintenance_configurations
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
id,
name,
properties,
systemData,
type
FROM azure.aks.maintenance_configurations
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new maintenance_configurations
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.aks.maintenance_configurations (
configName,
resourceGroupName,
resourceName,
subscriptionId,
properties
)
SELECT
'{{ configName }}',
'{{ resourceGroupName }}',
'{{ resourceName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: systemData
value:
- name: createdBy
value: string
- name: createdByType
value: string
- name: createdAt
value: string
- name: lastModifiedBy
value: string
- name: lastModifiedByType
value: string
- name: lastModifiedAt
value: string
- name: properties
value:
- name: timeInWeek
value:
- - name: day
value: []
- name: hourSlots
value:
- []
- name: notAllowedTime
value:
- - name: start
value: string
- name: end
value: string
- name: maintenanceWindow
value:
- name: schedule
value:
- name: daily
value:
- name: intervalDays
value: integer
- name: weekly
value:
- name: intervalWeeks
value: integer
- name: absoluteMonthly
value:
- name: intervalMonths
value: integer
- name: dayOfMonth
value: integer
- name: relativeMonthly
value:
- name: intervalMonths
value: integer
- name: weekIndex
value: string
- name: durationHours
value: integer
- name: utcOffset
value: string
- name: startDate
value: string
- name: startTime
value: string
- name: notAllowedDates
value:
- - name: start
value: string
- name: end
value: string
DELETE
example
Deletes the specified maintenance_configurations
resource.
/*+ delete */
DELETE FROM azure.aks.maintenance_configurations
WHERE configName = '{{ configName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';