Microsoft.Maintenance (preview:2023-09-01)

2025/01/08 • 8 updated methods

PublicMaintenanceConfigurations_List (updated)
Description Get Public Maintenance Configuration records
Reference Link ¶

⚶ Changes

{
  "#id": "PublicMaintenanceConfigurations_List",
  "$responses": {
    "200": {
      "$properties": {
        "value": {
          "$properties": {
            "properties": [
              {
                "installPatches": [
                  {
                    "windowsParameters": [
                      {
                        "#name": "classificationsToInclude",
                        "Description": {
                          "new": "Classification category of patches to be patched. Allowed values are 'Critical', 'Security', 'UpdateRollup', 'FeaturePack', 'ServicePack', 'Definition', 'Tools', and 'Updates'.",
                          "old": "Classification category of patches to be patched"
                        }
                      }
                    ]
                  },
                  {
                    "linuxParameters": [
                      {
                        "#name": "classificationsToInclude",
                        "Description": {
                          "new": "Classification category of patches to be patched. Allowed values are 'Critical', 'Security', and 'Other'.",
                          "old": "Classification category of patches to be patched"
                        }
                      }
                    ]
                  }
                ]
              }
            ]
          }
        }
      }
    }
  }
}

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Maintenance/publicMaintenanceConfigurations
{
subscriptionId: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
location: string ,
tags: object ,
properties:
{
namespace: string ,
extensionProperties: object ,
maintenanceScope: enum ,
maintenanceWindow:
{
startDateTime: string ,
expirationDateTime: string ,
duration: string ,
timeZone: string ,
recurEvery: string ,
}
,
visibility: enum ,
installPatches:
{
rebootSetting: enum ,
windowsParameters:
{
kbNumbersToExclude:
[
string ,
]
,
kbNumbersToInclude:
[
string ,
]
,
classificationsToInclude:
[
string ,
]
,
excludeKbsRequiringReboot: boolean ,
}
,
linuxParameters:
{
packageNameMasksToExclude:
[
string ,
]
,
packageNameMasksToInclude:
[
string ,
]
,
classificationsToInclude:
[
string ,
]
,
}
,
}
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
PublicMaintenanceConfigurations_Get (updated)
Description Get Public Maintenance Configuration record
Reference Link ¶

⚶ Changes

{
  "#id": "PublicMaintenanceConfigurations_Get",
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "installPatches": [
              {
                "windowsParameters": [
                  {
                    "#name": "classificationsToInclude",
                    "Description": {
                      "new": "Classification category of patches to be patched. Allowed values are 'Critical', 'Security', 'UpdateRollup', 'FeaturePack', 'ServicePack', 'Definition', 'Tools', and 'Updates'.",
                      "old": "Classification category of patches to be patched"
                    }
                  }
                ]
              },
              {
                "linuxParameters": [
                  {
                    "#name": "classificationsToInclude",
                    "Description": {
                      "new": "Classification category of patches to be patched. Allowed values are 'Critical', 'Security', and 'Other'.",
                      "old": "Classification category of patches to be patched"
                    }
                  }
                ]
              }
            ]
          }
        ]
      }
    }
  }
}

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/{resourceName}
{
subscriptionId: string ,
resourceName: string ,
api-version: string ,
}

⚐ Response (200)

{
location: string ,
tags: object ,
properties:
{
namespace: string ,
extensionProperties: object ,
maintenanceScope: enum ,
maintenanceWindow:
{
startDateTime: string ,
expirationDateTime: string ,
duration: string ,
timeZone: string ,
recurEvery: string ,
}
,
visibility: enum ,
installPatches:
{
rebootSetting: enum ,
windowsParameters:
{
kbNumbersToExclude:
[
string ,
]
,
kbNumbersToInclude:
[
string ,
]
,
classificationsToInclude:
[
string ,
]
,
excludeKbsRequiringReboot: boolean ,
}
,
linuxParameters:
{
packageNameMasksToExclude:
[
string ,
]
,
packageNameMasksToInclude:
[
string ,
]
,
classificationsToInclude:
[
string ,
]
,
}
,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
MaintenanceConfigurations_Get (updated)
Description Get Configuration record
Reference Link ¶

⚶ Changes

{
  "#id": "MaintenanceConfigurations_Get",
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "installPatches": [
              {
                "windowsParameters": [
                  {
                    "#name": "classificationsToInclude",
                    "Description": {
                      "new": "Classification category of patches to be patched. Allowed values are 'Critical', 'Security', 'UpdateRollup', 'FeaturePack', 'ServicePack', 'Definition', 'Tools', and 'Updates'.",
                      "old": "Classification category of patches to be patched"
                    }
                  }
                ]
              },
              {
                "linuxParameters": [
                  {
                    "#name": "classificationsToInclude",
                    "Description": {
                      "new": "Classification category of patches to be patched. Allowed values are 'Critical', 'Security', and 'Other'.",
                      "old": "Classification category of patches to be patched"
                    }
                  }
                ]
              }
            ]
          }
        ]
      }
    }
  }
}

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Maintenance/maintenanceConfigurations/{resourceName}
{
subscriptionId: string ,
resourceGroupName: string ,
resourceName: string ,
api-version: string ,
}

