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. Creates or updates an agent pool in the specified managed cluster. |
| begin_delete |
Deletes an agent pool. Deletes the agent pool in the specified managed cluster. |
| get |
Gets the agent pool. Gets the details of the agent pool by managed cluster and resource group. |
| get_available_agent_pool_versions |
Gets a list of supported versions for the specified agent pool. Gets a list of supported versions for the specified agent pool. |
| get_upgrade_profile |
Gets upgrade profile for an agent pool. Gets the details of the upgrade profile for an agent pool with a specified resource group and managed cluster name. |
| list |
Gets a list of agent pools in the specified managed cluster. Gets a list of agent pools in the specified managed cluster. The operation returns properties of each agent pool. |
begin_create_or_update
Creates or updates an agent pool.
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.v2019_06_01.models._models_py3.AgentPool, **kwargs: Any) -> azure.core.polling._poller.LROPoller[azure.mgmt.containerservice.v2019_06_01.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.
Deletes the agent pool in the specified managed cluster.
begin_delete(resource_group_name: str, resource_name: str, agent_pool_name: str, **kwargs: Any) -> azure.core.polling._poller.LROPoller[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 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
get
Gets the agent pool.
Gets the details of the agent pool by managed cluster and resource group.
get(resource_group_name: str, resource_name: str, agent_pool_name: str, **kwargs: Any) -> azure.mgmt.containerservice.v2019_06_01.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 versions for the specified agent pool.
Gets a list of supported versions for the specified agent pool.
get_available_agent_pool_versions(resource_group_name: str, resource_name: str, **kwargs: Any) -> azure.mgmt.containerservice.v2019_06_01.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 upgrade profile for an agent pool.
Gets the details of the upgrade profile for an agent pool with a specified resource group and managed cluster name.
get_upgrade_profile(resource_group_name: str, resource_name: str, agent_pool_name: str, **kwargs: Any) -> azure.mgmt.containerservice.v2019_06_01.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. The operation returns properties of each agent pool.
list(resource_group_name: str, resource_name: str, **kwargs: Any) -> Iterable[azure.mgmt.containerservice.v2019_06_01.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.v2019_06_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\containerservice\\v2019_06_01\\models\\__init__.py'>
Feedback
Submit and view feedback for