ManagedClustersOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:managed_clusters> attribute.
- Inheritance
-
builtins.objectManagedClustersOperations
Constructor
ManagedClustersOperations(*args, **kwargs)
Methods
| begin_create_or_update |
Creates or updates a managed cluster. Creates or updates a managed cluster with the specified configuration for agents and Kubernetes version. |
| begin_delete |
Deletes a managed cluster. Deletes the managed cluster with a specified resource group and name. |
| begin_reset_aad_profile |
Reset AAD Profile of a managed cluster. Update the AAD Profile for a managed cluster. |
| begin_reset_service_principal_profile |
Reset Service Principal Profile of a managed cluster. Update the service principal Profile for a managed cluster. |
| begin_update_tags |
Updates tags on a managed cluster. Updates a managed cluster with the specified tags. |
| get |
Gets a managed cluster. Gets the details of the managed cluster with a specified resource group and name. |
| get_access_profile |
Gets an access profile of a managed cluster. Gets the accessProfile for the specified role name of the managed cluster with a specified resource group and name. |
| get_upgrade_profile |
Gets upgrade profile for a managed cluster. Gets the details of the upgrade profile for a managed cluster with a specified resource group and name. |
| list |
Gets a list of managed clusters in the specified subscription. Gets a list of managed clusters in the specified subscription. The operation returns properties of each managed cluster. |
| list_by_resource_group |
Lists managed clusters in the specified subscription and resource group. Lists managed clusters in the specified subscription and resource group. The operation returns properties of each managed cluster. |
| list_cluster_admin_credentials |
Gets cluster admin credential of a managed cluster. Gets cluster admin credential of the managed cluster with a specified resource group and name. |
| list_cluster_user_credentials |
Gets cluster user credential of a managed cluster. Gets cluster user credential of the managed cluster with a specified resource group and name. |
begin_create_or_update
Creates or updates a managed cluster.
Creates or updates a managed cluster with the specified configuration for agents and Kubernetes version.
async begin_create_or_update(resource_group_name: str, resource_name: str, parameters: azure.mgmt.containerservice.v2019_02_01.models._models_py3.ManagedCluster, **kwargs: Any) -> azure.core.polling._async_poller.AsyncLROPoller[azure.mgmt.containerservice.v2019_02_01.models._models_py3.ManagedCluster]
Parameters
- parameters
- ManagedCluster
Parameters supplied to the Create or Update a Managed Cluster operation.
- cls
- callable
A custom type or function that will be passed the direct response
- continuation_token
- str
A continuation token to restart a poller from a saved state.
- polling
- bool or AsyncPollingMethod
By default, your polling method will be AsyncARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
- polling_interval
- int
Default waiting time between two polls for LRO operations if no Retry-After header is present.
Returns
An instance of AsyncLROPoller that returns either ManagedCluster or the result of cls(response)
Return type
Exceptions
begin_delete
Deletes a managed cluster.
Deletes the managed cluster with a specified resource group and name.
async begin_delete(resource_group_name: str, resource_name: str, **kwargs: Any) -> azure.core.polling._async_poller.AsyncLROPoller[None]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
- continuation_token
- str
A continuation token to restart a poller from a saved state.
- polling
- bool or AsyncPollingMethod
By default, your polling method will be AsyncARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
- polling_interval
- int
Default waiting time between two polls for LRO operations if no Retry-After header is present.
Returns
An instance of AsyncLROPoller that returns either None or the result of cls(response)
Return type
Exceptions
begin_reset_aad_profile
Reset AAD Profile of a managed cluster.
Update the AAD Profile for a managed cluster.
async begin_reset_aad_profile(resource_group_name: str, resource_name: str, parameters: azure.mgmt.containerservice.v2019_02_01.models._models_py3.ManagedClusterAADProfile, **kwargs: Any) -> azure.core.polling._async_poller.AsyncLROPoller[None]
Parameters
- parameters
- ManagedClusterAADProfile
Parameters supplied to the Reset AAD Profile operation for a Managed Cluster.
- cls
- callable
A custom type or function that will be passed the direct response
- continuation_token
- str
A continuation token to restart a poller from a saved state.
- polling
- bool or AsyncPollingMethod
By default, your polling method will be AsyncARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
- polling_interval
- int
Default waiting time between two polls for LRO operations if no Retry-After header is present.
Returns
An instance of AsyncLROPoller that returns either None or the result of cls(response)
Return type
Exceptions
begin_reset_service_principal_profile
Reset Service Principal Profile of a managed cluster.
Update the service principal Profile for a managed cluster.
async begin_reset_service_principal_profile(resource_group_name: str, resource_name: str, parameters: azure.mgmt.containerservice.v2019_02_01.models._models_py3.ManagedClusterServicePrincipalProfile, **kwargs: Any) -> azure.core.polling._async_poller.AsyncLROPoller[None]
Parameters
- parameters
- ManagedClusterServicePrincipalProfile
Parameters supplied to the Reset Service Principal Profile operation for a Managed Cluster.
- cls
- callable
A custom type or function that will be passed the direct response
- continuation_token
- str
A continuation token to restart a poller from a saved state.
- polling
- bool or AsyncPollingMethod
By default, your polling method will be AsyncARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
- polling_interval
- int
Default waiting time between two polls for LRO operations if no Retry-After header is present.
Returns
An instance of AsyncLROPoller that returns either None or the result of cls(response)
Return type
Exceptions
begin_update_tags
Updates tags on a managed cluster.
Updates a managed cluster with the specified tags.
async begin_update_tags(resource_group_name: str, resource_name: str, parameters: azure.mgmt.containerservice.v2019_02_01.models._models_py3.TagsObject, **kwargs: Any) -> azure.core.polling._async_poller.AsyncLROPoller[azure.mgmt.containerservice.v2019_02_01.models._models_py3.ManagedCluster]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
- continuation_token
- str
A continuation token to restart a poller from a saved state.
- polling
- bool or AsyncPollingMethod
By default, your polling method will be AsyncARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
- polling_interval
- int
Default waiting time between two polls for LRO operations if no Retry-After header is present.
Returns
An instance of AsyncLROPoller that returns either ManagedCluster or the result of cls(response)
Return type
Exceptions
get
Gets a managed cluster.
Gets the details of the managed cluster with a specified resource group and name.
async get(resource_group_name: str, resource_name: str, **kwargs: Any) -> azure.mgmt.containerservice.v2019_02_01.models._models_py3.ManagedCluster
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
ManagedCluster, or the result of cls(response)
Return type
Exceptions
get_access_profile
Gets an access profile of a managed cluster.
Gets the accessProfile for the specified role name of the managed cluster with a specified resource group and name.
async get_access_profile(resource_group_name: str, resource_name: str, role_name: str, **kwargs: Any) -> azure.mgmt.containerservice.v2019_02_01.models._models_py3.ManagedClusterAccessProfile
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
ManagedClusterAccessProfile, or the result of cls(response)
Return type
Exceptions
get_upgrade_profile
Gets upgrade profile for a managed cluster.
Gets the details of the upgrade profile for a managed cluster with a specified resource group and name.
async get_upgrade_profile(resource_group_name: str, resource_name: str, **kwargs: Any) -> azure.mgmt.containerservice.v2019_02_01.models._models_py3.ManagedClusterUpgradeProfile
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
ManagedClusterUpgradeProfile, or the result of cls(response)
Return type
Exceptions
list
Gets a list of managed clusters in the specified subscription.
Gets a list of managed clusters in the specified subscription. The operation returns properties of each managed cluster.
list(**kwargs: Any) -> AsyncIterable[azure.mgmt.containerservice.v2019_02_01.models._models_py3.ManagedClusterListResult]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either ManagedClusterListResult or the result of cls(response)
Return type
Exceptions
list_by_resource_group
Lists managed clusters in the specified subscription and resource group.
Lists managed clusters in the specified subscription and resource group. The operation returns properties of each managed cluster.
list_by_resource_group(resource_group_name: str, **kwargs: Any) -> AsyncIterable[azure.mgmt.containerservice.v2019_02_01.models._models_py3.ManagedClusterListResult]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either ManagedClusterListResult or the result of cls(response)
Return type
Exceptions
list_cluster_admin_credentials
Gets cluster admin credential of a managed cluster.
Gets cluster admin credential of the managed cluster with a specified resource group and name.
async list_cluster_admin_credentials(resource_group_name: str, resource_name: str, **kwargs: Any) -> azure.mgmt.containerservice.v2019_02_01.models._models_py3.CredentialResults
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
CredentialResults, or the result of cls(response)
Return type
Exceptions
list_cluster_user_credentials
Gets cluster user credential of a managed cluster.
Gets cluster user credential of the managed cluster with a specified resource group and name.
async list_cluster_user_credentials(resource_group_name: str, resource_name: str, **kwargs: Any) -> azure.mgmt.containerservice.v2019_02_01.models._models_py3.CredentialResults
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
CredentialResults, or the result of cls(response)
Return type
Exceptions
Attributes
models
models = <module 'azure.mgmt.containerservice.v2019_02_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\containerservice\\v2019_02_01\\models\\__init__.py'>
Feedback
Submit and view feedback for