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
|
The name of the resource group. The name is case insensitive. Required. |
|
profile_name
Required
|
The name of the Traffic Manager profile. Required. |
|
endpoint_type
Required
|
str or
EndpointType
The type of the Traffic Manager endpoint to be created or updated. Known values are: "AzureEndpoints", "ExternalEndpoints", and "NestedEndpoints". Required. |
|
endpoint_name
Required
|
The name of the Traffic Manager endpoint to be created or updated. Required. |
|
parameters
Required
|
The Traffic Manager endpoint parameters supplied to the CreateOrUpdate operation. Is either a Endpoint type or a IO type. Required. |
Keyword-Only Parameters
| Name | Description |
|---|---|
|
content_type
|
Body Parameter content-type. Known values are: 'application/json'. Default value is None. |
|
cls
|
A custom type or function that will be passed the direct response |
Returns
| Type | Description |
|---|---|
|
Endpoint or the result of cls(response) |
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
|
The name of the resource group. The name is case insensitive. Required. |
|
profile_name
Required
|
The name of the Traffic Manager profile. Required. |
|
endpoint_type
Required
|
str or
EndpointType
The type of the Traffic Manager endpoint to be deleted. Known values are: "AzureEndpoints", "ExternalEndpoints", and "NestedEndpoints". Required. |
|
endpoint_name
Required
|
The name of the Traffic Manager endpoint to be deleted. Required. |
Keyword-Only Parameters
| Name | Description |
|---|---|
|
cls
|
A custom type or function that will be passed the direct response |
Returns
| Type | Description |
|---|---|
|
DeleteOperationResult or None or the result of cls(response) |
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
|
The name of the resource group. The name is case insensitive. Required. |
|
profile_name
Required
|
The name of the Traffic Manager profile. Required. |
|
endpoint_type
Required
|
str or
EndpointType
The type of the Traffic Manager endpoint. Known values are: "AzureEndpoints", "ExternalEndpoints", and "NestedEndpoints". Required. |
|
endpoint_name
Required
|
The name of the Traffic Manager endpoint. Required. |
Keyword-Only Parameters
| Name | Description |
|---|---|
|
cls
|
A custom type or function that will be passed the direct response |
Returns
| Type | Description |
|---|---|
|
Endpoint or the result of cls(response) |
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
|
The name of the resource group. The name is case insensitive. Required. |
|
profile_name
Required
|
The name of the Traffic Manager profile. Required. |
|
endpoint_type
Required
|
str or
EndpointType
The type of the Traffic Manager endpoint to be updated. Known values are: "AzureEndpoints", "ExternalEndpoints", and "NestedEndpoints". Required. |
|
endpoint_name
Required
|
The name of the Traffic Manager endpoint to be updated. Required. |
|
parameters
Required
|
The Traffic Manager endpoint parameters supplied to the Update operation. Is either a Endpoint type or a IO type. Required. |
Keyword-Only Parameters
| Name | Description |
|---|---|
|
content_type
|
Body Parameter content-type. Known values are: 'application/json'. Default value is None. |
|
cls
|
A custom type or function that will be passed the direct response |
Returns
| Type | Description |
|---|---|
|
Endpoint or the result of cls(response) |
Exceptions
| Type | Description |
|---|---|
Attributes
models
models = <module 'azure.mgmt.trafficmanager.models' from 'C:\\ToolCache\\Python\\3.12.10\\x64\\Lib\\site-packages\\py2docfx\\venv\\venv245\\Lib\\site-packages\\azure\\mgmt\\trafficmanager\\models\\__init__.py'>