MaintenanceExtensions.GetMaintenanceConfigurations Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetMaintenanceConfigurations(ResourceGroupResource) |
Gets a collection of MaintenanceConfigurationResources in the ResourceGroupResource. MockingTo mock this method, please mock GetMaintenanceConfigurations() instead. |
GetMaintenanceConfigurations(SubscriptionResource, CancellationToken) |
Get Configuration records within a subscription
|
GetMaintenanceConfigurations(ResourceGroupResource)
- Source:
- MaintenanceExtensions.cs
- Source:
- MaintenanceExtensions.cs
Gets a collection of MaintenanceConfigurationResources in the ResourceGroupResource. MockingTo mock this method, please mock GetMaintenanceConfigurations() instead.
public static Azure.ResourceManager.Maintenance.MaintenanceConfigurationCollection GetMaintenanceConfigurations (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetMaintenanceConfigurations : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.Maintenance.MaintenanceConfigurationCollection
<Extension()>
Public Function GetMaintenanceConfigurations (resourceGroupResource As ResourceGroupResource) As MaintenanceConfigurationCollection
Parameters
- resourceGroupResource
- ResourceGroupResource
The ResourceGroupResource instance the method will execute against.
Returns
An object representing collection of MaintenanceConfigurationResources and their operations over a MaintenanceConfigurationResource.
Exceptions
resourceGroupResource
is null.
Applies to
GetMaintenanceConfigurations(SubscriptionResource, CancellationToken)
- Source:
- MaintenanceExtensions.cs
- Source:
- MaintenanceExtensions.cs
Get Configuration records within a subscription
- Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Maintenance/maintenanceConfigurations
- Operation Id: MaintenanceConfigurations_List
- Default Api Version: 2023-10-01-preview
- Resource: MaintenanceConfigurationResource
public static Azure.Pageable<Azure.ResourceManager.Maintenance.MaintenanceConfigurationResource> GetMaintenanceConfigurations (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetMaintenanceConfigurations : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Maintenance.MaintenanceConfigurationResource>
<Extension()>
Public Function GetMaintenanceConfigurations (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of MaintenanceConfigurationResource)
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource instance the method will execute against.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of MaintenanceConfigurationResource that may take multiple service requests to iterate over.
Exceptions
subscriptionResource
is null.