Skip to main content

maintenance_configurations

Creates, updates, deletes, gets or lists a maintenance_configurations resource.

Overview

Namemaintenance_configurations
TypeResource
Idazure.aks.maintenance_configurations

Fields

NameDatatypeDescription
idtextResource ID.
nametextThe name of the resource that is unique within a resource group. This name can be used to access the resource.
configNametextfield from the properties object
maintenance_windowtextfield from the properties object
not_allowed_timetextfield from the properties object
resourceGroupNametextfield from the properties object
resourceNametextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
time_in_weektextfield from the properties object
typetextResource type

Methods

NameAccessible byRequired ParamsDescription
getSELECTconfigName, resourceGroupName, resourceName, subscriptionId
list_by_managed_clusterSELECTresourceGroupName, resourceName, subscriptionId
create_or_updateINSERTconfigName, resourceGroupName, resourceName, subscriptionId
deleteDELETEconfigName, resourceGroupName, resourceName, subscriptionId

SELECT examples

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 }}';

INSERT example

Use the following StackQL query and manifest file to create a new maintenance_configurations resource.

/*+ create */
INSERT INTO azure.aks.maintenance_configurations (
configName,
resourceGroupName,
resourceName,
subscriptionId,
properties
)
SELECT
'{{ configName }}',
'{{ resourceGroupName }}',
'{{ resourceName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

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 }}';