ManagedEnvironmentsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

ContainerAppsAPIClient's

<xref:managed_environments> attribute.

Inheritance
builtins.object
ManagedEnvironmentsOperations

Constructor

ManagedEnvironmentsOperations(*args, **kwargs)

Methods

begin_create_or_update

Creates or updates a Managed Environment.

Creates or updates a Managed Environment used to host container apps.

begin_delete

Delete a Managed Environment.

Delete a Managed Environment if it does not have any container apps.

begin_update

Update Managed Environment's properties.

Patches a Managed Environment using JSON Merge Patch.

get

Get the properties of a Managed Environment.

Get the properties of a Managed Environment used to host container apps.

get_auth_token

Get auth token for a managed environment.

Checks if resource name is available.

list_by_resource_group

Get all the Environments in a resource group.

Get all the Managed Environments in a resource group.

list_by_subscription

Get all Environments for a subscription.

Get all Managed Environments for a subscription.

list_workload_profile_states

Get all workload Profile States for a Managed Environment..

Get all workload Profile States for a Managed Environment.

begin_create_or_update

Creates or updates a Managed Environment.

Creates or updates a Managed Environment used to host container apps.

async begin_create_or_update(resource_group_name: str, environment_name: str, environment_envelope: _models.ManagedEnvironment, *, content_type: str = 'application/json', **kwargs: Any) -> AsyncLROPoller[_models.ManagedEnvironment]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

environment_name
Required
str

Name of the Environment. Required.

environment_envelope
Required

Configuration details of the Environment. Is either a ManagedEnvironment type or a IO[bytes] type. Required.

Returns

Type Description

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

Exceptions

Type Description

begin_delete

Delete a Managed Environment.

Delete a Managed Environment if it does not have any container apps.

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

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

environment_name
Required
str

Name of the Environment. Required.

Returns

Type Description

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

Exceptions

Type Description

begin_update

Update Managed Environment's properties.

Patches a Managed Environment using JSON Merge Patch.

async begin_update(resource_group_name: str, environment_name: str, environment_envelope: _models.ManagedEnvironment, *, content_type: str = 'application/json', **kwargs: Any) -> AsyncLROPoller[_models.ManagedEnvironment]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

environment_name
Required
str

Name of the Environment. Required.

environment_envelope
Required

Configuration details of the Environment. Is either a ManagedEnvironment type or a IO[bytes] type. Required.

Returns

Type Description

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

Exceptions

Type Description

get

Get the properties of a Managed Environment.

Get the properties of a Managed Environment used to host container apps.

async get(resource_group_name: str, environment_name: str, **kwargs: Any) -> ManagedEnvironment

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

environment_name
Required
str

Name of the Environment. Required.

Returns

Type Description

ManagedEnvironment or the result of cls(response)

Exceptions

Type Description

get_auth_token

Get auth token for a managed environment.

Checks if resource name is available.

async get_auth_token(resource_group_name: str, environment_name: str, **kwargs: Any) -> EnvironmentAuthToken

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

environment_name
Required
str

Name of the Managed Environment. Required.

Returns

Type Description

EnvironmentAuthToken or the result of cls(response)

Exceptions

Type Description

list_by_resource_group

Get all the Environments in a resource group.

Get all the Managed Environments in a resource group.

list_by_resource_group(resource_group_name: str, **kwargs: Any) -> AsyncIterable[ManagedEnvironment]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

Returns

Type Description

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

Exceptions

Type Description

list_by_subscription

Get all Environments for a subscription.

Get all Managed Environments for a subscription.

list_by_subscription(**kwargs: Any) -> AsyncIterable[ManagedEnvironment]

Returns

Type Description

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

Exceptions

Type Description

list_workload_profile_states

Get all workload Profile States for a Managed Environment..

Get all workload Profile States for a Managed Environment.

list_workload_profile_states(resource_group_name: str, environment_name: str, **kwargs: Any) -> AsyncIterable[WorkloadProfileStates]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

environment_name
Required
str

Name of the Managed Environment. Required.

Returns

Type Description

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

Exceptions

Type Description

Attributes

models

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