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. |
| 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.
async begin_create_or_update(resource_group_name: str, managed_cluster_name: str, agent_pool_name: str, parameters: azure.mgmt.containerservice.v2019_02_01.models._models_py3.AgentPool, **kwargs: Any) -> azure.core.polling._async_poller.AsyncLROPoller[azure.mgmt.containerservice.v2019_02_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 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 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.
async begin_delete(resource_group_name: str, managed_cluster_name: str, agent_pool_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
get
Gets the agent pool.
Gets the details of the agent pool by managed cluster and resource group.
async get(resource_group_name: str, managed_cluster_name: str, agent_pool_name: str, **kwargs: Any) -> azure.mgmt.containerservice.v2019_02_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
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, managed_cluster_name: str, **kwargs: Any) -> AsyncIterable[azure.mgmt.containerservice.v2019_02_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_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