AgentPoolsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

ContainerServiceClient's

<xref:agent_pools> attribute.

Inheritance
builtins.object
AgentPoolsOperations

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.

async begin_create_or_update(resource_group_name: str, resource_name: str, agent_pool_name: str, parameters: _models.AgentPool, *, content_type: str = 'application/json', **kwargs: Any) -> AsyncLROPoller[_models.AgentPool]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

resource_name
Required
str

The name of the managed cluster resource. Required.

agent_pool_name
Required
str

The name of the agent pool. Required.

parameters
Required

Parameters supplied to the Create or Update an agent pool operation. Is either a AgentPool type or a IO[bytes] type. Required.

Returns

Type Description

An instance of AsyncLROPoller that returns either AgentPool or the result of cls(response)

Exceptions

Type Description

begin_delete

Deletes an agent pool.

Deletes the agent pool in the specified managed cluster.

async begin_delete(resource_group_name: str, resource_name: str, agent_pool_name: str, **kwargs: Any) -> AsyncLROPoller[None]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

resource_name
Required
str

The name of the managed cluster resource. Required.

agent_pool_name
Required
str

The name of the agent pool. Required.

Returns

Type Description

An instance of AsyncLROPoller that returns either None or the result of cls(response)

Exceptions

Type Description

get

Gets the agent pool.

Gets the details of the agent pool by managed cluster and resource group.

async get(resource_group_name: str, resource_name: str, agent_pool_name: str, **kwargs: Any) -> AgentPool

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

resource_name
Required
str

The name of the managed cluster resource. Required.

agent_pool_name
Required
str

The name of the agent pool. Required.

Returns

Type Description

AgentPool or the result of cls(response)

Exceptions

Type Description

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.

async get_available_agent_pool_versions(resource_group_name: str, resource_name: str, **kwargs: Any) -> AgentPoolAvailableVersions

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

resource_name
Required
str

The name of the managed cluster resource. Required.

Returns

Type Description

AgentPoolAvailableVersions or the result of cls(response)

Exceptions

Type Description

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.

async get_upgrade_profile(resource_group_name: str, resource_name: str, agent_pool_name: str, **kwargs: Any) -> AgentPoolUpgradeProfile

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

resource_name
Required
str

The name of the managed cluster resource. Required.

agent_pool_name
Required
str

The name of the agent pool. Required.

Returns

Type Description

AgentPoolUpgradeProfile or the result of cls(response)

Exceptions

Type Description

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) -> AsyncIterable[AgentPool]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

resource_name
Required
str

The name of the managed cluster resource. Required.

Returns

Type Description

An iterator like instance of either AgentPool or the result of cls(response)

Exceptions

Type Description

Attributes

models

models = <module 'azure.mgmt.containerservice.v2020_06_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\containerservice\\v2020_06_01\\models\\__init__.py'>