⚐ Response (200)

{
location: string ,
tags: object ,
properties:
{
namespace: string ,
extensionProperties: object ,
maintenanceScope: enum ,
maintenanceWindow:
{
startDateTime: string ,
expirationDateTime: string ,
duration: string ,
timeZone: string ,
recurEvery: string ,
}
,
visibility: enum ,
installPatches:
{
rebootSetting: enum ,
windowsParameters:
{
kbNumbersToExclude:
[
string ,
]
,
kbNumbersToInclude:
[
string ,
]
,
classificationsToInclude:
[
string ,
]
,
excludeKbsRequiringReboot: boolean ,
}
,
linuxParameters:
{
packageNameMasksToExclude:
[
string ,
]
,
packageNameMasksToInclude:
[
string ,
]
,
classificationsToInclude:
[
string ,
]
,
}
,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
MaintenanceConfigurations_CreateOrUpdate (updated)
Description Create or Update configuration record
Reference Link ¶

⚶ Changes

{
  "#id": "MaintenanceConfigurations_CreateOrUpdate",
  "$parameters": {
    "configuration": {
      "$properties": {
        "properties": [
          {
            "installPatches": [
              {
                "windowsParameters": [
                  {
                    "#name": "classificationsToInclude",
                    "Description": {
                      "new": "Classification category of patches to be patched. Allowed values are 'Critical', 'Security', 'UpdateRollup', 'FeaturePack', 'ServicePack', 'Definition', 'Tools', and 'Updates'.",
                      "old": "Classification category of patches to be patched"
                    }
                  }
                ]
              },
              {
                "linuxParameters": [
                  {
                    "#name": "classificationsToInclude",
                    "Description": {
                      "new": "Classification category of patches to be patched. Allowed values are 'Critical', 'Security', and 'Other'.",
                      "old": "Classification category of patches to be patched"
                    }
                  }
                ]
              }
            ]
          }
        ]
      }
    }
  },
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "installPatches": [
              {
                "windowsParameters": [
                  {
                    "#name": "classificationsToInclude",
                    "Description": {
                      "new": "Classification category of patches to be patched. Allowed values are 'Critical', 'Security', 'UpdateRollup', 'FeaturePack', 'ServicePack', 'Definition', 'Tools', and 'Updates'.",
                      "old": "Classification category of patches to be patched"
                    }
                  }
                ]
              },
              {
                "linuxParameters": [
                  {
                    "#name": "classificationsToInclude",
                    "Description": {
                      "new": "Classification category of patches to be patched. Allowed values are 'Critical', 'Security', and 'Other'.",
                      "old": "Classification category of patches to be patched"
                    }
                  }
                ]
              }
            ]
          }
        ]
      }
    },
    "201": {
      "$properties": {
        "properties": [
          {
            "installPatches": [
              {
                "windowsParameters": [
                  {
                    "#name": "classificationsToInclude",
                    "Description": {
                      "new": "Classification category of patches to be patched. Allowed values are 'Critical', 'Security', 'UpdateRollup', 'FeaturePack', 'ServicePack', 'Definition', 'Tools', and 'Updates'.",
                      "old": "Classification category of patches to be patched"
                    }
                  }
                ]
              },
              {
                "linuxParameters": [
                  {
                    "#name": "classificationsToInclude",
                    "Description": {
                      "new": "Classification category of patches to be patched. Allowed values are 'Critical', 'Security', and 'Other'.",
                      "old": "Classification category of patches to be patched"
                    }
                  }
                ]
              }
            ]
          }
        ]
      }
    }
  }
}

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Maintenance/maintenanceConfigurations/{resourceName}
{
subscriptionId: string ,
resourceGroupName: string ,
resourceName: string ,
configuration:
{
location: string ,
tags: object ,
properties:
{
namespace: string ,
extensionProperties: object ,
maintenanceScope: enum ,
maintenanceWindow:
{
startDateTime: string ,
expirationDateTime: string ,
duration: string ,
timeZone: string ,
recurEvery: string ,
}
,
visibility: enum ,
installPatches:
{
rebootSetting: enum ,
windowsParameters:
{
kbNumbersToExclude:
[
string ,
]
,
kbNumbersToInclude:
[
string ,
]
,
classificationsToInclude:
[
string ,
]
,
excludeKbsRequiringReboot: boolean ,
}
,
linuxParameters:
{
packageNameMasksToExclude:
[
string ,
]
,
packageNameMasksToInclude:
[
string ,
]
,
classificationsToInclude:
[
string ,
]
,
}
,
}
,
}
,
}
,
api-version: string ,
}

