MaintenanceConfigurationsOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:maintenance_configurations> attribute.
- Inheritance
-
builtins.objectMaintenanceConfigurationsOperations
Constructor
MaintenanceConfigurationsOperations(*args, **kwargs)
Methods
create_or_update |
Creates or updates a maintenance configurations. Creates or updates a maintenance configuration in the specified managed cluster. |
delete |
Deletes a maintenance configuration. Deletes the maintenance configuration in the specified managed cluster. |
get |
Gets the maintenance configuration. Gets the details of maintenance configurations by managed cluster and resource group. |
list_by_managed_cluster |
Gets a list of maintenance configurations in the specified managed cluster. Gets a list of maintenance configurations in the specified managed cluster. The operation returns properties of each maintenance configuration. |
create_or_update
Creates or updates a maintenance configurations.
Creates or updates a maintenance configuration in the specified managed cluster.
create_or_update(resource_group_name: str, resource_name: str, config_name: str, parameters: _models.MaintenanceConfiguration, *, content_type: str = 'application/json', **kwargs: Any) -> _models.MaintenanceConfiguration
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
resource_name
Required
|
The name of the managed cluster resource. Required. |
config_name
Required
|
The name of the maintenance configuration. Required. |
parameters
Required
|
Parameters supplied to the Create or Update a default maintenance configuration. Is either a MaintenanceConfiguration type or a IO[bytes] type. Required. |
Returns
Type | Description |
---|---|
MaintenanceConfiguration or the result of cls(response) |
Exceptions
Type | Description |
---|---|
delete
Deletes a maintenance configuration.
Deletes the maintenance configuration in the specified managed cluster.
delete(resource_group_name: str, resource_name: str, config_name: str, **kwargs: Any) -> None
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
resource_name
Required
|
The name of the managed cluster resource. Required. |
config_name
Required
|
The name of the maintenance configuration. Required. |
Returns
Type | Description |
---|---|
None or the result of cls(response) |
Exceptions
Type | Description |
---|---|
get
Gets the maintenance configuration.
Gets the details of maintenance configurations by managed cluster and resource group.
get(resource_group_name: str, resource_name: str, config_name: str, **kwargs: Any) -> MaintenanceConfiguration
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
resource_name
Required
|
The name of the managed cluster resource. Required. |
config_name
Required
|
The name of the maintenance configuration. Required. |
Returns
Type | Description |
---|---|
MaintenanceConfiguration or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list_by_managed_cluster
Gets a list of maintenance configurations in the specified managed cluster.
Gets a list of maintenance configurations in the specified managed cluster. The operation returns properties of each maintenance configuration.
list_by_managed_cluster(resource_group_name: str, resource_name: str, **kwargs: Any) -> Iterable[MaintenanceConfiguration]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
resource_name
Required
|
The name of the managed cluster resource. Required. |
Returns
Type | Description |
---|---|
An iterator like instance of either MaintenanceConfiguration or the result of cls(response) |
Exceptions
Type | Description |
---|---|
Attributes
models
models = <module 'azure.mgmt.containerservice.v2020_12_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\containerservice\\v2020_12_01\\models\\__init__.py'>
Azure SDK for Python
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for