From 996ec6703f3fa5be920d96713f6028f775e4f8e4 Mon Sep 17 00:00:00 2001 From: Siddharth Saklecha Date: Mon, 30 Jan 2023 16:33:14 +0530 Subject: [PATCH 1/8] Adds base for updating Microsoft.Network from version preview/2022-04-01-preview to version 2022-04-01 --- .../examples/Endpoint-DELETE-External.json | 16 + .../Endpoint-GET-External-WithGeoMapping.json | 30 + .../Endpoint-GET-External-WithLocation.json | 27 + ...dpoint-GET-External-WithSubnetMapping.json | 36 + .../Endpoint-PATCH-External-Target.json | 35 + ...Endpoint-PUT-External-WithAlwaysServe.json | 54 + ...dpoint-PUT-External-WithCustomHeaders.json | 81 + .../Endpoint-PUT-External-WithGeoMapping.json | 60 + .../Endpoint-PUT-External-WithLocation.json | 51 + ...dpoint-PUT-External-WithSubnetMapping.json | 78 + .../GeographicHierarchy-GET-default.json | 60 + .../HeatMap-GET-With-Null-Values.json | 67 + .../HeatMap-GET-With-TopLeft-BotRight.json | 76 + .../2022-04-01/examples/HeatMap-GET.json | 68 + ...ityTest_NameAvailable-POST-example-21.json | 18 + ...Test_NameNotAvailable-POST-example-23.json | 20 + .../2022-04-01/examples/Profile-DELETE.json | 14 + .../examples/Profile-GET-ByResourceGroup.json | 95 + .../examples/Profile-GET-BySubscription.json | 122 ++ .../examples/Profile-GET-WithEndpoints.json | 52 + .../Profile-GET-WithTrafficViewDisabled.json | 53 + .../Profile-GET-WithTrafficViewEnabled.json | 53 + .../examples/Profile-PATCH-MonitorConfig.json | 84 + .../examples/Profile-PUT-MultiValue.json | 86 + .../examples/Profile-PUT-NoEndpoints.json | 80 + .../examples/Profile-PUT-WithAliasing.json | 163 ++ .../Profile-PUT-WithCustomHeaders.json | 183 ++ .../examples/Profile-PUT-WithEndpoints.json | 122 ++ .../Profile-PUT-WithNestedEndpoints.json | 173 ++ .../TrafficManagerUserMetricsKeys-DELETE.json | 11 + .../TrafficManagerUserMetricsKeys-GET.json | 18 + .../TrafficManagerUserMetricsKeys-PUT.json | 18 + .../stable/2022-04-01/trafficmanager.json | 1623 +++++++++++++++++ 33 files changed, 3727 insertions(+) create mode 100644 specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Endpoint-DELETE-External.json create mode 100644 specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Endpoint-GET-External-WithGeoMapping.json create mode 100644 specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Endpoint-GET-External-WithLocation.json create mode 100644 specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Endpoint-GET-External-WithSubnetMapping.json create mode 100644 specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Endpoint-PATCH-External-Target.json create mode 100644 specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Endpoint-PUT-External-WithAlwaysServe.json create mode 100644 specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Endpoint-PUT-External-WithCustomHeaders.json create mode 100644 specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Endpoint-PUT-External-WithGeoMapping.json create mode 100644 specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Endpoint-PUT-External-WithLocation.json create mode 100644 specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Endpoint-PUT-External-WithSubnetMapping.json create mode 100644 specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/GeographicHierarchy-GET-default.json create mode 100644 specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/HeatMap-GET-With-Null-Values.json create mode 100644 specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/HeatMap-GET-With-TopLeft-BotRight.json create mode 100644 specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/HeatMap-GET.json create mode 100644 specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/NameAvailabilityTest_NameAvailable-POST-example-21.json create mode 100644 specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/NameAvailabilityTest_NameNotAvailable-POST-example-23.json create mode 100644 specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-DELETE.json create mode 100644 specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-GET-ByResourceGroup.json create mode 100644 specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-GET-BySubscription.json create mode 100644 specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-GET-WithEndpoints.json create mode 100644 specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-GET-WithTrafficViewDisabled.json create mode 100644 specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-GET-WithTrafficViewEnabled.json create mode 100644 specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-PATCH-MonitorConfig.json create mode 100644 specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-PUT-MultiValue.json create mode 100644 specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-PUT-NoEndpoints.json create mode 100644 specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-PUT-WithAliasing.json create mode 100644 specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-PUT-WithCustomHeaders.json create mode 100644 specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-PUT-WithEndpoints.json create mode 100644 specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-PUT-WithNestedEndpoints.json create mode 100644 specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/TrafficManagerUserMetricsKeys-DELETE.json create mode 100644 specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/TrafficManagerUserMetricsKeys-GET.json create mode 100644 specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/TrafficManagerUserMetricsKeys-PUT.json create mode 100644 specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/trafficmanager.json 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 new file mode 100644 index 000000000000..777b0bb0a9f7 --- /dev/null +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Endpoint-DELETE-External.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager1421", + "profileName": "azsmnet6386", + "endpointType": "ExternalEndpoints", + "endpointName": "azsmnet7187", + "api-version": "2022-04-01-preview" + }, + "responses": { + "200": { + "body": {} + }, + "204": {} + } +} 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 new file mode 100644 index 000000000000..894725d56c1e --- /dev/null +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Endpoint-GET-External-WithGeoMapping.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager2191", + "profileName": "azuresdkfornetautoresttrafficmanager8224", + "endpointType": "ExternalEndpoints", + "endpointName": "My%20external%20endpoint", + "api-version": "2022-04-01-preview" + }, + "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", + "properties": { + "endpointStatus": "Enabled", + "endpointMonitorStatus": "CheckingEndpoint", + "target": "foobar.contoso.com", + "weight": 1, + "priority": 1, + "geoMapping": [ + "GEO-AS", + "GEO-AF" + ] + } + } + } + } +} 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 new file mode 100644 index 000000000000..33fb9567b216 --- /dev/null +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Endpoint-GET-External-WithLocation.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager1421", + "profileName": "azsmnet6386", + "endpointType": "ExternalEndpoints", + "endpointName": "azsmnet7187", + "api-version": "2022-04-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386/externalEndpoints/azsmnet7187", + "name": "azsmnet7187", + "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "properties": { + "endpointStatus": "Enabled", + "endpointMonitorStatus": "CheckingEndpoint", + "target": "foobar.contoso.com", + "weight": 1, + "priority": 1, + "endpointLocation": "North Europe" + } + } + } + } +} 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 new file mode 100644 index 000000000000..05aa99d0d198 --- /dev/null +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Endpoint-GET-External-WithSubnetMapping.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager2191", + "profileName": "azuresdkfornetautoresttrafficmanager8224", + "endpointType": "ExternalEndpoints", + "endpointName": "My%20external%20endpoint", + "api-version": "2022-04-01-preview" + }, + "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", + "properties": { + "endpointStatus": "Enabled", + "endpointMonitorStatus": "CheckingEndpoint", + "target": "foobar.contoso.com", + "weight": 1, + "priority": 1, + "subnets": [ + { + "first": "1.2.3.0", + "scope": 24 + }, + { + "first": "25.26.27.28", + "last": "29.30.31.32" + } + ] + } + } + } + } +} 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 new file mode 100644 index 000000000000..93c5974313ed --- /dev/null +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Endpoint-PATCH-External-Target.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager1421", + "profileName": "azsmnet6386", + "endpointType": "ExternalEndpoints", + "endpointName": "azsmnet7187", + "api-version": "2022-04-01-preview", + "parameters": { + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386/externalEndpoints/azsmnet7187", + "name": "azsmnet7187", + "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "properties": { + "target": "another.foobar.contoso.com" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386/externalEndpoints/azsmnet7187", + "name": "azsmnet7187", + "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "properties": { + "endpointStatus": "Enabled", + "endpointMonitorStatus": "CheckingEndpoint", + "target": "another.foobar.contoso.com", + "weight": 1, + "priority": 1, + "endpointLocation": "North Europe" + } + } + } + } +} 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 new file mode 100644 index 000000000000..c027e3b6b046 --- /dev/null +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Endpoint-PUT-External-WithAlwaysServe.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager1421", + "profileName": "azsmnet6386", + "endpointType": "ExternalEndpoints", + "endpointName": "azsmnet7187", + "api-version": "2022-04-01-preview", + "parameters": { + "name": "azsmnet7187", + "type": "Microsoft.network/TrafficManagerProfiles/ExternalEndpoints", + "properties": { + "target": "foobar.contoso.com", + "endpointStatus": "Enabled", + "endpointLocation": "North Europe", + "alwaysServe": "Enabled" + } + } + }, + "responses": { + "201": { + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386/externalEndpoints/azsmnet7187", + "name": "azsmnet7187", + "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "properties": { + "endpointStatus": "Enabled", + "endpointMonitorStatus": "CheckingEndpoint", + "target": "foobar.contoso.com", + "weight": 1, + "priority": 1, + "endpointLocation": "North Europe", + "alwaysServe": "Enabled" + } + } + }, + "200": { + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386/externalEndpoints/azsmnet7187", + "name": "azsmnet7187", + "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "properties": { + "endpointStatus": "Enabled", + "endpointMonitorStatus": "CheckingEndpoint", + "target": "foobar.contoso.com", + "weight": 1, + "priority": 1, + "endpointLocation": "North Europe", + "alwaysServe": "Enabled" + } + } + } + } +} 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 new file mode 100644 index 000000000000..8fa3a68656fa --- /dev/null +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Endpoint-PUT-External-WithCustomHeaders.json @@ -0,0 +1,81 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager1421", + "profileName": "azsmnet6386", + "endpointType": "ExternalEndpoints", + "endpointName": "azsmnet7187", + "api-version": "2022-04-01-preview", + "parameters": { + "name": "azsmnet7187", + "type": "Microsoft.network/TrafficManagerProfiles/ExternalEndpoints", + "properties": { + "target": "foobar.contoso.com", + "endpointStatus": "Enabled", + "endpointLocation": "North Europe", + "customHeaders": [ + { + "name": "header-1", + "value": "value-1" + }, + { + "name": "header-2", + "value": "value-2" + } + ] + } + } + }, + "responses": { + "201": { + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386/externalEndpoints/azsmnet7187", + "name": "azsmnet7187", + "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "properties": { + "endpointStatus": "Enabled", + "endpointMonitorStatus": "CheckingEndpoint", + "target": "foobar.contoso.com", + "weight": 1, + "priority": 1, + "endpointLocation": "North Europe", + "customHeaders": [ + { + "name": "header-1", + "value": "value-1" + }, + { + "name": "header-2", + "value": "value-2" + } + ] + } + } + }, + "200": { + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386/externalEndpoints/azsmnet7187", + "name": "azsmnet7187", + "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "properties": { + "endpointStatus": "Enabled", + "endpointMonitorStatus": "CheckingEndpoint", + "target": "foobar.contoso.com", + "weight": 1, + "priority": 1, + "endpointLocation": "North Europe", + "customHeaders": [ + { + "name": "header-1", + "value": "value-1" + }, + { + "name": "header-2", + "value": "value-2" + } + ] + } + } + } + } +} 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 new file mode 100644 index 000000000000..ad2b24d79ef6 --- /dev/null +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Endpoint-PUT-External-WithGeoMapping.json @@ -0,0 +1,60 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager2191", + "profileName": "azuresdkfornetautoresttrafficmanager8224", + "endpointType": "ExternalEndpoints", + "endpointName": "My%20external%20endpoint", + "api-version": "2022-04-01-preview", + "parameters": { + "name": "My external endpoint", + "type": "Microsoft.network/TrafficManagerProfiles/ExternalEndpoints", + "properties": { + "target": "foobar.contoso.com", + "endpointStatus": "Enabled", + "geoMapping": [ + "GEO-AS", + "GEO-AF" + ] + } + } + }, + "responses": { + "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", + "properties": { + "endpointStatus": "Enabled", + "endpointMonitorStatus": "CheckingEndpoint", + "target": "foobar.contoso.com", + "weight": 1, + "priority": 1, + "geoMapping": [ + "GEO-AS", + "GEO-AF" + ] + } + } + }, + "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", + "properties": { + "endpointStatus": "Enabled", + "endpointMonitorStatus": "CheckingEndpoint", + "target": "foobar.contoso.com", + "weight": 1, + "priority": 1, + "geoMapping": [ + "GEO-AS", + "GEO-AF" + ] + } + } + } + } +} 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 new file mode 100644 index 000000000000..e253c618ed50 --- /dev/null +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Endpoint-PUT-External-WithLocation.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager1421", + "profileName": "azsmnet6386", + "endpointType": "ExternalEndpoints", + "endpointName": "azsmnet7187", + "api-version": "2022-04-01-preview", + "parameters": { + "name": "azsmnet7187", + "type": "Microsoft.network/TrafficManagerProfiles/ExternalEndpoints", + "properties": { + "target": "foobar.contoso.com", + "endpointStatus": "Enabled", + "endpointLocation": "North Europe" + } + } + }, + "responses": { + "201": { + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386/externalEndpoints/azsmnet7187", + "name": "azsmnet7187", + "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "properties": { + "endpointStatus": "Enabled", + "endpointMonitorStatus": "CheckingEndpoint", + "target": "foobar.contoso.com", + "weight": 1, + "priority": 1, + "endpointLocation": "North Europe" + } + } + }, + "200": { + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386/externalEndpoints/azsmnet7187", + "name": "azsmnet7187", + "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", + "properties": { + "endpointStatus": "Enabled", + "endpointMonitorStatus": "CheckingEndpoint", + "target": "foobar.contoso.com", + "weight": 1, + "priority": 1, + "endpointLocation": "North Europe" + } + } + } + } +} 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 new file mode 100644 index 000000000000..335a4b433084 --- /dev/null +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Endpoint-PUT-External-WithSubnetMapping.json @@ -0,0 +1,78 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager2191", + "profileName": "azuresdkfornetautoresttrafficmanager8224", + "endpointType": "ExternalEndpoints", + "endpointName": "My%20external%20endpoint", + "api-version": "2022-04-01-preview", + "parameters": { + "name": "My external endpoint", + "type": "Microsoft.network/TrafficManagerProfiles/ExternalEndpoints", + "properties": { + "target": "foobar.contoso.com", + "endpointStatus": "Enabled", + "subnets": [ + { + "first": "1.2.3.0", + "scope": 24 + }, + { + "first": "25.26.27.28", + "last": "29.30.31.32" + } + ] + } + } + }, + "responses": { + "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", + "properties": { + "endpointStatus": "Enabled", + "endpointMonitorStatus": "CheckingEndpoint", + "target": "foobar.contoso.com", + "weight": 1, + "priority": 1, + "subnets": [ + { + "first": "1.2.3.0", + "scope": 24 + }, + { + "first": "25.26.27.28", + "last": "29.30.31.32" + } + ] + } + } + }, + "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", + "properties": { + "endpointStatus": "Enabled", + "endpointMonitorStatus": "CheckingEndpoint", + "target": "foobar.contoso.com", + "weight": 1, + "priority": 1, + "subnets": [ + { + "first": "1.2.3.0", + "scope": 24 + }, + { + "first": "25.26.27.28", + "last": "29.30.31.32" + } + ] + } + } + } + } +} 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 new file mode 100644 index 000000000000..36e0f8d0a635 --- /dev/null +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/GeographicHierarchy-GET-default.json @@ -0,0 +1,60 @@ +{ + "parameters": { + "api-version": "2022-04-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Network/trafficManagerGeographicHierarchies/default", + "name": "default", + "type": "Microsoft.Network/trafficManagerGeographicHierarchies", + "properties": { + "geographicHierarchy": { + "code": "WORLD", + "name": "World", + "regions": [ + { + "code": "GEO-ME", + "name": "Middle East", + "regions": [ + { + "code": "AE", + "name": "United Arab Emirates", + "regions": [] + } + ] + }, + { + "code": "GEO-AP", + "name": "Australia / Pacific", + "regions": [ + { + "code": "AU", + "name": "Australia", + "regions": [ + { + "code": "AU-ACT", + "name": "Australian Capital Territory", + "regions": [] + }, + { + "code": "AU-NSW", + "name": "New South Wales", + "regions": [] + } + ] + }, + { + "code": "CK", + "name": "Cook Islands", + "regions": [] + } + ] + } + ] + } + } + } + } + } +} 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 new file mode 100644 index 000000000000..a22f7a17bce7 --- /dev/null +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/HeatMap-GET-With-Null-Values.json @@ -0,0 +1,67 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager1323", + "profileName": "azuresdkfornetautoresttrafficmanager3880", + "heatMapType": "default", + "api-version": "2022-04-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1323/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager3880/heatMaps/default", + "name": "default", + "type": "Microsoft.Network/trafficManagerProfiles/heatMaps/default", + "properties": { + "startTime": "2017-08-15T12:00:00Z", + "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" + } + ], + "trafficFlows": [ + { + "latitude": 99.99, + "longitude": 0.00, + "sourceIp": "1.1.1.1", + "queryExperiences": [ + { + "endpointId": 0, + "latency": 99, + "queryCount": 1000000 + }, + { + "endpointId": 1, + "latency": 1, + "queryCount": 1 + } + ] + }, + { + "latitude": 1.11, + "longitude": -2.35, + "sourceIp": "2.255.1.1", + "queryExperiences": [ + { + "endpointId": 0, + "queryCount": 100 + }, + { + "endpointId": 1, + "latency": 4.222, + "queryCount": 500 + } + ] + } + ] + } + } + } + } +} 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 new file mode 100644 index 000000000000..2a0899db8691 --- /dev/null +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/HeatMap-GET-With-TopLeft-BotRight.json @@ -0,0 +1,76 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager1323", + "profileName": "azuresdkfornetautoresttrafficmanager3880", + "heatMapType": "default", + "topLeft": [ + 10.000, + 50.001 + ], + "botRight": [ + -50.001, + 80.000 + ], + "api-version": "2022-04-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1323/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager3880/heatMaps/latencyVolumeByLocation", + "name": "default", + "type": "Microsoft.Network/trafficManagerProfiles/heatMaps/latencyVolumeByLocation", + "properties": { + "startTime": "2017-08-15T12:00:00Z", + "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" + } + ], + "trafficFlows": [ + { + "latitude": 9.99, + "longitude": 75.01, + "sourceIp": "1.1.1.1", + "queryExperiences": [ + { + "endpointId": 1, + "latency": 99.222, + "queryCount": 1000000 + }, + { + "endpointId": 2, + "latency": 1.222, + "queryCount": 1 + } + ] + }, + { + "latitude": -49.99, + "longitude": 51.00, + "sourceIp": "2.255.1.1", + "queryExperiences": [ + { + "endpointId": 1, + "latency": 96.222, + "queryCount": 100 + }, + { + "endpointId": 2, + "latency": 4.222, + "queryCount": 500 + } + ] + } + ] + } + } + } + } +} 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 new file mode 100644 index 000000000000..688a7178c648 --- /dev/null +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/HeatMap-GET.json @@ -0,0 +1,68 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager1323", + "profileName": "azuresdkfornetautoresttrafficmanager3880", + "heatMapType": "default", + "api-version": "2022-04-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1323/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager3880/heatMaps/latencyVolumeByLocation", + "name": "default", + "type": "Microsoft.Network/trafficManagerProfiles/heatMaps/latencyVolumeByLocation", + "properties": { + "startTime": "2017-08-15T12:00:00Z", + "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" + } + ], + "trafficFlows": [ + { + "latitude": 99.99, + "longitude": 0.00, + "sourceIp": "1.1.1.1", + "queryExperiences": [ + { + "endpointId": 1, + "latency": 99.222, + "queryCount": 1000000 + }, + { + "endpointId": 2, + "latency": 1.222, + "queryCount": 1 + } + ] + }, + { + "latitude": -99.99, + "longitude": 1.00, + "sourceIp": "2.255.1.1", + "queryExperiences": [ + { + "endpointId": 1, + "latency": 96.222, + "queryCount": 100 + }, + { + "endpointId": 2, + "latency": 4.222, + "queryCount": 500 + } + ] + } + ] + } + } + } + } +} 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 new file mode 100644 index 000000000000..8acac1ae856b --- /dev/null +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/NameAvailabilityTest_NameAvailable-POST-example-21.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "api-version": "2022-04-01-preview", + "parameters": { + "name": "azsmnet5403", + "type": "microsoft.network/trafficmanagerprofiles" + } + }, + "responses": { + "200": { + "body": { + "name": "azsmnet5403", + "type": "Microsoft.Network/trafficManagerProfiles", + "nameAvailable": true + } + } + } +} 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 new file mode 100644 index 000000000000..afac485f826e --- /dev/null +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/NameAvailabilityTest_NameNotAvailable-POST-example-23.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2022-04-01-preview", + "parameters": { + "name": "azsmnet4696", + "type": "microsoft.network/trafficmanagerprofiles" + } + }, + "responses": { + "200": { + "body": { + "name": "azsmnet4696", + "type": "Microsoft.Network/trafficManagerProfiles", + "nameAvailable": false, + "reason": "AlreadyExists", + "message": "Domain name azsmnet4696.tmpreview.watmtest.azure-test.net already exists. Please choose a different DNS prefix." + } + } + } +} 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 new file mode 100644 index 000000000000..0423efd9fce2 --- /dev/null +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-DELETE.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager1323", + "profileName": "azuresdkfornetautoresttrafficmanager3880", + "api-version": "2022-04-01-preview" + }, + "responses": { + "200": { + "body": {} + }, + "204": {} + } +} 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 new file mode 100644 index 000000000000..e6f8daa437cb --- /dev/null +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-GET-ByResourceGroup.json @@ -0,0 +1,95 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager3640", + "api-version": "2022-04-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager3640/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager1005", + "name": "azuresdkfornetautoresttrafficmanager1005", + "type": "Microsoft.Network/trafficManagerProfiles", + "location": "global", + "tags": {}, + "properties": { + "profileStatus": "Enabled", + "trafficRoutingMethod": "Performance", + "dnsConfig": { + "relativeName": "azuresdkfornetautoresttrafficmanager1005", + "fqdn": "azuresdkfornetautoresttrafficmanager1005.tmpreview.watmtest.azure-test.net", + "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", + "properties": { + "endpointStatus": "Enabled", + "endpointMonitorStatus": "CheckingEndpoint", + "target": "foobar.contoso.com", + "weight": 1, + "priority": 1, + "endpointLocation": "North Europe" + } + } + ] + } + }, + { + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager3640/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager959", + "name": "azuresdkfornetautoresttrafficmanager959", + "type": "Microsoft.Network/trafficManagerProfiles", + "location": "global", + "tags": {}, + "properties": { + "profileStatus": "Enabled", + "trafficRoutingMethod": "Performance", + "dnsConfig": { + "relativeName": "azuresdkfornetautoresttrafficmanager959", + "fqdn": "azuresdkfornetautoresttrafficmanager959.tmpreview.watmtest.azure-test.net", + "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", + "properties": { + "endpointStatus": "Enabled", + "endpointMonitorStatus": "Online", + "target": "foobar.contoso.com", + "weight": 1, + "priority": 1, + "endpointLocation": "North Europe" + } + } + ] + } + } + ] + } + } + } +} 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 new file mode 100644 index 000000000000..db0b08f8cb17 --- /dev/null +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-GET-BySubscription.json @@ -0,0 +1,122 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "api-version": "2022-04-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/azsmnet1719/providers/Microsoft.Network/trafficManagerProfiles/azsmnet5183", + "name": "azsmnet5183", + "type": "Microsoft.Network/trafficManagerProfiles", + "location": "global", + "tags": {}, + "properties": { + "profileStatus": "Enabled", + "trafficRoutingMethod": "Performance", + "dnsConfig": { + "relativeName": "azsmnet4696", + "fqdn": "azsmnet4696.tmpreview.watmtest.azure-test.net", + "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", + "name": "azuresdkfornetautoresttrafficmanager3440", + "type": "Microsoft.Network/trafficManagerProfiles", + "location": "global", + "tags": {}, + "properties": { + "profileStatus": "Enabled", + "trafficRoutingMethod": "Performance", + "dnsConfig": { + "relativeName": "azuresdkfornetautoresttrafficmanager3440", + "fqdn": "azuresdkfornetautoresttrafficmanager3440.tmpreview.watmtest.azure-test.net", + "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", + "properties": { + "endpointStatus": "Enabled", + "endpointMonitorStatus": "Online", + "target": "foobar.contoso.com", + "weight": 1, + "priority": 1, + "endpointLocation": "North Europe" + } + } + ] + } + }, + { + "id": "/subscriptions/{subscription-id}/resourceGroups/onesdk9785/providers/Microsoft.Network/trafficManagerProfiles/onesdk8819", + "name": "onesdk8819", + "type": "Microsoft.Network/trafficManagerProfiles", + "location": "global", + "tags": {}, + "properties": { + "profileStatus": "Enabled", + "trafficRoutingMethod": "Performance", + "dnsConfig": { + "relativeName": "onesdk7242", + "fqdn": "onesdk7242.tmpreview.watmtest.azure-test.net", + "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", + "properties": { + "endpointStatus": "Enabled", + "endpointMonitorStatus": "Stopped", + "targetResourceId": "/subscriptions/{subscription-id}/resourceGroups/onesdk9785/providers/Microsoft.Network/trafficManagerProfiles/onesdk1792", + "target": "onesdk4285.tmpreview.watmtest.azure-test.net", + "weight": 1, + "priority": 1, + "endpointLocation": "West Europe", + "minChildEndpoints": 1 + } + } + ] + } + } + ] + } + } + } +} 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 new file mode 100644 index 000000000000..695c89216f71 --- /dev/null +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-GET-WithEndpoints.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager1323", + "profileName": "azuresdkfornetautoresttrafficmanager3880", + "api-version": "2022-04-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1323/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager3880", + "name": "azuresdkfornetautoresttrafficmanager3880", + "type": "Microsoft.Network/trafficManagerProfiles", + "location": "global", + "tags": {}, + "properties": { + "profileStatus": "Enabled", + "trafficRoutingMethod": "Performance", + "dnsConfig": { + "relativeName": "azuresdkfornetautoresttrafficmanager3880", + "fqdn": "azuresdkfornetautoresttrafficmanager3880.tmpreview.watmtest.azure-test.net", + "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", + "properties": { + "endpointStatus": "Enabled", + "endpointMonitorStatus": "CheckingEndpoint", + "target": "foobar.contoso.com", + "weight": 1, + "priority": 1, + "endpointLocation": "North Europe" + } + } + ] + } + } + } + } +} 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 new file mode 100644 index 000000000000..501f5a3e2fbd --- /dev/null +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-GET-WithTrafficViewDisabled.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager1323", + "profileName": "azuresdkfornetautoresttrafficmanager3880", + "api-version": "2022-04-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1323/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager3880", + "name": "azuresdkfornetautoresttrafficmanager3880", + "type": "Microsoft.Network/trafficManagerProfiles", + "location": "global", + "tags": {}, + "properties": { + "profileStatus": "Enabled", + "trafficRoutingMethod": "Performance", + "dnsConfig": { + "relativeName": "azuresdkfornetautoresttrafficmanager3880", + "fqdn": "azuresdkfornetautoresttrafficmanager3880.tmpreview.watmtest.azure-test.net", + "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", + "properties": { + "endpointStatus": "Enabled", + "endpointMonitorStatus": "CheckingEndpoint", + "target": "foobar.contoso.com", + "weight": 1, + "priority": 1, + "endpointLocation": "North Europe" + } + } + ], + "trafficViewEnrollmentStatus": "Disabled" + } + } + } + } +} 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 new file mode 100644 index 000000000000..8d5212dd34b0 --- /dev/null +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-GET-WithTrafficViewEnabled.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager1323", + "profileName": "azuresdkfornetautoresttrafficmanager3880", + "api-version": "2022-04-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1323/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager3880", + "name": "azuresdkfornetautoresttrafficmanager3880", + "type": "Microsoft.Network/trafficManagerProfiles", + "location": "global", + "tags": {}, + "properties": { + "profileStatus": "Enabled", + "trafficRoutingMethod": "Performance", + "dnsConfig": { + "relativeName": "azuresdkfornetautoresttrafficmanager3880", + "fqdn": "azuresdkfornetautoresttrafficmanager3880.tmpreview.watmtest.azure-test.net", + "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", + "properties": { + "endpointStatus": "Enabled", + "endpointMonitorStatus": "CheckingEndpoint", + "target": "foobar.contoso.com", + "weight": 1, + "priority": 1, + "endpointLocation": "North Europe" + } + } + ], + "trafficViewEnrollmentStatus": "Enabled" + } + } + } + } +} 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 new file mode 100644 index 000000000000..6d638b999de5 --- /dev/null +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-PATCH-MonitorConfig.json @@ -0,0 +1,84 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager2583", + "profileName": "azuresdkfornetautoresttrafficmanager6192", + "api-version": "2022-04-01-preview", + "parameters": { + "properties": { + "monitorConfig": { + "protocol": "HTTP", + "port": 80, + "path": "/testpath.aspx", + "intervalInSeconds": 30, + "timeoutInSeconds": 6, + "toleratedNumberOfFailures": 4, + "customHeaders": [ + { + "name": "header-1", + "value": "value-1" + }, + { + "name": "header-2", + "value": "value-2" + } + ] + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2583/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager6192", + "name": "azuresdkfornetautoresttrafficmanager6192", + "type": "Microsoft.Network/trafficManagerProfiles", + "location": "global", + "tags": {}, + "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": 30, + "toleratedNumberOfFailures": 4, + "timeoutInSeconds": 6, + "customHeaders": [ + { + "name": "header-1", + "value": "value-1" + }, + { + "name": "header-2", + "value": "value-2" + } + ] + }, + "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" + } + } + ] + } + } + } + } +} 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 new file mode 100644 index 000000000000..8bef0e4e9b1e --- /dev/null +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-PUT-MultiValue.json @@ -0,0 +1,86 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager1421", + "profileName": "azsmnet6386", + "api-version": "2022-04-01-preview", + "parameters": { + "properties": { + "profileStatus": "Enabled", + "trafficRoutingMethod": "MultiValue", + "dnsConfig": { + "relativeName": "azsmnet6386", + "ttl": 35 + }, + "monitorConfig": { + "protocol": "HTTP", + "port": 80, + "path": "/testpath.aspx" + }, + "trafficViewEnrollmentStatus": "Disabled", + "maxReturn": 2 + }, + "location": "global" + } + }, + "responses": { + "201": { + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386", + "name": "azsmnet6386", + "type": "Microsoft.Network/trafficManagerProfiles", + "location": "global", + "properties": { + "profileStatus": "Enabled", + "trafficRoutingMethod": "MultiValue", + "dnsConfig": { + "relativeName": "azsmnet6386", + "fqdn": "azsmnet6386.tmpreview.watmtest.azure-test.net", + "ttl": 35 + }, + "monitorConfig": { + "profileMonitorStatus": "Inactive", + "protocol": "HTTP", + "port": 80, + "path": "/testpath.aspx", + "intervalInSeconds": 30, + "toleratedNumberOfFailures": 3, + "timeoutInSeconds": 10 + }, + "trafficViewEnrollmentStatus": "Disabled", + "maxReturn": 2, + "endpoints": [] + } + } + }, + "200": { + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386", + "name": "azsmnet6386", + "type": "Microsoft.Network/trafficManagerProfiles", + "location": "global", + "properties": { + "profileStatus": "Enabled", + "trafficRoutingMethod": "MultiValue", + "dnsConfig": { + "relativeName": "azsmnet6386", + "fqdn": "azsmnet6386.tmpreview.watmtest.azure-test.net", + "ttl": 35 + }, + "monitorConfig": { + "profileMonitorStatus": "Inactive", + "protocol": "HTTP", + "port": 80, + "path": "/testpath.aspx", + "intervalInSeconds": 30, + "toleratedNumberOfFailures": 3, + "timeoutInSeconds": 10 + }, + "trafficViewEnrollmentStatus": "Disabled", + "maxReturn": 2, + "endpoints": [] + } + } + } + } +} 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 new file mode 100644 index 000000000000..fad562701b34 --- /dev/null +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-PUT-NoEndpoints.json @@ -0,0 +1,80 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager1421", + "profileName": "azsmnet6386", + "api-version": "2022-04-01-preview", + "parameters": { + "properties": { + "profileStatus": "Enabled", + "trafficRoutingMethod": "Performance", + "dnsConfig": { + "relativeName": "azsmnet6386", + "ttl": 35 + }, + "monitorConfig": { + "protocol": "HTTP", + "port": 80, + "path": "/testpath.aspx" + } + }, + "location": "global" + } + }, + "responses": { + "201": { + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386", + "name": "azsmnet6386", + "type": "Microsoft.Network/trafficManagerProfiles", + "location": "global", + "properties": { + "profileStatus": "Enabled", + "trafficRoutingMethod": "Performance", + "dnsConfig": { + "relativeName": "azsmnet6386", + "fqdn": "azsmnet6386.tmpreview.watmtest.azure-test.net", + "ttl": 35 + }, + "monitorConfig": { + "profileMonitorStatus": "Inactive", + "protocol": "HTTP", + "port": 80, + "path": "/testpath.aspx", + "intervalInSeconds": 30, + "toleratedNumberOfFailures": 3, + "timeoutInSeconds": 10 + }, + "endpoints": [] + } + } + }, + "200": { + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386", + "name": "azsmnet6386", + "type": "Microsoft.Network/trafficManagerProfiles", + "location": "global", + "properties": { + "profileStatus": "Enabled", + "trafficRoutingMethod": "Performance", + "dnsConfig": { + "relativeName": "azsmnet6386", + "fqdn": "azsmnet6386.tmpreview.watmtest.azure-test.net", + "ttl": 35 + }, + "monitorConfig": { + "profileMonitorStatus": "Inactive", + "protocol": "HTTP", + "port": 80, + "path": "/testpath.aspx", + "intervalInSeconds": 30, + "toleratedNumberOfFailures": 3, + "timeoutInSeconds": 10 + }, + "endpoints": [] + } + } + } + } +} 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 new file mode 100644 index 000000000000..1641cea9b154 --- /dev/null +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-PUT-WithAliasing.json @@ -0,0 +1,163 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager2583", + "profileName": "azuresdkfornetautoresttrafficmanager6192", + "api-version": "2022-04-01-preview", + "parameters": { + "properties": { + "profileStatus": "Enabled", + "trafficRoutingMethod": "Performance", + "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", + "endpointStatus": "Enabled", + "endpointLocation": "North Europe" + } + } + ] + }, + "location": "global" + } + }, + "responses": { + "201": { + "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", + "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", + "properties": { + "endpointStatus": "Enabled", + "endpointMonitorStatus": "CheckingEndpoint", + "target": "foobar.contoso.com", + "weight": 1, + "priority": 1, + "endpointLocation": "North Europe", + "customHeaders": [ + { + "name": "header-2", + "value": "value-2-overridden" + } + ] + } + } + ] + } + } + }, + "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", + "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", + "properties": { + "endpointStatus": "Enabled", + "endpointMonitorStatus": "CheckingEndpoint", + "target": "foobar.contoso.com", + "weight": 1, + "priority": 1, + "endpointLocation": "North Europe", + "customHeaders": [ + { + "name": "header-2", + "value": "value-2-overridden" + } + ] + } + } + ] + } + } + } + } +} 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 new file mode 100644 index 000000000000..33d6cc07083b --- /dev/null +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-PUT-WithCustomHeaders.json @@ -0,0 +1,183 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager2583", + "profileName": "azuresdkfornetautoresttrafficmanager6192", + "api-version": "2022-04-01-preview", + "parameters": { + "properties": { + "profileStatus": "Enabled", + "trafficRoutingMethod": "Performance", + "dnsConfig": { + "relativeName": "azuresdkfornetautoresttrafficmanager6192", + "ttl": 35 + }, + "monitorConfig": { + "protocol": "HTTP", + "port": 80, + "path": "/testpath.aspx", + "intervalInSeconds": 10, + "timeoutInSeconds": 5, + "toleratedNumberOfFailures": 2, + "customHeaders": [ + { + "name": "header-1", + "value": "value-1" + }, + { + "name": "header-2", + "value": "value-2" + } + ], + "expectedStatusCodeRanges": [ + { + "min": 200, + "max": 205 + }, + { + "min": 400, + "max": 410 + } + ] + }, + "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" + } + }, + "responses": { + "201": { + "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", + "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", + "properties": { + "endpointStatus": "Enabled", + "endpointMonitorStatus": "CheckingEndpoint", + "target": "foobar.contoso.com", + "weight": 1, + "priority": 1, + "endpointLocation": "North Europe", + "customHeaders": [ + { + "name": "header-2", + "value": "value-2-overridden" + } + ] + } + } + ] + } + } + }, + "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", + "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", + "properties": { + "endpointStatus": "Enabled", + "endpointMonitorStatus": "CheckingEndpoint", + "target": "foobar.contoso.com", + "weight": 1, + "priority": 1, + "endpointLocation": "North Europe", + "customHeaders": [ + { + "name": "header-2", + "value": "value-2-overridden" + } + ] + } + } + ] + } + } + } + } +} 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 new file mode 100644 index 000000000000..1c37ce186e54 --- /dev/null +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-PUT-WithEndpoints.json @@ -0,0 +1,122 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager2583", + "profileName": "azuresdkfornetautoresttrafficmanager6192", + "api-version": "2022-04-01-preview", + "parameters": { + "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", + "endpointStatus": "Enabled", + "endpointLocation": "North Europe" + } + } + ] + }, + "location": "global" + } + }, + "responses": { + "201": { + "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 + }, + "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" + } + } + ] + } + } + }, + "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 + }, + "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" + } + } + ] + } + } + } + } +} 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 new file mode 100644 index 000000000000..084c03d73cc2 --- /dev/null +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/Profile-PUT-WithNestedEndpoints.json @@ -0,0 +1,173 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myresourcegroup", + "profileName": "parentprofile", + "api-version": "2022-04-01-preview", + "parameters": { + "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 + } + }, + { + "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 + } + } + ] + }, + "location": "global" + } + }, + "responses": { + "201": { + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myresourcegroup/providers/Microsoft.Network/trafficManagerProfiles/parentprofile", + "name": "parentprofile", + "type": "Microsoft.Network/trafficManagerProfiles", + "location": "global", + "properties": { + "profileStatus": "Enabled", + "trafficRoutingMethod": "Priority", + "dnsConfig": { + "relativeName": "parentprofile", + "fqdn": "parentprofile.tmpreview.watmtest.azure-test.net", + "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", + "properties": { + "endpointStatus": "Enabled", + "endpointMonitorStatus": "CheckingEndpoint", + "target": "firstnestedprofile.tmpreview.watmtest.azure-test.net", + "weight": 1, + "priority": 1, + "minChildEndpoints": 2, + "minChildEndpointsIPv4": 1, + "minChildEndpointsIPv6": 2 + } + }, + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myresourcegroup/providers/Microsoft.Network/trafficManagerProfiles/parentprofile/nestedEndpoints/MySecondNestedEndpoint", + "name": "MySecondNestedEndpoint", + "type": "Microsoft.Network/trafficManagerProfiles/nestedEndpoints", + "properties": { + "endpointStatus": "Enabled", + "endpointMonitorStatus": "CheckingEndpoint", + "target": "secondnestedprofile.tmpreview.watmtest.azure-test.net", + "weight": 1, + "priority": 1, + "minChildEndpoints": 2, + "minChildEndpointsIPv4": 2, + "minChildEndpointsIPv6": 1 + } + } + ] + } + } + }, + "200": { + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myresourcegroup/providers/Microsoft.Network/trafficManagerProfiles/parentprofile", + "name": "parentprofile", + "type": "Microsoft.Network/trafficManagerProfiles", + "location": "global", + "properties": { + "profileStatus": "Enabled", + "trafficRoutingMethod": "Priority", + "dnsConfig": { + "relativeName": "parentprofile", + "fqdn": "parentprofile.tmpreview.watmtest.azure-test.net", + "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", + "properties": { + "endpointStatus": "Enabled", + "endpointMonitorStatus": "CheckingEndpoint", + "target": "firstnestedprofile.tmpreview.watmtest.azure-test.net", + "weight": 1, + "priority": 1, + "minChildEndpoints": 2, + "minChildEndpointsIPv4": 1, + "minChildEndpointsIPv6": 2 + } + }, + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myresourcegroup/providers/Microsoft.Network/trafficManagerProfiles/parentprofile/nestedEndpoints/MySecondNestedEndpoint", + "name": "MySecondNestedEndpoint", + "type": "Microsoft.Network/trafficManagerProfiles/nestedEndpoints", + "properties": { + "endpointStatus": "Enabled", + "endpointMonitorStatus": "CheckingEndpoint", + "target": "secondnestedprofile.tmpreview.watmtest.azure-test.net", + "weight": 1, + "priority": 1, + "minChildEndpoints": 2, + "minChildEndpointsIPv4": 2, + "minChildEndpointsIPv6": 1 + } + } + ] + } + } + } + } +} 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 new file mode 100644 index 000000000000..1e0215a2d87e --- /dev/null +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/TrafficManagerUserMetricsKeys-DELETE.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "api-version": "2022-04-01-preview" + }, + "responses": { + "200": { + "body": {} + } + } +} 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 new file mode 100644 index 000000000000..6fdd922c4840 --- /dev/null +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/TrafficManagerUserMetricsKeys-GET.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "api-version": "2022-04-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Network/trafficManagerUserMetricsKeys/default", + "name": "default", + "type": "Microsoft.Network/trafficManagerUserMetricsKeys", + "properties": { + "key": "9ea056eb38f145a0891b5d5dc15e9aa2" + } + } + } + } +} 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 new file mode 100644 index 000000000000..7fbc5f01759c --- /dev/null +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/TrafficManagerUserMetricsKeys-PUT.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "api-version": "2022-04-01-preview" + }, + "responses": { + "201": { + "body": { + "id": "/providers/Microsoft.Network/trafficManagerUserMetricsKeys/default", + "name": "default", + "type": "Microsoft.Network/trafficManagerUserMetricsKeys", + "properties": { + "key": "9ea056eb38f145a0891b5d5dc15e9aa2" + } + } + } + } +} 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 new file mode 100644 index 000000000000..f528bccf8ea2 --- /dev/null +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/trafficmanager.json @@ -0,0 +1,1623 @@ +{ + "swagger": "2.0", + "info": { + "title": "TrafficManagerManagementClient", + "version": "2022-04-01-preview" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficmanagerprofiles/{profileName}/{endpointType}/{endpointName}": { + "patch": { + "tags": [ + "Endpoints" + ], + "operationId": "Endpoints_Update", + "description": "Update a Traffic Manager endpoint.", + "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." + }, + { + "name": "parameters", + "in": "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" + } + ], + "responses": { + "200": { + "description": "The updated Traffic Manager endpoint.", + "schema": { + "$ref": "#/definitions/Endpoint" + } + }, + "default": { + "description": "Default response. It will be deserialized as per the Error definition.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Endpoint-PATCH-External-Target": { + "$ref": "./examples/Endpoint-PATCH-External-Target.json" + } + } + }, + "get": { + "tags": [ + "Endpoints" + ], + "operationId": "Endpoints_Get", + "description": "Gets a Traffic Manager endpoint.", + "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.", + "schema": { + "$ref": "#/definitions/Endpoint" + } + }, + "default": { + "description": "Default response. It will be deserialized as per the Error definition.", + "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" + } + } + }, + "put": { + "tags": [ + "Endpoints" + ], + "operationId": "Endpoints_CreateOrUpdate", + "description": "Create or update a Traffic Manager endpoint.", + "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 created or 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 created or updated." + }, + { + "name": "parameters", + "in": "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" + } + ], + "responses": { + "200": { + "description": "The created or updated Endpoint.", + "schema": { + "$ref": "#/definitions/Endpoint" + } + }, + "201": { + "description": "The created or updated Endpoint.", + "schema": { + "$ref": "#/definitions/Endpoint" + } + }, + "default": { + "description": "Default response. It will be deserialized as per the Error definition.", + "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" + }, + "Endpoint-PUT-External-WithAlwaysServe": { + "$ref": "./examples/Endpoint-PUT-External-WithAlwaysServe.json" + } + } + }, + "delete": { + "tags": [ + "Endpoints" + ], + "operationId": "Endpoints_Delete", + "description": "Deletes a Traffic Manager endpoint.", + "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/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "The Traffic Manager Endpoint was deleted successfully.", + "schema": { + "$ref": "#/definitions/DeleteOperationResult" + } + }, + "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.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Endpoint-DELETE-External": { + "$ref": "./examples/Endpoint-DELETE-External.json" + } + } + } + }, + "/providers/Microsoft.Network/checkTrafficManagerNameAvailability": { + "post": { + "tags": [ + "Profiles" + ], + "operationId": "Profiles_CheckTrafficManagerRelativeDnsNameAvailability", + "description": "Checks the availability of a Traffic Manager Relative DNS name.", + "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" + } + ], + "responses": { + "200": { + "description": "The Traffic Manager Name Availability.", + "schema": { + "$ref": "#/definitions/TrafficManagerNameAvailability" + } + }, + "default": { + "description": "Default response. It will be deserialized as per the Error definition.", + "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" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficmanagerprofiles": { + "get": { + "tags": [ + "Profiles" + ], + "x-ms-pageable": { + "nextLinkName": null + }, + "operationId": "Profiles_ListByResourceGroup", + "description": "Lists all Traffic Manager profiles within a resource group.", + "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" + } + ], + "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": { + "ListProfilesByResourceGroup": { + "$ref": "./examples/Profile-GET-ByResourceGroup.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/trafficmanagerprofiles": { + "get": { + "tags": [ + "Profiles" + ], + "x-ms-pageable": { + "nextLinkName": null + }, + "operationId": "Profiles_ListBySubscription", + "description": "Lists all Traffic Manager profiles within a subscription.", + "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", + "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" + } + ], + "responses": { + "200": { + "description": "The Traffic Manager profile.", + "schema": { + "$ref": "#/definitions/Profile" + } + }, + "default": { + "description": "Default response. It will be deserialized as per the Error definition.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Profile-GET-WithEndpoints": { + "$ref": "./examples/Profile-GET-WithEndpoints.json" + }, + "Profile-GET-WithTrafficViewEnabled": { + "$ref": "./examples/Profile-GET-WithTrafficViewEnabled.json" + }, + "Profile-GET-WithTrafficViewDisabled": { + "$ref": "./examples/Profile-GET-WithTrafficViewDisabled.json" + } + } + }, + "put": { + "tags": [ + "Profiles" + ], + "operationId": "Profiles_CreateOrUpdate", + "description": "Create or update 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." + }, + { + "name": "parameters", + "in": "body", + "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.", + "schema": { + "$ref": "#/definitions/Profile" + } + }, + "default": { + "description": "Default response. It will be deserialized as per the Error definition.", + "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" + } + } + }, + "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" + } + ], + "responses": { + "200": { + "description": "The Traffic Manager Profile was deleted successfully.", + "schema": { + "$ref": "#/definitions/DeleteOperationResult" + } + }, + "204": { + "description": "The profile 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.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Profile-DELETE": { + "$ref": "./examples/Profile-DELETE.json" + } + } + }, + "patch": { + "tags": [ + "Profiles" + ], + "operationId": "Profiles_Update", + "description": "Update 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." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Profile" + }, + "description": "The Traffic Manager profile 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" + } + ], + "responses": { + "200": { + "description": "The updated Traffic Manager profile.", + "schema": { + "$ref": "#/definitions/Profile" + } + }, + "default": { + "description": "Default response. It will be deserialized as per the Error definition.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Profile-PATCH-MonitorConfig": { + "$ref": "./examples/Profile-PATCH-MonitorConfig.json" + } + } + } + }, + "/providers/Microsoft.Network/trafficManagerGeographicHierarchies/default": { + "get": { + "tags": [ + "GeographicHierarchies" + ], + "operationId": "GeographicHierarchies_GetDefault", + "description": "Gets the default Geographic Hierarchy used by the Geographic traffic routing method.", + "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" + }, + { + "$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": "heatMapType", + "in": "path", + "required": true, + "type": "string", + "enum": [ + "default" + ], + "x-ms-enum": { + "name": "HeatMapType", + "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" + } + ], + "responses": { + "200": { + "description": "The Traffic Manager heatmap.", + "schema": { + "$ref": "#/definitions/HeatMapModel" + } + }, + "default": { + "description": "Default response. It will be deserialized as per the Error definition.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "HeatMap-GET": { + "$ref": "./examples/HeatMap-GET.json" + }, + "HeatMap-GET-With-TopLeft-BotRight": { + "$ref": "./examples/HeatMap-GET-With-TopLeft-BotRight.json" + }, + "HeatMap-GET-With-Null-Values": { + "$ref": "./examples/HeatMap-GET-With-Null-Values.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.", + "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 subscription-level Traffic Manager Real User Metrics key.", + "schema": { + "$ref": "#/definitions/UserMetricsModel" + } + }, + "default": { + "description": "Default response. It will be deserialized as per the Error definition.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "TrafficManagerUserMetricsKeys-GET": { + "$ref": "./examples/TrafficManagerUserMetricsKeys-GET.json" + } + } + }, + "put": { + "tags": [ + "RealUserMetrics" + ], + "operationId": "TrafficManagerUserMetricsKeys_CreateOrUpdate", + "description": "Create or update a subscription-level key used for Real User Metrics collection.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "201": { + "description": "A new subscription-level key has been created for Real User Metrics collection.", + "schema": { + "$ref": "#/definitions/UserMetricsModel" + } + }, + "default": { + "description": "Default response. It will be deserialized as per the Error definition.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "TrafficManagerUserMetricsKeys-PUT": { + "$ref": "./examples/TrafficManagerUserMetricsKeys-PUT.json" + } + } + }, + "delete": { + "tags": [ + "RealUserMetrics" + ], + "operationId": "TrafficManagerUserMetricsKeys_Delete", + "description": "Delete a subscription-level key used for Real User Metrics collection.", + "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 Traffic Manager Real User Metrics key was deleted successfully.", + "schema": { + "$ref": "#/definitions/DeleteOperationResult" + } + }, + "default": { + "description": "Default response. It will be deserialized as per the Error definition.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "TrafficManagerUserMetricsKeys-DELETE": { + "$ref": "./examples/TrafficManagerUserMetricsKeys-DELETE.json" + } + } + } + } + }, + "definitions": { + "DeleteOperationResult": { + "properties": { + "boolean": { + "type": "boolean", + "x-ms-client-name": "operationResult", + "readOnly": true, + "description": "The result of the operation or request." + } + }, + "description": "The result of the request or operation." + }, + "EndpointProperties": { + "properties": { + "targetResourceId": { + "type": "string", + "description": "The Azure Resource URI of the of the endpoint. Not applicable to endpoints of type 'ExternalEndpoints'." + }, + "target": { + "type": "string", + "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 + } + }, + "weight": { + "type": "integer", + "format": "int64", + "description": "The weight of this endpoint when using the 'Weighted' traffic routing method. Possible values are from 1 to 1000." + }, + "priority": { + "type": "integer", + "format": "int64", + "description": "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." + }, + "endpointLocation": { + "type": "string", + "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" + ], + "x-ms-enum": { + "name": "EndpointMonitorStatus", + "modelAsString": true + } + }, + "minChildEndpoints": { + "type": "integer", + "format": "int64", + "description": "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'." + }, + "minChildEndpointsIPv4": { + "type": "integer", + "format": "int64", + "description": "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'." + }, + "minChildEndpointsIPv6": { + "type": "integer", + "format": "int64", + "description": "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'." + }, + "geoMapping": { + "type": "array", + "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", + "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." + }, + "customHeaders": { + "type": "array", + "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." + }, + "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 + } + } + }, + "description": "Class representing a Traffic Manager endpoint properties." + }, + "HeatMapModel": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/HeatMapProperties", + "description": "The properties of the Traffic Manager HeatMap." + } + }, + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ], + "description": "Class representing a Traffic Manager HeatMap." + }, + "UserMetricsModel": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/UserMetricsProperties", + "description": "The properties of the Traffic Manager User Metrics." + } + }, + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ], + "description": "Class representing Traffic Manager User Metrics." + }, + "QueryExperience": { + "properties": { + "endpointId": { + "type": "integer", + "description": "The id of the endpoint from the 'endpoints' array which these queries were routed to." + }, + "queryCount": { + "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." + } + }, + "required": [ + "endpointId", + "queryCount" + ], + "description": "Class representing a Traffic Manager HeatMap query experience properties." + }, + "TrafficFlow": { + "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" + } + } + }, + "description": "Class representing a Traffic Manager HeatMap traffic flow properties." + }, + "HeatMapProperties": { + "properties": { + "startTime": { + "type": "string", + "format": "date-time", + "description": "The beginning of the time window for this HeatMap, inclusive." + }, + "endTime": { + "type": "string", + "format": "date-time", + "description": "The ending of the time window for this HeatMap, exclusive." + }, + "endpoints": { + "type": "array", + "description": "The endpoints used in this HeatMap calculation.", + "items": { + "$ref": "#/definitions/HeatMapEndpoint" + } + }, + "trafficFlows": { + "type": "array", + "description": "The traffic flows produced in this HeatMap calculation.", + "items": { + "$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": { + "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 + } + }, + "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 + } + }, + "port": { + "type": "integer", + "format": "int64", + "description": "The TCP port used to probe for endpoint health." + }, + "path": { + "type": "string", + "description": "The path relative to the endpoint domain name used to probe for endpoint health." + }, + "intervalInSeconds": { + "type": "integer", + "format": "int64", + "description": "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." + }, + "timeoutInSeconds": { + "type": "integer", + "format": "int64", + "description": "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." + }, + "toleratedNumberOfFailures": { + "type": "integer", + "format": "int64", + "description": "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." + }, + "customHeaders": { + "type": "array", + "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." + }, + "expectedStatusCodeRanges": { + "type": "array", + "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." + }, + "description": "List of expected status code ranges." + } + }, + "description": "Class containing endpoint monitoring settings in a Traffic Manager profile." + }, + "ProfileProperties": { + "properties": { + "profileStatus": { + "type": "string", + "description": "The status of the Traffic Manager profile.", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "ProfileStatus", + "modelAsString": true + } + }, + "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 + } + }, + "dnsConfig": { + "$ref": "#/definitions/DnsConfig", + "description": "The DNS settings of the Traffic Manager profile." + }, + "monitorConfig": { + "$ref": "#/definitions/MonitorConfig", + "description": "The endpoint monitoring settings of the Traffic Manager profile." + }, + "endpoints": { + "type": "array", + "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 + } + }, + "allowedEndpointRecordTypes": { + "type": "array", + "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" + } + }, + "description": "Class representing the Traffic Manager profile properties." + }, + "AllowedEndpointRecordType": { + "description": "The allowed type DNS record types for this profile.", + "type": "string", + "enum": [ + "DomainName", + "IPv4Address", + "IPv6Address", + "Any" + ], + "x-ms-enum": { + "name": "AllowedEndpointRecordType", + "modelAsString": true + } + }, + "Profile": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ProfileProperties", + "description": "The properties of the Traffic Manager profile." + } + }, + "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." + } + }, + "description": "The list Traffic Manager profiles operation response." + }, + "TrafficManagerNameAvailability": { + "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." + }, + "reason": { + "type": "string", + "description": "The reason why the name is not available, when applicable." + }, + "message": { + "type": "string", + "description": "Descriptive message that explains why the name is not available, when applicable." + } + }, + "description": "Class representing a Traffic Manager Name Availability response." + }, + "Region": { + "properties": { + "code": { + "type": "string", + "description": "The code of the region" + }, + "name": { + "type": "string", + "description": "The name of the region" + }, + "regions": { + "type": "array", + "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": { + "description": "The core properties of ARM resources", + "properties": { + "id": { + "type": "string", + "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": { + "type": "string", + "description": "The type of the resource. Ex- Microsoft.Network/trafficManagerProfiles." + } + }, + "x-ms-azure-resource": true + }, + "TrackedResource": { + "description": "The resource model definition for a ARM tracked top level resource", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-ms-mutability": [ + "read", + "create", + "update" + ], + "description": "Resource tags." + }, + "location": { + "type": "string", + "x-ms-mutability": [ + "read", + "create" + ], + "description": "The Azure Region where the resource lives" + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ] + }, + "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" + } + ] + }, + "CloudError": { + "type": "object", + "properties": { + "error": { + "$ref": "#/definitions/CloudErrorBody", + "description": "The content of the error." + } + }, + "description": "An error returned by the Azure Resource Manager", + "x-ms-external": true + }, + "CloudErrorBody": { + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "Error code" + }, + "message": { + "type": "string", + "description": "Error message" + }, + "target": { + "type": "string", + "description": "Error target" + }, + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/CloudErrorBody" + }, + "description": "Error details" + } + }, + "description": "The content of an error returned by the Azure Resource Manager", + "x-ms-external": true + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "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" + } + } + } +} From 64bb4e66b59825047a12acc85d37a05ad300d8f1 Mon Sep 17 00:00:00 2001 From: Siddharth Saklecha Date: Mon, 30 Jan 2023 16:33:19 +0530 Subject: [PATCH 2/8] Updates readme --- .../trafficmanager/resource-manager/readme.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/specification/trafficmanager/resource-manager/readme.md b/specification/trafficmanager/resource-manager/readme.md index eaf63bfbf2dc..6553087d7af3 100644 --- a/specification/trafficmanager/resource-manager/readme.md +++ b/specification/trafficmanager/resource-manager/readme.md @@ -26,7 +26,7 @@ These are the global settings for the TrafficManager API. ``` yaml openapi-type: arm -tag: package-preview-2022-04 +tag: package-2022-04 ``` ### Suppression @@ -60,14 +60,23 @@ directive: ``` +### Tag: package-2022-04 + +These settings apply only when `--tag=package-2022-04` is specified on the command line. + +```yaml $(tag) == 'package-2022-04' +input-file: + - Microsoft.Network/stable/2022-04-01/trafficmanager.json +``` ### Tag: package-preview-2022-04 These settings apply only when `--tag=package-preview-2022-04` is specified on the command line. -```yaml $(tag) == 'package-preview-2022-04' +``` yaml $(tag) == 'package-preview-2022-04' input-file: - Microsoft.Network/preview/2022-04-01-preview/trafficmanager.json ``` + ### Tag: package-2018-08 These settings apply only when `--tag=package-2018-08` is specified on the command line. From 76209f4199786610a71e9ff85721bcb1bdf4bca4 Mon Sep 17 00:00:00 2001 From: Siddharth Saklecha Date: Mon, 30 Jan 2023 16:33:22 +0530 Subject: [PATCH 3/8] Updates API version in new specs and examples --- .../stable/2022-04-01/examples/Endpoint-DELETE-External.json | 2 +- .../examples/Endpoint-GET-External-WithGeoMapping.json | 2 +- .../2022-04-01/examples/Endpoint-GET-External-WithLocation.json | 2 +- .../examples/Endpoint-GET-External-WithSubnetMapping.json | 2 +- .../2022-04-01/examples/Endpoint-PATCH-External-Target.json | 2 +- .../examples/Endpoint-PUT-External-WithAlwaysServe.json | 2 +- .../examples/Endpoint-PUT-External-WithCustomHeaders.json | 2 +- .../examples/Endpoint-PUT-External-WithGeoMapping.json | 2 +- .../2022-04-01/examples/Endpoint-PUT-External-WithLocation.json | 2 +- .../examples/Endpoint-PUT-External-WithSubnetMapping.json | 2 +- .../2022-04-01/examples/GeographicHierarchy-GET-default.json | 2 +- .../2022-04-01/examples/HeatMap-GET-With-Null-Values.json | 2 +- .../2022-04-01/examples/HeatMap-GET-With-TopLeft-BotRight.json | 2 +- .../stable/2022-04-01/examples/HeatMap-GET.json | 2 +- .../NameAvailabilityTest_NameAvailable-POST-example-21.json | 2 +- .../NameAvailabilityTest_NameNotAvailable-POST-example-23.json | 2 +- .../stable/2022-04-01/examples/Profile-DELETE.json | 2 +- .../stable/2022-04-01/examples/Profile-GET-ByResourceGroup.json | 2 +- .../stable/2022-04-01/examples/Profile-GET-BySubscription.json | 2 +- .../stable/2022-04-01/examples/Profile-GET-WithEndpoints.json | 2 +- .../examples/Profile-GET-WithTrafficViewDisabled.json | 2 +- .../2022-04-01/examples/Profile-GET-WithTrafficViewEnabled.json | 2 +- .../stable/2022-04-01/examples/Profile-PATCH-MonitorConfig.json | 2 +- .../stable/2022-04-01/examples/Profile-PUT-MultiValue.json | 2 +- .../stable/2022-04-01/examples/Profile-PUT-NoEndpoints.json | 2 +- .../stable/2022-04-01/examples/Profile-PUT-WithAliasing.json | 2 +- .../2022-04-01/examples/Profile-PUT-WithCustomHeaders.json | 2 +- .../stable/2022-04-01/examples/Profile-PUT-WithEndpoints.json | 2 +- .../2022-04-01/examples/Profile-PUT-WithNestedEndpoints.json | 2 +- .../examples/TrafficManagerUserMetricsKeys-DELETE.json | 2 +- .../2022-04-01/examples/TrafficManagerUserMetricsKeys-GET.json | 2 +- .../2022-04-01/examples/TrafficManagerUserMetricsKeys-PUT.json | 2 +- .../Microsoft.Network/stable/2022-04-01/trafficmanager.json | 2 +- 33 files changed, 33 insertions(+), 33 deletions(-) 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 777b0bb0a9f7..6aa251abfc4a 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 @@ -5,7 +5,7 @@ "profileName": "azsmnet6386", "endpointType": "ExternalEndpoints", "endpointName": "azsmnet7187", - "api-version": "2022-04-01-preview" + "api-version": "2022-04-01" }, "responses": { "200": { 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 894725d56c1e..d73e5d3ab922 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 @@ -5,7 +5,7 @@ "profileName": "azuresdkfornetautoresttrafficmanager8224", "endpointType": "ExternalEndpoints", "endpointName": "My%20external%20endpoint", - "api-version": "2022-04-01-preview" + "api-version": "2022-04-01" }, "responses": { "200": { 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 33fb9567b216..326334a24307 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 @@ -5,7 +5,7 @@ "profileName": "azsmnet6386", "endpointType": "ExternalEndpoints", "endpointName": "azsmnet7187", - "api-version": "2022-04-01-preview" + "api-version": "2022-04-01" }, "responses": { "200": { 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 05aa99d0d198..7d6307fe3539 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 @@ -5,7 +5,7 @@ "profileName": "azuresdkfornetautoresttrafficmanager8224", "endpointType": "ExternalEndpoints", "endpointName": "My%20external%20endpoint", - "api-version": "2022-04-01-preview" + "api-version": "2022-04-01" }, "responses": { "200": { 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 93c5974313ed..3388a5b13f75 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 @@ -5,7 +5,7 @@ "profileName": "azsmnet6386", "endpointType": "ExternalEndpoints", "endpointName": "azsmnet7187", - "api-version": "2022-04-01-preview", + "api-version": "2022-04-01", "parameters": { "id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386/externalEndpoints/azsmnet7187", "name": "azsmnet7187", 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 c027e3b6b046..044320a25bda 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 @@ -5,7 +5,7 @@ "profileName": "azsmnet6386", "endpointType": "ExternalEndpoints", "endpointName": "azsmnet7187", - "api-version": "2022-04-01-preview", + "api-version": "2022-04-01", "parameters": { "name": "azsmnet7187", "type": "Microsoft.network/TrafficManagerProfiles/ExternalEndpoints", 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 8fa3a68656fa..2bbaa0daef92 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 @@ -5,7 +5,7 @@ "profileName": "azsmnet6386", "endpointType": "ExternalEndpoints", "endpointName": "azsmnet7187", - "api-version": "2022-04-01-preview", + "api-version": "2022-04-01", "parameters": { "name": "azsmnet7187", "type": "Microsoft.network/TrafficManagerProfiles/ExternalEndpoints", 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 ad2b24d79ef6..7ceb8b01afcc 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 @@ -5,7 +5,7 @@ "profileName": "azuresdkfornetautoresttrafficmanager8224", "endpointType": "ExternalEndpoints", "endpointName": "My%20external%20endpoint", - "api-version": "2022-04-01-preview", + "api-version": "2022-04-01", "parameters": { "name": "My external endpoint", "type": "Microsoft.network/TrafficManagerProfiles/ExternalEndpoints", 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 e253c618ed50..f60f44ac3a77 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 @@ -5,7 +5,7 @@ "profileName": "azsmnet6386", "endpointType": "ExternalEndpoints", "endpointName": "azsmnet7187", - "api-version": "2022-04-01-preview", + "api-version": "2022-04-01", "parameters": { "name": "azsmnet7187", "type": "Microsoft.network/TrafficManagerProfiles/ExternalEndpoints", 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 335a4b433084..837d36a9313c 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 @@ -5,7 +5,7 @@ "profileName": "azuresdkfornetautoresttrafficmanager8224", "endpointType": "ExternalEndpoints", "endpointName": "My%20external%20endpoint", - "api-version": "2022-04-01-preview", + "api-version": "2022-04-01", "parameters": { "name": "My external endpoint", "type": "Microsoft.network/TrafficManagerProfiles/ExternalEndpoints", 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 36e0f8d0a635..9b21bc3a8924 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 @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-04-01-preview" + "api-version": "2022-04-01" }, "responses": { "200": { 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 a22f7a17bce7..3a8940f55561 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 @@ -4,7 +4,7 @@ "resourceGroupName": "azuresdkfornetautoresttrafficmanager1323", "profileName": "azuresdkfornetautoresttrafficmanager3880", "heatMapType": "default", - "api-version": "2022-04-01-preview" + "api-version": "2022-04-01" }, "responses": { "200": { 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 2a0899db8691..287879fe8623 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 @@ -12,7 +12,7 @@ -50.001, 80.000 ], - "api-version": "2022-04-01-preview" + "api-version": "2022-04-01" }, "responses": { "200": { 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 688a7178c648..1901e4b339d0 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 @@ -4,7 +4,7 @@ "resourceGroupName": "azuresdkfornetautoresttrafficmanager1323", "profileName": "azuresdkfornetautoresttrafficmanager3880", "heatMapType": "default", - "api-version": "2022-04-01-preview" + "api-version": "2022-04-01" }, "responses": { "200": { 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 8acac1ae856b..25a4094f60f5 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 @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-04-01-preview", + "api-version": "2022-04-01", "parameters": { "name": "azsmnet5403", "type": "microsoft.network/trafficmanagerprofiles" 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 afac485f826e..9419a37f8049 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 @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-04-01-preview", + "api-version": "2022-04-01", "parameters": { "name": "azsmnet4696", "type": "microsoft.network/trafficmanagerprofiles" 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 0423efd9fce2..6a512202792c 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 @@ -3,7 +3,7 @@ "subscriptionId": "{subscription-id}", "resourceGroupName": "azuresdkfornetautoresttrafficmanager1323", "profileName": "azuresdkfornetautoresttrafficmanager3880", - "api-version": "2022-04-01-preview" + "api-version": "2022-04-01" }, "responses": { "200": { 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 e6f8daa437cb..feb86c1cf12b 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 @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "azuresdkfornetautoresttrafficmanager3640", - "api-version": "2022-04-01-preview" + "api-version": "2022-04-01" }, "responses": { "200": { 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 db0b08f8cb17..0246761854af 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,7 +1,7 @@ { "parameters": { "subscriptionId": "{subscription-id}", - "api-version": "2022-04-01-preview" + "api-version": "2022-04-01" }, "responses": { "200": { 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 695c89216f71..d173a46c9f6f 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 @@ -3,7 +3,7 @@ "subscriptionId": "{subscription-id}", "resourceGroupName": "azuresdkfornetautoresttrafficmanager1323", "profileName": "azuresdkfornetautoresttrafficmanager3880", - "api-version": "2022-04-01-preview" + "api-version": "2022-04-01" }, "responses": { "200": { 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 501f5a3e2fbd..0d1a709f4c59 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 @@ -3,7 +3,7 @@ "subscriptionId": "{subscription-id}", "resourceGroupName": "azuresdkfornetautoresttrafficmanager1323", "profileName": "azuresdkfornetautoresttrafficmanager3880", - "api-version": "2022-04-01-preview" + "api-version": "2022-04-01" }, "responses": { "200": { 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 8d5212dd34b0..18babcaa3658 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 @@ -3,7 +3,7 @@ "subscriptionId": "{subscription-id}", "resourceGroupName": "azuresdkfornetautoresttrafficmanager1323", "profileName": "azuresdkfornetautoresttrafficmanager3880", - "api-version": "2022-04-01-preview" + "api-version": "2022-04-01" }, "responses": { "200": { 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 6d638b999de5..bdefb0098e03 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 @@ -3,7 +3,7 @@ "subscriptionId": "{subscription-id}", "resourceGroupName": "azuresdkfornetautoresttrafficmanager2583", "profileName": "azuresdkfornetautoresttrafficmanager6192", - "api-version": "2022-04-01-preview", + "api-version": "2022-04-01", "parameters": { "properties": { "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 8bef0e4e9b1e..dd36dffbac30 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 @@ -3,7 +3,7 @@ "subscriptionId": "{subscription-id}", "resourceGroupName": "azuresdkfornetautoresttrafficmanager1421", "profileName": "azsmnet6386", - "api-version": "2022-04-01-preview", + "api-version": "2022-04-01", "parameters": { "properties": { "profileStatus": "Enabled", 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 fad562701b34..965a8dbd4f7e 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 @@ -3,7 +3,7 @@ "subscriptionId": "{subscription-id}", "resourceGroupName": "azuresdkfornetautoresttrafficmanager1421", "profileName": "azsmnet6386", - "api-version": "2022-04-01-preview", + "api-version": "2022-04-01", "parameters": { "properties": { "profileStatus": "Enabled", 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 1641cea9b154..742cd065c16d 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 @@ -3,7 +3,7 @@ "subscriptionId": "{subscription-id}", "resourceGroupName": "azuresdkfornetautoresttrafficmanager2583", "profileName": "azuresdkfornetautoresttrafficmanager6192", - "api-version": "2022-04-01-preview", + "api-version": "2022-04-01", "parameters": { "properties": { "profileStatus": "Enabled", 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 33d6cc07083b..9ff450c5bd28 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 @@ -3,7 +3,7 @@ "subscriptionId": "{subscription-id}", "resourceGroupName": "azuresdkfornetautoresttrafficmanager2583", "profileName": "azuresdkfornetautoresttrafficmanager6192", - "api-version": "2022-04-01-preview", + "api-version": "2022-04-01", "parameters": { "properties": { "profileStatus": "Enabled", 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 1c37ce186e54..4e570a8a972c 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 @@ -3,7 +3,7 @@ "subscriptionId": "{subscription-id}", "resourceGroupName": "azuresdkfornetautoresttrafficmanager2583", "profileName": "azuresdkfornetautoresttrafficmanager6192", - "api-version": "2022-04-01-preview", + "api-version": "2022-04-01", "parameters": { "properties": { "profileStatus": "Enabled", 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 084c03d73cc2..2bdcff76a956 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 @@ -3,7 +3,7 @@ "subscriptionId": "{subscription-id}", "resourceGroupName": "myresourcegroup", "profileName": "parentprofile", - "api-version": "2022-04-01-preview", + "api-version": "2022-04-01", "parameters": { "properties": { "profileStatus": "Enabled", 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 1e0215a2d87e..d70aabb6ec1f 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,7 +1,7 @@ { "parameters": { "subscriptionId": "{subscription-id}", - "api-version": "2022-04-01-preview" + "api-version": "2022-04-01" }, "responses": { "200": { 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 6fdd922c4840..ff537e57863c 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,7 +1,7 @@ { "parameters": { "subscriptionId": "{subscription-id}", - "api-version": "2022-04-01-preview" + "api-version": "2022-04-01" }, "responses": { "200": { 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 7fbc5f01759c..3bc3e600dc34 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,7 +1,7 @@ { "parameters": { "subscriptionId": "{subscription-id}", - "api-version": "2022-04-01-preview" + "api-version": "2022-04-01" }, "responses": { "201": { 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 f528bccf8ea2..eb837cf8c41e 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,7 +2,7 @@ "swagger": "2.0", "info": { "title": "TrafficManagerManagementClient", - "version": "2022-04-01-preview" + "version": "2022-04-01" }, "host": "management.azure.com", "schemes": [ From 25d3a212b9e3134d22888fc410d382820dfe8466 Mon Sep 17 00:00:00 2001 From: Siddharth Saklecha Date: Tue, 31 Jan 2023 12:39:50 +0530 Subject: [PATCH 4/8] Add new endpoint monitoring status Unmonitored for always serve. --- .../Microsoft.Network/stable/2022-04-01/trafficmanager.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 eb837cf8c41e..6940da2debb5 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 @@ -973,7 +973,8 @@ "Degraded", "Disabled", "Inactive", - "Stopped" + "Stopped", + "Unmonitored" ], "x-ms-enum": { "name": "EndpointMonitorStatus", From f70e878a1b17e1c639999d5f5ab659ce1abf30dc Mon Sep 17 00:00:00 2001 From: Siddharth Saklecha Date: Tue, 31 Jan 2023 23:32:33 +0530 Subject: [PATCH 5/8] Add new API checkNameV2 --- ...yV2Test_NameAvailable-POST-example-21.json | 19 ++++++++ ...Test_NameNotAvailable-POST-example-23.json | 21 ++++++++ .../stable/2022-04-01/trafficmanager.json | 48 +++++++++++++++++++ 3 files changed, 88 insertions(+) create mode 100644 specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/NameAvailabilityV2Test_NameAvailable-POST-example-21.json create mode 100644 specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/NameAvailabilityV2Test_NameNotAvailable-POST-example-23.json 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 new file mode 100644 index 000000000000..b474cfc2a46c --- /dev/null +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/NameAvailabilityV2Test_NameAvailable-POST-example-21.json @@ -0,0 +1,19 @@ +{ + "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 + } + } + } +} 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 new file mode 100644 index 000000000000..5b9375842a28 --- /dev/null +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2022-04-01/examples/NameAvailabilityV2Test_NameNotAvailable-POST-example-23.json @@ -0,0 +1,21 @@ +{ + "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", + "nameAvailable": false, + "reason": "AlreadyExists", + "message": "Domain name azsmnet4696.tmpreview.watmtest.azure-test.net already exists. Please choose a different DNS prefix." + } + } + } +} 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 6940da2debb5..b6ccb37123d2 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 @@ -375,6 +375,54 @@ } } }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/checkTrafficManagerNameAvailabilityV2": { + "post": { + "tags": [ + "Profiles" + ], + "operationId": "Profiles_CheckTrafficManagerRelativeDnsNameAvailabilityV2", + "description": "Checks the availability of a Traffic Manager Relative DNS name.", + "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." + } + ], + "responses": { + "200": { + "description": "The Traffic Manager Name Availability.", + "schema": { + "$ref": "#/definitions/TrafficManagerNameAvailability" + } + }, + "default": { + "description": "Default response. It will be deserialized as per the Error definition.", + "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" + } + } + } + }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficmanagerprofiles": { "get": { "tags": [ From 7172a373f02cc7cae70f255ebd81da3e2db83351 Mon Sep 17 00:00:00 2001 From: Siddharth Saklecha Date: Tue, 31 Jan 2023 23:41:42 +0530 Subject: [PATCH 6/8] Fix error, Add subscriptionId in parameter --- .../NameAvailabilityV2Test_NameAvailable-POST-example-21.json | 4 ++-- ...meAvailabilityV2Test_NameNotAvailable-POST-example-23.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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 b474cfc2a46c..5e79af991fa7 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,10 +1,10 @@ { "parameters": { "api-version": "2022-04-01", + "subscriptionId": "{subscription-id}", "parameters": { "name": "azsmnet5403", - "type": "microsoft.network/trafficmanagerprofiles", - "subscriptionId": "{subscription-id}" + "type": "microsoft.network/trafficmanagerprofiles" } }, "responses": { 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 5b9375842a28..b48e38867402 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,10 +1,10 @@ { "parameters": { "api-version": "2022-04-01", + "subscriptionId": "{subscription-id}", "parameters": { "name": "azsmnet4696", - "type": "microsoft.network/trafficmanagerprofiles", - "subscriptionId": "{subscription-id}" + "type": "microsoft.network/trafficmanagerprofiles" } }, "responses": { From 6251207b2a96bed108cc078ebb663aaec6468d56 Mon Sep 17 00:00:00 2001 From: Siddharth Saklecha Date: Thu, 2 Feb 2023 19:32:12 +0530 Subject: [PATCH 7/8] Fix Swagger LintDiff. --- .../stable/2022-04-01/trafficmanager.json | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) 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 b6ccb37123d2..9aded8b2fcee 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 @@ -380,7 +380,7 @@ "tags": [ "Profiles" ], - "operationId": "Profiles_CheckTrafficManagerRelativeDnsNameAvailabilityV2", + "operationId": "Profiles_checkTrafficManagerNameAvailabilityV2", "description": "Checks the availability of a Traffic Manager Relative DNS name.", "parameters": [ { @@ -1668,5 +1668,23 @@ "user_impersonation": "impersonate your user account" } } + }, + "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" + } } } From 530821c2b4f1f5c30abf398f747a6277f6bef15b Mon Sep 17 00:00:00 2001 From: Siddharth Saklecha Date: Tue, 14 Feb 2023 20:15:10 +0530 Subject: [PATCH 8/8] Fix prettier errors. --- .../Microsoft.Network/stable/2022-04-01/trafficmanager.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 9aded8b2fcee..63e7f1b82c97 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 @@ -1676,7 +1676,7 @@ "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" + "x-ms-parameter-location": "client" }, "ApiVersionParameter": { "name": "api-version", @@ -1684,7 +1684,7 @@ "required": true, "type": "string", "description": "Client Api Version.", - "x-ms-parameter-location":"client" + "x-ms-parameter-location": "client" } } }