⚐ Response (200)

{
location: string ,
tags: object ,
properties:
{
namespace: string ,
extensionProperties: object ,
maintenanceScope: enum ,
maintenanceWindow:
{
startDateTime: string ,
expirationDateTime: string ,
duration: string ,
timeZone: string ,
recurEvery: string ,
}
,
visibility: enum ,
installPatches:
{
rebootSetting: enum ,
windowsParameters:
{
kbNumbersToExclude:
[
string ,
]
,
kbNumbersToInclude:
[
string ,
]
,
classificationsToInclude:
[
string ,
]
,
excludeKbsRequiringReboot: boolean ,
}
,
linuxParameters:
{
packageNameMasksToExclude:
[
string ,
]
,
packageNameMasksToInclude:
[
string ,
]
,
classificationsToInclude:
[
string ,
]
,
}
,
}
,
}
,
}

⚐ Response (201)

{
location: string ,
tags: object ,
properties:
{
namespace: string ,
extensionProperties: object ,
maintenanceScope: enum ,
maintenanceWindow:
{
startDateTime: string ,
expirationDateTime: string ,
duration: string ,
timeZone: string ,
recurEvery: string ,
}
,
visibility: enum ,
installPatches:
{
rebootSetting: enum ,
windowsParameters:
{
kbNumbersToExclude:
[
string ,
]
,
kbNumbersToInclude:
[
string ,
]
,
classificationsToInclude:
[
string ,
]
,
excludeKbsRequiringReboot: boolean ,
}
,
linuxParameters:
{
packageNameMasksToExclude:
[
string ,
]
,
packageNameMasksToInclude:
[
string ,
]
,
classificationsToInclude:
[
string ,
]
,
}
,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
MaintenanceConfigurations_Delete (updated)
Description Delete Configuration record
Reference Link ¶

⚶ Changes

{
  "#id": "MaintenanceConfigurations_Delete",
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "installPatches": [
              {
                "windowsParameters": [
                  {
                    "#name": "classificationsToInclude",
                    "Description": {
                      "new": "Classification category of patches to be patched. Allowed values are 'Critical', 'Security', 'UpdateRollup', 'FeaturePack', 'ServicePack', 'Definition', 'Tools', and 'Updates'.",
                      "old": "Classification category of patches to be patched"
                    }
                  }
                ]
              },
              {
                "linuxParameters": [
                  {
                    "#name": "classificationsToInclude",
                    "Description": {
                      "new": "Classification category of patches to be patched. Allowed values are 'Critical', 'Security', and 'Other'.",
                      "old": "Classification category of patches to be patched"
                    }
                  }
                ]
              }
            ]
          }
        ]
      }
    }
  }
}

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Maintenance/maintenanceConfigurations/{resourceName}
{
subscriptionId: string ,
resourceGroupName: string ,
resourceName: string ,
api-version: string ,
}

⚐ Response (200)

