diff --git a/specification/trafficmanager/TrafficManager.Management/Endpoint.tsp b/specification/trafficmanager/TrafficManager.Management/Endpoint.tsp new file mode 100644 index 000000000000..caa8624952c0 --- /dev/null +++ b/specification/trafficmanager/TrafficManager.Management/Endpoint.tsp @@ -0,0 +1,89 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; +import "./Profile.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.Network; +/** + * Class representing a Traffic Manager endpoint. + */ +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-resource-manager/arm-custom-resource-no-key" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-resource-manager/arm-custom-resource-usage-discourage" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +@parentResource(Profile) +model Endpoint extends ProxyResource { + properties?: EndpointProperties; +} + +alias EndpointsOps = Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter; + ...SubscriptionIdParameter; + ...ResourceGroupParameter; + ...Azure.ResourceManager.Legacy.Provider; + + /** + * The name of the Traffic Manager profile. + */ + @path + @segment("trafficmanagerprofiles") + profileName: string; + + /** + * The type of the Traffic Manager endpoint. + */ + @path + endpointType: EndpointType; + }, + { + /** + * The name of the Traffic Manager endpoint. + */ + @path + endpointName: string; + }, + ErrorType = CloudError +>; + +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +interface Endpoints { + /** + * Gets a Traffic Manager endpoint. + */ + get is EndpointsOps.Read; + + /** + * Create or update a Traffic Manager endpoint. + */ + createOrUpdate is EndpointsOps.CreateOrUpdateSync; + + /** + * Update a Traffic Manager endpoint. + */ + @patch(#{ implicitOptionality: false }) + update is EndpointsOps.CustomPatchSync; + + /** + * Deletes a Traffic Manager endpoint. + */ + delete is EndpointsOps.DeleteSync< + Endpoint, + Response = ArmResponse | ArmDeletedNoContentResponse + >; +} + +@@doc(Endpoint.properties, "The properties of the Traffic Manager endpoint."); +@@doc(Endpoints.createOrUpdate::parameters.resource, + "The Traffic Manager endpoint parameters supplied to the CreateOrUpdate operation." +); +@@doc(Endpoints.update::parameters.properties, + "The Traffic Manager endpoint parameters supplied to the Update operation." +); diff --git a/specification/trafficmanager/TrafficManager.Management/HeatMapModel.tsp b/specification/trafficmanager/TrafficManager.Management/HeatMapModel.tsp new file mode 100644 index 000000000000..11a2d2e352f0 --- /dev/null +++ b/specification/trafficmanager/TrafficManager.Management/HeatMapModel.tsp @@ -0,0 +1,76 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; +import "./Profile.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.Network; +/** + * Class representing a Traffic Manager HeatMap. + */ +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-resource-manager/arm-custom-resource-no-key" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-resource-manager/arm-custom-resource-usage-discourage" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +@parentResource(Profile) +model HeatMapModel extends ProxyResource { + properties?: HeatMapProperties; +} + +alias HeatMapModelsOps = Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter; + ...SubscriptionIdParameter; + ...ResourceGroupParameter; + ...Azure.ResourceManager.Legacy.Provider; + ...ParentKeysOf; + }, + { + /** + * The type of the heatmap. + */ + @path + @segment("heatMaps") + @key("heatMapType") + heatMapType: HeatMapType; + }, + ErrorType = CloudError +>; + +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +interface HeatMapModels { + /** + * Gets latest heatmap for Traffic Manager profile. + */ + get is HeatMapModelsOps.Read< + HeatMapModel, + Parameters = { + /** + * The top left latitude,longitude pair of the rectangular viewport to query for. + */ + @query("topLeft") + @minItems(2) + @maxItems(2) + topLeft?: float64[]; + + /** + * The bottom right latitude,longitude pair of the rectangular viewport to query for. + */ + @query("botRight") + @minItems(2) + @maxItems(2) + botRight?: float64[]; + } + >; +} + +@@doc(HeatMapModel.name, ""); +@@doc(HeatMapModel.properties, + "The properties of the Traffic Manager HeatMap." +); diff --git a/specification/trafficmanager/TrafficManager.Management/Profile.tsp b/specification/trafficmanager/TrafficManager.Management/Profile.tsp new file mode 100644 index 000000000000..5f7292073da1 --- /dev/null +++ b/specification/trafficmanager/TrafficManager.Management/Profile.tsp @@ -0,0 +1,71 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.Network; +/** + * Class representing a Traffic Manager profile. + */ +model Profile extends TrackedResource { + properties?: ProfileProperties; +} + +@armResourceOperations +interface Profiles { + /** + * Gets a Traffic Manager profile. + */ + get is ArmResourceRead; + + /** + * Create or update a Traffic Manager profile. + */ + createOrUpdate is ArmResourceCreateOrReplaceSync; + + /** + * Update a Traffic Manager profile. + */ + @patch(#{ implicitOptionality: false }) + update is ArmCustomPatchSync< + Profile, + PatchModel = Profile, + Error = CloudError + >; + + /** + * Deletes a Traffic Manager profile. + */ + delete is ArmResourceDeleteSync< + Profile, + Response = ArmResponse | ArmDeletedNoContentResponse, + Error = CloudError + >; + + /** + * Lists all Traffic Manager profiles within a subscription. + */ + listBySubscription is ArmResourceListByParent< + Profile, + BaseParameters = { + ...ApiVersionParameter; + ...SubscriptionIdParameter; + }, + Error = CloudError + >; +} + +@@doc(Profile.name, "The name of the Traffic Manager profile."); +@@doc(Profile.properties, "The properties of the Traffic Manager profile."); +@@doc(Profiles.createOrUpdate::parameters.resource, + "The Traffic Manager profile parameters supplied to the CreateOrUpdate operation." +); +@@doc(Profiles.update::parameters.properties, + "The Traffic Manager profile parameters supplied to the Update operation." +); diff --git a/specification/trafficmanager/TrafficManager.Management/TrafficManagerGeographicHierarchy.tsp b/specification/trafficmanager/TrafficManager.Management/TrafficManagerGeographicHierarchy.tsp new file mode 100644 index 000000000000..c0aaf08e9f38 --- /dev/null +++ b/specification/trafficmanager/TrafficManager.Management/TrafficManagerGeographicHierarchy.tsp @@ -0,0 +1,55 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.Network; +/** + * Class representing the Geographic hierarchy used with the Geographic traffic routing method. + */ +@tenantResource +model TrafficManagerGeographicHierarchy + is Azure.ResourceManager.ProxyResource { + ...ResourceNameParameter< + Resource = TrafficManagerGeographicHierarchy, + KeyName = "trafficManagerGeographicHierarchy", + SegmentName = "trafficManagerGeographicHierarchies", + NamePattern = "" + >; +} + +alias TrafficManagerGeographicHierarchyOps = Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter; + ...Azure.ResourceManager.Legacy.Provider; + }, + { + /** + * The name of the Geographic Hierarchy resource. Must be 'default'. + */ + @path + @segment("trafficManagerGeographicHierarchies") + @key("trafficManagerGeographicHierarchy") + trafficManagerGeographicHierarchy: "default"; + }, + ErrorType = CloudError +>; + +@armResourceOperations +interface TrafficManagerGeographicHierarchies { + /** + * Gets the default Geographic Hierarchy used by the Geographic traffic routing method. + */ + getDefault is TrafficManagerGeographicHierarchyOps.Read; +} + +@@doc(TrafficManagerGeographicHierarchy.name, ""); +@@doc(TrafficManagerGeographicHierarchy.properties, + "The properties of the Geographic Hierarchy resource." +); diff --git a/specification/trafficmanager/TrafficManager.Management/UserMetricsModel.tsp b/specification/trafficmanager/TrafficManager.Management/UserMetricsModel.tsp new file mode 100644 index 000000000000..7e64dbbeecda --- /dev/null +++ b/specification/trafficmanager/TrafficManager.Management/UserMetricsModel.tsp @@ -0,0 +1,75 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.Network; +/** + * Class representing Traffic Manager User Metrics. + */ +@subscriptionResource +model UserMetricsModel + is Azure.ResourceManager.ProxyResource { + ...ResourceNameParameter< + Resource = UserMetricsModel, + KeyName = "trafficManagerUserMetricsKey", + SegmentName = "trafficManagerUserMetricsKeys", + NamePattern = "" + >; +} + +alias UserMetricsModelOps = Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter; + ...SubscriptionIdParameter; + ...Azure.ResourceManager.Legacy.Provider; + }, + { + /** + * The user metrics keys. The default value is "default". + */ + @path + @segment("trafficManagerUserMetricsKeys") + @key("trafficManagerUserMetricsKey") + trafficManagerUserMetricsKey: "default"; + }, + ErrorType = CloudError +>; + +@armResourceOperations +interface UserMetricsModels { + /** + * Get the subscription-level key used for Real User Metrics collection. + */ + get is UserMetricsModelOps.Read; + + /** + * Create or update a subscription-level key used for Real User Metrics collection. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-put-operation-response-codes" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + createOrUpdate is UserMetricsModelOps.CreateOrUpdateSync< + Resource = UserMetricsModel, + Response = ArmResourceCreatedSyncResponse, + Request = void + >; + + /** + * Delete a subscription-level key used for Real User Metrics collection. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + delete is UserMetricsModelOps.DeleteSync< + UserMetricsModel, + Response = ArmResponse + >; +} + +@@doc(UserMetricsModel.name, ""); +@@doc(UserMetricsModel.properties, + "The properties of the Traffic Manager User Metrics." +); diff --git a/specification/trafficmanager/TrafficManager.Management/back-compatible.tsp b/specification/trafficmanager/TrafficManager.Management/back-compatible.tsp new file mode 100644 index 000000000000..c957a4dcc114 --- /dev/null +++ b/specification/trafficmanager/TrafficManager.Management/back-compatible.tsp @@ -0,0 +1,58 @@ +import "@azure-tools/typespec-client-generator-core"; + +using Azure.ClientGenerator.Core; +using Microsoft.Network; + +@@clientName(DeleteOperationResult.boolean, "operationResult"); + +@@clientName(Endpoints.createOrUpdate::parameters.resource, "parameters"); +@@clientName(Endpoints.update::parameters.properties, "parameters"); +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "FIXME: added in TypeSpec migration, follow aka.ms/tsp/conversion-fix for details" +@@Azure.ClientGenerator.Core.Legacy.flattenProperty(Endpoint.properties); + +@@clientName(Profiles.createOrUpdate::parameters.resource, "parameters"); +@@clientName(Profiles.update::parameters.properties, "parameters"); + +@@clientName(ProfilesOperationGroup.checkTrafficManagerRelativeDnsNameAvailability::parameters.body, + "parameters" +); +@@clientName(ProfilesOperationGroup.checkTrafficManagerNameAvailabilityV2::parameters.body, + "parameters" +); + +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "FIXME: added in TypeSpec migration, follow aka.ms/tsp/conversion-fix for details" +@@Azure.ClientGenerator.Core.Legacy.flattenProperty(Profile.properties); + +@@clientLocation(TrafficManagerGeographicHierarchies.getDefault, + "GeographicHierarchies" +); +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "FIXME: added in TypeSpec migration, follow aka.ms/tsp/conversion-fix for details" +@@Azure.ClientGenerator.Core.Legacy.flattenProperty(TrafficManagerGeographicHierarchy.properties +); + +@@clientLocation(HeatMapModels.get, "HeatMap"); +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "FIXME: added in TypeSpec migration, follow aka.ms/tsp/conversion-fix for details" +@@Azure.ClientGenerator.Core.Legacy.flattenProperty(HeatMapModel.properties); + +@@clientLocation(UserMetricsModels.get, "TrafficManagerUserMetricsKeys"); + +@@clientLocation(UserMetricsModels.createOrUpdate, + "TrafficManagerUserMetricsKeys" +); + +@@clientLocation(UserMetricsModels.delete, "TrafficManagerUserMetricsKeys"); + +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "FIXME: added in TypeSpec migration, follow aka.ms/tsp/conversion-fix for details" +@@Azure.ClientGenerator.Core.Legacy.flattenProperty(UserMetricsModel.properties +); + +@@clientLocation(ProfilesOperationGroup.checkTrafficManagerRelativeDnsNameAvailability, + Profiles +); +@@clientName(ProfilesOperationGroup.checkTrafficManagerRelativeDnsNameAvailability, + "CheckTrafficManagerRelativeDnsNameAvailability" +); +@@clientLocation(ProfilesOperationGroup.checkTrafficManagerNameAvailabilityV2, + Profiles +); +@@clientLocation(HeatMapModels.get, "HeatMap"); diff --git a/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Endpoint-DELETE-External.json b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Endpoint-DELETE-External.json new file mode 100644 index 000000000000..2235713cc153 --- /dev/null +++ b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Endpoint-DELETE-External.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "api-version": "2022-04-01", + "endpointName": "azsmnet7187", + "endpointType": "ExternalEndpoints", + "profileName": "azsmnet6386", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager1421", + "subscriptionId": "{subscription-id}" + }, + "responses": { + "200": { + "body": {} + }, + "204": {} + }, + "operationId": "Endpoints_Delete", + "title": "Endpoint-DELETE-External" +} diff --git a/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Endpoint-GET-External-WithGeoMapping.json b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Endpoint-GET-External-WithGeoMapping.json new file mode 100644 index 000000000000..0dd6703da0cd --- /dev/null +++ b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Endpoint-GET-External-WithGeoMapping.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "api-version": "2022-04-01", + "endpointName": "My%20external%20endpoint", + "endpointType": "ExternalEndpoints", + "profileName": "azuresdkfornetautoresttrafficmanager8224", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager2191", + "subscriptionId": "{subscription-id}" + }, + "responses": { + "200": { + "body": { + "name": "My external endpoint", + "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2191/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager8224/externalEndpoints/My external endpoint", + "properties": { + "endpointMonitorStatus": "CheckingEndpoint", + "endpointStatus": "Enabled", + "geoMapping": [ + "GEO-AS", + "GEO-AF" + ], + "priority": 1, + "target": "foobar.contoso.com", + "weight": 1 + } + } + } + }, + "operationId": "Endpoints_Get", + "title": "Endpoint-GET-External-WithGeoMapping" +} diff --git a/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Endpoint-GET-External-WithLocation.json b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Endpoint-GET-External-WithLocation.json new file mode 100644 index 000000000000..87b5e68857c2 --- /dev/null +++ b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Endpoint-GET-External-WithLocation.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "api-version": "2022-04-01", + "endpointName": "azsmnet7187", + "endpointType": "ExternalEndpoints", + "profileName": "azsmnet6386", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager1421", + "subscriptionId": "{subscription-id}" + }, + "responses": { + "200": { + "body": { + "name": "azsmnet7187", + "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386/externalEndpoints/azsmnet7187", + "properties": { + "endpointLocation": "North Europe", + "endpointMonitorStatus": "CheckingEndpoint", + "endpointStatus": "Enabled", + "priority": 1, + "target": "foobar.contoso.com", + "weight": 1 + } + } + } + }, + "operationId": "Endpoints_Get", + "title": "Endpoint-GET-External-WithLocation" +} diff --git a/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Endpoint-GET-External-WithSubnetMapping.json b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Endpoint-GET-External-WithSubnetMapping.json new file mode 100644 index 000000000000..d628815b517d --- /dev/null +++ b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Endpoint-GET-External-WithSubnetMapping.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "api-version": "2022-04-01", + "endpointName": "My%20external%20endpoint", + "endpointType": "ExternalEndpoints", + "profileName": "azuresdkfornetautoresttrafficmanager8224", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager2191", + "subscriptionId": "{subscription-id}" + }, + "responses": { + "200": { + "body": { + "name": "My external endpoint", + "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2191/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager8224/externalEndpoints/My external endpoint", + "properties": { + "endpointMonitorStatus": "CheckingEndpoint", + "endpointStatus": "Enabled", + "priority": 1, + "subnets": [ + { + "first": "1.2.3.0", + "scope": 24 + }, + { + "first": "25.26.27.28", + "last": "29.30.31.32" + } + ], + "target": "foobar.contoso.com", + "weight": 1 + } + } + } + }, + "operationId": "Endpoints_Get", + "title": "Endpoint-GET-External-WithSubnetMapping" +} diff --git a/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Endpoint-PATCH-External-Target.json b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Endpoint-PATCH-External-Target.json new file mode 100644 index 000000000000..640438399245 --- /dev/null +++ b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Endpoint-PATCH-External-Target.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2022-04-01", + "endpointName": "azsmnet7187", + "endpointType": "ExternalEndpoints", + "parameters": { + "name": "azsmnet7187", + "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386/externalEndpoints/azsmnet7187", + "properties": { + "target": "another.foobar.contoso.com" + } + }, + "profileName": "azsmnet6386", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager1421", + "subscriptionId": "{subscription-id}" + }, + "responses": { + "200": { + "body": { + "name": "azsmnet7187", + "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386/externalEndpoints/azsmnet7187", + "properties": { + "endpointLocation": "North Europe", + "endpointMonitorStatus": "CheckingEndpoint", + "endpointStatus": "Enabled", + "priority": 1, + "target": "another.foobar.contoso.com", + "weight": 1 + } + } + } + }, + "operationId": "Endpoints_Update", + "title": "Endpoint-PATCH-External-Target" +} diff --git a/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Endpoint-PUT-External-WithAlwaysServe.json b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Endpoint-PUT-External-WithAlwaysServe.json new file mode 100644 index 000000000000..224d54df389e --- /dev/null +++ b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Endpoint-PUT-External-WithAlwaysServe.json @@ -0,0 +1,56 @@ +{ + "parameters": { + "api-version": "2022-04-01", + "endpointName": "azsmnet7187", + "endpointType": "ExternalEndpoints", + "parameters": { + "name": "azsmnet7187", + "type": "Microsoft.network/TrafficManagerProfiles/ExternalEndpoints", + "properties": { + "alwaysServe": "Enabled", + "endpointLocation": "North Europe", + "endpointStatus": "Enabled", + "target": "foobar.contoso.com" + } + }, + "profileName": "azsmnet6386", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager1421", + "subscriptionId": "{subscription-id}" + }, + "responses": { + "200": { + "body": { + "name": "azsmnet7187", + "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386/externalEndpoints/azsmnet7187", + "properties": { + "alwaysServe": "Enabled", + "endpointLocation": "North Europe", + "endpointMonitorStatus": "CheckingEndpoint", + "endpointStatus": "Enabled", + "priority": 1, + "target": "foobar.contoso.com", + "weight": 1 + } + } + }, + "201": { + "body": { + "name": "azsmnet7187", + "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386/externalEndpoints/azsmnet7187", + "properties": { + "alwaysServe": "Enabled", + "endpointLocation": "North Europe", + "endpointMonitorStatus": "CheckingEndpoint", + "endpointStatus": "Enabled", + "priority": 1, + "target": "foobar.contoso.com", + "weight": 1 + } + } + } + }, + "operationId": "Endpoints_CreateOrUpdate", + "title": "Endpoint-PUT-External-WithAlwaysServe" +} diff --git a/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Endpoint-PUT-External-WithCustomHeaders.json b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Endpoint-PUT-External-WithCustomHeaders.json new file mode 100644 index 000000000000..6fb10ff482e6 --- /dev/null +++ b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Endpoint-PUT-External-WithCustomHeaders.json @@ -0,0 +1,83 @@ +{ + "parameters": { + "api-version": "2022-04-01", + "endpointName": "azsmnet7187", + "endpointType": "ExternalEndpoints", + "parameters": { + "name": "azsmnet7187", + "type": "Microsoft.network/TrafficManagerProfiles/ExternalEndpoints", + "properties": { + "customHeaders": [ + { + "name": "header-1", + "value": "value-1" + }, + { + "name": "header-2", + "value": "value-2" + } + ], + "endpointLocation": "North Europe", + "endpointStatus": "Enabled", + "target": "foobar.contoso.com" + } + }, + "profileName": "azsmnet6386", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager1421", + "subscriptionId": "{subscription-id}" + }, + "responses": { + "200": { + "body": { + "name": "azsmnet7187", + "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386/externalEndpoints/azsmnet7187", + "properties": { + "customHeaders": [ + { + "name": "header-1", + "value": "value-1" + }, + { + "name": "header-2", + "value": "value-2" + } + ], + "endpointLocation": "North Europe", + "endpointMonitorStatus": "CheckingEndpoint", + "endpointStatus": "Enabled", + "priority": 1, + "target": "foobar.contoso.com", + "weight": 1 + } + } + }, + "201": { + "body": { + "name": "azsmnet7187", + "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386/externalEndpoints/azsmnet7187", + "properties": { + "customHeaders": [ + { + "name": "header-1", + "value": "value-1" + }, + { + "name": "header-2", + "value": "value-2" + } + ], + "endpointLocation": "North Europe", + "endpointMonitorStatus": "CheckingEndpoint", + "endpointStatus": "Enabled", + "priority": 1, + "target": "foobar.contoso.com", + "weight": 1 + } + } + } + }, + "operationId": "Endpoints_CreateOrUpdate", + "title": "Endpoint-PUT-External-WithCustomHeaders" +} diff --git a/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Endpoint-PUT-External-WithGeoMapping.json b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Endpoint-PUT-External-WithGeoMapping.json new file mode 100644 index 000000000000..30d753558011 --- /dev/null +++ b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Endpoint-PUT-External-WithGeoMapping.json @@ -0,0 +1,62 @@ +{ + "parameters": { + "api-version": "2022-04-01", + "endpointName": "My%20external%20endpoint", + "endpointType": "ExternalEndpoints", + "parameters": { + "name": "My external endpoint", + "type": "Microsoft.network/TrafficManagerProfiles/ExternalEndpoints", + "properties": { + "endpointStatus": "Enabled", + "geoMapping": [ + "GEO-AS", + "GEO-AF" + ], + "target": "foobar.contoso.com" + } + }, + "profileName": "azuresdkfornetautoresttrafficmanager8224", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager2191", + "subscriptionId": "{subscription-id}" + }, + "responses": { + "200": { + "body": { + "name": "My external endpoint", + "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2191/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager8224/externalEndpoints/My external endpoint", + "properties": { + "endpointMonitorStatus": "CheckingEndpoint", + "endpointStatus": "Enabled", + "geoMapping": [ + "GEO-AS", + "GEO-AF" + ], + "priority": 1, + "target": "foobar.contoso.com", + "weight": 1 + } + } + }, + "201": { + "body": { + "name": "My external endpoint", + "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2191/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager8224/externalEndpoints/My external endpoint", + "properties": { + "endpointMonitorStatus": "CheckingEndpoint", + "endpointStatus": "Enabled", + "geoMapping": [ + "GEO-AS", + "GEO-AF" + ], + "priority": 1, + "target": "foobar.contoso.com", + "weight": 1 + } + } + } + }, + "operationId": "Endpoints_CreateOrUpdate", + "title": "Endpoint-PUT-External-WithGeoMapping" +} diff --git a/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Endpoint-PUT-External-WithLocation.json b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Endpoint-PUT-External-WithLocation.json new file mode 100644 index 000000000000..b1526ff04fe8 --- /dev/null +++ b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Endpoint-PUT-External-WithLocation.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "api-version": "2022-04-01", + "endpointName": "azsmnet7187", + "endpointType": "ExternalEndpoints", + "parameters": { + "name": "azsmnet7187", + "type": "Microsoft.network/TrafficManagerProfiles/ExternalEndpoints", + "properties": { + "endpointLocation": "North Europe", + "endpointStatus": "Enabled", + "target": "foobar.contoso.com" + } + }, + "profileName": "azsmnet6386", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager1421", + "subscriptionId": "{subscription-id}" + }, + "responses": { + "200": { + "body": { + "name": "azsmnet7187", + "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386/externalEndpoints/azsmnet7187", + "properties": { + "endpointLocation": "North Europe", + "endpointMonitorStatus": "CheckingEndpoint", + "endpointStatus": "Enabled", + "priority": 1, + "target": "foobar.contoso.com", + "weight": 1 + } + } + }, + "201": { + "body": { + "name": "azsmnet7187", + "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386/externalEndpoints/azsmnet7187", + "properties": { + "endpointLocation": "North Europe", + "endpointMonitorStatus": "CheckingEndpoint", + "endpointStatus": "Enabled", + "priority": 1, + "target": "foobar.contoso.com", + "weight": 1 + } + } + } + }, + "operationId": "Endpoints_CreateOrUpdate", + "title": "Endpoint-PUT-External-WithLocation" +} diff --git a/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Endpoint-PUT-External-WithSubnetMapping.json b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Endpoint-PUT-External-WithSubnetMapping.json new file mode 100644 index 000000000000..3f2a26b380c2 --- /dev/null +++ b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Endpoint-PUT-External-WithSubnetMapping.json @@ -0,0 +1,80 @@ +{ + "parameters": { + "api-version": "2022-04-01", + "endpointName": "My%20external%20endpoint", + "endpointType": "ExternalEndpoints", + "parameters": { + "name": "My external endpoint", + "type": "Microsoft.network/TrafficManagerProfiles/ExternalEndpoints", + "properties": { + "endpointStatus": "Enabled", + "subnets": [ + { + "first": "1.2.3.0", + "scope": 24 + }, + { + "first": "25.26.27.28", + "last": "29.30.31.32" + } + ], + "target": "foobar.contoso.com" + } + }, + "profileName": "azuresdkfornetautoresttrafficmanager8224", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager2191", + "subscriptionId": "{subscription-id}" + }, + "responses": { + "200": { + "body": { + "name": "My external endpoint", + "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2191/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager8224/externalEndpoints/My external endpoint", + "properties": { + "endpointMonitorStatus": "CheckingEndpoint", + "endpointStatus": "Enabled", + "priority": 1, + "subnets": [ + { + "first": "1.2.3.0", + "scope": 24 + }, + { + "first": "25.26.27.28", + "last": "29.30.31.32" + } + ], + "target": "foobar.contoso.com", + "weight": 1 + } + } + }, + "201": { + "body": { + "name": "My external endpoint", + "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2191/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager8224/externalEndpoints/My external endpoint", + "properties": { + "endpointMonitorStatus": "CheckingEndpoint", + "endpointStatus": "Enabled", + "priority": 1, + "subnets": [ + { + "first": "1.2.3.0", + "scope": 24 + }, + { + "first": "25.26.27.28", + "last": "29.30.31.32" + } + ], + "target": "foobar.contoso.com", + "weight": 1 + } + } + } + }, + "operationId": "Endpoints_CreateOrUpdate", + "title": "Endpoint-PUT-External-WithSubnetMapping" +} diff --git a/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/GeographicHierarchy-GET-default.json b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/GeographicHierarchy-GET-default.json new file mode 100644 index 000000000000..6f84198abd76 --- /dev/null +++ b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/GeographicHierarchy-GET-default.json @@ -0,0 +1,62 @@ +{ + "parameters": { + "api-version": "2022-04-01" + }, + "responses": { + "200": { + "body": { + "name": "default", + "type": "Microsoft.Network/trafficManagerGeographicHierarchies", + "id": "/providers/Microsoft.Network/trafficManagerGeographicHierarchies/default", + "properties": { + "geographicHierarchy": { + "name": "World", + "code": "WORLD", + "regions": [ + { + "name": "Middle East", + "code": "GEO-ME", + "regions": [ + { + "name": "United Arab Emirates", + "code": "AE", + "regions": [] + } + ] + }, + { + "name": "Australia / Pacific", + "code": "GEO-AP", + "regions": [ + { + "name": "Australia", + "code": "AU", + "regions": [ + { + "name": "Australian Capital Territory", + "code": "AU-ACT", + "regions": [] + }, + { + "name": "New South Wales", + "code": "AU-NSW", + "regions": [] + } + ] + }, + { + "name": "Cook Islands", + "code": "CK", + "regions": [] + } + ] + } + ] + } + } + } + } + }, + "operationId": "GeographicHierarchies_GetDefault", + "title": "GeographicHierarchy-GET-default" +} diff --git a/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/HeatMap-GET-With-Null-Values.json b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/HeatMap-GET-With-Null-Values.json new file mode 100644 index 000000000000..f104fd9a57a6 --- /dev/null +++ b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/HeatMap-GET-With-Null-Values.json @@ -0,0 +1,69 @@ +{ + "parameters": { + "api-version": "2022-04-01", + "heatMapType": "default", + "profileName": "azuresdkfornetautoresttrafficmanager3880", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager1323", + "subscriptionId": "{subscription-id}" + }, + "responses": { + "200": { + "body": { + "name": "default", + "type": "Microsoft.Network/trafficManagerProfiles/heatMaps/default", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1323/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager3880/heatMaps/default", + "properties": { + "endTime": "2017-08-22T12:50:00Z", + "endpoints": [ + { + "endpointId": 0, + "resourceId": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1323/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager3880/externalEndpoints/azuresdkfornetautoresttrafficmanager3880" + }, + { + "endpointId": 1, + "resourceId": "/subscriptions/562d4115-c01e-4m67-9bbd-c11c2d58ad73/resourceGroups/azuresdkfornetautoresttrafficmanager1300/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager3885/externalEndpoints/azuresdkfornetautoresttrafficmanager3881" + } + ], + "startTime": "2017-08-15T12:00:00Z", + "trafficFlows": [ + { + "latitude": 99.99, + "longitude": 0, + "queryExperiences": [ + { + "endpointId": 0, + "latency": 99, + "queryCount": 1000000 + }, + { + "endpointId": 1, + "latency": 1, + "queryCount": 1 + } + ], + "sourceIp": "1.1.1.1" + }, + { + "latitude": 1.11, + "longitude": -2.35, + "queryExperiences": [ + { + "endpointId": 0, + "queryCount": 100 + }, + { + "endpointId": 1, + "latency": 4.222, + "queryCount": 500 + } + ], + "sourceIp": "2.255.1.1" + } + ] + } + } + } + }, + "operationId": "HeatMap_Get", + "title": "HeatMap-GET-With-Null-Values" +} diff --git a/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/HeatMap-GET-With-TopLeft-BotRight.json b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/HeatMap-GET-With-TopLeft-BotRight.json new file mode 100644 index 000000000000..0b4a3dcd394f --- /dev/null +++ b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/HeatMap-GET-With-TopLeft-BotRight.json @@ -0,0 +1,78 @@ +{ + "parameters": { + "api-version": "2022-04-01", + "botRight": [ + -50.001, + 80 + ], + "heatMapType": "default", + "profileName": "azuresdkfornetautoresttrafficmanager3880", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager1323", + "subscriptionId": "{subscription-id}", + "topLeft": [ + 10, + 50.001 + ] + }, + "responses": { + "200": { + "body": { + "name": "default", + "type": "Microsoft.Network/trafficManagerProfiles/heatMaps/latencyVolumeByLocation", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1323/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager3880/heatMaps/latencyVolumeByLocation", + "properties": { + "endTime": "2017-08-22T12:50:00Z", + "endpoints": [ + { + "endpointId": 1, + "resourceId": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1323/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager3880/externalEndpoints/azuresdkfornetautoresttrafficmanager3880" + }, + { + "endpointId": 2, + "resourceId": "/subscriptions/562d4115-c01e-4m67-9bbd-c11c2d58ad73/resourceGroups/azuresdkfornetautoresttrafficmanager1300/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager3885/externalEndpoints/azuresdkfornetautoresttrafficmanager3881" + } + ], + "startTime": "2017-08-15T12:00:00Z", + "trafficFlows": [ + { + "latitude": 9.99, + "longitude": 75.01, + "queryExperiences": [ + { + "endpointId": 1, + "latency": 99.222, + "queryCount": 1000000 + }, + { + "endpointId": 2, + "latency": 1.222, + "queryCount": 1 + } + ], + "sourceIp": "1.1.1.1" + }, + { + "latitude": -49.99, + "longitude": 51, + "queryExperiences": [ + { + "endpointId": 1, + "latency": 96.222, + "queryCount": 100 + }, + { + "endpointId": 2, + "latency": 4.222, + "queryCount": 500 + } + ], + "sourceIp": "2.255.1.1" + } + ] + } + } + } + }, + "operationId": "HeatMap_Get", + "title": "HeatMap-GET-With-TopLeft-BotRight" +} diff --git a/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/HeatMap-GET.json b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/HeatMap-GET.json new file mode 100644 index 000000000000..02fd2c11004a --- /dev/null +++ b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/HeatMap-GET.json @@ -0,0 +1,70 @@ +{ + "parameters": { + "api-version": "2022-04-01", + "heatMapType": "default", + "profileName": "azuresdkfornetautoresttrafficmanager3880", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager1323", + "subscriptionId": "{subscription-id}" + }, + "responses": { + "200": { + "body": { + "name": "default", + "type": "Microsoft.Network/trafficManagerProfiles/heatMaps/latencyVolumeByLocation", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1323/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager3880/heatMaps/latencyVolumeByLocation", + "properties": { + "endTime": "2017-08-22T12:50:00Z", + "endpoints": [ + { + "endpointId": 1, + "resourceId": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1323/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager3880/externalEndpoints/azuresdkfornetautoresttrafficmanager3880" + }, + { + "endpointId": 2, + "resourceId": "/subscriptions/562d4115-c01e-4m67-9bbd-c11c2d58ad73/resourceGroups/azuresdkfornetautoresttrafficmanager1300/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager3885/externalEndpoints/azuresdkfornetautoresttrafficmanager3881" + } + ], + "startTime": "2017-08-15T12:00:00Z", + "trafficFlows": [ + { + "latitude": 99.99, + "longitude": 0, + "queryExperiences": [ + { + "endpointId": 1, + "latency": 99.222, + "queryCount": 1000000 + }, + { + "endpointId": 2, + "latency": 1.222, + "queryCount": 1 + } + ], + "sourceIp": "1.1.1.1" + }, + { + "latitude": -99.99, + "longitude": 1, + "queryExperiences": [ + { + "endpointId": 1, + "latency": 96.222, + "queryCount": 100 + }, + { + "endpointId": 2, + "latency": 4.222, + "queryCount": 500 + } + ], + "sourceIp": "2.255.1.1" + } + ] + } + } + } + }, + "operationId": "HeatMap_Get", + "title": "HeatMap-GET" +} diff --git a/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/NameAvailabilityTest_NameAvailable-POST-example-21.json b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/NameAvailabilityTest_NameAvailable-POST-example-21.json new file mode 100644 index 000000000000..3c01610f79cb --- /dev/null +++ b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/NameAvailabilityTest_NameAvailable-POST-example-21.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2022-04-01", + "parameters": { + "name": "azsmnet5403", + "type": "microsoft.network/trafficmanagerprofiles" + } + }, + "responses": { + "200": { + "body": { + "name": "azsmnet5403", + "type": "Microsoft.Network/trafficManagerProfiles", + "nameAvailable": true + } + } + }, + "operationId": "Profiles_CheckTrafficManagerRelativeDnsNameAvailability", + "title": "NameAvailabilityTest_NameAvailablePOST21" +} diff --git a/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/NameAvailabilityTest_NameNotAvailable-POST-example-23.json b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/NameAvailabilityTest_NameNotAvailable-POST-example-23.json new file mode 100644 index 000000000000..19c22771d260 --- /dev/null +++ b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/NameAvailabilityTest_NameNotAvailable-POST-example-23.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2022-04-01", + "parameters": { + "name": "azsmnet4696", + "type": "microsoft.network/trafficmanagerprofiles" + } + }, + "responses": { + "200": { + "body": { + "name": "azsmnet4696", + "type": "Microsoft.Network/trafficManagerProfiles", + "message": "Domain name azsmnet4696.tmpreview.watmtest.azure-test.net already exists. Please choose a different DNS prefix.", + "nameAvailable": false, + "reason": "AlreadyExists" + } + } + }, + "operationId": "Profiles_CheckTrafficManagerRelativeDnsNameAvailability", + "title": "NameAvailabilityTest_NameNotAvailablePOST23" +} diff --git a/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/NameAvailabilityV2Test_NameAvailable-POST-example-21.json b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/NameAvailabilityV2Test_NameAvailable-POST-example-21.json new file mode 100644 index 000000000000..85ccef549d93 --- /dev/null +++ b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/NameAvailabilityV2Test_NameAvailable-POST-example-21.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "api-version": "2022-04-01", + "parameters": { + "name": "azsmnet5403", + "type": "microsoft.network/trafficmanagerprofiles" + }, + "subscriptionId": "{subscription-id}" + }, + "responses": { + "200": { + "body": { + "name": "azsmnet5403", + "type": "Microsoft.Network/trafficManagerProfiles", + "nameAvailable": true + } + } + }, + "operationId": "Profiles_checkTrafficManagerNameAvailabilityV2", + "title": "NameAvailabilityV2Test_NameAvailablePOST21" +} diff --git a/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/NameAvailabilityV2Test_NameNotAvailable-POST-example-23.json b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/NameAvailabilityV2Test_NameNotAvailable-POST-example-23.json new file mode 100644 index 000000000000..9305307684bf --- /dev/null +++ b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/NameAvailabilityV2Test_NameNotAvailable-POST-example-23.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "api-version": "2022-04-01", + "parameters": { + "name": "azsmnet4696", + "type": "microsoft.network/trafficmanagerprofiles" + }, + "subscriptionId": "{subscription-id}" + }, + "responses": { + "200": { + "body": { + "name": "azsmnet4696", + "type": "Microsoft.Network/trafficManagerProfiles", + "message": "Domain name azsmnet4696.tmpreview.watmtest.azure-test.net already exists. Please choose a different DNS prefix.", + "nameAvailable": false, + "reason": "AlreadyExists" + } + } + }, + "operationId": "Profiles_checkTrafficManagerNameAvailabilityV2", + "title": "NameAvailabilityV2Test_NameNotAvailablePOST23" +} diff --git a/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Profile-DELETE.json b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Profile-DELETE.json new file mode 100644 index 000000000000..86ae0c3b1652 --- /dev/null +++ b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Profile-DELETE.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "api-version": "2022-04-01", + "profileName": "azuresdkfornetautoresttrafficmanager3880", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager1323", + "subscriptionId": "{subscription-id}" + }, + "responses": { + "200": { + "body": {} + }, + "204": {} + }, + "operationId": "Profiles_Delete", + "title": "Profile-DELETE" +} diff --git a/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Profile-GET-ByResourceGroup.json b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Profile-GET-ByResourceGroup.json new file mode 100644 index 000000000000..01650a3aa72c --- /dev/null +++ b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Profile-GET-ByResourceGroup.json @@ -0,0 +1,97 @@ +{ + "parameters": { + "api-version": "2022-04-01", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager3640", + "subscriptionId": "{subscription-id}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "azuresdkfornetautoresttrafficmanager1005", + "type": "Microsoft.Network/trafficManagerProfiles", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager3640/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager1005", + "location": "global", + "properties": { + "dnsConfig": { + "fqdn": "azuresdkfornetautoresttrafficmanager1005.tmpreview.watmtest.azure-test.net", + "relativeName": "azuresdkfornetautoresttrafficmanager1005", + "ttl": 35 + }, + "endpoints": [ + { + "name": "My external endpoint", + "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager3640/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager1005/externalEndpoints/My external endpoint", + "properties": { + "endpointLocation": "North Europe", + "endpointMonitorStatus": "CheckingEndpoint", + "endpointStatus": "Enabled", + "priority": 1, + "target": "foobar.contoso.com", + "weight": 1 + } + } + ], + "monitorConfig": { + "path": "/testpath.aspx", + "intervalInSeconds": 30, + "port": 80, + "profileMonitorStatus": "Online", + "timeoutInSeconds": 10, + "toleratedNumberOfFailures": 3, + "protocol": "HTTP" + }, + "profileStatus": "Enabled", + "trafficRoutingMethod": "Performance" + }, + "tags": {} + }, + { + "name": "azuresdkfornetautoresttrafficmanager959", + "type": "Microsoft.Network/trafficManagerProfiles", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager3640/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager959", + "location": "global", + "properties": { + "dnsConfig": { + "fqdn": "azuresdkfornetautoresttrafficmanager959.tmpreview.watmtest.azure-test.net", + "relativeName": "azuresdkfornetautoresttrafficmanager959", + "ttl": 35 + }, + "endpoints": [ + { + "name": "My external endpoint", + "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager3640/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager959/externalEndpoints/My external endpoint", + "properties": { + "endpointLocation": "North Europe", + "endpointMonitorStatus": "Online", + "endpointStatus": "Enabled", + "priority": 1, + "target": "foobar.contoso.com", + "weight": 1 + } + } + ], + "monitorConfig": { + "path": "/testpath.aspx", + "intervalInSeconds": 30, + "port": 80, + "profileMonitorStatus": "Online", + "timeoutInSeconds": 10, + "toleratedNumberOfFailures": 3, + "protocol": "HTTP" + }, + "profileStatus": "Enabled", + "trafficRoutingMethod": "Performance" + }, + "tags": {} + } + ] + } + } + }, + "operationId": "Profiles_ListByResourceGroup", + "title": "ListProfilesByResourceGroup" +} diff --git a/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Profile-GET-BySubscription.json b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Profile-GET-BySubscription.json new file mode 100644 index 000000000000..8523a500d6df --- /dev/null +++ b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Profile-GET-BySubscription.json @@ -0,0 +1,124 @@ +{ + "parameters": { + "api-version": "2022-04-01", + "subscriptionId": "{subscription-id}" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "azsmnet5183", + "type": "Microsoft.Network/trafficManagerProfiles", + "id": "/subscriptions/{subscription-id}/resourceGroups/azsmnet1719/providers/Microsoft.Network/trafficManagerProfiles/azsmnet5183", + "location": "global", + "properties": { + "dnsConfig": { + "fqdn": "azsmnet4696.tmpreview.watmtest.azure-test.net", + "relativeName": "azsmnet4696", + "ttl": 35 + }, + "endpoints": [], + "monitorConfig": { + "path": "/testpath.aspx", + "intervalInSeconds": 30, + "port": 80, + "profileMonitorStatus": "Online", + "timeoutInSeconds": 10, + "toleratedNumberOfFailures": 3, + "protocol": "HTTP" + }, + "profileStatus": "Enabled", + "trafficRoutingMethod": "Performance" + }, + "tags": {} + }, + { + "name": "azuresdkfornetautoresttrafficmanager3440", + "type": "Microsoft.Network/trafficManagerProfiles", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager5168/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager3440", + "location": "global", + "properties": { + "dnsConfig": { + "fqdn": "azuresdkfornetautoresttrafficmanager3440.tmpreview.watmtest.azure-test.net", + "relativeName": "azuresdkfornetautoresttrafficmanager3440", + "ttl": 35 + }, + "endpoints": [ + { + "name": "My external endpoint", + "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager5168/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager3440/externalEndpoints/My external endpoint", + "properties": { + "endpointLocation": "North Europe", + "endpointMonitorStatus": "Online", + "endpointStatus": "Enabled", + "priority": 1, + "target": "foobar.contoso.com", + "weight": 1 + } + } + ], + "monitorConfig": { + "path": "/testpath.aspx", + "intervalInSeconds": 30, + "port": 80, + "profileMonitorStatus": "Online", + "timeoutInSeconds": 10, + "toleratedNumberOfFailures": 3, + "protocol": "HTTP" + }, + "profileStatus": "Enabled", + "trafficRoutingMethod": "Performance" + }, + "tags": {} + }, + { + "name": "onesdk8819", + "type": "Microsoft.Network/trafficManagerProfiles", + "id": "/subscriptions/{subscription-id}/resourceGroups/onesdk9785/providers/Microsoft.Network/trafficManagerProfiles/onesdk8819", + "location": "global", + "properties": { + "dnsConfig": { + "fqdn": "onesdk7242.tmpreview.watmtest.azure-test.net", + "relativeName": "onesdk7242", + "ttl": 51 + }, + "endpoints": [ + { + "name": "MyNestedEndpoint", + "type": "Microsoft.Network/trafficManagerProfiles/nestedEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/onesdk9785/providers/Microsoft.Network/trafficManagerProfiles/onesdk8819/nestedEndpoints/MyNestedEndpoint", + "properties": { + "endpointLocation": "West Europe", + "endpointMonitorStatus": "Stopped", + "endpointStatus": "Enabled", + "minChildEndpoints": 1, + "priority": 1, + "target": "onesdk4285.tmpreview.watmtest.azure-test.net", + "targetResourceId": "/subscriptions/{subscription-id}/resourceGroups/onesdk9785/providers/Microsoft.Network/trafficManagerProfiles/onesdk1792", + "weight": 1 + } + } + ], + "monitorConfig": { + "path": "/testparent.asp", + "intervalInSeconds": 30, + "port": 111, + "profileMonitorStatus": "Online", + "timeoutInSeconds": 10, + "toleratedNumberOfFailures": 3, + "protocol": "HTTPS" + }, + "profileStatus": "Enabled", + "trafficRoutingMethod": "Performance" + }, + "tags": {} + } + ] + } + } + }, + "operationId": "Profiles_ListBySubscription", + "title": "ListBySubscription" +} diff --git a/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Profile-GET-WithEndpoints.json b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Profile-GET-WithEndpoints.json new file mode 100644 index 000000000000..ce1d6147b8c3 --- /dev/null +++ b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Profile-GET-WithEndpoints.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "api-version": "2022-04-01", + "profileName": "azuresdkfornetautoresttrafficmanager3880", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager1323", + "subscriptionId": "{subscription-id}" + }, + "responses": { + "200": { + "body": { + "name": "azuresdkfornetautoresttrafficmanager3880", + "type": "Microsoft.Network/trafficManagerProfiles", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1323/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager3880", + "location": "global", + "properties": { + "dnsConfig": { + "fqdn": "azuresdkfornetautoresttrafficmanager3880.tmpreview.watmtest.azure-test.net", + "relativeName": "azuresdkfornetautoresttrafficmanager3880", + "ttl": 35 + }, + "endpoints": [ + { + "name": "My external endpoint", + "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1323/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager3880/externalEndpoints/My external endpoint", + "properties": { + "endpointLocation": "North Europe", + "endpointMonitorStatus": "CheckingEndpoint", + "endpointStatus": "Enabled", + "priority": 1, + "target": "foobar.contoso.com", + "weight": 1 + } + } + ], + "monitorConfig": { + "path": "/testpath.aspx", + "intervalInSeconds": 30, + "port": 80, + "profileMonitorStatus": "CheckingEndpoints", + "timeoutInSeconds": 10, + "toleratedNumberOfFailures": 3, + "protocol": "HTTP" + }, + "profileStatus": "Enabled", + "trafficRoutingMethod": "Performance" + }, + "tags": {} + } + } + }, + "operationId": "Profiles_Get", + "title": "Profile-GET-WithEndpoints" +} diff --git a/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Profile-GET-WithTrafficViewDisabled.json b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Profile-GET-WithTrafficViewDisabled.json new file mode 100644 index 000000000000..d5e6eb064616 --- /dev/null +++ b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Profile-GET-WithTrafficViewDisabled.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2022-04-01", + "profileName": "azuresdkfornetautoresttrafficmanager3880", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager1323", + "subscriptionId": "{subscription-id}" + }, + "responses": { + "200": { + "body": { + "name": "azuresdkfornetautoresttrafficmanager3880", + "type": "Microsoft.Network/trafficManagerProfiles", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1323/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager3880", + "location": "global", + "properties": { + "dnsConfig": { + "fqdn": "azuresdkfornetautoresttrafficmanager3880.tmpreview.watmtest.azure-test.net", + "relativeName": "azuresdkfornetautoresttrafficmanager3880", + "ttl": 35 + }, + "endpoints": [ + { + "name": "My external endpoint", + "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1323/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager3880/externalEndpoints/My external endpoint", + "properties": { + "endpointLocation": "North Europe", + "endpointMonitorStatus": "CheckingEndpoint", + "endpointStatus": "Enabled", + "priority": 1, + "target": "foobar.contoso.com", + "weight": 1 + } + } + ], + "monitorConfig": { + "path": "/testpath.aspx", + "intervalInSeconds": 30, + "port": 80, + "profileMonitorStatus": "CheckingEndpoints", + "timeoutInSeconds": 10, + "toleratedNumberOfFailures": 3, + "protocol": "HTTP" + }, + "profileStatus": "Enabled", + "trafficRoutingMethod": "Performance", + "trafficViewEnrollmentStatus": "Disabled" + }, + "tags": {} + } + } + }, + "operationId": "Profiles_Get", + "title": "Profile-GET-WithTrafficViewDisabled" +} diff --git a/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Profile-GET-WithTrafficViewEnabled.json b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Profile-GET-WithTrafficViewEnabled.json new file mode 100644 index 000000000000..863fda913bcf --- /dev/null +++ b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Profile-GET-WithTrafficViewEnabled.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2022-04-01", + "profileName": "azuresdkfornetautoresttrafficmanager3880", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager1323", + "subscriptionId": "{subscription-id}" + }, + "responses": { + "200": { + "body": { + "name": "azuresdkfornetautoresttrafficmanager3880", + "type": "Microsoft.Network/trafficManagerProfiles", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1323/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager3880", + "location": "global", + "properties": { + "dnsConfig": { + "fqdn": "azuresdkfornetautoresttrafficmanager3880.tmpreview.watmtest.azure-test.net", + "relativeName": "azuresdkfornetautoresttrafficmanager3880", + "ttl": 35 + }, + "endpoints": [ + { + "name": "My external endpoint", + "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1323/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager3880/externalEndpoints/My external endpoint", + "properties": { + "endpointLocation": "North Europe", + "endpointMonitorStatus": "CheckingEndpoint", + "endpointStatus": "Enabled", + "priority": 1, + "target": "foobar.contoso.com", + "weight": 1 + } + } + ], + "monitorConfig": { + "path": "/testpath.aspx", + "intervalInSeconds": 30, + "port": 80, + "profileMonitorStatus": "CheckingEndpoints", + "timeoutInSeconds": 10, + "toleratedNumberOfFailures": 3, + "protocol": "HTTP" + }, + "profileStatus": "Enabled", + "trafficRoutingMethod": "Performance", + "trafficViewEnrollmentStatus": "Enabled" + }, + "tags": {} + } + } + }, + "operationId": "Profiles_Get", + "title": "Profile-GET-WithTrafficViewEnabled" +} diff --git a/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Profile-PATCH-MonitorConfig.json b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Profile-PATCH-MonitorConfig.json new file mode 100644 index 000000000000..3fb0cd09b1f1 --- /dev/null +++ b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Profile-PATCH-MonitorConfig.json @@ -0,0 +1,86 @@ +{ + "parameters": { + "api-version": "2022-04-01", + "parameters": { + "properties": { + "monitorConfig": { + "path": "/testpath.aspx", + "customHeaders": [ + { + "name": "header-1", + "value": "value-1" + }, + { + "name": "header-2", + "value": "value-2" + } + ], + "intervalInSeconds": 30, + "port": 80, + "timeoutInSeconds": 6, + "toleratedNumberOfFailures": 4, + "protocol": "HTTP" + } + } + }, + "profileName": "azuresdkfornetautoresttrafficmanager6192", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager2583", + "subscriptionId": "{subscription-id}" + }, + "responses": { + "200": { + "body": { + "name": "azuresdkfornetautoresttrafficmanager6192", + "type": "Microsoft.Network/trafficManagerProfiles", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2583/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager6192", + "location": "global", + "properties": { + "dnsConfig": { + "fqdn": "azuresdkfornetautoresttrafficmanager6192.tmpreview.watmtest.azure-test.net", + "relativeName": "azuresdkfornetautoresttrafficmanager6192", + "ttl": 35 + }, + "endpoints": [ + { + "name": "My external endpoint", + "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2583/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager6192/externalEndpoints/My external endpoint", + "properties": { + "endpointLocation": "North Europe", + "endpointMonitorStatus": "CheckingEndpoint", + "endpointStatus": "Enabled", + "priority": 1, + "target": "foobar.contoso.com", + "weight": 1 + } + } + ], + "monitorConfig": { + "path": "/testpath.aspx", + "customHeaders": [ + { + "name": "header-1", + "value": "value-1" + }, + { + "name": "header-2", + "value": "value-2" + } + ], + "intervalInSeconds": 30, + "port": 80, + "profileMonitorStatus": "CheckingEndpoints", + "timeoutInSeconds": 6, + "toleratedNumberOfFailures": 4, + "protocol": "HTTP" + }, + "profileStatus": "Enabled", + "trafficRoutingMethod": "Performance" + }, + "tags": {} + } + } + }, + "operationId": "Profiles_Update", + "title": "Profile-PATCH-MonitorConfig" +} diff --git a/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Profile-PUT-MultiValue.json b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Profile-PUT-MultiValue.json new file mode 100644 index 000000000000..438618b0ec12 --- /dev/null +++ b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Profile-PUT-MultiValue.json @@ -0,0 +1,88 @@ +{ + "parameters": { + "api-version": "2022-04-01", + "parameters": { + "location": "global", + "properties": { + "dnsConfig": { + "relativeName": "azsmnet6386", + "ttl": 35 + }, + "maxReturn": 2, + "monitorConfig": { + "path": "/testpath.aspx", + "port": 80, + "protocol": "HTTP" + }, + "profileStatus": "Enabled", + "trafficRoutingMethod": "MultiValue", + "trafficViewEnrollmentStatus": "Disabled" + } + }, + "profileName": "azsmnet6386", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager1421", + "subscriptionId": "{subscription-id}" + }, + "responses": { + "200": { + "body": { + "name": "azsmnet6386", + "type": "Microsoft.Network/trafficManagerProfiles", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386", + "location": "global", + "properties": { + "dnsConfig": { + "fqdn": "azsmnet6386.tmpreview.watmtest.azure-test.net", + "relativeName": "azsmnet6386", + "ttl": 35 + }, + "endpoints": [], + "maxReturn": 2, + "monitorConfig": { + "path": "/testpath.aspx", + "intervalInSeconds": 30, + "port": 80, + "profileMonitorStatus": "Inactive", + "timeoutInSeconds": 10, + "toleratedNumberOfFailures": 3, + "protocol": "HTTP" + }, + "profileStatus": "Enabled", + "trafficRoutingMethod": "MultiValue", + "trafficViewEnrollmentStatus": "Disabled" + } + } + }, + "201": { + "body": { + "name": "azsmnet6386", + "type": "Microsoft.Network/trafficManagerProfiles", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386", + "location": "global", + "properties": { + "dnsConfig": { + "fqdn": "azsmnet6386.tmpreview.watmtest.azure-test.net", + "relativeName": "azsmnet6386", + "ttl": 35 + }, + "endpoints": [], + "maxReturn": 2, + "monitorConfig": { + "path": "/testpath.aspx", + "intervalInSeconds": 30, + "port": 80, + "profileMonitorStatus": "Inactive", + "timeoutInSeconds": 10, + "toleratedNumberOfFailures": 3, + "protocol": "HTTP" + }, + "profileStatus": "Enabled", + "trafficRoutingMethod": "MultiValue", + "trafficViewEnrollmentStatus": "Disabled" + } + } + } + }, + "operationId": "Profiles_CreateOrUpdate", + "title": "Profile-PUT-MultiValue" +} diff --git a/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Profile-PUT-NoEndpoints.json b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Profile-PUT-NoEndpoints.json new file mode 100644 index 000000000000..d22bf3c08646 --- /dev/null +++ b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Profile-PUT-NoEndpoints.json @@ -0,0 +1,82 @@ +{ + "parameters": { + "api-version": "2022-04-01", + "parameters": { + "location": "global", + "properties": { + "dnsConfig": { + "relativeName": "azsmnet6386", + "ttl": 35 + }, + "monitorConfig": { + "path": "/testpath.aspx", + "port": 80, + "protocol": "HTTP" + }, + "profileStatus": "Enabled", + "trafficRoutingMethod": "Performance" + } + }, + "profileName": "azsmnet6386", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager1421", + "subscriptionId": "{subscription-id}" + }, + "responses": { + "200": { + "body": { + "name": "azsmnet6386", + "type": "Microsoft.Network/trafficManagerProfiles", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386", + "location": "global", + "properties": { + "dnsConfig": { + "fqdn": "azsmnet6386.tmpreview.watmtest.azure-test.net", + "relativeName": "azsmnet6386", + "ttl": 35 + }, + "endpoints": [], + "monitorConfig": { + "path": "/testpath.aspx", + "intervalInSeconds": 30, + "port": 80, + "profileMonitorStatus": "Inactive", + "timeoutInSeconds": 10, + "toleratedNumberOfFailures": 3, + "protocol": "HTTP" + }, + "profileStatus": "Enabled", + "trafficRoutingMethod": "Performance" + } + } + }, + "201": { + "body": { + "name": "azsmnet6386", + "type": "Microsoft.Network/trafficManagerProfiles", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386", + "location": "global", + "properties": { + "dnsConfig": { + "fqdn": "azsmnet6386.tmpreview.watmtest.azure-test.net", + "relativeName": "azsmnet6386", + "ttl": 35 + }, + "endpoints": [], + "monitorConfig": { + "path": "/testpath.aspx", + "intervalInSeconds": 30, + "port": 80, + "profileMonitorStatus": "Inactive", + "timeoutInSeconds": 10, + "toleratedNumberOfFailures": 3, + "protocol": "HTTP" + }, + "profileStatus": "Enabled", + "trafficRoutingMethod": "Performance" + } + } + } + }, + "operationId": "Profiles_CreateOrUpdate", + "title": "Profile-PUT-NoEndpoints" +} diff --git a/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Profile-PUT-WithAliasing.json b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Profile-PUT-WithAliasing.json new file mode 100644 index 000000000000..0f54a0e8333c --- /dev/null +++ b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Profile-PUT-WithAliasing.json @@ -0,0 +1,165 @@ +{ + "parameters": { + "api-version": "2022-04-01", + "parameters": { + "location": "global", + "properties": { + "allowedEndpointRecordTypes": [ + "DomainName" + ], + "dnsConfig": { + "relativeName": "azuresdkfornetautoresttrafficmanager6192", + "ttl": 35 + }, + "endpoints": [ + { + "name": "My external endpoint", + "type": "Microsoft.network/TrafficManagerProfiles/ExternalEndpoints", + "properties": { + "endpointLocation": "North Europe", + "endpointStatus": "Enabled", + "target": "foobar.contoso.com" + } + } + ], + "monitorConfig": { + "path": "/testpath.aspx", + "intervalInSeconds": 10, + "port": 80, + "timeoutInSeconds": 5, + "toleratedNumberOfFailures": 2, + "protocol": "HTTP" + }, + "profileStatus": "Enabled", + "trafficRoutingMethod": "Performance" + } + }, + "profileName": "azuresdkfornetautoresttrafficmanager6192", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager2583", + "subscriptionId": "{subscription-id}" + }, + "responses": { + "200": { + "body": { + "name": "azuresdkfornetautoresttrafficmanager6192", + "type": "Microsoft.Network/trafficManagerProfiles", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2583/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager6192", + "location": "global", + "properties": { + "allowedEndpointRecordTypes": [ + "DomainName" + ], + "dnsConfig": { + "fqdn": "azuresdkfornetautoresttrafficmanager6192.tmpreview.watmtest.azure-test.net", + "relativeName": "azuresdkfornetautoresttrafficmanager6192", + "ttl": 35 + }, + "endpoints": [ + { + "name": "My external endpoint", + "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2583/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager6192/externalEndpoints/My external endpoint", + "properties": { + "customHeaders": [ + { + "name": "header-2", + "value": "value-2-overridden" + } + ], + "endpointLocation": "North Europe", + "endpointMonitorStatus": "CheckingEndpoint", + "endpointStatus": "Enabled", + "priority": 1, + "target": "foobar.contoso.com", + "weight": 1 + } + } + ], + "monitorConfig": { + "path": "/testpath.aspx", + "customHeaders": [ + { + "name": "header-1", + "value": "value-1" + }, + { + "name": "header-2", + "value": "value-2" + } + ], + "intervalInSeconds": 10, + "port": 80, + "profileMonitorStatus": "CheckingEndpoints", + "timeoutInSeconds": 5, + "toleratedNumberOfFailures": 2, + "protocol": "HTTP" + }, + "profileStatus": "Enabled", + "trafficRoutingMethod": "Performance" + } + } + }, + "201": { + "body": { + "name": "azuresdkfornetautoresttrafficmanager6192", + "type": "Microsoft.Network/trafficManagerProfiles", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2583/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager6192", + "location": "global", + "properties": { + "allowedEndpointRecordTypes": [ + "DomainName" + ], + "dnsConfig": { + "fqdn": "azuresdkfornetautoresttrafficmanager6192.tmpreview.watmtest.azure-test.net", + "relativeName": "azuresdkfornetautoresttrafficmanager6192", + "ttl": 35 + }, + "endpoints": [ + { + "name": "My external endpoint", + "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2583/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager6192/externalEndpoints/My external endpoint", + "properties": { + "customHeaders": [ + { + "name": "header-2", + "value": "value-2-overridden" + } + ], + "endpointLocation": "North Europe", + "endpointMonitorStatus": "CheckingEndpoint", + "endpointStatus": "Enabled", + "priority": 1, + "target": "foobar.contoso.com", + "weight": 1 + } + } + ], + "monitorConfig": { + "path": "/testpath.aspx", + "customHeaders": [ + { + "name": "header-1", + "value": "value-1" + }, + { + "name": "header-2", + "value": "value-2" + } + ], + "intervalInSeconds": 10, + "port": 80, + "profileMonitorStatus": "CheckingEndpoints", + "timeoutInSeconds": 5, + "toleratedNumberOfFailures": 2, + "protocol": "HTTP" + }, + "profileStatus": "Enabled", + "trafficRoutingMethod": "Performance" + } + } + } + }, + "operationId": "Profiles_CreateOrUpdate", + "title": "Profile-PUT-WithAliasing" +} diff --git a/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Profile-PUT-WithCustomHeaders.json b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Profile-PUT-WithCustomHeaders.json new file mode 100644 index 000000000000..57e0fb89a67e --- /dev/null +++ b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Profile-PUT-WithCustomHeaders.json @@ -0,0 +1,185 @@ +{ + "parameters": { + "api-version": "2022-04-01", + "parameters": { + "location": "global", + "properties": { + "dnsConfig": { + "relativeName": "azuresdkfornetautoresttrafficmanager6192", + "ttl": 35 + }, + "endpoints": [ + { + "name": "My external endpoint", + "type": "Microsoft.network/TrafficManagerProfiles/ExternalEndpoints", + "properties": { + "customHeaders": [ + { + "name": "header-2", + "value": "value-2-overridden" + } + ], + "endpointLocation": "North Europe", + "endpointStatus": "Enabled", + "target": "foobar.contoso.com" + } + } + ], + "monitorConfig": { + "path": "/testpath.aspx", + "customHeaders": [ + { + "name": "header-1", + "value": "value-1" + }, + { + "name": "header-2", + "value": "value-2" + } + ], + "expectedStatusCodeRanges": [ + { + "max": 205, + "min": 200 + }, + { + "max": 410, + "min": 400 + } + ], + "intervalInSeconds": 10, + "port": 80, + "timeoutInSeconds": 5, + "toleratedNumberOfFailures": 2, + "protocol": "HTTP" + }, + "profileStatus": "Enabled", + "trafficRoutingMethod": "Performance", + "trafficViewEnrollmentStatus": "Disabled" + } + }, + "profileName": "azuresdkfornetautoresttrafficmanager6192", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager2583", + "subscriptionId": "{subscription-id}" + }, + "responses": { + "200": { + "body": { + "name": "azuresdkfornetautoresttrafficmanager6192", + "type": "Microsoft.Network/trafficManagerProfiles", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2583/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager6192", + "location": "global", + "properties": { + "dnsConfig": { + "fqdn": "azuresdkfornetautoresttrafficmanager6192.tmpreview.watmtest.azure-test.net", + "relativeName": "azuresdkfornetautoresttrafficmanager6192", + "ttl": 35 + }, + "endpoints": [ + { + "name": "My external endpoint", + "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2583/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager6192/externalEndpoints/My external endpoint", + "properties": { + "customHeaders": [ + { + "name": "header-2", + "value": "value-2-overridden" + } + ], + "endpointLocation": "North Europe", + "endpointMonitorStatus": "CheckingEndpoint", + "endpointStatus": "Enabled", + "priority": 1, + "target": "foobar.contoso.com", + "weight": 1 + } + } + ], + "monitorConfig": { + "path": "/testpath.aspx", + "customHeaders": [ + { + "name": "header-1", + "value": "value-1" + }, + { + "name": "header-2", + "value": "value-2" + } + ], + "intervalInSeconds": 10, + "port": 80, + "profileMonitorStatus": "CheckingEndpoints", + "timeoutInSeconds": 5, + "toleratedNumberOfFailures": 2, + "protocol": "HTTP" + }, + "profileStatus": "Enabled", + "trafficRoutingMethod": "Performance", + "trafficViewEnrollmentStatus": "Disabled" + } + } + }, + "201": { + "body": { + "name": "azuresdkfornetautoresttrafficmanager6192", + "type": "Microsoft.Network/trafficManagerProfiles", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2583/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager6192", + "location": "global", + "properties": { + "dnsConfig": { + "fqdn": "azuresdkfornetautoresttrafficmanager6192.tmpreview.watmtest.azure-test.net", + "relativeName": "azuresdkfornetautoresttrafficmanager6192", + "ttl": 35 + }, + "endpoints": [ + { + "name": "My external endpoint", + "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2583/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager6192/externalEndpoints/My external endpoint", + "properties": { + "customHeaders": [ + { + "name": "header-2", + "value": "value-2-overridden" + } + ], + "endpointLocation": "North Europe", + "endpointMonitorStatus": "CheckingEndpoint", + "endpointStatus": "Enabled", + "priority": 1, + "target": "foobar.contoso.com", + "weight": 1 + } + } + ], + "monitorConfig": { + "path": "/testpath.aspx", + "customHeaders": [ + { + "name": "header-1", + "value": "value-1" + }, + { + "name": "header-2", + "value": "value-2" + } + ], + "intervalInSeconds": 10, + "port": 80, + "profileMonitorStatus": "CheckingEndpoints", + "timeoutInSeconds": 5, + "toleratedNumberOfFailures": 2, + "protocol": "HTTP" + }, + "profileStatus": "Enabled", + "trafficRoutingMethod": "Performance", + "trafficViewEnrollmentStatus": "Disabled" + } + } + } + }, + "operationId": "Profiles_CreateOrUpdate", + "title": "Profile-PUT-WithCustomHeaders" +} diff --git a/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Profile-PUT-WithEndpoints.json b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Profile-PUT-WithEndpoints.json new file mode 100644 index 000000000000..dc7d4ed689c1 --- /dev/null +++ b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Profile-PUT-WithEndpoints.json @@ -0,0 +1,124 @@ +{ + "parameters": { + "api-version": "2022-04-01", + "parameters": { + "location": "global", + "properties": { + "dnsConfig": { + "relativeName": "azuresdkfornetautoresttrafficmanager6192", + "ttl": 35 + }, + "endpoints": [ + { + "name": "My external endpoint", + "type": "Microsoft.network/TrafficManagerProfiles/ExternalEndpoints", + "properties": { + "endpointLocation": "North Europe", + "endpointStatus": "Enabled", + "target": "foobar.contoso.com" + } + } + ], + "monitorConfig": { + "path": "/testpath.aspx", + "intervalInSeconds": 10, + "port": 80, + "timeoutInSeconds": 5, + "toleratedNumberOfFailures": 2, + "protocol": "HTTP" + }, + "profileStatus": "Enabled", + "trafficRoutingMethod": "Performance" + } + }, + "profileName": "azuresdkfornetautoresttrafficmanager6192", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager2583", + "subscriptionId": "{subscription-id}" + }, + "responses": { + "200": { + "body": { + "name": "azuresdkfornetautoresttrafficmanager6192", + "type": "Microsoft.Network/trafficManagerProfiles", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2583/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager6192", + "location": "global", + "properties": { + "dnsConfig": { + "fqdn": "azuresdkfornetautoresttrafficmanager6192.tmpreview.watmtest.azure-test.net", + "relativeName": "azuresdkfornetautoresttrafficmanager6192", + "ttl": 35 + }, + "endpoints": [ + { + "name": "My external endpoint", + "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2583/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager6192/externalEndpoints/My external endpoint", + "properties": { + "endpointLocation": "North Europe", + "endpointMonitorStatus": "CheckingEndpoint", + "endpointStatus": "Enabled", + "priority": 1, + "target": "foobar.contoso.com", + "weight": 1 + } + } + ], + "monitorConfig": { + "path": "/testpath.aspx", + "intervalInSeconds": 10, + "port": 80, + "profileMonitorStatus": "CheckingEndpoints", + "timeoutInSeconds": 5, + "toleratedNumberOfFailures": 2, + "protocol": "HTTP" + }, + "profileStatus": "Enabled", + "trafficRoutingMethod": "Performance" + } + } + }, + "201": { + "body": { + "name": "azuresdkfornetautoresttrafficmanager6192", + "type": "Microsoft.Network/trafficManagerProfiles", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2583/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager6192", + "location": "global", + "properties": { + "dnsConfig": { + "fqdn": "azuresdkfornetautoresttrafficmanager6192.tmpreview.watmtest.azure-test.net", + "relativeName": "azuresdkfornetautoresttrafficmanager6192", + "ttl": 35 + }, + "endpoints": [ + { + "name": "My external endpoint", + "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2583/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager6192/externalEndpoints/My external endpoint", + "properties": { + "endpointLocation": "North Europe", + "endpointMonitorStatus": "CheckingEndpoint", + "endpointStatus": "Enabled", + "priority": 1, + "target": "foobar.contoso.com", + "weight": 1 + } + } + ], + "monitorConfig": { + "path": "/testpath.aspx", + "intervalInSeconds": 10, + "port": 80, + "profileMonitorStatus": "CheckingEndpoints", + "timeoutInSeconds": 5, + "toleratedNumberOfFailures": 2, + "protocol": "HTTP" + }, + "profileStatus": "Enabled", + "trafficRoutingMethod": "Performance" + } + } + } + }, + "operationId": "Profiles_CreateOrUpdate", + "title": "Profile-PUT-WithEndpoints" +} diff --git a/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Profile-PUT-WithNestedEndpoints.json b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Profile-PUT-WithNestedEndpoints.json new file mode 100644 index 000000000000..b56be4adcfde --- /dev/null +++ b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/Profile-PUT-WithNestedEndpoints.json @@ -0,0 +1,175 @@ +{ + "parameters": { + "api-version": "2022-04-01", + "parameters": { + "location": "global", + "properties": { + "dnsConfig": { + "relativeName": "parentprofile", + "ttl": 35 + }, + "endpoints": [ + { + "name": "MyFirstNestedEndpoint", + "type": "Microsoft.Network/trafficManagerProfiles/nestedEndpoints", + "properties": { + "endpointStatus": "Enabled", + "minChildEndpoints": 2, + "minChildEndpointsIPv4": 1, + "minChildEndpointsIPv6": 2, + "priority": 1, + "target": "firstnestedprofile.tmpreview.watmtest.azure-test.net", + "weight": 1 + } + }, + { + "name": "MySecondNestedEndpoint", + "type": "Microsoft.Network/trafficManagerProfiles/nestedEndpoints", + "properties": { + "endpointStatus": "Enabled", + "minChildEndpoints": 2, + "minChildEndpointsIPv4": 2, + "minChildEndpointsIPv6": 1, + "priority": 2, + "target": "secondnestedprofile.tmpreview.watmtest.azure-test.net", + "weight": 1 + } + } + ], + "monitorConfig": { + "path": "/testpath.aspx", + "intervalInSeconds": 10, + "port": 80, + "timeoutInSeconds": 5, + "toleratedNumberOfFailures": 2, + "protocol": "HTTP" + }, + "profileStatus": "Enabled", + "trafficRoutingMethod": "Priority" + } + }, + "profileName": "parentprofile", + "resourceGroupName": "myresourcegroup", + "subscriptionId": "{subscription-id}" + }, + "responses": { + "200": { + "body": { + "name": "parentprofile", + "type": "Microsoft.Network/trafficManagerProfiles", + "id": "/subscriptions/{subscription-id}/resourceGroups/myresourcegroup/providers/Microsoft.Network/trafficManagerProfiles/parentprofile", + "location": "global", + "properties": { + "dnsConfig": { + "fqdn": "parentprofile.tmpreview.watmtest.azure-test.net", + "relativeName": "parentprofile", + "ttl": 35 + }, + "endpoints": [ + { + "name": "MyFirstNestedEndpoint", + "type": "Microsoft.Network/trafficManagerProfiles/nestedEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/myresourcegroup/providers/Microsoft.Network/trafficManagerProfiles/parentprofile/nestedEndpoints/MyFirstNestedEndpoint", + "properties": { + "endpointMonitorStatus": "CheckingEndpoint", + "endpointStatus": "Enabled", + "minChildEndpoints": 2, + "minChildEndpointsIPv4": 1, + "minChildEndpointsIPv6": 2, + "priority": 1, + "target": "firstnestedprofile.tmpreview.watmtest.azure-test.net", + "weight": 1 + } + }, + { + "name": "MySecondNestedEndpoint", + "type": "Microsoft.Network/trafficManagerProfiles/nestedEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/myresourcegroup/providers/Microsoft.Network/trafficManagerProfiles/parentprofile/nestedEndpoints/MySecondNestedEndpoint", + "properties": { + "endpointMonitorStatus": "CheckingEndpoint", + "endpointStatus": "Enabled", + "minChildEndpoints": 2, + "minChildEndpointsIPv4": 2, + "minChildEndpointsIPv6": 1, + "priority": 1, + "target": "secondnestedprofile.tmpreview.watmtest.azure-test.net", + "weight": 1 + } + } + ], + "monitorConfig": { + "path": "/testpath.aspx", + "intervalInSeconds": 10, + "port": 80, + "profileMonitorStatus": "CheckingEndpoints", + "timeoutInSeconds": 5, + "toleratedNumberOfFailures": 2, + "protocol": "HTTP" + }, + "profileStatus": "Enabled", + "trafficRoutingMethod": "Priority" + } + } + }, + "201": { + "body": { + "name": "parentprofile", + "type": "Microsoft.Network/trafficManagerProfiles", + "id": "/subscriptions/{subscription-id}/resourceGroups/myresourcegroup/providers/Microsoft.Network/trafficManagerProfiles/parentprofile", + "location": "global", + "properties": { + "dnsConfig": { + "fqdn": "parentprofile.tmpreview.watmtest.azure-test.net", + "relativeName": "parentprofile", + "ttl": 35 + }, + "endpoints": [ + { + "name": "MyFirstNestedEndpoint", + "type": "Microsoft.Network/trafficManagerProfiles/nestedEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/myresourcegroup/providers/Microsoft.Network/trafficManagerProfiles/parentprofile/nestedEndpoints/MyFirstNestedEndpoint", + "properties": { + "endpointMonitorStatus": "CheckingEndpoint", + "endpointStatus": "Enabled", + "minChildEndpoints": 2, + "minChildEndpointsIPv4": 1, + "minChildEndpointsIPv6": 2, + "priority": 1, + "target": "firstnestedprofile.tmpreview.watmtest.azure-test.net", + "weight": 1 + } + }, + { + "name": "MySecondNestedEndpoint", + "type": "Microsoft.Network/trafficManagerProfiles/nestedEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/myresourcegroup/providers/Microsoft.Network/trafficManagerProfiles/parentprofile/nestedEndpoints/MySecondNestedEndpoint", + "properties": { + "endpointMonitorStatus": "CheckingEndpoint", + "endpointStatus": "Enabled", + "minChildEndpoints": 2, + "minChildEndpointsIPv4": 2, + "minChildEndpointsIPv6": 1, + "priority": 1, + "target": "secondnestedprofile.tmpreview.watmtest.azure-test.net", + "weight": 1 + } + } + ], + "monitorConfig": { + "path": "/testpath.aspx", + "intervalInSeconds": 10, + "port": 80, + "profileMonitorStatus": "CheckingEndpoints", + "timeoutInSeconds": 5, + "toleratedNumberOfFailures": 2, + "protocol": "HTTP" + }, + "profileStatus": "Enabled", + "trafficRoutingMethod": "Priority" + } + } + } + }, + "operationId": "Profiles_CreateOrUpdate", + "title": "Profile-PUT-WithNestedEndpoints" +} diff --git a/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/TrafficManagerUserMetricsKeys-DELETE.json b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/TrafficManagerUserMetricsKeys-DELETE.json new file mode 100644 index 000000000000..20658256d8be --- /dev/null +++ b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/TrafficManagerUserMetricsKeys-DELETE.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2022-04-01", + "subscriptionId": "{subscription-id}" + }, + "responses": { + "200": { + "body": {} + } + }, + "operationId": "TrafficManagerUserMetricsKeys_Delete", + "title": "TrafficManagerUserMetricsKeys-DELETE" +} diff --git a/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/TrafficManagerUserMetricsKeys-GET.json b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/TrafficManagerUserMetricsKeys-GET.json new file mode 100644 index 000000000000..f72639a77d39 --- /dev/null +++ b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/TrafficManagerUserMetricsKeys-GET.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2022-04-01", + "subscriptionId": "{subscription-id}" + }, + "responses": { + "200": { + "body": { + "name": "default", + "type": "Microsoft.Network/trafficManagerUserMetricsKeys", + "id": "/providers/Microsoft.Network/trafficManagerUserMetricsKeys/default", + "properties": { + "key": "9ea056eb38f145a0891b5d5dc15e9aa2" + } + } + } + }, + "operationId": "TrafficManagerUserMetricsKeys_Get", + "title": "TrafficManagerUserMetricsKeys-GET" +} diff --git a/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/TrafficManagerUserMetricsKeys-PUT.json b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/TrafficManagerUserMetricsKeys-PUT.json new file mode 100644 index 000000000000..71ff8a5f0848 --- /dev/null +++ b/specification/trafficmanager/TrafficManager.Management/examples/2022-04-01/TrafficManagerUserMetricsKeys-PUT.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2022-04-01", + "subscriptionId": "{subscription-id}" + }, + "responses": { + "201": { + "body": { + "name": "default", + "type": "Microsoft.Network/trafficManagerUserMetricsKeys", + "id": "/providers/Microsoft.Network/trafficManagerUserMetricsKeys/default", + "properties": { + "key": "9ea056eb38f145a0891b5d5dc15e9aa2" + } + } + } + }, + "operationId": "TrafficManagerUserMetricsKeys_CreateOrUpdate", + "title": "TrafficManagerUserMetricsKeys-PUT" +} diff --git a/specification/trafficmanager/TrafficManager.Management/main.tsp b/specification/trafficmanager/TrafficManager.Management/main.tsp new file mode 100644 index 000000000000..92d52a444063 --- /dev/null +++ b/specification/trafficmanager/TrafficManager.Management/main.tsp @@ -0,0 +1,46 @@ +/** + * PLEASE DO NOT REMOVE - USED FOR CONVERTER METRICS + * Generated by package: @autorest/openapi-to-typespec + * Parameters used: + * isFullCompatible: true + * guessResourceKey: false + * Version: 0.11.7 + * Date: 2025-09-11T03:39:17.899Z + */ +import "@typespec/rest"; +import "@typespec/versioning"; +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "./models.tsp"; +import "./back-compatible.tsp"; +import "./Endpoint.tsp"; +import "./Profile.tsp"; +import "./TrafficManagerGeographicHierarchy.tsp"; +import "./HeatMapModel.tsp"; +import "./UserMetricsModel.tsp"; +import "./routes.tsp"; + +using TypeSpec.Rest; +using TypeSpec.Http; +using Azure.ResourceManager.Foundations; +using Azure.Core; +using Azure.ResourceManager; +using TypeSpec.Versioning; + +#suppress "@azure-tools/typespec-azure-resource-manager/missing-operations-endpoint" "For backward compatibility" +#suppress "@azure-tools/typespec-client-generator-core/client-location-duplicate" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +@armProviderNamespace +@service(#{ title: "TrafficManagerManagementClient" }) +@versioned(Versions) +@armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v3) +namespace Microsoft.Network; + +/** + * The available API versions. + */ +enum Versions { + /** + * The 2022-04-01 API version. + */ + v2022_04_01: "2022-04-01", +} diff --git a/specification/trafficmanager/TrafficManager.Management/models.tsp b/specification/trafficmanager/TrafficManager.Management/models.tsp new file mode 100644 index 000000000000..7bac465389a2 --- /dev/null +++ b/specification/trafficmanager/TrafficManager.Management/models.tsp @@ -0,0 +1,713 @@ +import "@typespec/rest"; +import "@typespec/http"; +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; + +using TypeSpec.Rest; +using TypeSpec.Http; +using Azure.Core; +using Azure.ResourceManager; +using Azure.ResourceManager.Foundations; + +namespace Microsoft.Network; + +/** + * The status of the endpoint. If the endpoint is Enabled, it is probed for endpoint health and is included in the traffic routing method. + */ +union EndpointStatus { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Enabled: "Enabled", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Disabled: "Disabled", +} + +/** + * The monitoring status of the endpoint. + */ +union EndpointMonitorStatus { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + CheckingEndpoint: "CheckingEndpoint", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Online: "Online", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Degraded: "Degraded", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Disabled: "Disabled", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Inactive: "Inactive", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Stopped: "Stopped", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Unmonitored: "Unmonitored", +} + +/** + * If Always Serve is enabled, probing for endpoint health will be disabled and endpoints will be included in the traffic routing method. + */ +union AlwaysServe { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Enabled: "Enabled", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Disabled: "Disabled", +} + +/** + * The status of the Traffic Manager profile. + */ +union ProfileStatus { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Enabled: "Enabled", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Disabled: "Disabled", +} + +/** + * The traffic routing method of the Traffic Manager profile. + */ +union TrafficRoutingMethod { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Performance: "Performance", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Priority: "Priority", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Weighted: "Weighted", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Geographic: "Geographic", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + MultiValue: "MultiValue", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Subnet: "Subnet", +} + +/** + * The profile-level monitoring status of the Traffic Manager profile. + */ +union ProfileMonitorStatus { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + CheckingEndpoints: "CheckingEndpoints", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Online: "Online", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Degraded: "Degraded", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Disabled: "Disabled", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Inactive: "Inactive", +} + +/** + * The protocol (HTTP, HTTPS or TCP) used to probe for endpoint health. + */ +union MonitorProtocol { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + HTTP: "HTTP", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + HTTPS: "HTTPS", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + TCP: "TCP", +} + +/** + * Indicates whether Traffic View is 'Enabled' or 'Disabled' for the Traffic Manager profile. Null, indicates 'Disabled'. Enabling this feature will increase the cost of the Traffic Manage profile. + */ +union TrafficViewEnrollmentStatus { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Enabled: "Enabled", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Disabled: "Disabled", +} + +/** + * The allowed type DNS record types for this profile. + */ +union AllowedEndpointRecordType { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + DomainName: "DomainName", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + IPv4Address: "IPv4Address", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + IPv6Address: "IPv6Address", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Any: "Any", +} + +#suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/no-enum" "For backward compatibility" +enum EndpointType { + AzureEndpoints, + ExternalEndpoints, + NestedEndpoints, +} + +#suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +#suppress "@azure-tools/typespec-azure-core/no-enum" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +enum HeatMapType { + default, +} + +/** + * Class representing a Traffic Manager endpoint properties. + */ +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "For backward compatibility" +model EndpointProperties { + /** + * The Azure Resource URI of the of the endpoint. Not applicable to endpoints of type 'ExternalEndpoints'. + */ + targetResourceId?: string; + + /** + * The fully-qualified DNS name or IP address of the endpoint. Traffic Manager returns this value in DNS responses to direct traffic to this endpoint. + */ + target?: string; + + /** + * The status of the endpoint. If the endpoint is Enabled, it is probed for endpoint health and is included in the traffic routing method. + */ + endpointStatus?: EndpointStatus; + + /** + * The weight of this endpoint when using the 'Weighted' traffic routing method. Possible values are from 1 to 1000. + */ + weight?: int64; + + /** + * The priority of this endpoint when using the 'Priority' traffic routing method. Possible values are from 1 to 1000, lower values represent higher priority. This is an optional parameter. If specified, it must be specified on all endpoints, and no two endpoints can share the same priority value. + */ + priority?: int64; + + /** + * Specifies the location of the external or nested endpoints when using the 'Performance' traffic routing method. + */ + endpointLocation?: string; + + /** + * The monitoring status of the endpoint. + */ + endpointMonitorStatus?: EndpointMonitorStatus; + + /** + * The minimum number of endpoints that must be available in the child profile in order for the parent profile to be considered available. Only applicable to endpoint of type 'NestedEndpoints'. + */ + minChildEndpoints?: int64; + + /** + * The minimum number of IPv4 (DNS record type A) endpoints that must be available in the child profile in order for the parent profile to be considered available. Only applicable to endpoint of type 'NestedEndpoints'. + */ + #suppress "@azure-tools/typespec-azure-core/casing-style" "For backward compatibility" + minChildEndpointsIPv4?: int64; + + /** + * The minimum number of IPv6 (DNS record type AAAA) endpoints that must be available in the child profile in order for the parent profile to be considered available. Only applicable to endpoint of type 'NestedEndpoints'. + */ + #suppress "@azure-tools/typespec-azure-core/casing-style" "For backward compatibility" + minChildEndpointsIPv6?: int64; + + /** + * The list of countries/regions mapped to this endpoint when using the 'Geographic' traffic routing method. Please consult Traffic Manager Geographic documentation for a full list of accepted values. + */ + geoMapping?: string[]; + + /** + * The list of subnets, IP addresses, and/or address ranges mapped to this endpoint when using the 'Subnet' traffic routing method. An empty list will match all ranges not covered by other endpoints. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/missing-x-ms-identifiers" "For backward compatibility" + subnets?: EndpointPropertiesSubnetsItem[]; + + /** + * List of custom headers. + */ + customHeaders?: EndpointPropertiesCustomHeadersItem[]; + + /** + * If Always Serve is enabled, probing for endpoint health will be disabled and endpoints will be included in the traffic routing method. + */ + alwaysServe?: AlwaysServe; +} + +/** + * Subnet first address, scope, and/or last address. + */ +model EndpointPropertiesSubnetsItem { + /** + * First address in the subnet. + */ + first?: string; + + /** + * Last address in the subnet. + */ + last?: string; + + /** + * Block size (number of leading bits in the subnet mask). + */ + scope?: int32; +} + +/** + * Custom header name and value. + */ +model EndpointPropertiesCustomHeadersItem { + /** + * Header name. + */ + name?: string; + + /** + * Header value. + */ + value?: string; +} + +/** + * The resource model definition for a ARM proxy resource. It will have everything other than required location and tags + */ +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-resource-manager/no-empty-model" "For backward compatibility" +model ProxyResource extends Resource {} + +/** + * The core properties of ARM resources + */ +@Azure.ResourceManager.Legacy.customAzureResource +model Resource { + /** + * Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName} + */ + id?: armResourceIdentifier; + + /** + * The name of the resource + */ + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + name?: string; + + /** + * The type of the resource. Ex- Microsoft.Network/trafficManagerProfiles. + */ + type?: string; +} + +/** + * An error returned by the Azure Resource Manager + */ +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +@error +@Azure.ResourceManager.Legacy.armExternalType +model CloudError { + /** + * The content of the error. + */ + error?: CloudErrorBody; +} + +/** + * The content of an error returned by the Azure Resource Manager + */ +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +@Azure.ResourceManager.Legacy.armExternalType +model CloudErrorBody { + /** + * Error code + */ + code?: string; + + /** + * Error message + */ + message?: string; + + /** + * Error target + */ + target?: string; + + /** + * Error details + */ + #suppress "@azure-tools/typespec-azure-resource-manager/missing-x-ms-identifiers" "For backward compatibility" + details?: CloudErrorBody[]; +} + +/** + * The result of the request or operation. + */ +model DeleteOperationResult { + /** + * The result of the operation or request. + */ + @visibility(Lifecycle.Read) + boolean?: boolean; +} + +/** + * Parameters supplied to check Traffic Manager name operation. + */ +model CheckTrafficManagerRelativeDnsNameAvailabilityParameters { + /** + * The name of the resource. + */ + name?: string; + + /** + * The type of the resource. + */ + type?: string; +} + +/** + * Class representing a Traffic Manager Name Availability response. + */ +model TrafficManagerNameAvailability { + /** + * The relative name. + */ + name?: string; + + /** + * Traffic Manager profile resource type. + */ + type?: string; + + /** + * Describes whether the relative name is available or not. + */ + nameAvailable?: boolean; + + /** + * The reason why the name is not available, when applicable. + */ + reason?: string; + + /** + * Descriptive message that explains why the name is not available, when applicable. + */ + message?: string; +} + +/** + * The list Traffic Manager profiles operation response. + */ +model ProfileListResult { + /** + * Gets the list of Traffic manager profiles. + */ + @pageItems + value?: Profile[]; + + /** + * The link to the next page of items + */ + @nextLink + nextLink?: string; +} + +/** + * Class representing the Traffic Manager profile properties. + */ +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "For backward compatibility" +model ProfileProperties { + /** + * The status of the Traffic Manager profile. + */ + profileStatus?: ProfileStatus; + + /** + * The traffic routing method of the Traffic Manager profile. + */ + trafficRoutingMethod?: TrafficRoutingMethod; + + /** + * The DNS settings of the Traffic Manager profile. + */ + dnsConfig?: DnsConfig; + + /** + * The endpoint monitoring settings of the Traffic Manager profile. + */ + monitorConfig?: MonitorConfig; + + /** + * The list of endpoints in the Traffic Manager profile. + */ + endpoints?: Endpoint[]; + + /** + * Indicates whether Traffic View is 'Enabled' or 'Disabled' for the Traffic Manager profile. Null, indicates 'Disabled'. Enabling this feature will increase the cost of the Traffic Manage profile. + */ + trafficViewEnrollmentStatus?: TrafficViewEnrollmentStatus; + + /** + * The list of allowed endpoint record types. + */ + allowedEndpointRecordTypes?: AllowedEndpointRecordType[]; + + /** + * Maximum number of endpoints to be returned for MultiValue routing type. + */ + maxReturn?: int64; +} + +/** + * Class containing DNS settings in a Traffic Manager profile. + */ +model DnsConfig { + /** + * The relative DNS name provided by this Traffic Manager profile. This value is combined with the DNS domain name used by Azure Traffic Manager to form the fully-qualified domain name (FQDN) of the profile. + */ + relativeName?: string; + + /** + * The fully-qualified domain name (FQDN) of the Traffic Manager profile. This is formed from the concatenation of the RelativeName with the DNS domain used by Azure Traffic Manager. + */ + @visibility(Lifecycle.Read) + fqdn?: string; + + /** + * The DNS Time-To-Live (TTL), in seconds. This informs the local DNS resolvers and DNS clients how long to cache DNS responses provided by this Traffic Manager profile. + */ + ttl?: int64; +} + +/** + * Class containing endpoint monitoring settings in a Traffic Manager profile. + */ +model MonitorConfig { + /** + * The profile-level monitoring status of the Traffic Manager profile. + */ + profileMonitorStatus?: ProfileMonitorStatus; + + /** + * The protocol (HTTP, HTTPS or TCP) used to probe for endpoint health. + */ + protocol?: MonitorProtocol; + + /** + * The TCP port used to probe for endpoint health. + */ + port?: int64; + + /** + * The path relative to the endpoint domain name used to probe for endpoint health. + */ + path?: string; + + /** + * The monitor interval for endpoints in this profile. This is the interval at which Traffic Manager will check the health of each endpoint in this profile. + */ + intervalInSeconds?: int64; + + /** + * The monitor timeout for endpoints in this profile. This is the time that Traffic Manager allows endpoints in this profile to response to the health check. + */ + timeoutInSeconds?: int64; + + /** + * The number of consecutive failed health check that Traffic Manager tolerates before declaring an endpoint in this profile Degraded after the next failed health check. + */ + toleratedNumberOfFailures?: int64; + + /** + * List of custom headers. + */ + customHeaders?: MonitorConfigCustomHeadersItem[]; + + /** + * List of expected status code ranges. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/missing-x-ms-identifiers" "For backward compatibility" + expectedStatusCodeRanges?: MonitorConfigExpectedStatusCodeRangesItem[]; +} + +/** + * Custom header name and value. + */ +model MonitorConfigCustomHeadersItem { + /** + * Header name. + */ + name?: string; + + /** + * Header value. + */ + value?: string; +} + +/** + * Min and max value of a status code range. + */ +model MonitorConfigExpectedStatusCodeRangesItem { + /** + * Min status code. + */ + min?: int32; + + /** + * Max status code. + */ + max?: int32; +} + +/** + * The resource model definition for a ARM tracked top level resource + */ +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "For backward compatibility" +model TrackedResource extends Resource { + /** + * Resource tags. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "For backward compatibility" + @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) + tags?: Record; + + /** + * The Azure Region where the resource lives + */ + @visibility(Lifecycle.Create, Lifecycle.Read) + location?: string; +} + +/** + * Class representing the properties of the Geographic hierarchy used with the Geographic traffic routing method. + */ +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "For backward compatibility" +model GeographicHierarchyProperties { + /** + * The region at the root of the hierarchy from all the regions in the hierarchy can be retrieved. + */ + geographicHierarchy?: Region; +} + +/** + * Class representing a region in the Geographic hierarchy used with the Geographic traffic routing method. + */ +model Region { + /** + * The code of the region + */ + code?: string; + + /** + * The name of the region + */ + name?: string; + + /** + * The list of Regions grouped under this Region in the Geographic Hierarchy. + */ + regions?: Region[]; +} + +/** + * Class representing a Traffic Manager HeatMap properties. + */ +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "For backward compatibility" +model HeatMapProperties { + /** + * The beginning of the time window for this HeatMap, inclusive. + */ + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + startTime?: utcDateTime; + + /** + * The ending of the time window for this HeatMap, exclusive. + */ + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + endTime?: utcDateTime; + + /** + * The endpoints used in this HeatMap calculation. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/missing-x-ms-identifiers" "For backward compatibility" + endpoints?: HeatMapEndpoint[]; + + /** + * The traffic flows produced in this HeatMap calculation. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/missing-x-ms-identifiers" "For backward compatibility" + trafficFlows?: TrafficFlow[]; +} + +/** + * Class which is a sparse representation of a Traffic Manager endpoint. + */ +model HeatMapEndpoint { + /** + * The ARM Resource ID of this Traffic Manager endpoint. + */ + resourceId?: string; + + /** + * A number uniquely identifying this endpoint in query experiences. + */ + endpointId?: int32; +} + +/** + * Class representing a Traffic Manager HeatMap traffic flow properties. + */ +model TrafficFlow { + /** + * The IP address that this query experience originated from. + */ + sourceIp?: string; + + /** + * The approximate latitude that these queries originated from. + */ + latitude?: float64; + + /** + * The approximate longitude that these queries originated from. + */ + longitude?: float64; + + /** + * The query experiences produced in this HeatMap calculation. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/missing-x-ms-identifiers" "For backward compatibility" + queryExperiences?: QueryExperience[]; +} + +/** + * Class representing a Traffic Manager HeatMap query experience properties. + */ +model QueryExperience { + /** + * The id of the endpoint from the 'endpoints' array which these queries were routed to. + */ + endpointId: int32; + + /** + * The number of queries originating from this location. + */ + queryCount: int32; + + /** + * The latency experienced by queries originating from this location. + */ + latency?: float64; +} + +/** + * Class representing a Traffic Manager Real User Metrics key response. + */ +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "For backward compatibility" +model UserMetricsProperties { + /** + * The key returned by the User Metrics operation. + */ + key?: string; +} diff --git a/specification/trafficmanager/TrafficManager.Management/routes.tsp b/specification/trafficmanager/TrafficManager.Management/routes.tsp new file mode 100644 index 000000000000..34b17b3133c4 --- /dev/null +++ b/specification/trafficmanager/TrafficManager.Management/routes.tsp @@ -0,0 +1,41 @@ +// FIXME: Operations in this file are not detected as a resource operation, please confirm the conversion result manually + +import "@azure-tools/typespec-azure-core"; +import "@typespec/rest"; +import "./models.tsp"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; + +using TypeSpec.Rest; +using TypeSpec.Http; +using Azure.ResourceManager; +using TypeSpec.OpenAPI; + +namespace Microsoft.Network; + +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" +interface ProfilesOperationGroup { + /** + * Checks the availability of a Traffic Manager Relative DNS name. + */ + @autoRoute + @action("checkTrafficManagerNameAvailability") + checkTrafficManagerRelativeDnsNameAvailability is ArmProviderActionSync< + Request = CheckTrafficManagerRelativeDnsNameAvailabilityParameters, + Response = TrafficManagerNameAvailability, + Error = CloudError + >; + /** + * Checks the availability of a Traffic Manager Relative DNS name. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("Profiles_checkTrafficManagerNameAvailabilityV2") + @autoRoute + checkTrafficManagerNameAvailabilityV2 is ArmProviderActionSync< + Request = CheckTrafficManagerRelativeDnsNameAvailabilityParameters, + Response = TrafficManagerNameAvailability, + Scope = SubscriptionActionScope, + Parameters = {}, + Error = CloudError + >; +} diff --git a/specification/trafficmanager/TrafficManager.Management/tspconfig.yaml b/specification/trafficmanager/TrafficManager.Management/tspconfig.yaml new file mode 100644 index 000000000000..0b639dc79931 --- /dev/null +++ b/specification/trafficmanager/TrafficManager.Management/tspconfig.yaml @@ -0,0 +1,48 @@ +parameters: + "service-dir": + default: "sdk/trafficmanager" +emit: + - "@azure-tools/typespec-autorest" +options: + "@azure-tools/typespec-autorest": + omit-unreachable-types: true + emitter-output-dir: "{project-root}/.." + azure-resource-provider-folder: "resource-manager" + output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/trafficmanager.json" + emit-lro-options: "all" + examples-dir: "{project-root}/examples" + "@azure-typespec/http-client-csharp-mgmt": + emitter-output-dir: "{output-dir}/{service-dir}/{namespace}" + package-name: "Azure.ResourceManager.TrafficManager" + namespace: "{package-name}" + "@azure-tools/typespec-python": + emitter-output-dir: "{output-dir}/{service-dir}/azure-mgmt-trafficmanager" + namespace: "azure.mgmt.trafficmanager" + generate-test: true + generate-sample: true + flavor: "azure" + "@azure-tools/typespec-java": + emitter-output-dir: "{output-dir}/{service-dir}/azure-resourcemanager-trafficmanager" + namespace: "com.azure.resourcemanager.trafficmanager" + service-name: "TrafficManager" + flavor: azure + "@azure-tools/typespec-ts": + emitter-output-dir: "{output-dir}/{service-dir}/arm-trafficmanager" + is-modular-library: true + flavor: "azure" + experimental-extensible-enums: true + package-details: + name: "@azure/arm-trafficmanager" + "@azure-tools/typespec-go": + service-dir: "sdk/resourcemanager/trafficmanager" + emitter-output-dir: "{output-dir}/{service-dir}/armtrafficmanager" + module: "github.com/Azure/azure-sdk-for-go/{service-dir}/armtrafficmanager" + fix-const-stuttering: true + flavor: "azure" + generate-samples: true + generate-fakes: true + head-as-boolean: true + inject-spans: true +linter: + extends: + - "@azure-tools/typespec-azure-rulesets/resource-manager" diff --git a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Endpoint-DELETE-External.json b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Endpoint-DELETE-External.json index 6aa251abfc4a..2235713cc153 100644 --- a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Endpoint-DELETE-External.json +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Endpoint-DELETE-External.json @@ -1,16 +1,18 @@ { "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "azuresdkfornetautoresttrafficmanager1421", - "profileName": "azsmnet6386", - "endpointType": "ExternalEndpoints", + "api-version": "2022-04-01", "endpointName": "azsmnet7187", - "api-version": "2022-04-01" + "endpointType": "ExternalEndpoints", + "profileName": "azsmnet6386", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager1421", + "subscriptionId": "{subscription-id}" }, "responses": { "200": { "body": {} }, "204": {} - } + }, + "operationId": "Endpoints_Delete", + "title": "Endpoint-DELETE-External" } diff --git a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Endpoint-GET-External-WithGeoMapping.json b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Endpoint-GET-External-WithGeoMapping.json index d73e5d3ab922..0dd6703da0cd 100644 --- a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Endpoint-GET-External-WithGeoMapping.json +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Endpoint-GET-External-WithGeoMapping.json @@ -1,30 +1,32 @@ { "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "azuresdkfornetautoresttrafficmanager2191", - "profileName": "azuresdkfornetautoresttrafficmanager8224", - "endpointType": "ExternalEndpoints", + "api-version": "2022-04-01", "endpointName": "My%20external%20endpoint", - "api-version": "2022-04-01" + "endpointType": "ExternalEndpoints", + "profileName": "azuresdkfornetautoresttrafficmanager8224", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager2191", + "subscriptionId": "{subscription-id}" }, "responses": { "200": { "body": { - "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2191/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager8224/externalEndpoints/My external endpoint", "name": "My external endpoint", "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2191/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager8224/externalEndpoints/My external endpoint", "properties": { - "endpointStatus": "Enabled", "endpointMonitorStatus": "CheckingEndpoint", - "target": "foobar.contoso.com", - "weight": 1, - "priority": 1, + "endpointStatus": "Enabled", "geoMapping": [ "GEO-AS", "GEO-AF" - ] + ], + "priority": 1, + "target": "foobar.contoso.com", + "weight": 1 } } } - } + }, + "operationId": "Endpoints_Get", + "title": "Endpoint-GET-External-WithGeoMapping" } diff --git a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Endpoint-GET-External-WithLocation.json b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Endpoint-GET-External-WithLocation.json index 326334a24307..87b5e68857c2 100644 --- a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Endpoint-GET-External-WithLocation.json +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Endpoint-GET-External-WithLocation.json @@ -1,27 +1,29 @@ { "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "azuresdkfornetautoresttrafficmanager1421", - "profileName": "azsmnet6386", - "endpointType": "ExternalEndpoints", + "api-version": "2022-04-01", "endpointName": "azsmnet7187", - "api-version": "2022-04-01" + "endpointType": "ExternalEndpoints", + "profileName": "azsmnet6386", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager1421", + "subscriptionId": "{subscription-id}" }, "responses": { "200": { "body": { - "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386/externalEndpoints/azsmnet7187", "name": "azsmnet7187", "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386/externalEndpoints/azsmnet7187", "properties": { - "endpointStatus": "Enabled", + "endpointLocation": "North Europe", "endpointMonitorStatus": "CheckingEndpoint", - "target": "foobar.contoso.com", - "weight": 1, + "endpointStatus": "Enabled", "priority": 1, - "endpointLocation": "North Europe" + "target": "foobar.contoso.com", + "weight": 1 } } } - } + }, + "operationId": "Endpoints_Get", + "title": "Endpoint-GET-External-WithLocation" } diff --git a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Endpoint-GET-External-WithSubnetMapping.json b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Endpoint-GET-External-WithSubnetMapping.json index 7d6307fe3539..d628815b517d 100644 --- a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Endpoint-GET-External-WithSubnetMapping.json +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Endpoint-GET-External-WithSubnetMapping.json @@ -1,23 +1,21 @@ { "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "azuresdkfornetautoresttrafficmanager2191", - "profileName": "azuresdkfornetautoresttrafficmanager8224", - "endpointType": "ExternalEndpoints", + "api-version": "2022-04-01", "endpointName": "My%20external%20endpoint", - "api-version": "2022-04-01" + "endpointType": "ExternalEndpoints", + "profileName": "azuresdkfornetautoresttrafficmanager8224", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager2191", + "subscriptionId": "{subscription-id}" }, "responses": { "200": { "body": { - "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2191/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager8224/externalEndpoints/My external endpoint", "name": "My external endpoint", "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2191/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager8224/externalEndpoints/My external endpoint", "properties": { - "endpointStatus": "Enabled", "endpointMonitorStatus": "CheckingEndpoint", - "target": "foobar.contoso.com", - "weight": 1, + "endpointStatus": "Enabled", "priority": 1, "subnets": [ { @@ -28,9 +26,13 @@ "first": "25.26.27.28", "last": "29.30.31.32" } - ] + ], + "target": "foobar.contoso.com", + "weight": 1 } } } - } + }, + "operationId": "Endpoints_Get", + "title": "Endpoint-GET-External-WithSubnetMapping" } diff --git a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Endpoint-PATCH-External-Target.json b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Endpoint-PATCH-External-Target.json index 3388a5b13f75..640438399245 100644 --- a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Endpoint-PATCH-External-Target.json +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Endpoint-PATCH-External-Target.json @@ -1,35 +1,37 @@ { "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "azuresdkfornetautoresttrafficmanager1421", - "profileName": "azsmnet6386", - "endpointType": "ExternalEndpoints", - "endpointName": "azsmnet7187", "api-version": "2022-04-01", + "endpointName": "azsmnet7187", + "endpointType": "ExternalEndpoints", "parameters": { - "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386/externalEndpoints/azsmnet7187", "name": "azsmnet7187", "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386/externalEndpoints/azsmnet7187", "properties": { "target": "another.foobar.contoso.com" } - } + }, + "profileName": "azsmnet6386", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager1421", + "subscriptionId": "{subscription-id}" }, "responses": { "200": { "body": { - "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386/externalEndpoints/azsmnet7187", "name": "azsmnet7187", "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386/externalEndpoints/azsmnet7187", "properties": { - "endpointStatus": "Enabled", + "endpointLocation": "North Europe", "endpointMonitorStatus": "CheckingEndpoint", - "target": "another.foobar.contoso.com", - "weight": 1, + "endpointStatus": "Enabled", "priority": 1, - "endpointLocation": "North Europe" + "target": "another.foobar.contoso.com", + "weight": 1 } } } - } + }, + "operationId": "Endpoints_Update", + "title": "Endpoint-PATCH-External-Target" } diff --git a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Endpoint-PUT-External-WithAlwaysServe.json b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Endpoint-PUT-External-WithAlwaysServe.json index 044320a25bda..224d54df389e 100644 --- a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Endpoint-PUT-External-WithAlwaysServe.json +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Endpoint-PUT-External-WithAlwaysServe.json @@ -1,54 +1,56 @@ { "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "azuresdkfornetautoresttrafficmanager1421", - "profileName": "azsmnet6386", - "endpointType": "ExternalEndpoints", - "endpointName": "azsmnet7187", "api-version": "2022-04-01", + "endpointName": "azsmnet7187", + "endpointType": "ExternalEndpoints", "parameters": { "name": "azsmnet7187", "type": "Microsoft.network/TrafficManagerProfiles/ExternalEndpoints", "properties": { - "target": "foobar.contoso.com", - "endpointStatus": "Enabled", + "alwaysServe": "Enabled", "endpointLocation": "North Europe", - "alwaysServe": "Enabled" + "endpointStatus": "Enabled", + "target": "foobar.contoso.com" } - } + }, + "profileName": "azsmnet6386", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager1421", + "subscriptionId": "{subscription-id}" }, "responses": { - "201": { + "200": { "body": { - "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386/externalEndpoints/azsmnet7187", "name": "azsmnet7187", "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386/externalEndpoints/azsmnet7187", "properties": { - "endpointStatus": "Enabled", + "alwaysServe": "Enabled", + "endpointLocation": "North Europe", "endpointMonitorStatus": "CheckingEndpoint", - "target": "foobar.contoso.com", - "weight": 1, + "endpointStatus": "Enabled", "priority": 1, - "endpointLocation": "North Europe", - "alwaysServe": "Enabled" + "target": "foobar.contoso.com", + "weight": 1 } } }, - "200": { + "201": { "body": { - "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386/externalEndpoints/azsmnet7187", "name": "azsmnet7187", "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386/externalEndpoints/azsmnet7187", "properties": { - "endpointStatus": "Enabled", + "alwaysServe": "Enabled", + "endpointLocation": "North Europe", "endpointMonitorStatus": "CheckingEndpoint", - "target": "foobar.contoso.com", - "weight": 1, + "endpointStatus": "Enabled", "priority": 1, - "endpointLocation": "North Europe", - "alwaysServe": "Enabled" + "target": "foobar.contoso.com", + "weight": 1 } } } - } + }, + "operationId": "Endpoints_CreateOrUpdate", + "title": "Endpoint-PUT-External-WithAlwaysServe" } diff --git a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Endpoint-PUT-External-WithCustomHeaders.json b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Endpoint-PUT-External-WithCustomHeaders.json index 2bbaa0daef92..6fb10ff482e6 100644 --- a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Endpoint-PUT-External-WithCustomHeaders.json +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Endpoint-PUT-External-WithCustomHeaders.json @@ -1,18 +1,12 @@ { "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "azuresdkfornetautoresttrafficmanager1421", - "profileName": "azsmnet6386", - "endpointType": "ExternalEndpoints", - "endpointName": "azsmnet7187", "api-version": "2022-04-01", + "endpointName": "azsmnet7187", + "endpointType": "ExternalEndpoints", "parameters": { "name": "azsmnet7187", "type": "Microsoft.network/TrafficManagerProfiles/ExternalEndpoints", "properties": { - "target": "foobar.contoso.com", - "endpointStatus": "Enabled", - "endpointLocation": "North Europe", "customHeaders": [ { "name": "header-1", @@ -22,23 +16,23 @@ "name": "header-2", "value": "value-2" } - ] + ], + "endpointLocation": "North Europe", + "endpointStatus": "Enabled", + "target": "foobar.contoso.com" } - } + }, + "profileName": "azsmnet6386", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager1421", + "subscriptionId": "{subscription-id}" }, "responses": { - "201": { + "200": { "body": { - "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386/externalEndpoints/azsmnet7187", "name": "azsmnet7187", "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386/externalEndpoints/azsmnet7187", "properties": { - "endpointStatus": "Enabled", - "endpointMonitorStatus": "CheckingEndpoint", - "target": "foobar.contoso.com", - "weight": 1, - "priority": 1, - "endpointLocation": "North Europe", "customHeaders": [ { "name": "header-1", @@ -48,22 +42,22 @@ "name": "header-2", "value": "value-2" } - ] + ], + "endpointLocation": "North Europe", + "endpointMonitorStatus": "CheckingEndpoint", + "endpointStatus": "Enabled", + "priority": 1, + "target": "foobar.contoso.com", + "weight": 1 } } }, - "200": { + "201": { "body": { - "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386/externalEndpoints/azsmnet7187", "name": "azsmnet7187", "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386/externalEndpoints/azsmnet7187", "properties": { - "endpointStatus": "Enabled", - "endpointMonitorStatus": "CheckingEndpoint", - "target": "foobar.contoso.com", - "weight": 1, - "priority": 1, - "endpointLocation": "North Europe", "customHeaders": [ { "name": "header-1", @@ -73,9 +67,17 @@ "name": "header-2", "value": "value-2" } - ] + ], + "endpointLocation": "North Europe", + "endpointMonitorStatus": "CheckingEndpoint", + "endpointStatus": "Enabled", + "priority": 1, + "target": "foobar.contoso.com", + "weight": 1 } } } - } + }, + "operationId": "Endpoints_CreateOrUpdate", + "title": "Endpoint-PUT-External-WithCustomHeaders" } diff --git a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Endpoint-PUT-External-WithGeoMapping.json b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Endpoint-PUT-External-WithGeoMapping.json index 7ceb8b01afcc..30d753558011 100644 --- a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Endpoint-PUT-External-WithGeoMapping.json +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Endpoint-PUT-External-WithGeoMapping.json @@ -1,60 +1,62 @@ { "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "azuresdkfornetautoresttrafficmanager2191", - "profileName": "azuresdkfornetautoresttrafficmanager8224", - "endpointType": "ExternalEndpoints", - "endpointName": "My%20external%20endpoint", "api-version": "2022-04-01", + "endpointName": "My%20external%20endpoint", + "endpointType": "ExternalEndpoints", "parameters": { "name": "My external endpoint", "type": "Microsoft.network/TrafficManagerProfiles/ExternalEndpoints", "properties": { - "target": "foobar.contoso.com", "endpointStatus": "Enabled", "geoMapping": [ "GEO-AS", "GEO-AF" - ] + ], + "target": "foobar.contoso.com" } - } + }, + "profileName": "azuresdkfornetautoresttrafficmanager8224", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager2191", + "subscriptionId": "{subscription-id}" }, "responses": { - "201": { + "200": { "body": { - "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2191/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager8224/externalEndpoints/My external endpoint", "name": "My external endpoint", "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2191/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager8224/externalEndpoints/My external endpoint", "properties": { - "endpointStatus": "Enabled", "endpointMonitorStatus": "CheckingEndpoint", - "target": "foobar.contoso.com", - "weight": 1, - "priority": 1, + "endpointStatus": "Enabled", "geoMapping": [ "GEO-AS", "GEO-AF" - ] + ], + "priority": 1, + "target": "foobar.contoso.com", + "weight": 1 } } }, - "200": { + "201": { "body": { - "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2191/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager8224/externalEndpoints/My external endpoint", "name": "My external endpoint", "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2191/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager8224/externalEndpoints/My external endpoint", "properties": { - "endpointStatus": "Enabled", "endpointMonitorStatus": "CheckingEndpoint", - "target": "foobar.contoso.com", - "weight": 1, - "priority": 1, + "endpointStatus": "Enabled", "geoMapping": [ "GEO-AS", "GEO-AF" - ] + ], + "priority": 1, + "target": "foobar.contoso.com", + "weight": 1 } } } - } + }, + "operationId": "Endpoints_CreateOrUpdate", + "title": "Endpoint-PUT-External-WithGeoMapping" } diff --git a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Endpoint-PUT-External-WithLocation.json b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Endpoint-PUT-External-WithLocation.json index f60f44ac3a77..b1526ff04fe8 100644 --- a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Endpoint-PUT-External-WithLocation.json +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Endpoint-PUT-External-WithLocation.json @@ -1,51 +1,53 @@ { "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "azuresdkfornetautoresttrafficmanager1421", - "profileName": "azsmnet6386", - "endpointType": "ExternalEndpoints", - "endpointName": "azsmnet7187", "api-version": "2022-04-01", + "endpointName": "azsmnet7187", + "endpointType": "ExternalEndpoints", "parameters": { "name": "azsmnet7187", "type": "Microsoft.network/TrafficManagerProfiles/ExternalEndpoints", "properties": { - "target": "foobar.contoso.com", + "endpointLocation": "North Europe", "endpointStatus": "Enabled", - "endpointLocation": "North Europe" + "target": "foobar.contoso.com" } - } + }, + "profileName": "azsmnet6386", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager1421", + "subscriptionId": "{subscription-id}" }, "responses": { - "201": { + "200": { "body": { - "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386/externalEndpoints/azsmnet7187", "name": "azsmnet7187", "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386/externalEndpoints/azsmnet7187", "properties": { - "endpointStatus": "Enabled", + "endpointLocation": "North Europe", "endpointMonitorStatus": "CheckingEndpoint", - "target": "foobar.contoso.com", - "weight": 1, + "endpointStatus": "Enabled", "priority": 1, - "endpointLocation": "North Europe" + "target": "foobar.contoso.com", + "weight": 1 } } }, - "200": { + "201": { "body": { - "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386/externalEndpoints/azsmnet7187", "name": "azsmnet7187", "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386/externalEndpoints/azsmnet7187", "properties": { - "endpointStatus": "Enabled", + "endpointLocation": "North Europe", "endpointMonitorStatus": "CheckingEndpoint", - "target": "foobar.contoso.com", - "weight": 1, + "endpointStatus": "Enabled", "priority": 1, - "endpointLocation": "North Europe" + "target": "foobar.contoso.com", + "weight": 1 } } } - } + }, + "operationId": "Endpoints_CreateOrUpdate", + "title": "Endpoint-PUT-External-WithLocation" } diff --git a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Endpoint-PUT-External-WithSubnetMapping.json b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Endpoint-PUT-External-WithSubnetMapping.json index 837d36a9313c..3f2a26b380c2 100644 --- a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Endpoint-PUT-External-WithSubnetMapping.json +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Endpoint-PUT-External-WithSubnetMapping.json @@ -1,16 +1,12 @@ { "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "azuresdkfornetautoresttrafficmanager2191", - "profileName": "azuresdkfornetautoresttrafficmanager8224", - "endpointType": "ExternalEndpoints", - "endpointName": "My%20external%20endpoint", "api-version": "2022-04-01", + "endpointName": "My%20external%20endpoint", + "endpointType": "ExternalEndpoints", "parameters": { "name": "My external endpoint", "type": "Microsoft.network/TrafficManagerProfiles/ExternalEndpoints", "properties": { - "target": "foobar.contoso.com", "endpointStatus": "Enabled", "subnets": [ { @@ -21,21 +17,23 @@ "first": "25.26.27.28", "last": "29.30.31.32" } - ] + ], + "target": "foobar.contoso.com" } - } + }, + "profileName": "azuresdkfornetautoresttrafficmanager8224", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager2191", + "subscriptionId": "{subscription-id}" }, "responses": { - "201": { + "200": { "body": { - "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2191/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager8224/externalEndpoints/My external endpoint", "name": "My external endpoint", "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2191/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager8224/externalEndpoints/My external endpoint", "properties": { - "endpointStatus": "Enabled", "endpointMonitorStatus": "CheckingEndpoint", - "target": "foobar.contoso.com", - "weight": 1, + "endpointStatus": "Enabled", "priority": 1, "subnets": [ { @@ -46,20 +44,20 @@ "first": "25.26.27.28", "last": "29.30.31.32" } - ] + ], + "target": "foobar.contoso.com", + "weight": 1 } } }, - "200": { + "201": { "body": { - "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2191/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager8224/externalEndpoints/My external endpoint", "name": "My external endpoint", "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2191/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager8224/externalEndpoints/My external endpoint", "properties": { - "endpointStatus": "Enabled", "endpointMonitorStatus": "CheckingEndpoint", - "target": "foobar.contoso.com", - "weight": 1, + "endpointStatus": "Enabled", "priority": 1, "subnets": [ { @@ -70,9 +68,13 @@ "first": "25.26.27.28", "last": "29.30.31.32" } - ] + ], + "target": "foobar.contoso.com", + "weight": 1 } } } - } + }, + "operationId": "Endpoints_CreateOrUpdate", + "title": "Endpoint-PUT-External-WithSubnetMapping" } diff --git a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/GeographicHierarchy-GET-default.json b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/GeographicHierarchy-GET-default.json index 9b21bc3a8924..6f84198abd76 100644 --- a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/GeographicHierarchy-GET-default.json +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/GeographicHierarchy-GET-default.json @@ -5,48 +5,48 @@ "responses": { "200": { "body": { - "id": "/providers/Microsoft.Network/trafficManagerGeographicHierarchies/default", "name": "default", "type": "Microsoft.Network/trafficManagerGeographicHierarchies", + "id": "/providers/Microsoft.Network/trafficManagerGeographicHierarchies/default", "properties": { "geographicHierarchy": { - "code": "WORLD", "name": "World", + "code": "WORLD", "regions": [ { - "code": "GEO-ME", "name": "Middle East", + "code": "GEO-ME", "regions": [ { - "code": "AE", "name": "United Arab Emirates", + "code": "AE", "regions": [] } ] }, { - "code": "GEO-AP", "name": "Australia / Pacific", + "code": "GEO-AP", "regions": [ { - "code": "AU", "name": "Australia", + "code": "AU", "regions": [ { - "code": "AU-ACT", "name": "Australian Capital Territory", + "code": "AU-ACT", "regions": [] }, { - "code": "AU-NSW", "name": "New South Wales", + "code": "AU-NSW", "regions": [] } ] }, { - "code": "CK", "name": "Cook Islands", + "code": "CK", "regions": [] } ] @@ -56,5 +56,7 @@ } } } - } + }, + "operationId": "GeographicHierarchies_GetDefault", + "title": "GeographicHierarchy-GET-default" } diff --git a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/HeatMap-GET-With-Null-Values.json b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/HeatMap-GET-With-Null-Values.json index 3a8940f55561..f104fd9a57a6 100644 --- a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/HeatMap-GET-With-Null-Values.json +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/HeatMap-GET-With-Null-Values.json @@ -1,19 +1,18 @@ { "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "azuresdkfornetautoresttrafficmanager1323", - "profileName": "azuresdkfornetautoresttrafficmanager3880", + "api-version": "2022-04-01", "heatMapType": "default", - "api-version": "2022-04-01" + "profileName": "azuresdkfornetautoresttrafficmanager3880", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager1323", + "subscriptionId": "{subscription-id}" }, "responses": { "200": { "body": { - "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1323/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager3880/heatMaps/default", "name": "default", "type": "Microsoft.Network/trafficManagerProfiles/heatMaps/default", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1323/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager3880/heatMaps/default", "properties": { - "startTime": "2017-08-15T12:00:00Z", "endTime": "2017-08-22T12:50:00Z", "endpoints": [ { @@ -25,11 +24,11 @@ "resourceId": "/subscriptions/562d4115-c01e-4m67-9bbd-c11c2d58ad73/resourceGroups/azuresdkfornetautoresttrafficmanager1300/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager3885/externalEndpoints/azuresdkfornetautoresttrafficmanager3881" } ], + "startTime": "2017-08-15T12:00:00Z", "trafficFlows": [ { "latitude": 99.99, - "longitude": 0.00, - "sourceIp": "1.1.1.1", + "longitude": 0, "queryExperiences": [ { "endpointId": 0, @@ -41,12 +40,12 @@ "latency": 1, "queryCount": 1 } - ] + ], + "sourceIp": "1.1.1.1" }, { "latitude": 1.11, "longitude": -2.35, - "sourceIp": "2.255.1.1", "queryExperiences": [ { "endpointId": 0, @@ -57,11 +56,14 @@ "latency": 4.222, "queryCount": 500 } - ] + ], + "sourceIp": "2.255.1.1" } ] } } } - } + }, + "operationId": "HeatMap_Get", + "title": "HeatMap-GET-With-Null-Values" } diff --git a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/HeatMap-GET-With-TopLeft-BotRight.json b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/HeatMap-GET-With-TopLeft-BotRight.json index 287879fe8623..0b4a3dcd394f 100644 --- a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/HeatMap-GET-With-TopLeft-BotRight.json +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/HeatMap-GET-With-TopLeft-BotRight.json @@ -1,27 +1,26 @@ { "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "azuresdkfornetautoresttrafficmanager1323", - "profileName": "azuresdkfornetautoresttrafficmanager3880", - "heatMapType": "default", - "topLeft": [ - 10.000, - 50.001 - ], + "api-version": "2022-04-01", "botRight": [ -50.001, - 80.000 + 80 ], - "api-version": "2022-04-01" + "heatMapType": "default", + "profileName": "azuresdkfornetautoresttrafficmanager3880", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager1323", + "subscriptionId": "{subscription-id}", + "topLeft": [ + 10, + 50.001 + ] }, "responses": { "200": { "body": { - "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1323/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager3880/heatMaps/latencyVolumeByLocation", "name": "default", "type": "Microsoft.Network/trafficManagerProfiles/heatMaps/latencyVolumeByLocation", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1323/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager3880/heatMaps/latencyVolumeByLocation", "properties": { - "startTime": "2017-08-15T12:00:00Z", "endTime": "2017-08-22T12:50:00Z", "endpoints": [ { @@ -33,11 +32,11 @@ "resourceId": "/subscriptions/562d4115-c01e-4m67-9bbd-c11c2d58ad73/resourceGroups/azuresdkfornetautoresttrafficmanager1300/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager3885/externalEndpoints/azuresdkfornetautoresttrafficmanager3881" } ], + "startTime": "2017-08-15T12:00:00Z", "trafficFlows": [ { "latitude": 9.99, "longitude": 75.01, - "sourceIp": "1.1.1.1", "queryExperiences": [ { "endpointId": 1, @@ -49,12 +48,12 @@ "latency": 1.222, "queryCount": 1 } - ] + ], + "sourceIp": "1.1.1.1" }, { "latitude": -49.99, - "longitude": 51.00, - "sourceIp": "2.255.1.1", + "longitude": 51, "queryExperiences": [ { "endpointId": 1, @@ -66,11 +65,14 @@ "latency": 4.222, "queryCount": 500 } - ] + ], + "sourceIp": "2.255.1.1" } ] } } } - } + }, + "operationId": "HeatMap_Get", + "title": "HeatMap-GET-With-TopLeft-BotRight" } diff --git a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/HeatMap-GET.json b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/HeatMap-GET.json index 1901e4b339d0..02fd2c11004a 100644 --- a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/HeatMap-GET.json +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/HeatMap-GET.json @@ -1,19 +1,18 @@ { "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "azuresdkfornetautoresttrafficmanager1323", - "profileName": "azuresdkfornetautoresttrafficmanager3880", + "api-version": "2022-04-01", "heatMapType": "default", - "api-version": "2022-04-01" + "profileName": "azuresdkfornetautoresttrafficmanager3880", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager1323", + "subscriptionId": "{subscription-id}" }, "responses": { "200": { "body": { - "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1323/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager3880/heatMaps/latencyVolumeByLocation", "name": "default", "type": "Microsoft.Network/trafficManagerProfiles/heatMaps/latencyVolumeByLocation", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1323/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager3880/heatMaps/latencyVolumeByLocation", "properties": { - "startTime": "2017-08-15T12:00:00Z", "endTime": "2017-08-22T12:50:00Z", "endpoints": [ { @@ -25,11 +24,11 @@ "resourceId": "/subscriptions/562d4115-c01e-4m67-9bbd-c11c2d58ad73/resourceGroups/azuresdkfornetautoresttrafficmanager1300/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager3885/externalEndpoints/azuresdkfornetautoresttrafficmanager3881" } ], + "startTime": "2017-08-15T12:00:00Z", "trafficFlows": [ { "latitude": 99.99, - "longitude": 0.00, - "sourceIp": "1.1.1.1", + "longitude": 0, "queryExperiences": [ { "endpointId": 1, @@ -41,12 +40,12 @@ "latency": 1.222, "queryCount": 1 } - ] + ], + "sourceIp": "1.1.1.1" }, { "latitude": -99.99, - "longitude": 1.00, - "sourceIp": "2.255.1.1", + "longitude": 1, "queryExperiences": [ { "endpointId": 1, @@ -58,11 +57,14 @@ "latency": 4.222, "queryCount": 500 } - ] + ], + "sourceIp": "2.255.1.1" } ] } } } - } + }, + "operationId": "HeatMap_Get", + "title": "HeatMap-GET" } diff --git a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/NameAvailabilityTest_NameAvailable-POST-example-21.json b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/NameAvailabilityTest_NameAvailable-POST-example-21.json index 25a4094f60f5..3c01610f79cb 100644 --- a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/NameAvailabilityTest_NameAvailable-POST-example-21.json +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/NameAvailabilityTest_NameAvailable-POST-example-21.json @@ -14,5 +14,7 @@ "nameAvailable": true } } - } + }, + "operationId": "Profiles_CheckTrafficManagerRelativeDnsNameAvailability", + "title": "NameAvailabilityTest_NameAvailablePOST21" } diff --git a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/NameAvailabilityTest_NameNotAvailable-POST-example-23.json b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/NameAvailabilityTest_NameNotAvailable-POST-example-23.json index 9419a37f8049..19c22771d260 100644 --- a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/NameAvailabilityTest_NameNotAvailable-POST-example-23.json +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/NameAvailabilityTest_NameNotAvailable-POST-example-23.json @@ -11,10 +11,12 @@ "body": { "name": "azsmnet4696", "type": "Microsoft.Network/trafficManagerProfiles", + "message": "Domain name azsmnet4696.tmpreview.watmtest.azure-test.net already exists. Please choose a different DNS prefix.", "nameAvailable": false, - "reason": "AlreadyExists", - "message": "Domain name azsmnet4696.tmpreview.watmtest.azure-test.net already exists. Please choose a different DNS prefix." + "reason": "AlreadyExists" } } - } + }, + "operationId": "Profiles_CheckTrafficManagerRelativeDnsNameAvailability", + "title": "NameAvailabilityTest_NameNotAvailablePOST23" } diff --git a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/NameAvailabilityV2Test_NameAvailable-POST-example-21.json b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/NameAvailabilityV2Test_NameAvailable-POST-example-21.json index 5e79af991fa7..85ccef549d93 100644 --- a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/NameAvailabilityV2Test_NameAvailable-POST-example-21.json +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/NameAvailabilityV2Test_NameAvailable-POST-example-21.json @@ -1,11 +1,11 @@ { "parameters": { "api-version": "2022-04-01", - "subscriptionId": "{subscription-id}", "parameters": { "name": "azsmnet5403", "type": "microsoft.network/trafficmanagerprofiles" - } + }, + "subscriptionId": "{subscription-id}" }, "responses": { "200": { @@ -15,5 +15,7 @@ "nameAvailable": true } } - } + }, + "operationId": "Profiles_checkTrafficManagerNameAvailabilityV2", + "title": "NameAvailabilityV2Test_NameAvailablePOST21" } diff --git a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/NameAvailabilityV2Test_NameNotAvailable-POST-example-23.json b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/NameAvailabilityV2Test_NameNotAvailable-POST-example-23.json index b48e38867402..9305307684bf 100644 --- a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/NameAvailabilityV2Test_NameNotAvailable-POST-example-23.json +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/NameAvailabilityV2Test_NameNotAvailable-POST-example-23.json @@ -1,21 +1,23 @@ { "parameters": { "api-version": "2022-04-01", - "subscriptionId": "{subscription-id}", "parameters": { "name": "azsmnet4696", "type": "microsoft.network/trafficmanagerprofiles" - } + }, + "subscriptionId": "{subscription-id}" }, "responses": { "200": { "body": { "name": "azsmnet4696", "type": "Microsoft.Network/trafficManagerProfiles", + "message": "Domain name azsmnet4696.tmpreview.watmtest.azure-test.net already exists. Please choose a different DNS prefix.", "nameAvailable": false, - "reason": "AlreadyExists", - "message": "Domain name azsmnet4696.tmpreview.watmtest.azure-test.net already exists. Please choose a different DNS prefix." + "reason": "AlreadyExists" } } - } + }, + "operationId": "Profiles_checkTrafficManagerNameAvailabilityV2", + "title": "NameAvailabilityV2Test_NameNotAvailablePOST23" } diff --git a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-DELETE.json b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-DELETE.json index 6a512202792c..86ae0c3b1652 100644 --- a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-DELETE.json +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-DELETE.json @@ -1,14 +1,16 @@ { "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "azuresdkfornetautoresttrafficmanager1323", + "api-version": "2022-04-01", "profileName": "azuresdkfornetautoresttrafficmanager3880", - "api-version": "2022-04-01" + "resourceGroupName": "azuresdkfornetautoresttrafficmanager1323", + "subscriptionId": "{subscription-id}" }, "responses": { "200": { "body": {} }, "204": {} - } + }, + "operationId": "Profiles_Delete", + "title": "Profile-DELETE" } diff --git a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-GET-ByResourceGroup.json b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-GET-ByResourceGroup.json index feb86c1cf12b..01650a3aa72c 100644 --- a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-GET-ByResourceGroup.json +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-GET-ByResourceGroup.json @@ -1,95 +1,97 @@ { "parameters": { - "subscriptionId": "{subscription-id}", + "api-version": "2022-04-01", "resourceGroupName": "azuresdkfornetautoresttrafficmanager3640", - "api-version": "2022-04-01" + "subscriptionId": "{subscription-id}" }, "responses": { "200": { "body": { "value": [ { - "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager3640/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager1005", "name": "azuresdkfornetautoresttrafficmanager1005", "type": "Microsoft.Network/trafficManagerProfiles", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager3640/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager1005", "location": "global", - "tags": {}, "properties": { - "profileStatus": "Enabled", - "trafficRoutingMethod": "Performance", "dnsConfig": { - "relativeName": "azuresdkfornetautoresttrafficmanager1005", "fqdn": "azuresdkfornetautoresttrafficmanager1005.tmpreview.watmtest.azure-test.net", + "relativeName": "azuresdkfornetautoresttrafficmanager1005", "ttl": 35 }, - "monitorConfig": { - "profileMonitorStatus": "Online", - "protocol": "HTTP", - "port": 80, - "path": "/testpath.aspx", - "intervalInSeconds": 30, - "toleratedNumberOfFailures": 3, - "timeoutInSeconds": 10 - }, "endpoints": [ { - "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager3640/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager1005/externalEndpoints/My external endpoint", "name": "My external endpoint", "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager3640/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager1005/externalEndpoints/My external endpoint", "properties": { - "endpointStatus": "Enabled", + "endpointLocation": "North Europe", "endpointMonitorStatus": "CheckingEndpoint", - "target": "foobar.contoso.com", - "weight": 1, + "endpointStatus": "Enabled", "priority": 1, - "endpointLocation": "North Europe" + "target": "foobar.contoso.com", + "weight": 1 } } - ] - } + ], + "monitorConfig": { + "path": "/testpath.aspx", + "intervalInSeconds": 30, + "port": 80, + "profileMonitorStatus": "Online", + "timeoutInSeconds": 10, + "toleratedNumberOfFailures": 3, + "protocol": "HTTP" + }, + "profileStatus": "Enabled", + "trafficRoutingMethod": "Performance" + }, + "tags": {} }, { - "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager3640/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager959", "name": "azuresdkfornetautoresttrafficmanager959", "type": "Microsoft.Network/trafficManagerProfiles", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager3640/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager959", "location": "global", - "tags": {}, "properties": { - "profileStatus": "Enabled", - "trafficRoutingMethod": "Performance", "dnsConfig": { - "relativeName": "azuresdkfornetautoresttrafficmanager959", "fqdn": "azuresdkfornetautoresttrafficmanager959.tmpreview.watmtest.azure-test.net", + "relativeName": "azuresdkfornetautoresttrafficmanager959", "ttl": 35 }, - "monitorConfig": { - "profileMonitorStatus": "Online", - "protocol": "HTTP", - "port": 80, - "path": "/testpath.aspx", - "intervalInSeconds": 30, - "toleratedNumberOfFailures": 3, - "timeoutInSeconds": 10 - }, "endpoints": [ { - "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager3640/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager959/externalEndpoints/My external endpoint", "name": "My external endpoint", "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager3640/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager959/externalEndpoints/My external endpoint", "properties": { - "endpointStatus": "Enabled", + "endpointLocation": "North Europe", "endpointMonitorStatus": "Online", - "target": "foobar.contoso.com", - "weight": 1, + "endpointStatus": "Enabled", "priority": 1, - "endpointLocation": "North Europe" + "target": "foobar.contoso.com", + "weight": 1 } } - ] - } + ], + "monitorConfig": { + "path": "/testpath.aspx", + "intervalInSeconds": 30, + "port": 80, + "profileMonitorStatus": "Online", + "timeoutInSeconds": 10, + "toleratedNumberOfFailures": 3, + "protocol": "HTTP" + }, + "profileStatus": "Enabled", + "trafficRoutingMethod": "Performance" + }, + "tags": {} } ] } } - } + }, + "operationId": "Profiles_ListByResourceGroup", + "title": "ListProfilesByResourceGroup" } diff --git a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-GET-BySubscription.json b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-GET-BySubscription.json index 0246761854af..8523a500d6df 100644 --- a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-GET-BySubscription.json +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-GET-BySubscription.json @@ -1,122 +1,124 @@ { "parameters": { - "subscriptionId": "{subscription-id}", - "api-version": "2022-04-01" + "api-version": "2022-04-01", + "subscriptionId": "{subscription-id}" }, "responses": { "200": { "body": { "value": [ { - "id": "/subscriptions/{subscription-id}/resourceGroups/azsmnet1719/providers/Microsoft.Network/trafficManagerProfiles/azsmnet5183", "name": "azsmnet5183", "type": "Microsoft.Network/trafficManagerProfiles", + "id": "/subscriptions/{subscription-id}/resourceGroups/azsmnet1719/providers/Microsoft.Network/trafficManagerProfiles/azsmnet5183", "location": "global", - "tags": {}, "properties": { - "profileStatus": "Enabled", - "trafficRoutingMethod": "Performance", "dnsConfig": { - "relativeName": "azsmnet4696", "fqdn": "azsmnet4696.tmpreview.watmtest.azure-test.net", + "relativeName": "azsmnet4696", "ttl": 35 }, + "endpoints": [], "monitorConfig": { - "profileMonitorStatus": "Online", - "protocol": "HTTP", - "port": 80, "path": "/testpath.aspx", "intervalInSeconds": 30, + "port": 80, + "profileMonitorStatus": "Online", + "timeoutInSeconds": 10, "toleratedNumberOfFailures": 3, - "timeoutInSeconds": 10 + "protocol": "HTTP" }, - "endpoints": [] - } + "profileStatus": "Enabled", + "trafficRoutingMethod": "Performance" + }, + "tags": {} }, { - "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager5168/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager3440", "name": "azuresdkfornetautoresttrafficmanager3440", "type": "Microsoft.Network/trafficManagerProfiles", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager5168/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager3440", "location": "global", - "tags": {}, "properties": { - "profileStatus": "Enabled", - "trafficRoutingMethod": "Performance", "dnsConfig": { - "relativeName": "azuresdkfornetautoresttrafficmanager3440", "fqdn": "azuresdkfornetautoresttrafficmanager3440.tmpreview.watmtest.azure-test.net", + "relativeName": "azuresdkfornetautoresttrafficmanager3440", "ttl": 35 }, - "monitorConfig": { - "profileMonitorStatus": "Online", - "protocol": "HTTP", - "port": 80, - "path": "/testpath.aspx", - "intervalInSeconds": 30, - "toleratedNumberOfFailures": 3, - "timeoutInSeconds": 10 - }, "endpoints": [ { - "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager5168/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager3440/externalEndpoints/My external endpoint", "name": "My external endpoint", "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager5168/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager3440/externalEndpoints/My external endpoint", "properties": { - "endpointStatus": "Enabled", + "endpointLocation": "North Europe", "endpointMonitorStatus": "Online", - "target": "foobar.contoso.com", - "weight": 1, + "endpointStatus": "Enabled", "priority": 1, - "endpointLocation": "North Europe" + "target": "foobar.contoso.com", + "weight": 1 } } - ] - } + ], + "monitorConfig": { + "path": "/testpath.aspx", + "intervalInSeconds": 30, + "port": 80, + "profileMonitorStatus": "Online", + "timeoutInSeconds": 10, + "toleratedNumberOfFailures": 3, + "protocol": "HTTP" + }, + "profileStatus": "Enabled", + "trafficRoutingMethod": "Performance" + }, + "tags": {} }, { - "id": "/subscriptions/{subscription-id}/resourceGroups/onesdk9785/providers/Microsoft.Network/trafficManagerProfiles/onesdk8819", "name": "onesdk8819", "type": "Microsoft.Network/trafficManagerProfiles", + "id": "/subscriptions/{subscription-id}/resourceGroups/onesdk9785/providers/Microsoft.Network/trafficManagerProfiles/onesdk8819", "location": "global", - "tags": {}, "properties": { - "profileStatus": "Enabled", - "trafficRoutingMethod": "Performance", "dnsConfig": { - "relativeName": "onesdk7242", "fqdn": "onesdk7242.tmpreview.watmtest.azure-test.net", + "relativeName": "onesdk7242", "ttl": 51 }, - "monitorConfig": { - "profileMonitorStatus": "Online", - "protocol": "HTTPS", - "port": 111, - "path": "/testparent.asp", - "intervalInSeconds": 30, - "toleratedNumberOfFailures": 3, - "timeoutInSeconds": 10 - }, "endpoints": [ { - "id": "/subscriptions/{subscription-id}/resourceGroups/onesdk9785/providers/Microsoft.Network/trafficManagerProfiles/onesdk8819/nestedEndpoints/MyNestedEndpoint", "name": "MyNestedEndpoint", "type": "Microsoft.Network/trafficManagerProfiles/nestedEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/onesdk9785/providers/Microsoft.Network/trafficManagerProfiles/onesdk8819/nestedEndpoints/MyNestedEndpoint", "properties": { - "endpointStatus": "Enabled", + "endpointLocation": "West Europe", "endpointMonitorStatus": "Stopped", - "targetResourceId": "/subscriptions/{subscription-id}/resourceGroups/onesdk9785/providers/Microsoft.Network/trafficManagerProfiles/onesdk1792", - "target": "onesdk4285.tmpreview.watmtest.azure-test.net", - "weight": 1, + "endpointStatus": "Enabled", + "minChildEndpoints": 1, "priority": 1, - "endpointLocation": "West Europe", - "minChildEndpoints": 1 + "target": "onesdk4285.tmpreview.watmtest.azure-test.net", + "targetResourceId": "/subscriptions/{subscription-id}/resourceGroups/onesdk9785/providers/Microsoft.Network/trafficManagerProfiles/onesdk1792", + "weight": 1 } } - ] - } + ], + "monitorConfig": { + "path": "/testparent.asp", + "intervalInSeconds": 30, + "port": 111, + "profileMonitorStatus": "Online", + "timeoutInSeconds": 10, + "toleratedNumberOfFailures": 3, + "protocol": "HTTPS" + }, + "profileStatus": "Enabled", + "trafficRoutingMethod": "Performance" + }, + "tags": {} } ] } } - } + }, + "operationId": "Profiles_ListBySubscription", + "title": "ListBySubscription" } diff --git a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-GET-WithEndpoints.json b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-GET-WithEndpoints.json index d173a46c9f6f..ce1d6147b8c3 100644 --- a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-GET-WithEndpoints.json +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-GET-WithEndpoints.json @@ -1,52 +1,54 @@ { "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "azuresdkfornetautoresttrafficmanager1323", + "api-version": "2022-04-01", "profileName": "azuresdkfornetautoresttrafficmanager3880", - "api-version": "2022-04-01" + "resourceGroupName": "azuresdkfornetautoresttrafficmanager1323", + "subscriptionId": "{subscription-id}" }, "responses": { "200": { "body": { - "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1323/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager3880", "name": "azuresdkfornetautoresttrafficmanager3880", "type": "Microsoft.Network/trafficManagerProfiles", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1323/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager3880", "location": "global", - "tags": {}, "properties": { - "profileStatus": "Enabled", - "trafficRoutingMethod": "Performance", "dnsConfig": { - "relativeName": "azuresdkfornetautoresttrafficmanager3880", "fqdn": "azuresdkfornetautoresttrafficmanager3880.tmpreview.watmtest.azure-test.net", + "relativeName": "azuresdkfornetautoresttrafficmanager3880", "ttl": 35 }, - "monitorConfig": { - "profileMonitorStatus": "CheckingEndpoints", - "protocol": "HTTP", - "port": 80, - "path": "/testpath.aspx", - "intervalInSeconds": 30, - "toleratedNumberOfFailures": 3, - "timeoutInSeconds": 10 - }, "endpoints": [ { - "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1323/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager3880/externalEndpoints/My external endpoint", "name": "My external endpoint", "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1323/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager3880/externalEndpoints/My external endpoint", "properties": { - "endpointStatus": "Enabled", + "endpointLocation": "North Europe", "endpointMonitorStatus": "CheckingEndpoint", - "target": "foobar.contoso.com", - "weight": 1, + "endpointStatus": "Enabled", "priority": 1, - "endpointLocation": "North Europe" + "target": "foobar.contoso.com", + "weight": 1 } } - ] - } + ], + "monitorConfig": { + "path": "/testpath.aspx", + "intervalInSeconds": 30, + "port": 80, + "profileMonitorStatus": "CheckingEndpoints", + "timeoutInSeconds": 10, + "toleratedNumberOfFailures": 3, + "protocol": "HTTP" + }, + "profileStatus": "Enabled", + "trafficRoutingMethod": "Performance" + }, + "tags": {} } } - } + }, + "operationId": "Profiles_Get", + "title": "Profile-GET-WithEndpoints" } diff --git a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-GET-WithTrafficViewDisabled.json b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-GET-WithTrafficViewDisabled.json index 0d1a709f4c59..d5e6eb064616 100644 --- a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-GET-WithTrafficViewDisabled.json +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-GET-WithTrafficViewDisabled.json @@ -1,53 +1,55 @@ { "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "azuresdkfornetautoresttrafficmanager1323", + "api-version": "2022-04-01", "profileName": "azuresdkfornetautoresttrafficmanager3880", - "api-version": "2022-04-01" + "resourceGroupName": "azuresdkfornetautoresttrafficmanager1323", + "subscriptionId": "{subscription-id}" }, "responses": { "200": { "body": { - "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1323/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager3880", "name": "azuresdkfornetautoresttrafficmanager3880", "type": "Microsoft.Network/trafficManagerProfiles", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1323/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager3880", "location": "global", - "tags": {}, "properties": { - "profileStatus": "Enabled", - "trafficRoutingMethod": "Performance", "dnsConfig": { - "relativeName": "azuresdkfornetautoresttrafficmanager3880", "fqdn": "azuresdkfornetautoresttrafficmanager3880.tmpreview.watmtest.azure-test.net", + "relativeName": "azuresdkfornetautoresttrafficmanager3880", "ttl": 35 }, - "monitorConfig": { - "profileMonitorStatus": "CheckingEndpoints", - "protocol": "HTTP", - "port": 80, - "path": "/testpath.aspx", - "intervalInSeconds": 30, - "toleratedNumberOfFailures": 3, - "timeoutInSeconds": 10 - }, "endpoints": [ { - "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1323/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager3880/externalEndpoints/My external endpoint", "name": "My external endpoint", "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1323/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager3880/externalEndpoints/My external endpoint", "properties": { - "endpointStatus": "Enabled", + "endpointLocation": "North Europe", "endpointMonitorStatus": "CheckingEndpoint", - "target": "foobar.contoso.com", - "weight": 1, + "endpointStatus": "Enabled", "priority": 1, - "endpointLocation": "North Europe" + "target": "foobar.contoso.com", + "weight": 1 } } ], + "monitorConfig": { + "path": "/testpath.aspx", + "intervalInSeconds": 30, + "port": 80, + "profileMonitorStatus": "CheckingEndpoints", + "timeoutInSeconds": 10, + "toleratedNumberOfFailures": 3, + "protocol": "HTTP" + }, + "profileStatus": "Enabled", + "trafficRoutingMethod": "Performance", "trafficViewEnrollmentStatus": "Disabled" - } + }, + "tags": {} } } - } + }, + "operationId": "Profiles_Get", + "title": "Profile-GET-WithTrafficViewDisabled" } diff --git a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-GET-WithTrafficViewEnabled.json b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-GET-WithTrafficViewEnabled.json index 18babcaa3658..863fda913bcf 100644 --- a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-GET-WithTrafficViewEnabled.json +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-GET-WithTrafficViewEnabled.json @@ -1,53 +1,55 @@ { "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "azuresdkfornetautoresttrafficmanager1323", + "api-version": "2022-04-01", "profileName": "azuresdkfornetautoresttrafficmanager3880", - "api-version": "2022-04-01" + "resourceGroupName": "azuresdkfornetautoresttrafficmanager1323", + "subscriptionId": "{subscription-id}" }, "responses": { "200": { "body": { - "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1323/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager3880", "name": "azuresdkfornetautoresttrafficmanager3880", "type": "Microsoft.Network/trafficManagerProfiles", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1323/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager3880", "location": "global", - "tags": {}, "properties": { - "profileStatus": "Enabled", - "trafficRoutingMethod": "Performance", "dnsConfig": { - "relativeName": "azuresdkfornetautoresttrafficmanager3880", "fqdn": "azuresdkfornetautoresttrafficmanager3880.tmpreview.watmtest.azure-test.net", + "relativeName": "azuresdkfornetautoresttrafficmanager3880", "ttl": 35 }, - "monitorConfig": { - "profileMonitorStatus": "CheckingEndpoints", - "protocol": "HTTP", - "port": 80, - "path": "/testpath.aspx", - "intervalInSeconds": 30, - "toleratedNumberOfFailures": 3, - "timeoutInSeconds": 10 - }, "endpoints": [ { - "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1323/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager3880/externalEndpoints/My external endpoint", "name": "My external endpoint", "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1323/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager3880/externalEndpoints/My external endpoint", "properties": { - "endpointStatus": "Enabled", + "endpointLocation": "North Europe", "endpointMonitorStatus": "CheckingEndpoint", - "target": "foobar.contoso.com", - "weight": 1, + "endpointStatus": "Enabled", "priority": 1, - "endpointLocation": "North Europe" + "target": "foobar.contoso.com", + "weight": 1 } } ], + "monitorConfig": { + "path": "/testpath.aspx", + "intervalInSeconds": 30, + "port": 80, + "profileMonitorStatus": "CheckingEndpoints", + "timeoutInSeconds": 10, + "toleratedNumberOfFailures": 3, + "protocol": "HTTP" + }, + "profileStatus": "Enabled", + "trafficRoutingMethod": "Performance", "trafficViewEnrollmentStatus": "Enabled" - } + }, + "tags": {} } } - } + }, + "operationId": "Profiles_Get", + "title": "Profile-GET-WithTrafficViewEnabled" } diff --git a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-PATCH-MonitorConfig.json b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-PATCH-MonitorConfig.json index bdefb0098e03..3fb0cd09b1f1 100644 --- a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-PATCH-MonitorConfig.json +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-PATCH-MonitorConfig.json @@ -1,18 +1,10 @@ { "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "azuresdkfornetautoresttrafficmanager2583", - "profileName": "azuresdkfornetautoresttrafficmanager6192", "api-version": "2022-04-01", "parameters": { "properties": { "monitorConfig": { - "protocol": "HTTP", - "port": 80, "path": "/testpath.aspx", - "intervalInSeconds": 30, - "timeoutInSeconds": 6, - "toleratedNumberOfFailures": 4, "customHeaders": [ { "name": "header-1", @@ -22,35 +14,49 @@ "name": "header-2", "value": "value-2" } - ] + ], + "intervalInSeconds": 30, + "port": 80, + "timeoutInSeconds": 6, + "toleratedNumberOfFailures": 4, + "protocol": "HTTP" } } - } + }, + "profileName": "azuresdkfornetautoresttrafficmanager6192", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager2583", + "subscriptionId": "{subscription-id}" }, "responses": { "200": { "body": { - "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2583/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager6192", "name": "azuresdkfornetautoresttrafficmanager6192", "type": "Microsoft.Network/trafficManagerProfiles", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2583/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager6192", "location": "global", - "tags": {}, "properties": { - "profileStatus": "Enabled", - "trafficRoutingMethod": "Performance", "dnsConfig": { - "relativeName": "azuresdkfornetautoresttrafficmanager6192", "fqdn": "azuresdkfornetautoresttrafficmanager6192.tmpreview.watmtest.azure-test.net", + "relativeName": "azuresdkfornetautoresttrafficmanager6192", "ttl": 35 }, + "endpoints": [ + { + "name": "My external endpoint", + "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2583/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager6192/externalEndpoints/My external endpoint", + "properties": { + "endpointLocation": "North Europe", + "endpointMonitorStatus": "CheckingEndpoint", + "endpointStatus": "Enabled", + "priority": 1, + "target": "foobar.contoso.com", + "weight": 1 + } + } + ], "monitorConfig": { - "profileMonitorStatus": "CheckingEndpoints", - "protocol": "HTTP", - "port": 80, "path": "/testpath.aspx", - "intervalInSeconds": 30, - "toleratedNumberOfFailures": 4, - "timeoutInSeconds": 6, "customHeaders": [ { "name": "header-1", @@ -60,25 +66,21 @@ "name": "header-2", "value": "value-2" } - ] + ], + "intervalInSeconds": 30, + "port": 80, + "profileMonitorStatus": "CheckingEndpoints", + "timeoutInSeconds": 6, + "toleratedNumberOfFailures": 4, + "protocol": "HTTP" }, - "endpoints": [ - { - "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2583/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager6192/externalEndpoints/My external endpoint", - "name": "My external endpoint", - "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", - "properties": { - "endpointStatus": "Enabled", - "endpointMonitorStatus": "CheckingEndpoint", - "target": "foobar.contoso.com", - "weight": 1, - "priority": 1, - "endpointLocation": "North Europe" - } - } - ] - } + "profileStatus": "Enabled", + "trafficRoutingMethod": "Performance" + }, + "tags": {} } } - } + }, + "operationId": "Profiles_Update", + "title": "Profile-PATCH-MonitorConfig" } diff --git a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-PUT-MultiValue.json b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-PUT-MultiValue.json index dd36dffbac30..438618b0ec12 100644 --- a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-PUT-MultiValue.json +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-PUT-MultiValue.json @@ -1,86 +1,88 @@ { "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "azuresdkfornetautoresttrafficmanager1421", - "profileName": "azsmnet6386", "api-version": "2022-04-01", "parameters": { + "location": "global", "properties": { - "profileStatus": "Enabled", - "trafficRoutingMethod": "MultiValue", "dnsConfig": { "relativeName": "azsmnet6386", "ttl": 35 }, + "maxReturn": 2, "monitorConfig": { - "protocol": "HTTP", + "path": "/testpath.aspx", "port": 80, - "path": "/testpath.aspx" + "protocol": "HTTP" }, - "trafficViewEnrollmentStatus": "Disabled", - "maxReturn": 2 - }, - "location": "global" - } + "profileStatus": "Enabled", + "trafficRoutingMethod": "MultiValue", + "trafficViewEnrollmentStatus": "Disabled" + } + }, + "profileName": "azsmnet6386", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager1421", + "subscriptionId": "{subscription-id}" }, "responses": { - "201": { + "200": { "body": { - "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386", "name": "azsmnet6386", "type": "Microsoft.Network/trafficManagerProfiles", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386", "location": "global", "properties": { - "profileStatus": "Enabled", - "trafficRoutingMethod": "MultiValue", "dnsConfig": { - "relativeName": "azsmnet6386", "fqdn": "azsmnet6386.tmpreview.watmtest.azure-test.net", + "relativeName": "azsmnet6386", "ttl": 35 }, + "endpoints": [], + "maxReturn": 2, "monitorConfig": { - "profileMonitorStatus": "Inactive", - "protocol": "HTTP", - "port": 80, "path": "/testpath.aspx", "intervalInSeconds": 30, + "port": 80, + "profileMonitorStatus": "Inactive", + "timeoutInSeconds": 10, "toleratedNumberOfFailures": 3, - "timeoutInSeconds": 10 + "protocol": "HTTP" }, - "trafficViewEnrollmentStatus": "Disabled", - "maxReturn": 2, - "endpoints": [] + "profileStatus": "Enabled", + "trafficRoutingMethod": "MultiValue", + "trafficViewEnrollmentStatus": "Disabled" } } }, - "200": { + "201": { "body": { - "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386", "name": "azsmnet6386", "type": "Microsoft.Network/trafficManagerProfiles", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386", "location": "global", "properties": { - "profileStatus": "Enabled", - "trafficRoutingMethod": "MultiValue", "dnsConfig": { - "relativeName": "azsmnet6386", "fqdn": "azsmnet6386.tmpreview.watmtest.azure-test.net", + "relativeName": "azsmnet6386", "ttl": 35 }, + "endpoints": [], + "maxReturn": 2, "monitorConfig": { - "profileMonitorStatus": "Inactive", - "protocol": "HTTP", - "port": 80, "path": "/testpath.aspx", "intervalInSeconds": 30, + "port": 80, + "profileMonitorStatus": "Inactive", + "timeoutInSeconds": 10, "toleratedNumberOfFailures": 3, - "timeoutInSeconds": 10 + "protocol": "HTTP" }, - "trafficViewEnrollmentStatus": "Disabled", - "maxReturn": 2, - "endpoints": [] + "profileStatus": "Enabled", + "trafficRoutingMethod": "MultiValue", + "trafficViewEnrollmentStatus": "Disabled" } } } - } + }, + "operationId": "Profiles_CreateOrUpdate", + "title": "Profile-PUT-MultiValue" } diff --git a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-PUT-NoEndpoints.json b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-PUT-NoEndpoints.json index 965a8dbd4f7e..d22bf3c08646 100644 --- a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-PUT-NoEndpoints.json +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-PUT-NoEndpoints.json @@ -1,80 +1,82 @@ { "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "azuresdkfornetautoresttrafficmanager1421", - "profileName": "azsmnet6386", "api-version": "2022-04-01", "parameters": { + "location": "global", "properties": { - "profileStatus": "Enabled", - "trafficRoutingMethod": "Performance", "dnsConfig": { "relativeName": "azsmnet6386", "ttl": 35 }, "monitorConfig": { - "protocol": "HTTP", + "path": "/testpath.aspx", "port": 80, - "path": "/testpath.aspx" - } - }, - "location": "global" - } + "protocol": "HTTP" + }, + "profileStatus": "Enabled", + "trafficRoutingMethod": "Performance" + } + }, + "profileName": "azsmnet6386", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager1421", + "subscriptionId": "{subscription-id}" }, "responses": { - "201": { + "200": { "body": { - "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386", "name": "azsmnet6386", "type": "Microsoft.Network/trafficManagerProfiles", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386", "location": "global", "properties": { - "profileStatus": "Enabled", - "trafficRoutingMethod": "Performance", "dnsConfig": { - "relativeName": "azsmnet6386", "fqdn": "azsmnet6386.tmpreview.watmtest.azure-test.net", + "relativeName": "azsmnet6386", "ttl": 35 }, + "endpoints": [], "monitorConfig": { - "profileMonitorStatus": "Inactive", - "protocol": "HTTP", - "port": 80, "path": "/testpath.aspx", "intervalInSeconds": 30, + "port": 80, + "profileMonitorStatus": "Inactive", + "timeoutInSeconds": 10, "toleratedNumberOfFailures": 3, - "timeoutInSeconds": 10 + "protocol": "HTTP" }, - "endpoints": [] + "profileStatus": "Enabled", + "trafficRoutingMethod": "Performance" } } }, - "200": { + "201": { "body": { - "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386", "name": "azsmnet6386", "type": "Microsoft.Network/trafficManagerProfiles", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386", "location": "global", "properties": { - "profileStatus": "Enabled", - "trafficRoutingMethod": "Performance", "dnsConfig": { - "relativeName": "azsmnet6386", "fqdn": "azsmnet6386.tmpreview.watmtest.azure-test.net", + "relativeName": "azsmnet6386", "ttl": 35 }, + "endpoints": [], "monitorConfig": { - "profileMonitorStatus": "Inactive", - "protocol": "HTTP", - "port": 80, "path": "/testpath.aspx", "intervalInSeconds": 30, + "port": 80, + "profileMonitorStatus": "Inactive", + "timeoutInSeconds": 10, "toleratedNumberOfFailures": 3, - "timeoutInSeconds": 10 + "protocol": "HTTP" }, - "endpoints": [] + "profileStatus": "Enabled", + "trafficRoutingMethod": "Performance" } } } - } + }, + "operationId": "Profiles_CreateOrUpdate", + "title": "Profile-PUT-NoEndpoints" } diff --git a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-PUT-WithAliasing.json b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-PUT-WithAliasing.json index 742cd065c16d..0f54a0e8333c 100644 --- a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-PUT-WithAliasing.json +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-PUT-WithAliasing.json @@ -1,126 +1,82 @@ { "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "azuresdkfornetautoresttrafficmanager2583", - "profileName": "azuresdkfornetautoresttrafficmanager6192", "api-version": "2022-04-01", "parameters": { + "location": "global", "properties": { - "profileStatus": "Enabled", - "trafficRoutingMethod": "Performance", + "allowedEndpointRecordTypes": [ + "DomainName" + ], "dnsConfig": { "relativeName": "azuresdkfornetautoresttrafficmanager6192", "ttl": 35 }, - "monitorConfig": { - "protocol": "HTTP", - "port": 80, - "path": "/testpath.aspx", - "intervalInSeconds": 10, - "timeoutInSeconds": 5, - "toleratedNumberOfFailures": 2 - }, - "allowedEndpointRecordTypes": [ - "DomainName" - ], "endpoints": [ { "name": "My external endpoint", "type": "Microsoft.network/TrafficManagerProfiles/ExternalEndpoints", "properties": { - "target": "foobar.contoso.com", + "endpointLocation": "North Europe", "endpointStatus": "Enabled", - "endpointLocation": "North Europe" + "target": "foobar.contoso.com" } } - ] - }, - "location": "global" - } + ], + "monitorConfig": { + "path": "/testpath.aspx", + "intervalInSeconds": 10, + "port": 80, + "timeoutInSeconds": 5, + "toleratedNumberOfFailures": 2, + "protocol": "HTTP" + }, + "profileStatus": "Enabled", + "trafficRoutingMethod": "Performance" + } + }, + "profileName": "azuresdkfornetautoresttrafficmanager6192", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager2583", + "subscriptionId": "{subscription-id}" }, "responses": { - "201": { + "200": { "body": { - "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2583/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager6192", "name": "azuresdkfornetautoresttrafficmanager6192", "type": "Microsoft.Network/trafficManagerProfiles", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2583/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager6192", "location": "global", "properties": { - "profileStatus": "Enabled", - "trafficRoutingMethod": "Performance", + "allowedEndpointRecordTypes": [ + "DomainName" + ], "dnsConfig": { - "relativeName": "azuresdkfornetautoresttrafficmanager6192", "fqdn": "azuresdkfornetautoresttrafficmanager6192.tmpreview.watmtest.azure-test.net", + "relativeName": "azuresdkfornetautoresttrafficmanager6192", "ttl": 35 }, - "monitorConfig": { - "profileMonitorStatus": "CheckingEndpoints", - "protocol": "HTTP", - "port": 80, - "path": "/testpath.aspx", - "intervalInSeconds": 10, - "toleratedNumberOfFailures": 2, - "timeoutInSeconds": 5, - "customHeaders": [ - { - "name": "header-1", - "value": "value-1" - }, - { - "name": "header-2", - "value": "value-2" - } - ] - }, - "allowedEndpointRecordTypes": [ - "DomainName" - ], "endpoints": [ { - "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2583/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager6192/externalEndpoints/My external endpoint", "name": "My external endpoint", "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2583/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager6192/externalEndpoints/My external endpoint", "properties": { - "endpointStatus": "Enabled", - "endpointMonitorStatus": "CheckingEndpoint", - "target": "foobar.contoso.com", - "weight": 1, - "priority": 1, - "endpointLocation": "North Europe", "customHeaders": [ { "name": "header-2", "value": "value-2-overridden" } - ] + ], + "endpointLocation": "North Europe", + "endpointMonitorStatus": "CheckingEndpoint", + "endpointStatus": "Enabled", + "priority": 1, + "target": "foobar.contoso.com", + "weight": 1 } } - ] - } - } - }, - "200": { - "body": { - "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2583/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager6192", - "name": "azuresdkfornetautoresttrafficmanager6192", - "type": "Microsoft.Network/trafficManagerProfiles", - "location": "global", - "properties": { - "profileStatus": "Enabled", - "trafficRoutingMethod": "Performance", - "dnsConfig": { - "relativeName": "azuresdkfornetautoresttrafficmanager6192", - "fqdn": "azuresdkfornetautoresttrafficmanager6192.tmpreview.watmtest.azure-test.net", - "ttl": 35 - }, + ], "monitorConfig": { - "profileMonitorStatus": "CheckingEndpoints", - "protocol": "HTTP", - "port": 80, "path": "/testpath.aspx", - "intervalInSeconds": 10, - "toleratedNumberOfFailures": 2, - "timeoutInSeconds": 5, "customHeaders": [ { "name": "header-1", @@ -130,34 +86,80 @@ "name": "header-2", "value": "value-2" } - ] + ], + "intervalInSeconds": 10, + "port": 80, + "profileMonitorStatus": "CheckingEndpoints", + "timeoutInSeconds": 5, + "toleratedNumberOfFailures": 2, + "protocol": "HTTP" }, + "profileStatus": "Enabled", + "trafficRoutingMethod": "Performance" + } + } + }, + "201": { + "body": { + "name": "azuresdkfornetautoresttrafficmanager6192", + "type": "Microsoft.Network/trafficManagerProfiles", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2583/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager6192", + "location": "global", + "properties": { "allowedEndpointRecordTypes": [ "DomainName" ], + "dnsConfig": { + "fqdn": "azuresdkfornetautoresttrafficmanager6192.tmpreview.watmtest.azure-test.net", + "relativeName": "azuresdkfornetautoresttrafficmanager6192", + "ttl": 35 + }, "endpoints": [ { - "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2583/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager6192/externalEndpoints/My external endpoint", "name": "My external endpoint", "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2583/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager6192/externalEndpoints/My external endpoint", "properties": { - "endpointStatus": "Enabled", - "endpointMonitorStatus": "CheckingEndpoint", - "target": "foobar.contoso.com", - "weight": 1, - "priority": 1, - "endpointLocation": "North Europe", "customHeaders": [ { "name": "header-2", "value": "value-2-overridden" } - ] + ], + "endpointLocation": "North Europe", + "endpointMonitorStatus": "CheckingEndpoint", + "endpointStatus": "Enabled", + "priority": 1, + "target": "foobar.contoso.com", + "weight": 1 } } - ] + ], + "monitorConfig": { + "path": "/testpath.aspx", + "customHeaders": [ + { + "name": "header-1", + "value": "value-1" + }, + { + "name": "header-2", + "value": "value-2" + } + ], + "intervalInSeconds": 10, + "port": 80, + "profileMonitorStatus": "CheckingEndpoints", + "timeoutInSeconds": 5, + "toleratedNumberOfFailures": 2, + "protocol": "HTTP" + }, + "profileStatus": "Enabled", + "trafficRoutingMethod": "Performance" } } } - } + }, + "operationId": "Profiles_CreateOrUpdate", + "title": "Profile-PUT-WithAliasing" } diff --git a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-PUT-WithCustomHeaders.json b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-PUT-WithCustomHeaders.json index 9ff450c5bd28..57e0fb89a67e 100644 --- a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-PUT-WithCustomHeaders.json +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-PUT-WithCustomHeaders.json @@ -1,24 +1,32 @@ { "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "azuresdkfornetautoresttrafficmanager2583", - "profileName": "azuresdkfornetautoresttrafficmanager6192", "api-version": "2022-04-01", "parameters": { + "location": "global", "properties": { - "profileStatus": "Enabled", - "trafficRoutingMethod": "Performance", "dnsConfig": { "relativeName": "azuresdkfornetautoresttrafficmanager6192", "ttl": 35 }, + "endpoints": [ + { + "name": "My external endpoint", + "type": "Microsoft.network/TrafficManagerProfiles/ExternalEndpoints", + "properties": { + "customHeaders": [ + { + "name": "header-2", + "value": "value-2-overridden" + } + ], + "endpointLocation": "North Europe", + "endpointStatus": "Enabled", + "target": "foobar.contoso.com" + } + } + ], "monitorConfig": { - "protocol": "HTTP", - "port": 80, "path": "/testpath.aspx", - "intervalInSeconds": 10, - "timeoutInSeconds": 5, - "toleratedNumberOfFailures": 2, "customHeaders": [ { "name": "header-1", @@ -31,118 +39,65 @@ ], "expectedStatusCodeRanges": [ { - "min": 200, - "max": 205 + "max": 205, + "min": 200 }, { - "min": 400, - "max": 410 + "max": 410, + "min": 400 } - ] + ], + "intervalInSeconds": 10, + "port": 80, + "timeoutInSeconds": 5, + "toleratedNumberOfFailures": 2, + "protocol": "HTTP" }, - "trafficViewEnrollmentStatus": "Disabled", - "endpoints": [ - { - "name": "My external endpoint", - "type": "Microsoft.network/TrafficManagerProfiles/ExternalEndpoints", - "properties": { - "target": "foobar.contoso.com", - "endpointStatus": "Enabled", - "endpointLocation": "North Europe", - "customHeaders": [ - { - "name": "header-2", - "value": "value-2-overridden" - } - ] - } - } - ] - }, - "location": "global" - } + "profileStatus": "Enabled", + "trafficRoutingMethod": "Performance", + "trafficViewEnrollmentStatus": "Disabled" + } + }, + "profileName": "azuresdkfornetautoresttrafficmanager6192", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager2583", + "subscriptionId": "{subscription-id}" }, "responses": { - "201": { + "200": { "body": { - "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2583/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager6192", "name": "azuresdkfornetautoresttrafficmanager6192", "type": "Microsoft.Network/trafficManagerProfiles", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2583/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager6192", "location": "global", "properties": { - "profileStatus": "Enabled", - "trafficRoutingMethod": "Performance", "dnsConfig": { - "relativeName": "azuresdkfornetautoresttrafficmanager6192", "fqdn": "azuresdkfornetautoresttrafficmanager6192.tmpreview.watmtest.azure-test.net", + "relativeName": "azuresdkfornetautoresttrafficmanager6192", "ttl": 35 }, - "monitorConfig": { - "profileMonitorStatus": "CheckingEndpoints", - "protocol": "HTTP", - "port": 80, - "path": "/testpath.aspx", - "intervalInSeconds": 10, - "toleratedNumberOfFailures": 2, - "timeoutInSeconds": 5, - "customHeaders": [ - { - "name": "header-1", - "value": "value-1" - }, - { - "name": "header-2", - "value": "value-2" - } - ] - }, - "trafficViewEnrollmentStatus": "Disabled", "endpoints": [ { - "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2583/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager6192/externalEndpoints/My external endpoint", "name": "My external endpoint", "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2583/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager6192/externalEndpoints/My external endpoint", "properties": { - "endpointStatus": "Enabled", - "endpointMonitorStatus": "CheckingEndpoint", - "target": "foobar.contoso.com", - "weight": 1, - "priority": 1, - "endpointLocation": "North Europe", "customHeaders": [ { "name": "header-2", "value": "value-2-overridden" } - ] + ], + "endpointLocation": "North Europe", + "endpointMonitorStatus": "CheckingEndpoint", + "endpointStatus": "Enabled", + "priority": 1, + "target": "foobar.contoso.com", + "weight": 1 } } - ] - } - } - }, - "200": { - "body": { - "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2583/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager6192", - "name": "azuresdkfornetautoresttrafficmanager6192", - "type": "Microsoft.Network/trafficManagerProfiles", - "location": "global", - "properties": { - "profileStatus": "Enabled", - "trafficRoutingMethod": "Performance", - "dnsConfig": { - "relativeName": "azuresdkfornetautoresttrafficmanager6192", - "fqdn": "azuresdkfornetautoresttrafficmanager6192.tmpreview.watmtest.azure-test.net", - "ttl": 35 - }, + ], "monitorConfig": { - "profileMonitorStatus": "CheckingEndpoints", - "protocol": "HTTP", - "port": 80, "path": "/testpath.aspx", - "intervalInSeconds": 10, - "toleratedNumberOfFailures": 2, - "timeoutInSeconds": 5, "customHeaders": [ { "name": "header-1", @@ -152,32 +107,79 @@ "name": "header-2", "value": "value-2" } - ] + ], + "intervalInSeconds": 10, + "port": 80, + "profileMonitorStatus": "CheckingEndpoints", + "timeoutInSeconds": 5, + "toleratedNumberOfFailures": 2, + "protocol": "HTTP" + }, + "profileStatus": "Enabled", + "trafficRoutingMethod": "Performance", + "trafficViewEnrollmentStatus": "Disabled" + } + } + }, + "201": { + "body": { + "name": "azuresdkfornetautoresttrafficmanager6192", + "type": "Microsoft.Network/trafficManagerProfiles", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2583/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager6192", + "location": "global", + "properties": { + "dnsConfig": { + "fqdn": "azuresdkfornetautoresttrafficmanager6192.tmpreview.watmtest.azure-test.net", + "relativeName": "azuresdkfornetautoresttrafficmanager6192", + "ttl": 35 }, - "trafficViewEnrollmentStatus": "Disabled", "endpoints": [ { - "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2583/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager6192/externalEndpoints/My external endpoint", "name": "My external endpoint", "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2583/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager6192/externalEndpoints/My external endpoint", "properties": { - "endpointStatus": "Enabled", - "endpointMonitorStatus": "CheckingEndpoint", - "target": "foobar.contoso.com", - "weight": 1, - "priority": 1, - "endpointLocation": "North Europe", "customHeaders": [ { "name": "header-2", "value": "value-2-overridden" } - ] + ], + "endpointLocation": "North Europe", + "endpointMonitorStatus": "CheckingEndpoint", + "endpointStatus": "Enabled", + "priority": 1, + "target": "foobar.contoso.com", + "weight": 1 } } - ] + ], + "monitorConfig": { + "path": "/testpath.aspx", + "customHeaders": [ + { + "name": "header-1", + "value": "value-1" + }, + { + "name": "header-2", + "value": "value-2" + } + ], + "intervalInSeconds": 10, + "port": 80, + "profileMonitorStatus": "CheckingEndpoints", + "timeoutInSeconds": 5, + "toleratedNumberOfFailures": 2, + "protocol": "HTTP" + }, + "profileStatus": "Enabled", + "trafficRoutingMethod": "Performance", + "trafficViewEnrollmentStatus": "Disabled" } } } - } + }, + "operationId": "Profiles_CreateOrUpdate", + "title": "Profile-PUT-WithCustomHeaders" } diff --git a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-PUT-WithEndpoints.json b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-PUT-WithEndpoints.json index 4e570a8a972c..dc7d4ed689c1 100644 --- a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-PUT-WithEndpoints.json +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-PUT-WithEndpoints.json @@ -1,122 +1,124 @@ { "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "azuresdkfornetautoresttrafficmanager2583", - "profileName": "azuresdkfornetautoresttrafficmanager6192", "api-version": "2022-04-01", "parameters": { + "location": "global", "properties": { - "profileStatus": "Enabled", - "trafficRoutingMethod": "Performance", "dnsConfig": { "relativeName": "azuresdkfornetautoresttrafficmanager6192", "ttl": 35 }, - "monitorConfig": { - "protocol": "HTTP", - "port": 80, - "path": "/testpath.aspx", - "intervalInSeconds": 10, - "timeoutInSeconds": 5, - "toleratedNumberOfFailures": 2 - }, "endpoints": [ { "name": "My external endpoint", "type": "Microsoft.network/TrafficManagerProfiles/ExternalEndpoints", "properties": { - "target": "foobar.contoso.com", + "endpointLocation": "North Europe", "endpointStatus": "Enabled", - "endpointLocation": "North Europe" + "target": "foobar.contoso.com" } } - ] - }, - "location": "global" - } + ], + "monitorConfig": { + "path": "/testpath.aspx", + "intervalInSeconds": 10, + "port": 80, + "timeoutInSeconds": 5, + "toleratedNumberOfFailures": 2, + "protocol": "HTTP" + }, + "profileStatus": "Enabled", + "trafficRoutingMethod": "Performance" + } + }, + "profileName": "azuresdkfornetautoresttrafficmanager6192", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager2583", + "subscriptionId": "{subscription-id}" }, "responses": { - "201": { + "200": { "body": { - "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2583/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager6192", "name": "azuresdkfornetautoresttrafficmanager6192", "type": "Microsoft.Network/trafficManagerProfiles", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2583/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager6192", "location": "global", "properties": { - "profileStatus": "Enabled", - "trafficRoutingMethod": "Performance", "dnsConfig": { - "relativeName": "azuresdkfornetautoresttrafficmanager6192", "fqdn": "azuresdkfornetautoresttrafficmanager6192.tmpreview.watmtest.azure-test.net", + "relativeName": "azuresdkfornetautoresttrafficmanager6192", "ttl": 35 }, - "monitorConfig": { - "profileMonitorStatus": "CheckingEndpoints", - "protocol": "HTTP", - "port": 80, - "path": "/testpath.aspx", - "intervalInSeconds": 10, - "toleratedNumberOfFailures": 2, - "timeoutInSeconds": 5 - }, "endpoints": [ { - "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2583/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager6192/externalEndpoints/My external endpoint", "name": "My external endpoint", "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2583/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager6192/externalEndpoints/My external endpoint", "properties": { - "endpointStatus": "Enabled", + "endpointLocation": "North Europe", "endpointMonitorStatus": "CheckingEndpoint", - "target": "foobar.contoso.com", - "weight": 1, + "endpointStatus": "Enabled", "priority": 1, - "endpointLocation": "North Europe" + "target": "foobar.contoso.com", + "weight": 1 } } - ] + ], + "monitorConfig": { + "path": "/testpath.aspx", + "intervalInSeconds": 10, + "port": 80, + "profileMonitorStatus": "CheckingEndpoints", + "timeoutInSeconds": 5, + "toleratedNumberOfFailures": 2, + "protocol": "HTTP" + }, + "profileStatus": "Enabled", + "trafficRoutingMethod": "Performance" } } }, - "200": { + "201": { "body": { - "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2583/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager6192", "name": "azuresdkfornetautoresttrafficmanager6192", "type": "Microsoft.Network/trafficManagerProfiles", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2583/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager6192", "location": "global", "properties": { - "profileStatus": "Enabled", - "trafficRoutingMethod": "Performance", "dnsConfig": { - "relativeName": "azuresdkfornetautoresttrafficmanager6192", "fqdn": "azuresdkfornetautoresttrafficmanager6192.tmpreview.watmtest.azure-test.net", + "relativeName": "azuresdkfornetautoresttrafficmanager6192", "ttl": 35 }, - "monitorConfig": { - "profileMonitorStatus": "CheckingEndpoints", - "protocol": "HTTP", - "port": 80, - "path": "/testpath.aspx", - "intervalInSeconds": 10, - "toleratedNumberOfFailures": 2, - "timeoutInSeconds": 5 - }, "endpoints": [ { - "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2583/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager6192/externalEndpoints/My external endpoint", "name": "My external endpoint", "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2583/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager6192/externalEndpoints/My external endpoint", "properties": { - "endpointStatus": "Enabled", + "endpointLocation": "North Europe", "endpointMonitorStatus": "CheckingEndpoint", - "target": "foobar.contoso.com", - "weight": 1, + "endpointStatus": "Enabled", "priority": 1, - "endpointLocation": "North Europe" + "target": "foobar.contoso.com", + "weight": 1 } } - ] + ], + "monitorConfig": { + "path": "/testpath.aspx", + "intervalInSeconds": 10, + "port": 80, + "profileMonitorStatus": "CheckingEndpoints", + "timeoutInSeconds": 5, + "toleratedNumberOfFailures": 2, + "protocol": "HTTP" + }, + "profileStatus": "Enabled", + "trafficRoutingMethod": "Performance" } } } - } + }, + "operationId": "Profiles_CreateOrUpdate", + "title": "Profile-PUT-WithEndpoints" } diff --git a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-PUT-WithNestedEndpoints.json b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-PUT-WithNestedEndpoints.json index 2bdcff76a956..b56be4adcfde 100644 --- a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-PUT-WithNestedEndpoints.json +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-PUT-WithNestedEndpoints.json @@ -1,173 +1,175 @@ { "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "myresourcegroup", - "profileName": "parentprofile", "api-version": "2022-04-01", "parameters": { + "location": "global", "properties": { - "profileStatus": "Enabled", - "trafficRoutingMethod": "Priority", "dnsConfig": { "relativeName": "parentprofile", "ttl": 35 }, - "monitorConfig": { - "protocol": "HTTP", - "port": 80, - "path": "/testpath.aspx", - "intervalInSeconds": 10, - "timeoutInSeconds": 5, - "toleratedNumberOfFailures": 2 - }, "endpoints": [ { "name": "MyFirstNestedEndpoint", "type": "Microsoft.Network/trafficManagerProfiles/nestedEndpoints", "properties": { - "target": "firstnestedprofile.tmpreview.watmtest.azure-test.net", "endpointStatus": "Enabled", - "weight": 1, - "priority": 1, "minChildEndpoints": 2, "minChildEndpointsIPv4": 1, - "minChildEndpointsIPv6": 2 + "minChildEndpointsIPv6": 2, + "priority": 1, + "target": "firstnestedprofile.tmpreview.watmtest.azure-test.net", + "weight": 1 } }, { "name": "MySecondNestedEndpoint", "type": "Microsoft.Network/trafficManagerProfiles/nestedEndpoints", "properties": { - "target": "secondnestedprofile.tmpreview.watmtest.azure-test.net", "endpointStatus": "Enabled", - "weight": 1, - "priority": 2, "minChildEndpoints": 2, "minChildEndpointsIPv4": 2, - "minChildEndpointsIPv6": 1 + "minChildEndpointsIPv6": 1, + "priority": 2, + "target": "secondnestedprofile.tmpreview.watmtest.azure-test.net", + "weight": 1 } } - ] - }, - "location": "global" - } + ], + "monitorConfig": { + "path": "/testpath.aspx", + "intervalInSeconds": 10, + "port": 80, + "timeoutInSeconds": 5, + "toleratedNumberOfFailures": 2, + "protocol": "HTTP" + }, + "profileStatus": "Enabled", + "trafficRoutingMethod": "Priority" + } + }, + "profileName": "parentprofile", + "resourceGroupName": "myresourcegroup", + "subscriptionId": "{subscription-id}" }, "responses": { - "201": { + "200": { "body": { - "id": "/subscriptions/{subscription-id}/resourceGroups/myresourcegroup/providers/Microsoft.Network/trafficManagerProfiles/parentprofile", "name": "parentprofile", "type": "Microsoft.Network/trafficManagerProfiles", + "id": "/subscriptions/{subscription-id}/resourceGroups/myresourcegroup/providers/Microsoft.Network/trafficManagerProfiles/parentprofile", "location": "global", "properties": { - "profileStatus": "Enabled", - "trafficRoutingMethod": "Priority", "dnsConfig": { - "relativeName": "parentprofile", "fqdn": "parentprofile.tmpreview.watmtest.azure-test.net", + "relativeName": "parentprofile", "ttl": 35 }, - "monitorConfig": { - "profileMonitorStatus": "CheckingEndpoints", - "protocol": "HTTP", - "port": 80, - "path": "/testpath.aspx", - "intervalInSeconds": 10, - "toleratedNumberOfFailures": 2, - "timeoutInSeconds": 5 - }, "endpoints": [ { - "id": "/subscriptions/{subscription-id}/resourceGroups/myresourcegroup/providers/Microsoft.Network/trafficManagerProfiles/parentprofile/nestedEndpoints/MyFirstNestedEndpoint", "name": "MyFirstNestedEndpoint", "type": "Microsoft.Network/trafficManagerProfiles/nestedEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/myresourcegroup/providers/Microsoft.Network/trafficManagerProfiles/parentprofile/nestedEndpoints/MyFirstNestedEndpoint", "properties": { - "endpointStatus": "Enabled", "endpointMonitorStatus": "CheckingEndpoint", - "target": "firstnestedprofile.tmpreview.watmtest.azure-test.net", - "weight": 1, - "priority": 1, + "endpointStatus": "Enabled", "minChildEndpoints": 2, "minChildEndpointsIPv4": 1, - "minChildEndpointsIPv6": 2 + "minChildEndpointsIPv6": 2, + "priority": 1, + "target": "firstnestedprofile.tmpreview.watmtest.azure-test.net", + "weight": 1 } }, { - "id": "/subscriptions/{subscription-id}/resourceGroups/myresourcegroup/providers/Microsoft.Network/trafficManagerProfiles/parentprofile/nestedEndpoints/MySecondNestedEndpoint", "name": "MySecondNestedEndpoint", "type": "Microsoft.Network/trafficManagerProfiles/nestedEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/myresourcegroup/providers/Microsoft.Network/trafficManagerProfiles/parentprofile/nestedEndpoints/MySecondNestedEndpoint", "properties": { - "endpointStatus": "Enabled", "endpointMonitorStatus": "CheckingEndpoint", - "target": "secondnestedprofile.tmpreview.watmtest.azure-test.net", - "weight": 1, - "priority": 1, + "endpointStatus": "Enabled", "minChildEndpoints": 2, "minChildEndpointsIPv4": 2, - "minChildEndpointsIPv6": 1 + "minChildEndpointsIPv6": 1, + "priority": 1, + "target": "secondnestedprofile.tmpreview.watmtest.azure-test.net", + "weight": 1 } } - ] + ], + "monitorConfig": { + "path": "/testpath.aspx", + "intervalInSeconds": 10, + "port": 80, + "profileMonitorStatus": "CheckingEndpoints", + "timeoutInSeconds": 5, + "toleratedNumberOfFailures": 2, + "protocol": "HTTP" + }, + "profileStatus": "Enabled", + "trafficRoutingMethod": "Priority" } } }, - "200": { + "201": { "body": { - "id": "/subscriptions/{subscription-id}/resourceGroups/myresourcegroup/providers/Microsoft.Network/trafficManagerProfiles/parentprofile", "name": "parentprofile", "type": "Microsoft.Network/trafficManagerProfiles", + "id": "/subscriptions/{subscription-id}/resourceGroups/myresourcegroup/providers/Microsoft.Network/trafficManagerProfiles/parentprofile", "location": "global", "properties": { - "profileStatus": "Enabled", - "trafficRoutingMethod": "Priority", "dnsConfig": { - "relativeName": "parentprofile", "fqdn": "parentprofile.tmpreview.watmtest.azure-test.net", + "relativeName": "parentprofile", "ttl": 35 }, - "monitorConfig": { - "profileMonitorStatus": "CheckingEndpoints", - "protocol": "HTTP", - "port": 80, - "path": "/testpath.aspx", - "intervalInSeconds": 10, - "toleratedNumberOfFailures": 2, - "timeoutInSeconds": 5 - }, "endpoints": [ { - "id": "/subscriptions/{subscription-id}/resourceGroups/myresourcegroup/providers/Microsoft.Network/trafficManagerProfiles/parentprofile/nestedEndpoints/MyFirstNestedEndpoint", "name": "MyFirstNestedEndpoint", "type": "Microsoft.Network/trafficManagerProfiles/nestedEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/myresourcegroup/providers/Microsoft.Network/trafficManagerProfiles/parentprofile/nestedEndpoints/MyFirstNestedEndpoint", "properties": { - "endpointStatus": "Enabled", "endpointMonitorStatus": "CheckingEndpoint", - "target": "firstnestedprofile.tmpreview.watmtest.azure-test.net", - "weight": 1, - "priority": 1, + "endpointStatus": "Enabled", "minChildEndpoints": 2, "minChildEndpointsIPv4": 1, - "minChildEndpointsIPv6": 2 + "minChildEndpointsIPv6": 2, + "priority": 1, + "target": "firstnestedprofile.tmpreview.watmtest.azure-test.net", + "weight": 1 } }, { - "id": "/subscriptions/{subscription-id}/resourceGroups/myresourcegroup/providers/Microsoft.Network/trafficManagerProfiles/parentprofile/nestedEndpoints/MySecondNestedEndpoint", "name": "MySecondNestedEndpoint", "type": "Microsoft.Network/trafficManagerProfiles/nestedEndpoints", + "id": "/subscriptions/{subscription-id}/resourceGroups/myresourcegroup/providers/Microsoft.Network/trafficManagerProfiles/parentprofile/nestedEndpoints/MySecondNestedEndpoint", "properties": { - "endpointStatus": "Enabled", "endpointMonitorStatus": "CheckingEndpoint", - "target": "secondnestedprofile.tmpreview.watmtest.azure-test.net", - "weight": 1, - "priority": 1, + "endpointStatus": "Enabled", "minChildEndpoints": 2, "minChildEndpointsIPv4": 2, - "minChildEndpointsIPv6": 1 + "minChildEndpointsIPv6": 1, + "priority": 1, + "target": "secondnestedprofile.tmpreview.watmtest.azure-test.net", + "weight": 1 } } - ] + ], + "monitorConfig": { + "path": "/testpath.aspx", + "intervalInSeconds": 10, + "port": 80, + "profileMonitorStatus": "CheckingEndpoints", + "timeoutInSeconds": 5, + "toleratedNumberOfFailures": 2, + "protocol": "HTTP" + }, + "profileStatus": "Enabled", + "trafficRoutingMethod": "Priority" } } } - } + }, + "operationId": "Profiles_CreateOrUpdate", + "title": "Profile-PUT-WithNestedEndpoints" } diff --git a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/TrafficManagerUserMetricsKeys-DELETE.json b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/TrafficManagerUserMetricsKeys-DELETE.json index d70aabb6ec1f..20658256d8be 100644 --- a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/TrafficManagerUserMetricsKeys-DELETE.json +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/TrafficManagerUserMetricsKeys-DELETE.json @@ -1,11 +1,13 @@ { "parameters": { - "subscriptionId": "{subscription-id}", - "api-version": "2022-04-01" + "api-version": "2022-04-01", + "subscriptionId": "{subscription-id}" }, "responses": { "200": { "body": {} } - } + }, + "operationId": "TrafficManagerUserMetricsKeys_Delete", + "title": "TrafficManagerUserMetricsKeys-DELETE" } diff --git a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/TrafficManagerUserMetricsKeys-GET.json b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/TrafficManagerUserMetricsKeys-GET.json index ff537e57863c..f72639a77d39 100644 --- a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/TrafficManagerUserMetricsKeys-GET.json +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/TrafficManagerUserMetricsKeys-GET.json @@ -1,18 +1,20 @@ { "parameters": { - "subscriptionId": "{subscription-id}", - "api-version": "2022-04-01" + "api-version": "2022-04-01", + "subscriptionId": "{subscription-id}" }, "responses": { "200": { "body": { - "id": "/providers/Microsoft.Network/trafficManagerUserMetricsKeys/default", "name": "default", "type": "Microsoft.Network/trafficManagerUserMetricsKeys", + "id": "/providers/Microsoft.Network/trafficManagerUserMetricsKeys/default", "properties": { "key": "9ea056eb38f145a0891b5d5dc15e9aa2" } } } - } + }, + "operationId": "TrafficManagerUserMetricsKeys_Get", + "title": "TrafficManagerUserMetricsKeys-GET" } diff --git a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/TrafficManagerUserMetricsKeys-PUT.json b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/TrafficManagerUserMetricsKeys-PUT.json index 3bc3e600dc34..71ff8a5f0848 100644 --- a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/TrafficManagerUserMetricsKeys-PUT.json +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/TrafficManagerUserMetricsKeys-PUT.json @@ -1,18 +1,20 @@ { "parameters": { - "subscriptionId": "{subscription-id}", - "api-version": "2022-04-01" + "api-version": "2022-04-01", + "subscriptionId": "{subscription-id}" }, "responses": { "201": { "body": { - "id": "/providers/Microsoft.Network/trafficManagerUserMetricsKeys/default", "name": "default", "type": "Microsoft.Network/trafficManagerUserMetricsKeys", + "id": "/providers/Microsoft.Network/trafficManagerUserMetricsKeys/default", "properties": { "key": "9ea056eb38f145a0891b5d5dc15e9aa2" } } } - } + }, + "operationId": "TrafficManagerUserMetricsKeys_CreateOrUpdate", + "title": "TrafficManagerUserMetricsKeys-PUT" } diff --git a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/trafficmanager.json b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/trafficmanager.json index 63e7f1b82c97..fa47411b1755 100644 --- a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/trafficmanager.json +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/trafficmanager.json @@ -2,305 +2,222 @@ "swagger": "2.0", "info": { "title": "TrafficManagerManagementClient", - "version": "2022-04-01" + "version": "2022-04-01", + "x-typespec-generated": [ + { + "emitter": "@azure-tools/typespec-autorest" + } + ] }, - "host": "management.azure.com", "schemes": [ "https" ], - "consumes": [ + "host": "management.azure.com", + "produces": [ "application/json" ], - "produces": [ + "consumes": [ "application/json" ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "description": "Azure Active Directory OAuth2 Flow.", + "flow": "implicit", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "tags": [ + { + "name": "Profiles" + }, + { + "name": "TrafficManagerGeographicHierarchies" + }, + { + "name": "UserMetricsModels" + } + ], "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficmanagerprofiles/{profileName}/{endpointType}/{endpointName}": { - "patch": { - "tags": [ - "Endpoints" - ], - "operationId": "Endpoints_Update", - "description": "Update a Traffic Manager endpoint.", + "/providers/Microsoft.Network/checkTrafficManagerNameAvailability": { + "post": { + "operationId": "Profiles_CheckTrafficManagerRelativeDnsNameAvailability", + "description": "Checks the availability of a Traffic Manager Relative DNS name.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "profileName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the Traffic Manager profile." - }, - { - "name": "endpointType", - "in": "path", - "required": true, - "type": "string", - "description": "The type of the Traffic Manager endpoint to be updated.", - "enum": [ - "AzureEndpoints", - "ExternalEndpoints", - "NestedEndpoints" - ], - "x-ms-enum": { - "name": "EndpointType", - "modelAsString": false - } - }, - { - "name": "endpointName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the Traffic Manager endpoint to be updated." + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { "name": "parameters", "in": "body", + "description": "The request body", "required": true, "schema": { - "$ref": "#/definitions/Endpoint" - }, - "description": "The Traffic Manager endpoint parameters supplied to the Update operation." - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "#/definitions/CheckTrafficManagerRelativeDnsNameAvailabilityParameters" + } } ], "responses": { "200": { - "description": "The updated Traffic Manager endpoint.", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/Endpoint" + "$ref": "#/definitions/TrafficManagerNameAvailability" } }, "default": { - "description": "Default response. It will be deserialized as per the Error definition.", + "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/CloudError" } } }, "x-ms-examples": { - "Endpoint-PATCH-External-Target": { - "$ref": "./examples/Endpoint-PATCH-External-Target.json" + "NameAvailabilityTest_NameAvailablePOST21": { + "$ref": "./examples/NameAvailabilityTest_NameAvailable-POST-example-21.json" + }, + "NameAvailabilityTest_NameNotAvailablePOST23": { + "$ref": "./examples/NameAvailabilityTest_NameNotAvailable-POST-example-23.json" } } - }, + } + }, + "/providers/Microsoft.Network/trafficManagerGeographicHierarchies/default": { "get": { + "operationId": "GeographicHierarchies_GetDefault", "tags": [ - "Endpoints" + "TrafficManagerGeographicHierarchies" ], - "operationId": "Endpoints_Get", - "description": "Gets a Traffic Manager endpoint.", + "description": "Gets the default Geographic Hierarchy used by the Geographic traffic routing method.", "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "profileName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the Traffic Manager profile." - }, - { - "name": "endpointType", - "in": "path", - "required": true, - "type": "string", - "description": "The type of the Traffic Manager endpoint.", - "enum": [ - "AzureEndpoints", - "ExternalEndpoints", - "NestedEndpoints" - ], - "x-ms-enum": { - "name": "EndpointType", - "modelAsString": false - } - }, - { - "name": "endpointName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the Traffic Manager endpoint." - }, { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { "200": { - "description": "The Traffic Manager endpoint.", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/Endpoint" + "$ref": "#/definitions/TrafficManagerGeographicHierarchy" } }, "default": { - "description": "Default response. It will be deserialized as per the Error definition.", + "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/CloudError" } } }, "x-ms-examples": { - "Endpoint-GET-External-WithGeoMapping": { - "$ref": "./examples/Endpoint-GET-External-WithGeoMapping.json" - }, - "Endpoint-GET-External-WithLocation": { - "$ref": "./examples/Endpoint-GET-External-WithLocation.json" - }, - "Endpoint-GET-External-WithSubnetMapping": { - "$ref": "./examples/Endpoint-GET-External-WithSubnetMapping.json" + "GeographicHierarchy-GET-default": { + "$ref": "./examples/GeographicHierarchy-GET-default.json" } } - }, - "put": { + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Network": { + "get": { + "operationId": "Profiles_ListBySubscription", "tags": [ - "Endpoints" + "Profiles" ], - "operationId": "Endpoints_CreateOrUpdate", - "description": "Create or update a Traffic Manager endpoint.", + "description": "Lists all Traffic Manager profiles within a subscription.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "name": "profileName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the Traffic Manager profile." + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ProfileListResult" + } }, - { - "name": "endpointType", - "in": "path", - "required": true, - "type": "string", - "description": "The type of the Traffic Manager endpoint to be created or updated.", - "enum": [ - "AzureEndpoints", - "ExternalEndpoints", - "NestedEndpoints" - ], - "x-ms-enum": { - "name": "EndpointType", - "modelAsString": false + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/CloudError" } + } + }, + "x-ms-examples": { + "ListBySubscription": { + "$ref": "./examples/Profile-GET-BySubscription.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/checkTrafficManagerNameAvailabilityV2": { + "post": { + "operationId": "Profiles_checkTrafficManagerNameAvailabilityV2", + "description": "Checks the availability of a Traffic Manager Relative DNS name.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "name": "endpointName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the Traffic Manager endpoint to be created or updated." + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { "name": "parameters", "in": "body", + "description": "The request body", "required": true, "schema": { - "$ref": "#/definitions/Endpoint" - }, - "description": "The Traffic Manager endpoint parameters supplied to the CreateOrUpdate operation." - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "#/definitions/CheckTrafficManagerRelativeDnsNameAvailabilityParameters" + } } ], "responses": { "200": { - "description": "The created or updated Endpoint.", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/Endpoint" - } - }, - "201": { - "description": "The created or updated Endpoint.", - "schema": { - "$ref": "#/definitions/Endpoint" + "$ref": "#/definitions/TrafficManagerNameAvailability" } }, "default": { - "description": "Default response. It will be deserialized as per the Error definition.", + "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/CloudError" } } }, "x-ms-examples": { - "Endpoint-PUT-External-WithGeoMapping": { - "$ref": "./examples/Endpoint-PUT-External-WithGeoMapping.json" - }, - "Endpoint-PUT-External-WithLocation": { - "$ref": "./examples/Endpoint-PUT-External-WithLocation.json" - }, - "Endpoint-PUT-External-WithSubnetMapping": { - "$ref": "./examples/Endpoint-PUT-External-WithSubnetMapping.json" - }, - "Endpoint-PUT-External-WithCustomHeaders": { - "$ref": "./examples/Endpoint-PUT-External-WithCustomHeaders.json" + "NameAvailabilityV2Test_NameAvailablePOST21": { + "$ref": "./examples/NameAvailabilityV2Test_NameAvailable-POST-example-21.json" }, - "Endpoint-PUT-External-WithAlwaysServe": { - "$ref": "./examples/Endpoint-PUT-External-WithAlwaysServe.json" + "NameAvailabilityV2Test_NameNotAvailablePOST23": { + "$ref": "./examples/NameAvailabilityV2Test_NameNotAvailable-POST-example-23.json" } } - }, - "delete": { + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/trafficManagerUserMetricsKeys/default": { + "get": { + "operationId": "TrafficManagerUserMetricsKeys_Get", "tags": [ - "Endpoints" + "UserMetricsModels" ], - "operationId": "Endpoints_Delete", - "description": "Deletes a Traffic Manager endpoint.", + "description": "Get the subscription-level key used for Real User Metrics collection.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "profileName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the Traffic Manager profile." - }, - { - "name": "endpointType", - "in": "path", - "required": true, - "type": "string", - "description": "The type of the Traffic Manager endpoint to be deleted.", - "enum": [ - "AzureEndpoints", - "ExternalEndpoints", - "NestedEndpoints" - ], - "x-ms-enum": { - "name": "EndpointType", - "modelAsString": false - } - }, - { - "name": "endpointName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the Traffic Manager endpoint to be deleted." - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" @@ -308,363 +225,279 @@ ], "responses": { "200": { - "description": "The Traffic Manager Endpoint was deleted successfully.", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/DeleteOperationResult" + "$ref": "#/definitions/UserMetricsModel" } }, - "204": { - "description": "The Traffic Manager Endpoint does not exist. It could have been deleted on a previous request." - }, "default": { - "description": "Default response. It will be deserialized as per the Error definition.", + "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/CloudError" } } }, "x-ms-examples": { - "Endpoint-DELETE-External": { - "$ref": "./examples/Endpoint-DELETE-External.json" + "TrafficManagerUserMetricsKeys-GET": { + "$ref": "./examples/TrafficManagerUserMetricsKeys-GET.json" } } - } - }, - "/providers/Microsoft.Network/checkTrafficManagerNameAvailability": { - "post": { + }, + "put": { + "operationId": "TrafficManagerUserMetricsKeys_CreateOrUpdate", "tags": [ - "Profiles" + "UserMetricsModels" ], - "operationId": "Profiles_CheckTrafficManagerRelativeDnsNameAvailability", - "description": "Checks the availability of a Traffic Manager Relative DNS name.", + "description": "Create or update a subscription-level key used for Real User Metrics collection.", "parameters": [ { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/CheckTrafficManagerRelativeDnsNameAvailabilityParameters" - }, - "description": "The Traffic Manager name parameters supplied to the CheckTrafficManagerNameAvailability operation." + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { - "200": { - "description": "The Traffic Manager Name Availability.", + "201": { + "description": "Resource 'UserMetricsModel' create operation succeeded", "schema": { - "$ref": "#/definitions/TrafficManagerNameAvailability" + "$ref": "#/definitions/UserMetricsModel" } }, "default": { - "description": "Default response. It will be deserialized as per the Error definition.", + "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/CloudError" } } }, "x-ms-examples": { - "NameAvailabilityTest_NameAvailablePOST21": { - "$ref": "./examples/NameAvailabilityTest_NameAvailable-POST-example-21.json" - }, - "NameAvailabilityTest_NameNotAvailablePOST23": { - "$ref": "./examples/NameAvailabilityTest_NameNotAvailable-POST-example-23.json" + "TrafficManagerUserMetricsKeys-PUT": { + "$ref": "./examples/TrafficManagerUserMetricsKeys-PUT.json" } } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Network/checkTrafficManagerNameAvailabilityV2": { - "post": { + }, + "delete": { + "operationId": "TrafficManagerUserMetricsKeys_Delete", "tags": [ - "Profiles" + "UserMetricsModels" ], - "operationId": "Profiles_checkTrafficManagerNameAvailabilityV2", - "description": "Checks the availability of a Traffic Manager Relative DNS name.", + "description": "Delete a subscription-level key used for Real User Metrics collection.", "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/CheckTrafficManagerRelativeDnsNameAvailabilityParameters" - }, - "description": "The Traffic Manager name parameters supplied to the CheckTrafficManagerNameAvailability operation." + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { "200": { - "description": "The Traffic Manager Name Availability.", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/TrafficManagerNameAvailability" + "$ref": "#/definitions/DeleteOperationResult" } }, "default": { - "description": "Default response. It will be deserialized as per the Error definition.", + "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/CloudError" } } }, "x-ms-examples": { - "NameAvailabilityV2Test_NameAvailablePOST21": { - "$ref": "./examples/NameAvailabilityV2Test_NameAvailable-POST-example-21.json" - }, - "NameAvailabilityV2Test_NameNotAvailablePOST23": { - "$ref": "./examples/NameAvailabilityV2Test_NameNotAvailable-POST-example-23.json" + "TrafficManagerUserMetricsKeys-DELETE": { + "$ref": "./examples/TrafficManagerUserMetricsKeys-DELETE.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficmanagerprofiles": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network": { "get": { + "operationId": "Profiles_Get", "tags": [ "Profiles" ], - "x-ms-pageable": { - "nextLinkName": null - }, - "operationId": "Profiles_ListByResourceGroup", - "description": "Lists all Traffic Manager profiles within a resource group.", + "description": "Gets a Traffic Manager profile.", "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" } ], "responses": { "200": { - "description": "The list of Traffic Manager profiles.", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/ProfileListResult" + "$ref": "#/definitions/Profile" } }, "default": { - "description": "Default response. It will be deserialized as per the Error definition.", + "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/CloudError" } } }, "x-ms-examples": { - "ListProfilesByResourceGroup": { - "$ref": "./examples/Profile-GET-ByResourceGroup.json" + "Profile-GET-WithEndpoints": { + "$ref": "./examples/Profile-GET-WithEndpoints.json" + }, + "Profile-GET-WithTrafficViewDisabled": { + "$ref": "./examples/Profile-GET-WithTrafficViewDisabled.json" + }, + "Profile-GET-WithTrafficViewEnabled": { + "$ref": "./examples/Profile-GET-WithTrafficViewEnabled.json" } } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Network/trafficmanagerprofiles": { - "get": { + }, + "put": { + "operationId": "Profiles_CreateOrUpdate", "tags": [ "Profiles" ], - "x-ms-pageable": { - "nextLinkName": null - }, - "operationId": "Profiles_ListBySubscription", - "description": "Lists all Traffic Manager profiles within a subscription.", + "description": "Create or update a Traffic Manager profile.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "The list of Traffic Manager profiles.", - "schema": { - "$ref": "#/definitions/ProfileListResult" - } }, - "default": { - "description": "Default response. It will be deserialized as per the Error definition.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "ListBySubscription": { - "$ref": "./examples/Profile-GET-BySubscription.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficmanagerprofiles/{profileName}": { - "get": { - "tags": [ - "Profiles" - ], - "operationId": "Profiles_Get", - "description": "Gets a Traffic Manager profile.", - "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "profileName", - "in": "path", + "name": "parameters", + "in": "body", + "description": "The Traffic Manager profile parameters supplied to the CreateOrUpdate operation.", "required": true, - "type": "string", - "description": "The name of the Traffic Manager profile." - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "schema": { + "$ref": "#/definitions/Profile" + } } ], "responses": { "200": { - "description": "The Traffic Manager profile.", + "description": "Resource 'Profile' update operation succeeded", + "schema": { + "$ref": "#/definitions/Profile" + } + }, + "201": { + "description": "Resource 'Profile' create operation succeeded", "schema": { "$ref": "#/definitions/Profile" } }, "default": { - "description": "Default response. It will be deserialized as per the Error definition.", + "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/CloudError" } } }, "x-ms-examples": { - "Profile-GET-WithEndpoints": { - "$ref": "./examples/Profile-GET-WithEndpoints.json" + "Profile-PUT-MultiValue": { + "$ref": "./examples/Profile-PUT-MultiValue.json" }, - "Profile-GET-WithTrafficViewEnabled": { - "$ref": "./examples/Profile-GET-WithTrafficViewEnabled.json" + "Profile-PUT-NoEndpoints": { + "$ref": "./examples/Profile-PUT-NoEndpoints.json" }, - "Profile-GET-WithTrafficViewDisabled": { - "$ref": "./examples/Profile-GET-WithTrafficViewDisabled.json" + "Profile-PUT-WithAliasing": { + "$ref": "./examples/Profile-PUT-WithAliasing.json" + }, + "Profile-PUT-WithCustomHeaders": { + "$ref": "./examples/Profile-PUT-WithCustomHeaders.json" + }, + "Profile-PUT-WithEndpoints": { + "$ref": "./examples/Profile-PUT-WithEndpoints.json" + }, + "Profile-PUT-WithNestedEndpoints": { + "$ref": "./examples/Profile-PUT-WithNestedEndpoints.json" } } }, - "put": { + "patch": { + "operationId": "Profiles_Update", "tags": [ "Profiles" ], - "operationId": "Profiles_CreateOrUpdate", - "description": "Create or update a Traffic Manager profile.", + "description": "Update a Traffic Manager profile.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "name": "profileName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the Traffic Manager profile." + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "parameters", "in": "body", + "description": "The Traffic Manager profile parameters supplied to the Update operation.", "required": true, "schema": { "$ref": "#/definitions/Profile" - }, - "description": "The Traffic Manager profile parameters supplied to the CreateOrUpdate operation." - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + } } ], "responses": { "200": { - "description": "The created or updated Traffic Manager profile.", - "schema": { - "$ref": "#/definitions/Profile" - } - }, - "201": { - "description": "The created or updated Traffic Manager profile.", + "description": "Azure operation completed successfully.", "schema": { "$ref": "#/definitions/Profile" } }, "default": { - "description": "Default response. It will be deserialized as per the Error definition.", + "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/CloudError" } } }, "x-ms-examples": { - "Profile-PUT-NoEndpoints": { - "$ref": "./examples/Profile-PUT-NoEndpoints.json" - }, - "Profile-PUT-WithEndpoints": { - "$ref": "./examples/Profile-PUT-WithEndpoints.json" - }, - "Profile-PUT-WithNestedEndpoints": { - "$ref": "./examples/Profile-PUT-WithNestedEndpoints.json" - }, - "Profile-PUT-WithCustomHeaders": { - "$ref": "./examples/Profile-PUT-WithCustomHeaders.json" - }, - "Profile-PUT-MultiValue": { - "$ref": "./examples/Profile-PUT-MultiValue.json" - }, - "Profile-PUT-WithAliasing": { - "$ref": "./examples/Profile-PUT-WithAliasing.json" + "Profile-PATCH-MonitorConfig": { + "$ref": "./examples/Profile-PATCH-MonitorConfig.json" } } }, "delete": { + "operationId": "Profiles_Delete", "tags": [ "Profiles" ], - "operationId": "Profiles_Delete", "description": "Deletes a Traffic Manager profile.", "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "profileName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the Traffic Manager profile to be deleted." - }, { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" } ], "responses": { "200": { - "description": "The Traffic Manager Profile was deleted successfully.", + "description": "Azure operation completed successfully.", "schema": { "$ref": "#/definitions/DeleteOperationResult" } }, "204": { - "description": "The profile does not exist. It could have been deleted on a previous request." + "description": "Resource does not exist." }, "default": { - "description": "Default response. It will be deserialized as per the Error definition.", + "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/CloudError" } @@ -675,102 +508,100 @@ "$ref": "./examples/Profile-DELETE.json" } } - }, - "patch": { - "tags": [ - "Profiles" - ], - "operationId": "Profiles_Update", - "description": "Update a Traffic Manager profile.", + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/heatMaps/{heatMapType}": { + "get": { + "operationId": "HeatMap_Get", + "description": "Gets latest heatmap for Traffic Manager profile.", "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "profileName", + "name": "heatMapType", "in": "path", + "description": "The type of the heatmap.", "required": true, "type": "string", - "description": "The name of the Traffic Manager profile." + "enum": [ + "default" + ], + "x-ms-enum": { + "name": "HeatMapType", + "modelAsString": false + } }, { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Profile" + "name": "topLeft", + "in": "query", + "description": "The top left latitude,longitude pair of the rectangular viewport to query for.", + "required": false, + "type": "array", + "items": { + "type": "number", + "format": "double" }, - "description": "The Traffic Manager profile parameters supplied to the Update operation." - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "collectionFormat": "csv", + "minItems": 2, + "maxItems": 2 }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "name": "botRight", + "in": "query", + "description": "The bottom right latitude,longitude pair of the rectangular viewport to query for.", + "required": false, + "type": "array", + "items": { + "type": "number", + "format": "double" + }, + "collectionFormat": "csv", + "minItems": 2, + "maxItems": 2 } ], "responses": { "200": { - "description": "The updated Traffic Manager profile.", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/Profile" + "$ref": "#/definitions/HeatMapModel" } }, "default": { - "description": "Default response. It will be deserialized as per the Error definition.", + "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/CloudError" } } }, "x-ms-examples": { - "Profile-PATCH-MonitorConfig": { - "$ref": "./examples/Profile-PATCH-MonitorConfig.json" + "HeatMap-GET": { + "$ref": "./examples/HeatMap-GET.json" + }, + "HeatMap-GET-With-Null-Values": { + "$ref": "./examples/HeatMap-GET-With-Null-Values.json" + }, + "HeatMap-GET-With-TopLeft-BotRight": { + "$ref": "./examples/HeatMap-GET-With-TopLeft-BotRight.json" } } } }, - "/providers/Microsoft.Network/trafficManagerGeographicHierarchies/default": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficmanagerprofiles/{profileName}/{endpointType}/{endpointName}": { "get": { - "tags": [ - "GeographicHierarchies" - ], - "operationId": "GeographicHierarchies_GetDefault", - "description": "Gets the default Geographic Hierarchy used by the Geographic traffic routing method.", + "operationId": "Endpoints_Get", + "description": "Gets a Traffic Manager endpoint.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The default Geographic Hierarchy.", - "schema": { - "$ref": "#/definitions/TrafficManagerGeographicHierarchy" - } }, - "default": { - "description": "Default response. It will be deserialized as per the Error definition.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "GeographicHierarchy-GET-default": { - "$ref": "./examples/GeographicHierarchy-GET-default.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficmanagerprofiles/{profileName}/heatMaps/{heatMapType}": { - "get": { - "tags": [ - "HeatMaps" - ], - "operationId": "HeatMap_Get", - "description": "Gets latest heatmap for Traffic Manager profile.", - "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, @@ -780,203 +611,497 @@ { "name": "profileName", "in": "path", + "description": "The name of the Traffic Manager profile.", "required": true, - "type": "string", - "description": "The name of the Traffic Manager profile." + "type": "string" }, { - "name": "heatMapType", + "name": "endpointType", "in": "path", + "description": "The type of the Traffic Manager endpoint.", "required": true, "type": "string", "enum": [ - "default" + "AzureEndpoints", + "ExternalEndpoints", + "NestedEndpoints" ], "x-ms-enum": { - "name": "HeatMapType", + "name": "EndpointType", "modelAsString": false - }, - "description": "The type of HeatMap for the Traffic Manager profile." - }, - { - "name": "topLeft", - "in": "query", - "required": false, - "allowEmptyValue": true, - "description": "The top left latitude,longitude pair of the rectangular viewport to query for.", - "type": "array", - "minItems": 2, - "maxItems": 2, - "collectionFormat": "csv", - "items": { - "type": "number", - "format": "double" } }, { - "name": "botRight", - "in": "query", - "required": false, - "allowEmptyValue": true, - "description": "The bottom right latitude,longitude pair of the rectangular viewport to query for.", - "type": "array", - "minItems": 2, - "maxItems": 2, - "collectionFormat": "csv", - "items": { - "type": "number", - "format": "double" - } - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "name": "endpointName", + "in": "path", + "description": "The name of the Traffic Manager endpoint.", + "required": true, + "type": "string" } ], "responses": { "200": { - "description": "The Traffic Manager heatmap.", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/HeatMapModel" + "$ref": "#/definitions/Endpoint" } }, "default": { - "description": "Default response. It will be deserialized as per the Error definition.", + "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/CloudError" } } }, "x-ms-examples": { - "HeatMap-GET": { - "$ref": "./examples/HeatMap-GET.json" + "Endpoint-GET-External-WithGeoMapping": { + "$ref": "./examples/Endpoint-GET-External-WithGeoMapping.json" }, - "HeatMap-GET-With-TopLeft-BotRight": { - "$ref": "./examples/HeatMap-GET-With-TopLeft-BotRight.json" + "Endpoint-GET-External-WithLocation": { + "$ref": "./examples/Endpoint-GET-External-WithLocation.json" }, - "HeatMap-GET-With-Null-Values": { - "$ref": "./examples/HeatMap-GET-With-Null-Values.json" + "Endpoint-GET-External-WithSubnetMapping": { + "$ref": "./examples/Endpoint-GET-External-WithSubnetMapping.json" } } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Network/trafficManagerUserMetricsKeys/default": { - "get": { - "tags": [ - "RealUserMetrics" - ], - "operationId": "TrafficManagerUserMetricsKeys_Get", - "description": "Get the subscription-level key used for Real User Metrics collection.", + }, + "put": { + "operationId": "Endpoints_CreateOrUpdate", + "description": "Create or update a Traffic Manager endpoint.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "profileName", + "in": "path", + "description": "The name of the Traffic Manager profile.", + "required": true, + "type": "string" + }, + { + "name": "endpointType", + "in": "path", + "description": "The type of the Traffic Manager endpoint.", + "required": true, + "type": "string", + "enum": [ + "AzureEndpoints", + "ExternalEndpoints", + "NestedEndpoints" + ], + "x-ms-enum": { + "name": "EndpointType", + "modelAsString": false + } + }, + { + "name": "endpointName", + "in": "path", + "description": "The name of the Traffic Manager endpoint.", + "required": true, + "type": "string" + }, + { + "name": "parameters", + "in": "body", + "description": "The Traffic Manager endpoint parameters supplied to the CreateOrUpdate operation.", + "required": true, + "schema": { + "$ref": "#/definitions/Endpoint" + } } ], "responses": { "200": { - "description": "The subscription-level Traffic Manager Real User Metrics key.", + "description": "Resource 'Endpoint' update operation succeeded", "schema": { - "$ref": "#/definitions/UserMetricsModel" + "$ref": "#/definitions/Endpoint" + } + }, + "201": { + "description": "Resource 'Endpoint' create operation succeeded", + "schema": { + "$ref": "#/definitions/Endpoint" } }, "default": { - "description": "Default response. It will be deserialized as per the Error definition.", + "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/CloudError" } } }, "x-ms-examples": { - "TrafficManagerUserMetricsKeys-GET": { - "$ref": "./examples/TrafficManagerUserMetricsKeys-GET.json" + "Endpoint-PUT-External-WithAlwaysServe": { + "$ref": "./examples/Endpoint-PUT-External-WithAlwaysServe.json" + }, + "Endpoint-PUT-External-WithCustomHeaders": { + "$ref": "./examples/Endpoint-PUT-External-WithCustomHeaders.json" + }, + "Endpoint-PUT-External-WithGeoMapping": { + "$ref": "./examples/Endpoint-PUT-External-WithGeoMapping.json" + }, + "Endpoint-PUT-External-WithLocation": { + "$ref": "./examples/Endpoint-PUT-External-WithLocation.json" + }, + "Endpoint-PUT-External-WithSubnetMapping": { + "$ref": "./examples/Endpoint-PUT-External-WithSubnetMapping.json" } } }, - "put": { - "tags": [ - "RealUserMetrics" - ], - "operationId": "TrafficManagerUserMetricsKeys_CreateOrUpdate", - "description": "Create or update a subscription-level key used for Real User Metrics collection.", + "patch": { + "operationId": "Endpoints_Update", + "description": "Update a Traffic Manager endpoint.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "profileName", + "in": "path", + "description": "The name of the Traffic Manager profile.", + "required": true, + "type": "string" + }, + { + "name": "endpointType", + "in": "path", + "description": "The type of the Traffic Manager endpoint.", + "required": true, + "type": "string", + "enum": [ + "AzureEndpoints", + "ExternalEndpoints", + "NestedEndpoints" + ], + "x-ms-enum": { + "name": "EndpointType", + "modelAsString": false + } + }, + { + "name": "endpointName", + "in": "path", + "description": "The name of the Traffic Manager endpoint.", + "required": true, + "type": "string" + }, + { + "name": "parameters", + "in": "body", + "description": "The Traffic Manager endpoint parameters supplied to the Update operation.", + "required": true, + "schema": { + "$ref": "#/definitions/Endpoint" + } } ], "responses": { - "201": { - "description": "A new subscription-level key has been created for Real User Metrics collection.", + "200": { + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/UserMetricsModel" + "$ref": "#/definitions/Endpoint" } }, "default": { - "description": "Default response. It will be deserialized as per the Error definition.", + "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/CloudError" } } }, "x-ms-examples": { - "TrafficManagerUserMetricsKeys-PUT": { - "$ref": "./examples/TrafficManagerUserMetricsKeys-PUT.json" + "Endpoint-PATCH-External-Target": { + "$ref": "./examples/Endpoint-PATCH-External-Target.json" } } }, "delete": { - "tags": [ - "RealUserMetrics" - ], - "operationId": "TrafficManagerUserMetricsKeys_Delete", - "description": "Delete a subscription-level key used for Real User Metrics collection.", + "operationId": "Endpoints_Delete", + "description": "Deletes a Traffic Manager endpoint.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "profileName", + "in": "path", + "description": "The name of the Traffic Manager profile.", + "required": true, + "type": "string" + }, + { + "name": "endpointType", + "in": "path", + "description": "The type of the Traffic Manager endpoint.", + "required": true, + "type": "string", + "enum": [ + "AzureEndpoints", + "ExternalEndpoints", + "NestedEndpoints" + ], + "x-ms-enum": { + "name": "EndpointType", + "modelAsString": false + } + }, + { + "name": "endpointName", + "in": "path", + "description": "The name of the Traffic Manager endpoint.", + "required": true, + "type": "string" } ], "responses": { "200": { - "description": "The Traffic Manager Real User Metrics key was deleted successfully.", + "description": "Azure operation completed successfully.", "schema": { "$ref": "#/definitions/DeleteOperationResult" } }, + "204": { + "description": "Resource does not exist." + }, "default": { - "description": "Default response. It will be deserialized as per the Error definition.", + "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/CloudError" } } }, "x-ms-examples": { - "TrafficManagerUserMetricsKeys-DELETE": { - "$ref": "./examples/TrafficManagerUserMetricsKeys-DELETE.json" + "Endpoint-DELETE-External": { + "$ref": "./examples/Endpoint-DELETE-External.json" } } } } }, "definitions": { + "AllowedEndpointRecordType": { + "type": "string", + "description": "The allowed type DNS record types for this profile.", + "enum": [ + "DomainName", + "IPv4Address", + "IPv6Address", + "Any" + ], + "x-ms-enum": { + "name": "AllowedEndpointRecordType", + "modelAsString": true, + "values": [ + { + "name": "DomainName", + "value": "DomainName" + }, + { + "name": "IPv4Address", + "value": "IPv4Address" + }, + { + "name": "IPv6Address", + "value": "IPv6Address" + }, + { + "name": "Any", + "value": "Any" + } + ] + } + }, + "AlwaysServe": { + "type": "string", + "description": "If Always Serve is enabled, probing for endpoint health will be disabled and endpoints will be included in the traffic routing method.", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "AlwaysServe", + "modelAsString": true, + "values": [ + { + "name": "Enabled", + "value": "Enabled" + }, + { + "name": "Disabled", + "value": "Disabled" + } + ] + } + }, + "CheckTrafficManagerRelativeDnsNameAvailabilityParameters": { + "type": "object", + "description": "Parameters supplied to check Traffic Manager name operation.", + "properties": { + "name": { + "type": "string", + "description": "The name of the resource." + }, + "type": { + "type": "string", + "description": "The type of the resource." + } + } + }, + "CloudError": { + "type": "object", + "description": "An error returned by the Azure Resource Manager", + "properties": { + "error": { + "$ref": "#/definitions/CloudErrorBody", + "description": "The content of the error." + } + }, + "x-ms-external": true + }, + "CloudErrorBody": { + "type": "object", + "description": "The content of an error returned by the Azure Resource Manager", + "properties": { + "code": { + "type": "string", + "description": "Error code" + }, + "message": { + "type": "string", + "description": "Error message" + }, + "target": { + "type": "string", + "description": "Error target" + }, + "details": { + "type": "array", + "description": "Error details", + "items": { + "$ref": "#/definitions/CloudErrorBody" + } + } + }, + "x-ms-external": true + }, "DeleteOperationResult": { + "type": "object", + "description": "The result of the request or operation.", "properties": { "boolean": { "type": "boolean", - "x-ms-client-name": "operationResult", + "description": "The result of the operation or request.", "readOnly": true, - "description": "The result of the operation or request." + "x-ms-client-name": "operationResult" + } + } + }, + "DnsConfig": { + "type": "object", + "description": "Class containing DNS settings in a Traffic Manager profile.", + "properties": { + "relativeName": { + "type": "string", + "description": "The relative DNS name provided by this Traffic Manager profile. This value is combined with the DNS domain name used by Azure Traffic Manager to form the fully-qualified domain name (FQDN) of the profile." + }, + "fqdn": { + "type": "string", + "description": "The fully-qualified domain name (FQDN) of the Traffic Manager profile. This is formed from the concatenation of the RelativeName with the DNS domain used by Azure Traffic Manager.", + "readOnly": true + }, + "ttl": { + "type": "integer", + "format": "int64", + "description": "The DNS Time-To-Live (TTL), in seconds. This informs the local DNS resolvers and DNS clients how long to cache DNS responses provided by this Traffic Manager profile." + } + } + }, + "Endpoint": { + "type": "object", + "description": "Class representing a Traffic Manager endpoint.", + "properties": { + "properties": { + "$ref": "#/definitions/EndpointProperties", + "description": "The properties of the Traffic Manager endpoint.", + "x-ms-client-flatten": true } }, - "description": "The result of the request or operation." + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ] + }, + "EndpointMonitorStatus": { + "type": "string", + "description": "The monitoring status of the endpoint.", + "enum": [ + "CheckingEndpoint", + "Online", + "Degraded", + "Disabled", + "Inactive", + "Stopped", + "Unmonitored" + ], + "x-ms-enum": { + "name": "EndpointMonitorStatus", + "modelAsString": true, + "values": [ + { + "name": "CheckingEndpoint", + "value": "CheckingEndpoint" + }, + { + "name": "Online", + "value": "Online" + }, + { + "name": "Degraded", + "value": "Degraded" + }, + { + "name": "Disabled", + "value": "Disabled" + }, + { + "name": "Inactive", + "value": "Inactive" + }, + { + "name": "Stopped", + "value": "Stopped" + }, + { + "name": "Unmonitored", + "value": "Unmonitored" + } + ] + } }, "EndpointProperties": { + "type": "object", + "description": "Class representing a Traffic Manager endpoint properties.", "properties": { "targetResourceId": { "type": "string", @@ -987,16 +1112,8 @@ "description": "The fully-qualified DNS name or IP address of the endpoint. Traffic Manager returns this value in DNS responses to direct traffic to this endpoint." }, "endpointStatus": { - "type": "string", - "description": "The status of the endpoint. If the endpoint is Enabled, it is probed for endpoint health and is included in the traffic routing method.", - "enum": [ - "Enabled", - "Disabled" - ], - "x-ms-enum": { - "name": "EndpointStatus", - "modelAsString": true - } + "$ref": "#/definitions/EndpointStatus", + "description": "The status of the endpoint. If the endpoint is Enabled, it is probed for endpoint health and is included in the traffic routing method." }, "weight": { "type": "integer", @@ -1013,21 +1130,8 @@ "description": "Specifies the location of the external or nested endpoints when using the 'Performance' traffic routing method." }, "endpointMonitorStatus": { - "type": "string", - "description": "The monitoring status of the endpoint.", - "enum": [ - "CheckingEndpoint", - "Online", - "Degraded", - "Disabled", - "Inactive", - "Stopped", - "Unmonitored" - ], - "x-ms-enum": { - "name": "EndpointMonitorStatus", - "modelAsString": true - } + "$ref": "#/definitions/EndpointMonitorStatus", + "description": "The monitoring status of the endpoint." }, "minChildEndpoints": { "type": "integer", @@ -1046,145 +1150,130 @@ }, "geoMapping": { "type": "array", + "description": "The list of countries/regions mapped to this endpoint when using the 'Geographic' traffic routing method. Please consult Traffic Manager Geographic documentation for a full list of accepted values.", "items": { "type": "string" - }, - "description": "The list of countries/regions mapped to this endpoint when using the 'Geographic' traffic routing method. Please consult Traffic Manager Geographic documentation for a full list of accepted values." + } }, "subnets": { "type": "array", + "description": "The list of subnets, IP addresses, and/or address ranges mapped to this endpoint when using the 'Subnet' traffic routing method. An empty list will match all ranges not covered by other endpoints.", "items": { - "type": "object", - "properties": { - "first": { - "type": "string", - "description": "First address in the subnet." - }, - "last": { - "type": "string", - "description": "Last address in the subnet." - }, - "scope": { - "type": "integer", - "description": "Block size (number of leading bits in the subnet mask)." - } - }, - "description": "Subnet first address, scope, and/or last address." - }, - "description": "The list of subnets, IP addresses, and/or address ranges mapped to this endpoint when using the 'Subnet' traffic routing method. An empty list will match all ranges not covered by other endpoints." + "$ref": "#/definitions/EndpointPropertiesSubnetsItem" + } }, "customHeaders": { "type": "array", + "description": "List of custom headers.", "items": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "Header name." - }, - "value": { - "type": "string", - "description": "Header value." - } - }, - "description": "Custom header name and value." - }, - "description": "List of custom headers." + "$ref": "#/definitions/EndpointPropertiesCustomHeadersItem" + } }, "alwaysServe": { - "type": "string", - "description": "If Always Serve is enabled, probing for endpoint health will be disabled and endpoints will be included in the traffic routing method.", - "enum": [ - "Enabled", - "Disabled" - ], - "x-ms-enum": { - "name": "AlwaysServe", - "modelAsString": true - } + "$ref": "#/definitions/AlwaysServe", + "description": "If Always Serve is enabled, probing for endpoint health will be disabled and endpoints will be included in the traffic routing method." } - }, - "description": "Class representing a Traffic Manager endpoint properties." + } }, - "HeatMapModel": { + "EndpointPropertiesCustomHeadersItem": { + "type": "object", + "description": "Custom header name and value.", "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/HeatMapProperties", - "description": "The properties of the Traffic Manager HeatMap." + "name": { + "type": "string", + "description": "Header name." + }, + "value": { + "type": "string", + "description": "Header value." } - }, - "allOf": [ - { - "$ref": "#/definitions/ProxyResource" + } + }, + "EndpointPropertiesSubnetsItem": { + "type": "object", + "description": "Subnet first address, scope, and/or last address.", + "properties": { + "first": { + "type": "string", + "description": "First address in the subnet." + }, + "last": { + "type": "string", + "description": "Last address in the subnet." + }, + "scope": { + "type": "integer", + "format": "int32", + "description": "Block size (number of leading bits in the subnet mask)." } + } + }, + "EndpointStatus": { + "type": "string", + "description": "The status of the endpoint. If the endpoint is Enabled, it is probed for endpoint health and is included in the traffic routing method.", + "enum": [ + "Enabled", + "Disabled" ], - "description": "Class representing a Traffic Manager HeatMap." + "x-ms-enum": { + "name": "EndpointStatus", + "modelAsString": true, + "values": [ + { + "name": "Enabled", + "value": "Enabled" + }, + { + "name": "Disabled", + "value": "Disabled" + } + ] + } }, - "UserMetricsModel": { + "GeographicHierarchyProperties": { + "type": "object", + "description": "Class representing the properties of the Geographic hierarchy used with the Geographic traffic routing method.", "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/UserMetricsProperties", - "description": "The properties of the Traffic Manager User Metrics." - } - }, - "allOf": [ - { - "$ref": "#/definitions/ProxyResource" + "geographicHierarchy": { + "$ref": "#/definitions/Region", + "description": "The region at the root of the hierarchy from all the regions in the hierarchy can be retrieved." } - ], - "description": "Class representing Traffic Manager User Metrics." + } }, - "QueryExperience": { + "HeatMapEndpoint": { + "type": "object", + "description": "Class which is a sparse representation of a Traffic Manager endpoint.", "properties": { - "endpointId": { - "type": "integer", - "description": "The id of the endpoint from the 'endpoints' array which these queries were routed to." + "resourceId": { + "type": "string", + "description": "The ARM Resource ID of this Traffic Manager endpoint." }, - "queryCount": { + "endpointId": { "type": "integer", - "description": "The number of queries originating from this location." - }, - "latency": { - "type": "number", - "format": "double", - "description": "The latency experienced by queries originating from this location." + "format": "int32", + "description": "A number uniquely identifying this endpoint in query experiences." } - }, - "required": [ - "endpointId", - "queryCount" - ], - "description": "Class representing a Traffic Manager HeatMap query experience properties." + } }, - "TrafficFlow": { + "HeatMapModel": { + "type": "object", + "description": "Class representing a Traffic Manager HeatMap.", "properties": { - "sourceIp": { - "type": "string", - "description": "The IP address that this query experience originated from." - }, - "latitude": { - "type": "number", - "format": "double", - "description": "The approximate latitude that these queries originated from." - }, - "longitude": { - "type": "number", - "format": "double", - "description": "The approximate longitude that these queries originated from." - }, - "queryExperiences": { - "type": "array", - "description": "The query experiences produced in this HeatMap calculation.", - "items": { - "$ref": "#/definitions/QueryExperience" - } + "properties": { + "$ref": "#/definitions/HeatMapProperties", + "description": "The properties of the Traffic Manager HeatMap.", + "x-ms-client-flatten": true } }, - "description": "Class representing a Traffic Manager HeatMap traffic flow properties." + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ] }, "HeatMapProperties": { + "type": "object", + "description": "Class representing a Traffic Manager HeatMap properties.", "properties": { "startTime": { "type": "string", @@ -1210,98 +1299,19 @@ "$ref": "#/definitions/TrafficFlow" } } - }, - "description": "Class representing a Traffic Manager HeatMap properties." - }, - "HeatMapEndpoint": { - "properties": { - "resourceId": { - "type": "string", - "description": "The ARM Resource ID of this Traffic Manager endpoint." - }, - "endpointId": { - "type": "integer", - "description": "A number uniquely identifying this endpoint in query experiences." - } - }, - "description": "Class which is a sparse representation of a Traffic Manager endpoint." - }, - "Endpoint": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/EndpointProperties", - "description": "The properties of the Traffic Manager endpoint." - } - }, - "allOf": [ - { - "$ref": "#/definitions/ProxyResource" - } - ], - "description": "Class representing a Traffic Manager endpoint." - }, - "CheckTrafficManagerRelativeDnsNameAvailabilityParameters": { - "properties": { - "name": { - "type": "string", - "description": "The name of the resource." - }, - "type": { - "type": "string", - "description": "The type of the resource." - } - }, - "description": "Parameters supplied to check Traffic Manager name operation." - }, - "DnsConfig": { - "properties": { - "relativeName": { - "type": "string", - "description": "The relative DNS name provided by this Traffic Manager profile. This value is combined with the DNS domain name used by Azure Traffic Manager to form the fully-qualified domain name (FQDN) of the profile." - }, - "fqdn": { - "type": "string", - "readOnly": true, - "description": "The fully-qualified domain name (FQDN) of the Traffic Manager profile. This is formed from the concatenation of the RelativeName with the DNS domain used by Azure Traffic Manager." - }, - "ttl": { - "type": "integer", - "format": "int64", - "description": "The DNS Time-To-Live (TTL), in seconds. This informs the local DNS resolvers and DNS clients how long to cache DNS responses provided by this Traffic Manager profile." - } - }, - "description": "Class containing DNS settings in a Traffic Manager profile." + } }, "MonitorConfig": { + "type": "object", + "description": "Class containing endpoint monitoring settings in a Traffic Manager profile.", "properties": { "profileMonitorStatus": { - "type": "string", - "description": "The profile-level monitoring status of the Traffic Manager profile.", - "enum": [ - "CheckingEndpoints", - "Online", - "Degraded", - "Disabled", - "Inactive" - ], - "x-ms-enum": { - "name": "ProfileMonitorStatus", - "modelAsString": true - } + "$ref": "#/definitions/ProfileMonitorStatus", + "description": "The profile-level monitoring status of the Traffic Manager profile." }, "protocol": { - "type": "string", - "description": "The protocol (HTTP, HTTPS or TCP) used to probe for endpoint health.", - "enum": [ - "HTTP", - "HTTPS", - "TCP" - ], - "x-ms-enum": { - "name": "MonitorProtocol", - "modelAsString": true - } + "$ref": "#/definitions/MonitorProtocol", + "description": "The protocol (HTTP, HTTPS or TCP) used to probe for endpoint health." }, "port": { "type": "integer", @@ -1329,72 +1339,162 @@ }, "customHeaders": { "type": "array", + "description": "List of custom headers.", "items": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "Header name." - }, - "value": { - "type": "string", - "description": "Header value." - } - }, - "description": "Custom header name and value." - }, - "description": "List of custom headers." + "$ref": "#/definitions/MonitorConfigCustomHeadersItem" + } }, "expectedStatusCodeRanges": { "type": "array", + "description": "List of expected status code ranges.", "items": { - "type": "object", - "properties": { - "min": { - "type": "integer", - "description": "Min status code." - }, - "max": { - "type": "integer", - "description": "Max status code." - } - }, - "description": "Min and max value of a status code range." + "$ref": "#/definitions/MonitorConfigExpectedStatusCodeRangesItem" + } + } + } + }, + "MonitorConfigCustomHeadersItem": { + "type": "object", + "description": "Custom header name and value.", + "properties": { + "name": { + "type": "string", + "description": "Header name." + }, + "value": { + "type": "string", + "description": "Header value." + } + } + }, + "MonitorConfigExpectedStatusCodeRangesItem": { + "type": "object", + "description": "Min and max value of a status code range.", + "properties": { + "min": { + "type": "integer", + "format": "int32", + "description": "Min status code." + }, + "max": { + "type": "integer", + "format": "int32", + "description": "Max status code." + } + } + }, + "MonitorProtocol": { + "type": "string", + "description": "The protocol (HTTP, HTTPS or TCP) used to probe for endpoint health.", + "enum": [ + "HTTP", + "HTTPS", + "TCP" + ], + "x-ms-enum": { + "name": "MonitorProtocol", + "modelAsString": true, + "values": [ + { + "name": "HTTP", + "value": "HTTP" + }, + { + "name": "HTTPS", + "value": "HTTPS" }, - "description": "List of expected status code ranges." + { + "name": "TCP", + "value": "TCP" + } + ] + } + }, + "Profile": { + "type": "object", + "description": "Class representing a Traffic Manager profile.", + "properties": { + "properties": { + "$ref": "#/definitions/ProfileProperties", + "description": "The properties of the Traffic Manager profile.", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "#/definitions/TrackedResource" + } + ] + }, + "ProfileListResult": { + "type": "object", + "description": "The response of a Profile list operation.", + "properties": { + "value": { + "type": "array", + "description": "The Profile items on this page", + "items": { + "$ref": "#/definitions/Profile" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" } }, - "description": "Class containing endpoint monitoring settings in a Traffic Manager profile." + "required": [ + "value" + ] + }, + "ProfileMonitorStatus": { + "type": "string", + "description": "The profile-level monitoring status of the Traffic Manager profile.", + "enum": [ + "CheckingEndpoints", + "Online", + "Degraded", + "Disabled", + "Inactive" + ], + "x-ms-enum": { + "name": "ProfileMonitorStatus", + "modelAsString": true, + "values": [ + { + "name": "CheckingEndpoints", + "value": "CheckingEndpoints" + }, + { + "name": "Online", + "value": "Online" + }, + { + "name": "Degraded", + "value": "Degraded" + }, + { + "name": "Disabled", + "value": "Disabled" + }, + { + "name": "Inactive", + "value": "Inactive" + } + ] + } }, "ProfileProperties": { + "type": "object", + "description": "Class representing the Traffic Manager profile properties.", "properties": { "profileStatus": { - "type": "string", - "description": "The status of the Traffic Manager profile.", - "enum": [ - "Enabled", - "Disabled" - ], - "x-ms-enum": { - "name": "ProfileStatus", - "modelAsString": true - } + "$ref": "#/definitions/ProfileStatus", + "description": "The status of the Traffic Manager profile." }, "trafficRoutingMethod": { - "type": "string", - "description": "The traffic routing method of the Traffic Manager profile.", - "enum": [ - "Performance", - "Priority", - "Weighted", - "Geographic", - "MultiValue", - "Subnet" - ], - "x-ms-enum": { - "name": "TrafficRoutingMethod", - "modelAsString": true - } + "$ref": "#/definitions/TrafficRoutingMethod", + "description": "The traffic routing method of the Traffic Manager profile." }, "dnsConfig": { "$ref": "#/definitions/DnsConfig", @@ -1406,105 +1506,88 @@ }, "endpoints": { "type": "array", + "description": "The list of endpoints in the Traffic Manager profile.", "items": { "$ref": "#/definitions/Endpoint" - }, - "description": "The list of endpoints in the Traffic Manager profile." + } }, "trafficViewEnrollmentStatus": { - "type": "string", - "description": "Indicates whether Traffic View is 'Enabled' or 'Disabled' for the Traffic Manager profile. Null, indicates 'Disabled'. Enabling this feature will increase the cost of the Traffic Manage profile.", - "enum": [ - "Enabled", - "Disabled" - ], - "x-ms-enum": { - "name": "TrafficViewEnrollmentStatus", - "modelAsString": true - } + "$ref": "#/definitions/TrafficViewEnrollmentStatus", + "description": "Indicates whether Traffic View is 'Enabled' or 'Disabled' for the Traffic Manager profile. Null, indicates 'Disabled'. Enabling this feature will increase the cost of the Traffic Manage profile." }, "allowedEndpointRecordTypes": { "type": "array", + "description": "The list of allowed endpoint record types.", "items": { "$ref": "#/definitions/AllowedEndpointRecordType" - }, - "description": "The list of allowed endpoint record types." + } }, "maxReturn": { "type": "integer", - "description": "Maximum number of endpoints to be returned for MultiValue routing type.", - "format": "int64" + "format": "int64", + "description": "Maximum number of endpoints to be returned for MultiValue routing type." } - }, - "description": "Class representing the Traffic Manager profile properties." + } }, - "AllowedEndpointRecordType": { - "description": "The allowed type DNS record types for this profile.", + "ProfileStatus": { "type": "string", + "description": "The status of the Traffic Manager profile.", "enum": [ - "DomainName", - "IPv4Address", - "IPv6Address", - "Any" + "Enabled", + "Disabled" ], "x-ms-enum": { - "name": "AllowedEndpointRecordType", - "modelAsString": true + "name": "ProfileStatus", + "modelAsString": true, + "values": [ + { + "name": "Enabled", + "value": "Enabled" + }, + { + "name": "Disabled", + "value": "Disabled" + } + ] } }, - "Profile": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ProfileProperties", - "description": "The properties of the Traffic Manager profile." - } - }, + "ProxyResource": { + "type": "object", + "description": "The resource model definition for a ARM proxy resource. It will have everything other than required location and tags", "allOf": [ { - "$ref": "#/definitions/TrackedResource" - } - ], - "description": "Class representing a Traffic Manager profile." - }, - "ProfileListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Profile" - }, - "description": "Gets the list of Traffic manager profiles." + "$ref": "#/definitions/Resource" } - }, - "description": "The list Traffic Manager profiles operation response." + ] }, - "TrafficManagerNameAvailability": { + "QueryExperience": { + "type": "object", + "description": "Class representing a Traffic Manager HeatMap query experience properties.", "properties": { - "name": { - "type": "string", - "description": "The relative name." - }, - "type": { - "type": "string", - "description": "Traffic Manager profile resource type." - }, - "nameAvailable": { - "type": "boolean", - "description": "Describes whether the relative name is available or not." + "endpointId": { + "type": "integer", + "format": "int32", + "description": "The id of the endpoint from the 'endpoints' array which these queries were routed to." }, - "reason": { - "type": "string", - "description": "The reason why the name is not available, when applicable." + "queryCount": { + "type": "integer", + "format": "int32", + "description": "The number of queries originating from this location." }, - "message": { - "type": "string", - "description": "Descriptive message that explains why the name is not available, when applicable." + "latency": { + "type": "number", + "format": "double", + "description": "The latency experienced by queries originating from this location." } }, - "description": "Class representing a Traffic Manager Name Availability response." + "required": [ + "endpointId", + "queryCount" + ] }, "Region": { + "type": "object", + "description": "Class representing a region in the Geographic hierarchy used with the Geographic traffic routing method.", "properties": { "code": { "type": "string", @@ -1516,87 +1599,54 @@ }, "regions": { "type": "array", + "description": "The list of Regions grouped under this Region in the Geographic Hierarchy.", "items": { "$ref": "#/definitions/Region" - }, - "description": "The list of Regions grouped under this Region in the Geographic Hierarchy." - } - }, - "description": "Class representing a region in the Geographic hierarchy used with the Geographic traffic routing method." - }, - "GeographicHierarchyProperties": { - "properties": { - "geographicHierarchy": { - "$ref": "#/definitions/Region", - "description": "The region at the root of the hierarchy from all the regions in the hierarchy can be retrieved." - } - }, - "description": "Class representing the properties of the Geographic hierarchy used with the Geographic traffic routing method." - }, - "TrafficManagerGeographicHierarchy": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/GeographicHierarchyProperties", - "description": "The properties of the Geographic Hierarchy resource." - } - }, - "allOf": [ - { - "$ref": "#/definitions/ProxyResource" - } - ], - "description": "Class representing the Geographic hierarchy used with the Geographic traffic routing method." - }, - "UserMetricsProperties": { - "properties": { - "key": { - "type": "string", - "description": "The key returned by the User Metrics operation." + } } - }, - "description": "Class representing a Traffic Manager Real User Metrics key response." + } }, "Resource": { + "type": "object", "description": "The core properties of ARM resources", "properties": { "id": { "type": "string", + "format": "arm-id", "description": "Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName}" }, "name": { - "type": "string", - "description": "The name of the resource" + "type": "string" }, "type": { "type": "string", "description": "The type of the resource. Ex- Microsoft.Network/trafficManagerProfiles." } - }, - "x-ms-azure-resource": true + } }, "TrackedResource": { + "type": "object", "description": "The resource model definition for a ARM tracked top level resource", "properties": { "tags": { "type": "object", + "description": "Resource tags.", "additionalProperties": { "type": "string" }, "x-ms-mutability": [ "read", - "create", - "update" - ], - "description": "Resource tags." + "update", + "create" + ] }, "location": { "type": "string", + "description": "The Azure Region where the resource lives", "x-ms-mutability": [ "read", "create" - ], - "description": "The Azure Region where the resource lives" + ] } }, "allOf": [ @@ -1605,86 +1655,165 @@ } ] }, - "ProxyResource": { - "description": "The resource model definition for a ARM proxy resource. It will have everything other than required location and tags", - "allOf": [ - { - "$ref": "#/definitions/Resource" + "TrafficFlow": { + "type": "object", + "description": "Class representing a Traffic Manager HeatMap traffic flow properties.", + "properties": { + "sourceIp": { + "type": "string", + "description": "The IP address that this query experience originated from." + }, + "latitude": { + "type": "number", + "format": "double", + "description": "The approximate latitude that these queries originated from." + }, + "longitude": { + "type": "number", + "format": "double", + "description": "The approximate longitude that these queries originated from." + }, + "queryExperiences": { + "type": "array", + "description": "The query experiences produced in this HeatMap calculation.", + "items": { + "$ref": "#/definitions/QueryExperience" + } } - ] + } }, - "CloudError": { + "TrafficManagerGeographicHierarchy": { "type": "object", + "description": "Class representing the Geographic hierarchy used with the Geographic traffic routing method.", "properties": { - "error": { - "$ref": "#/definitions/CloudErrorBody", - "description": "The content of the error." + "properties": { + "$ref": "#/definitions/GeographicHierarchyProperties", + "description": "The properties of the Geographic Hierarchy resource.", + "x-ms-client-flatten": true } }, - "description": "An error returned by the Azure Resource Manager", - "x-ms-external": true + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + } + ] }, - "CloudErrorBody": { + "TrafficManagerNameAvailability": { "type": "object", + "description": "Class representing a Traffic Manager Name Availability response.", "properties": { - "code": { + "name": { "type": "string", - "description": "Error code" + "description": "The relative name." }, - "message": { + "type": { "type": "string", - "description": "Error message" + "description": "Traffic Manager profile resource type." }, - "target": { + "nameAvailable": { + "type": "boolean", + "description": "Describes whether the relative name is available or not." + }, + "reason": { "type": "string", - "description": "Error target" + "description": "The reason why the name is not available, when applicable." }, - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/CloudErrorBody" + "message": { + "type": "string", + "description": "Descriptive message that explains why the name is not available, when applicable." + } + } + }, + "TrafficRoutingMethod": { + "type": "string", + "description": "The traffic routing method of the Traffic Manager profile.", + "enum": [ + "Performance", + "Priority", + "Weighted", + "Geographic", + "MultiValue", + "Subnet" + ], + "x-ms-enum": { + "name": "TrafficRoutingMethod", + "modelAsString": true, + "values": [ + { + "name": "Performance", + "value": "Performance" + }, + { + "name": "Priority", + "value": "Priority" + }, + { + "name": "Weighted", + "value": "Weighted" + }, + { + "name": "Geographic", + "value": "Geographic" + }, + { + "name": "MultiValue", + "value": "MultiValue" + }, + { + "name": "Subnet", + "value": "Subnet" + } + ] + } + }, + "TrafficViewEnrollmentStatus": { + "type": "string", + "description": "Indicates whether Traffic View is 'Enabled' or 'Disabled' for the Traffic Manager profile. Null, indicates 'Disabled'. Enabling this feature will increase the cost of the Traffic Manage profile.", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "TrafficViewEnrollmentStatus", + "modelAsString": true, + "values": [ + { + "name": "Enabled", + "value": "Enabled" }, - "description": "Error details" + { + "name": "Disabled", + "value": "Disabled" + } + ] + } + }, + "UserMetricsModel": { + "type": "object", + "description": "Class representing Traffic Manager User Metrics.", + "properties": { + "properties": { + "$ref": "#/definitions/UserMetricsProperties", + "description": "The properties of the Traffic Manager User Metrics.", + "x-ms-client-flatten": true } }, - "description": "The content of an error returned by the Azure Resource Manager", - "x-ms-external": true - } - }, - "security": [ - { - "azure_auth": [ - "user_impersonation" + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + } ] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", - "scopes": { - "user_impersonation": "impersonate your user account" + }, + "UserMetricsProperties": { + "type": "object", + "description": "Class representing a Traffic Manager Real User Metrics key response.", + "properties": { + "key": { + "type": "string", + "description": "The key returned by the User Metrics operation." + } } } }, - "parameters": { - "SubscriptionIdParameter": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - "x-ms-parameter-location": "client" - }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "Client Api Version.", - "x-ms-parameter-location": "client" - } - } + "parameters": {} }