EndpointsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

TrafficManagerManagementClient's

<xref:endpoints> attribute.

Constructor

EndpointsOperations(*args, **kwargs)

Methods

create_or_update

Create or update a Traffic Manager endpoint.

delete

Deletes a Traffic Manager endpoint.

get

Gets a Traffic Manager endpoint.

update

Update a Traffic Manager endpoint.

create_or_update

Create or update a Traffic Manager endpoint.

create_or_update(resource_group_name: str, profile_name: str, endpoint_type: str | _models.EndpointType, endpoint_name: str, parameters: _models.Endpoint, *, content_type: str = 'application/json', **kwargs: Any) -> _models.Endpoint

Parameters

Name Description
resource_group_name
Required
str

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

profile_name
Required
str

The name of the Traffic Manager profile. Required.

endpoint_type
Required

The type of the Traffic Manager endpoint. Known values are: "AzureEndpoints", "ExternalEndpoints", and "NestedEndpoints". Required.

endpoint_name
Required
str

The name of the Traffic Manager endpoint. Required.

parameters
Required

The Traffic Manager endpoint parameters supplied to the CreateOrUpdate operation. Is either a Endpoint type or a IO[bytes] type. Required.

Returns

Type Description

Endpoint. The Endpoint is compatible with MutableMapping

Exceptions

Type Description

delete

Deletes a Traffic Manager endpoint.

delete(resource_group_name: str, profile_name: str, endpoint_type: str | EndpointType, endpoint_name: str, **kwargs: Any) -> DeleteOperationResult | None

Parameters

Name Description
resource_group_name
Required
str

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

profile_name
Required
str

The name of the Traffic Manager profile. Required.

endpoint_type
Required

The type of the Traffic Manager endpoint. Known values are: "AzureEndpoints", "ExternalEndpoints", and "NestedEndpoints". Required.

endpoint_name
Required
str

The name of the Traffic Manager endpoint. Required.

Returns

Type Description

DeleteOperationResult or None. The DeleteOperationResult is compatible with MutableMapping

Exceptions

Type Description

get

Gets a Traffic Manager endpoint.

get(resource_group_name: str, profile_name: str, endpoint_type: str | EndpointType, endpoint_name: str, **kwargs: Any) -> Endpoint

Parameters

Name Description
resource_group_name
Required
str

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

profile_name
Required
str

The name of the Traffic Manager profile. Required.

endpoint_type
Required

The type of the Traffic Manager endpoint. Known values are: "AzureEndpoints", "ExternalEndpoints", and "NestedEndpoints". Required.

endpoint_name
Required
str

The name of the Traffic Manager endpoint. Required.

Returns

Type Description

Endpoint. The Endpoint is compatible with MutableMapping

Exceptions

Type Description

update

Update a Traffic Manager endpoint.

update(resource_group_name: str, profile_name: str, endpoint_type: str | _models.EndpointType, endpoint_name: str, parameters: _models.Endpoint, *, content_type: str = 'application/json', **kwargs: Any) -> _models.Endpoint

Parameters

Name Description
resource_group_name
Required
str

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

profile_name
Required
str

The name of the Traffic Manager profile. Required.

endpoint_type
Required

The type of the Traffic Manager endpoint. Known values are: "AzureEndpoints", "ExternalEndpoints", and "NestedEndpoints". Required.

endpoint_name
Required
str

The name of the Traffic Manager endpoint. Required.

parameters
Required

The Traffic Manager endpoint parameters supplied to the Update operation. Is either a Endpoint type or a IO[bytes] type. Required.

Returns

Type Description

Endpoint. The Endpoint is compatible with MutableMapping

Exceptions

Type Description