{
location: string ,
tags: object ,
properties:
{
namespace: string ,
extensionProperties: object ,
maintenanceScope: enum ,
maintenanceWindow:
{
startDateTime: string ,
expirationDateTime: string ,
duration: string ,
timeZone: string ,
recurEvery: string ,
}
,
visibility: enum ,
installPatches:
{
rebootSetting: enum ,
windowsParameters:
{
kbNumbersToExclude:
[
string ,
]
,
kbNumbersToInclude:
[
string ,
]
,
classificationsToInclude:
[
string ,
]
,
excludeKbsRequiringReboot: boolean ,
}
,
linuxParameters:
{
packageNameMasksToExclude:
[
string ,
]
,
packageNameMasksToInclude:
[
string ,
]
,
classificationsToInclude:
[
string ,
]
,
}
,
}
,
}
,
}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
MaintenanceConfigurations_Update (updated)
Description Patch configuration record
Reference Link ¶

⚶ Changes

{
  "#id": "MaintenanceConfigurations_Update",
  "$parameters": {
    "configuration": {
      "$properties": {
        "properties": [
          {
            "installPatches": [
              {
                "windowsParameters": [
                  {
                    "#name": "classificationsToInclude",
                    "Description": {
                      "new": "Classification category of patches to be patched. Allowed values are 'Critical', 'Security', 'UpdateRollup', 'FeaturePack', 'ServicePack', 'Definition', 'Tools', and 'Updates'.",
                      "old": "Classification category of patches to be patched"
                    }
                  }
                ]
              },
              {
                "linuxParameters": [
                  {
                    "#name": "classificationsToInclude",
                    "Description": {
                      "new": "Classification category of patches to be patched. Allowed values are 'Critical', 'Security', and 'Other'.",
                      "old": "Classification category of patches to be patched"
                    }
                  }
                ]
              }
            ]
          }
        ]
      }
    }
  },
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "installPatches": [
              {
                "windowsParameters": [
                  {
                    "#name": "classificationsToInclude",
                    "Description": {
                      "new": "Classification category of patches to be patched. Allowed values are 'Critical', 'Security', 'UpdateRollup', 'FeaturePack', 'ServicePack', 'Definition', 'Tools', and 'Updates'.",
                      "old": "Classification category of patches to be patched"
                    }
                  }
                ]
              },
              {
                "linuxParameters": [
                  {
                    "#name": "classificationsToInclude",
                    "Description": {
                      "new": "Classification category of patches to be patched. Allowed values are 'Critical', 'Security', and 'Other'.",
                      "old": "Classification category of patches to be patched"
                    }
                  }
                ]
              }
            ]
          }
        ]
      }
    }
  }
}

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Maintenance/maintenanceConfigurations/{resourceName}
{
subscriptionId: string ,
resourceGroupName: string ,
resourceName: string ,
configuration:
{
location: string ,
tags: object ,
properties:
{
namespace: string ,
extensionProperties: object ,
maintenanceScope: enum ,
maintenanceWindow:
{
startDateTime: string ,
expirationDateTime: string ,
duration: string ,
timeZone: string ,
recurEvery: string ,
}
,
visibility: enum ,
installPatches:
{
rebootSetting: enum ,
windowsParameters:
{
kbNumbersToExclude:
[
string ,
]
,
kbNumbersToInclude:
[
string ,
]
,
classificationsToInclude:
[
string ,
]
,
excludeKbsRequiringReboot: boolean ,
}
,
linuxParameters:
{
packageNameMasksToExclude:
[
string ,
]
,
packageNameMasksToInclude:
[
string ,
]
,
classificationsToInclude:
[
string ,
]
,
}
,
}
,
}
,
}
,
api-version: string ,
}

⚐ Response (200)

