@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api TrafficManagerManagementClient
@base https://management.azure.com
@version 2018-04-01
@auth OAuth2
@common_fields {api-version: any # Client Api Version.}
@endpoints 16
@toc subscriptions(14), providers(2)

@group subscriptions
@endpoint PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficmanagerprofiles/{profileName}/{endpointType}/{endpointName}
@desc Update a Traffic Manager endpoint.
@required {resourceGroupName: any # The name of the resource group containing the Traffic Manager endpoint to be updated., profileName: any # The name of the Traffic Manager profile., endpointType: any # The type of the Traffic Manager endpoint to be updated., endpointName: any # The name of the Traffic Manager endpoint to be updated., parameters: any # The Traffic Manager endpoint parameters supplied to the Update operation., subscriptionId: any # Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.}
@returns(200) The updated Traffic Manager endpoint.

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficmanagerprofiles/{profileName}/{endpointType}/{endpointName}
@desc Gets a Traffic Manager endpoint.
@required {resourceGroupName: any # The name of the resource group containing the Traffic Manager endpoint., profileName: any # The name of the Traffic Manager profile., endpointType: any # The type of the Traffic Manager endpoint., endpointName: any # The name of the Traffic Manager endpoint., subscriptionId: any # Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.}
@returns(200) The Traffic Manager endpoint.

@endpoint PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficmanagerprofiles/{profileName}/{endpointType}/{endpointName}
@desc Create or update a Traffic Manager endpoint.
@required {resourceGroupName: any # The name of the resource group containing the Traffic Manager endpoint to be created or updated., profileName: any # The name of the Traffic Manager profile., endpointType: any # The type of the Traffic Manager endpoint to be created or updated., endpointName: any # The name of the Traffic Manager endpoint to be created or updated., parameters: any # The Traffic Manager endpoint parameters supplied to the CreateOrUpdate operation., subscriptionId: any # Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.}
@returns(200) The created or updated Endpoint.
@returns(201) The created or updated Endpoint.

@endpoint DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficmanagerprofiles/{profileName}/{endpointType}/{endpointName}
@desc Deletes a Traffic Manager endpoint.
@required {resourceGroupName: any # The name of the resource group containing the Traffic Manager endpoint to be deleted., profileName: any # The name of the Traffic Manager profile., endpointType: any # The type of the Traffic Manager endpoint to be deleted., endpointName: any # The name of the Traffic Manager endpoint to be deleted., subscriptionId: any # Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.}
@returns(200) The Traffic Manager Endpoint was deleted successfully.
@returns(204) The Traffic Manager Endpoint does not exist. It could have been deleted on a previous request.

@endgroup

@group providers
@endpoint POST /providers/Microsoft.Network/checkTrafficManagerNameAvailability
@desc Checks the availability of a Traffic Manager Relative DNS name.
@required {parameters: any # The Traffic Manager name parameters supplied to the CheckTrafficManagerNameAvailability operation.}
@returns(200) The Traffic Manager Name Availability.

@endgroup

@group subscriptions
@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficmanagerprofiles
@desc Lists all Traffic Manager profiles within a resource group.
@required {resourceGroupName: any # The name of the resource group containing the Traffic Manager profiles to be listed., subscriptionId: any # Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.}
@returns(200) The list of Traffic Manager profiles.

@endpoint GET /subscriptions/{subscriptionId}/providers/Microsoft.Network/trafficmanagerprofiles
@desc Lists all Traffic Manager profiles within a subscription.
@required {subscriptionId: any # Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.}
@returns(200) The list of Traffic Manager profiles.

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficmanagerprofiles/{profileName}
@desc Gets a Traffic Manager profile.
@required {resourceGroupName: any # The name of the resource group containing the Traffic Manager profile., profileName: any # The name of the Traffic Manager profile., subscriptionId: any # Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.}
@returns(200) The Traffic Manager profile.

@endpoint PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficmanagerprofiles/{profileName}
@desc Create or update a Traffic Manager profile.
@required {resourceGroupName: any # The name of the resource group containing the Traffic Manager profile., profileName: any # The name of the Traffic Manager profile., parameters: any # The Traffic Manager profile parameters supplied to the CreateOrUpdate operation., subscriptionId: any # Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.}
@returns(200) The created or updated Traffic Manager profile.
@returns(201) The created or updated Traffic Manager profile.

@endpoint DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficmanagerprofiles/{profileName}
@desc Deletes a Traffic Manager profile.
@required {resourceGroupName: any # The name of the resource group containing the Traffic Manager profile to be deleted., profileName: any # The name of the Traffic Manager profile to be deleted., subscriptionId: any # Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.}
@returns(200) The Traffic Manager Profile was deleted successfully.
@returns(204) The profile does not exist. It could have been deleted on a previous request.

@endpoint PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficmanagerprofiles/{profileName}
@desc Update a Traffic Manager profile.
@required {resourceGroupName: any # The name of the resource group containing the Traffic Manager profile., profileName: any # The name of the Traffic Manager profile., parameters: any # The Traffic Manager profile parameters supplied to the Update operation., subscriptionId: any # Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.}
@returns(200) The updated Traffic Manager profile.

@endgroup

@group providers
@endpoint GET /providers/Microsoft.Network/trafficManagerGeographicHierarchies/default
@desc Gets the default Geographic Hierarchy used by the Geographic traffic routing method.
@returns(200) The default Geographic Hierarchy.

@endgroup

@group subscriptions
@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficmanagerprofiles/{profileName}/heatMaps/{heatMapType}
@desc Gets latest heatmap for Traffic Manager profile.
@required {subscriptionId: any # Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call., resourceGroupName: any # The name of the resource group containing the Traffic Manager endpoint., profileName: any # The name of the Traffic Manager profile., heatMapType: any # The type of HeatMap for the Traffic Manager profile.}
@optional {topLeft: any # The top left latitude,longitude pair of the rectangular viewport to query for., botRight: any # The bottom right latitude,longitude pair of the rectangular viewport to query for.}
@returns(200) The Traffic Manager heatmap.

@endpoint GET /subscriptions/{subscriptionId}/providers/Microsoft.Network/trafficManagerUserMetricsKeys/default
@desc Get the subscription-level key used for Real User Metrics collection.
@required {subscriptionId: any # Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.}
@returns(200) The subscription-level Traffic Manager Real User Metrics key.

@endpoint PUT /subscriptions/{subscriptionId}/providers/Microsoft.Network/trafficManagerUserMetricsKeys/default
@desc Create or update a subscription-level key used for Real User Metrics collection.
@required {subscriptionId: any # Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.}
@returns(201) A new subscription-level key has been created for Real User Metrics collection.

@endpoint DELETE /subscriptions/{subscriptionId}/providers/Microsoft.Network/trafficManagerUserMetricsKeys/default
@desc Delete a subscription-level key used for Real User Metrics collection.
@required {subscriptionId: any # Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.}
@returns(200) The Traffic Manager Real User Metrics key was deleted successfully.

@endgroup

@end
