azure.mgmt.trafficmanager.operations module

class azure.mgmt.trafficmanager.operations.EndpointsOperations(client, config, serializer, deserializer)[source]

Bases: object

EndpointsOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An objec model deserializer.
Variables:

api_version – Client Api Version. Constant value: “2017-05-01”.

create_or_update(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers=None, raw=False, **operation_config)[source]

Create or update a Traffic Manager endpoint.

Parameters:
  • resource_group_name (str) – The name of the resource group containing the Traffic Manager endpoint to be created or updated.
  • profile_name (str) – The name of the Traffic Manager profile.
  • endpoint_type (str) – The type of the Traffic Manager endpoint to be created or updated.
  • endpoint_name (str) – The name of the Traffic Manager endpoint to be created or updated.
  • parameters (Endpoint) – The Traffic Manager endpoint parameters supplied to the CreateOrUpdate operation.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

Endpoint

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

delete(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers=None, raw=False, **operation_config)[source]

Deletes a Traffic Manager endpoint.

Parameters:
  • resource_group_name (str) – The name of the resource group containing the Traffic Manager endpoint to be deleted.
  • profile_name (str) – The name of the Traffic Manager profile.
  • endpoint_type (str) – The type of the Traffic Manager endpoint to be deleted.
  • endpoint_name (str) – The name of the Traffic Manager endpoint to be deleted.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

DeleteOperationResult

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

get(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers=None, raw=False, **operation_config)[source]

Gets a Traffic Manager endpoint.

Parameters:
  • resource_group_name (str) – The name of the resource group containing the Traffic Manager endpoint.
  • profile_name (str) – The name of the Traffic Manager profile.
  • endpoint_type (str) – The type of the Traffic Manager endpoint.
  • endpoint_name (str) – The name of the Traffic Manager endpoint.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

Endpoint

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

update(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers=None, raw=False, **operation_config)[source]

Update a Traffic Manager endpoint.

Parameters:
  • resource_group_name (str) – The name of the resource group containing the Traffic Manager endpoint to be updated.
  • profile_name (str) – The name of the Traffic Manager profile.
  • endpoint_type (str) – The type of the Traffic Manager endpoint to be updated.
  • endpoint_name (str) – The name of the Traffic Manager endpoint to be updated.
  • parameters (Endpoint) – The Traffic Manager endpoint parameters supplied to the Update operation.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

Endpoint

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

class azure.mgmt.trafficmanager.operations.ProfilesOperations(client, config, serializer, deserializer)[source]

Bases: object

ProfilesOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An objec model deserializer.
Variables:

api_version – Client Api Version. Constant value: “2017-05-01”.

check_traffic_manager_relative_dns_name_availability(name=None, type=None, custom_headers=None, raw=False, **operation_config)[source]

Checks the availability of a Traffic Manager Relative DNS name.

Parameters:
  • name (str) – The name of the resource.
  • type (str) – The type of the resource.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

TrafficManagerNameAvailability

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

create_or_update(resource_group_name, profile_name, parameters, custom_headers=None, raw=False, **operation_config)[source]

Create or update a Traffic Manager profile.

Parameters:
  • resource_group_name (str) – The name of the resource group containing the Traffic Manager profile.
  • profile_name (str) – The name of the Traffic Manager profile.
  • parameters (Profile) – The Traffic Manager profile parameters supplied to the CreateOrUpdate operation.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

Profile

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

delete(resource_group_name, profile_name, custom_headers=None, raw=False, **operation_config)[source]

Deletes a Traffic Manager profile.

Parameters:
  • resource_group_name (str) – The name of the resource group containing the Traffic Manager profile to be deleted.
  • profile_name (str) – The name of the Traffic Manager profile to be deleted.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

DeleteOperationResult

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

get(resource_group_name, profile_name, custom_headers=None, raw=False, **operation_config)[source]

Gets a Traffic Manager profile.

Parameters:
  • resource_group_name (str) – The name of the resource group containing the Traffic Manager profile.
  • profile_name (str) – The name of the Traffic Manager profile.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

Profile

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

list_by_resource_group(resource_group_name, custom_headers=None, raw=False, **operation_config)[source]

Lists all Traffic Manager profiles within a resource group.

Parameters:
  • resource_group_name (str) – The name of the resource group containing the Traffic Manager profiles to be listed.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

ProfilePaged

Raises:

CloudError

list_by_subscription(custom_headers=None, raw=False, **operation_config)[source]

Lists all Traffic Manager profiles within a subscription.

Parameters:
Return type:

ProfilePaged

Raises:

CloudError

update(resource_group_name, profile_name, parameters, custom_headers=None, raw=False, **operation_config)[source]

Update a Traffic Manager profile.

Parameters:
  • resource_group_name (str) – The name of the resource group containing the Traffic Manager profile.
  • profile_name (str) – The name of the Traffic Manager profile.
  • parameters (Profile) – The Traffic Manager profile parameters supplied to the Update operation.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

Profile

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

class azure.mgmt.trafficmanager.operations.GeographicHierarchiesOperations(client, config, serializer, deserializer)[source]

Bases: object

GeographicHierarchiesOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An objec model deserializer.
Variables:

api_version – Client Api Version. Constant value: “2017-05-01”.

get_default(custom_headers=None, raw=False, **operation_config)[source]

Gets the default Geographic Hierarchy used by the Geographic traffic routing method.

Parameters:
Return type:

TrafficManagerGeographicHierarchy

Return type:

ClientRawResponse if raw=true

Raises:

CloudError