AgentPoolsOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:agent_pools> attribute.
- Inheritance
-
builtins.objectAgentPoolsOperations
Constructor
AgentPoolsOperations(*args, **kwargs)
Methods
| begin_create_or_update |
Creates or updates an agent pool in the specified managed cluster. Creates or updates an agent pool in the specified managed cluster. |
| begin_delete |
Deletes an agent pool in the specified managed cluster. Deletes an agent pool in the specified managed cluster. |
| begin_upgrade_node_image_version |
Upgrades the node image version of an agent pool to the latest. Upgrading the node image version of an agent pool applies the newest OS and runtime updates to the nodes. AKS provides one new image per week with the latest updates. For more details on node image versions, see: https://docs.microsoft.com/azure/aks/node-image-upgrade. |
| get |
Gets the specified managed cluster agent pool. Gets the specified managed cluster agent pool. |
| get_available_agent_pool_versions |
Gets a list of supported Kubernetes versions for the specified agent pool. See supported Kubernetes versions for more details about the version lifecycle. |
| get_upgrade_profile |
Gets the upgrade profile for an agent pool. Gets the upgrade profile for an agent pool. |
| list |
Gets a list of agent pools in the specified managed cluster. Gets a list of agent pools in the specified managed cluster. |
begin_create_or_update
Creates or updates an agent pool in the specified managed cluster.
Creates or updates an agent pool in the specified managed cluster.
begin_create_or_update(resource_group_name: str, resource_name: str, agent_pool_name: str, parameters: azure.mgmt.containerservice.v2022_03_02_preview.models._models_py3.AgentPool, **kwargs: Any) -> azure.core.polling._poller.LROPoller[azure.mgmt.containerservice.v2022_03_02_preview.models._models_py3.AgentPool]
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 PollingMethod
By default, your polling method will be ARMPolling. 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 LROPoller that returns either AgentPool or the result of cls(response)
Return type
Exceptions
begin_delete
Deletes an agent pool in the specified managed cluster.
Deletes an agent pool in the specified managed cluster.
begin_delete(resource_group_name: str, resource_name: str, agent_pool_name: str, ignore_pod_disruption_budget: Optional[bool] = None, **kwargs: Any) -> azure.core.polling._poller.LROPoller[None]
Parameters
- ignore_pod_disruption_budget
- bool
ignore-pod-disruption-budget=true to delete those pods on a node without considering Pod Disruption Budget. Default value is None.
- 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 PollingMethod
By default, your polling method will be ARMPolling. 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 LROPoller that returns either None or the result of cls(response)
Return type
Exceptions
begin_upgrade_node_image_version
Upgrades the node image version of an agent pool to the latest.
Upgrading the node image version of an agent pool applies the newest OS and runtime updates to the nodes. AKS provides one new image per week with the latest updates. For more details on node image versions, see: https://docs.microsoft.com/azure/aks/node-image-upgrade.
begin_upgrade_node_image_version(resource_group_name: str, resource_name: str, agent_pool_name: str, **kwargs: Any) -> azure.core.polling._poller.LROPoller[azure.mgmt.containerservice.v2022_03_02_preview.models._models_py3.AgentPool]
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 PollingMethod
By default, your polling method will be ARMPolling. 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 LROPoller that returns either AgentPool or the result of cls(response)
Return type
Exceptions
get
Gets the specified managed cluster agent pool.
Gets the specified managed cluster agent pool.
get(resource_group_name: str, resource_name: str, agent_pool_name: str, **kwargs: Any) -> azure.mgmt.containerservice.v2022_03_02_preview.models._models_py3.AgentPool
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
AgentPool, or the result of cls(response)
Return type
Exceptions
get_available_agent_pool_versions
Gets a list of supported Kubernetes versions for the specified agent pool.
See supported Kubernetes versions for more details about the version lifecycle.
get_available_agent_pool_versions(resource_group_name: str, resource_name: str, **kwargs: Any) -> azure.mgmt.containerservice.v2022_03_02_preview.models._models_py3.AgentPoolAvailableVersions
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
AgentPoolAvailableVersions, or the result of cls(response)
Return type
Exceptions
get_upgrade_profile
Gets the upgrade profile for an agent pool.
Gets the upgrade profile for an agent pool.
get_upgrade_profile(resource_group_name: str, resource_name: str, agent_pool_name: str, **kwargs: Any) -> azure.mgmt.containerservice.v2022_03_02_preview.models._models_py3.AgentPoolUpgradeProfile
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
AgentPoolUpgradeProfile, or the result of cls(response)
Return type
Exceptions
list
Gets a list of agent pools in the specified managed cluster.
Gets a list of agent pools in the specified managed cluster.
list(resource_group_name: str, resource_name: str, **kwargs: Any) -> Iterable[azure.mgmt.containerservice.v2022_03_02_preview.models._models_py3.AgentPoolListResult]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either AgentPoolListResult or the result of cls(response)
Return type
Exceptions
Attributes
models
models = <module 'azure.mgmt.containerservice.v2022_03_02_preview.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\containerservice\\v2022_03_02_preview\\models\\__init__.py'>
Feedback
Submit and view feedback for