{
location: string ,
tags: object ,
properties:
{
namespace: string ,
extensionProperties: object ,
maintenanceScope: enum ,
maintenanceWindow:
{
startDateTime: string ,
expirationDateTime: string ,
duration: string ,
timeZone: string ,
recurEvery: string ,
}
,
visibility: enum ,
installPatches:
{
rebootSetting: enum ,
windowsParameters:
{
kbNumbersToExclude:
[
string ,
]
,
kbNumbersToInclude:
[
string ,
]
,
classificationsToInclude:
[
string ,
]
,
excludeKbsRequiringReboot: boolean ,
}
,
linuxParameters:
{
packageNameMasksToExclude:
[
string ,
]
,
packageNameMasksToInclude:
[
string ,
]
,
classificationsToInclude:
[
string ,
]
,
}
,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
MaintenanceConfigurations_List (updated)
Description Get Configuration records within a subscription
Reference Link ¶

⚶ Changes

{
  "#id": "MaintenanceConfigurations_List",
  "$responses": {
    "200": {
      "$properties": {
        "value": {
          "$properties": {
            "properties": [
              {
                "installPatches": [
                  {
                    "windowsParameters": [
                      {
                        "#name": "classificationsToInclude",
                        "Description": {
                          "new": "Classification category of patches to be patched. Allowed values are 'Critical', 'Security', 'UpdateRollup', 'FeaturePack', 'ServicePack', 'Definition', 'Tools', and 'Updates'.",
                          "old": "Classification category of patches to be patched"
                        }
                      }
                    ]
                  },
                  {
                    "linuxParameters": [
                      {
                        "#name": "classificationsToInclude",
                        "Description": {
                          "new": "Classification category of patches to be patched. Allowed values are 'Critical', 'Security', and 'Other'.",
                          "old": "Classification category of patches to be patched"
                        }
                      }
                    ]
                  }
                ]
              }
            ]
          }
        }
      }
    }
  }
}

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Maintenance/maintenanceConfigurations
{
subscriptionId: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
location: string ,
tags: object ,
properties:
{
namespace: string ,
extensionProperties: object ,
maintenanceScope: enum ,
maintenanceWindow:
{
startDateTime: string ,
expirationDateTime: string ,
duration: string ,
timeZone: string ,
recurEvery: string ,
}
,
visibility: enum ,
installPatches:
{
rebootSetting: enum ,
windowsParameters:
{
kbNumbersToExclude:
[
string ,
]
,
kbNumbersToInclude:
[
string ,
]
,
classificationsToInclude:
[
string ,
]
,
excludeKbsRequiringReboot: boolean ,
}
,
linuxParameters:
{
packageNameMasksToExclude:
[
string ,
]
,
packageNameMasksToInclude:
[
string ,
]
,
classificationsToInclude:
[
string ,
]
,
}
,
}
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
MaintenanceConfigurationsForResourceGroup_List (updated)
Description Get Configuration records within a subscription and resource group
Reference Link ¶

⚶ Changes

{
  "#id": "MaintenanceConfigurationsForResourceGroup_List",
  "$responses": {
    "200": {
      "$properties": {
        "value": {
          "$properties": {
            "properties": [
              {
                "installPatches": [
                  {
                    "windowsParameters": [
                      {
                        "#name": "classificationsToInclude",
                        "Description": {
                          "new": "Classification category of patches to be patched. Allowed values are 'Critical', 'Security', 'UpdateRollup', 'FeaturePack', 'ServicePack', 'Definition', 'Tools', and 'Updates'.",
                          "old": "Classification category of patches to be patched"
                        }
                      }
                    ]
                  },
                  {
                    "linuxParameters": [
                      {
                        "#name": "classificationsToInclude",
                        "Description": {
                          "new": "Classification category of patches to be patched. Allowed values are 'Critical', 'Security', and 'Other'.",
                          "old": "Classification category of patches to be patched"
                        }
                      }
                    ]
                  }
                ]
              }
            ]
          }
        }
      }
    }
  }
}

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maintenance/maintenanceConfigurations
{
subscriptionId: string ,
resourceGroupName: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
location: string ,
tags: object ,
properties:
{
namespace: string ,
extensionProperties: object ,
maintenanceScope: enum ,
maintenanceWindow:
{
startDateTime: string ,
expirationDateTime: string ,
duration: string ,
timeZone: string ,
recurEvery: string ,
}
,
visibility: enum ,
installPatches:
{
rebootSetting: enum ,
windowsParameters:
{
kbNumbersToExclude:
[
string ,
]
,
kbNumbersToInclude:
[
string ,
]
,
classificationsToInclude:
[
string ,
]
,
excludeKbsRequiringReboot: boolean ,
}
,
linuxParameters:
{
packageNameMasksToExclude:
[
string ,
]
,
packageNameMasksToInclude:
[
string ,
]
,
classificationsToInclude:
[
string ,
]
,
}
,
}
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}