diff --git a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/Endpoint-DELETE-External.json b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/Endpoint-DELETE-External.json new file mode 100644 index 000000000000..9143454a9126 --- /dev/null +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/Endpoint-DELETE-External.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "subscriptionId": "e68d4145-c9ae-4667-925d-c51c8d88ad73", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager1421", + "profileName": "azsmnet6386", + "endpointType": "ExternalEndpoints", + "endpointName": "azsmnet7187", + "api-version": "2017-05-01" + }, + "responses": { + "200": { + "body": "" + }, + "204": { + "body": "" + } + } +} \ No newline at end of file diff --git a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/Endpoint-GET-External-WithGeoMapping.json b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/Endpoint-GET-External-WithGeoMapping.json new file mode 100644 index 000000000000..a70078bf3634 --- /dev/null +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/Endpoint-GET-External-WithGeoMapping.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "subscriptionId": "e68d4145-c9ae-4667-925d-c51c8d88ad73", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager2191", + "profileName": "azuresdkfornetautoresttrafficmanager8224", + "endpointType": "ExternalEndpoints", + "endpointName": "My%20external%20endpoint", + "api-version": "2017-05-01" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/e68d4145-c9ae-4667-925d-c51c8d88ad73/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" + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/Endpoint-GET-External-WithLocation.json b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/Endpoint-GET-External-WithLocation.json new file mode 100644 index 000000000000..53ff508ad1c9 --- /dev/null +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/Endpoint-GET-External-WithLocation.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "subscriptionId": "e68d4145-c9ae-4667-925d-c51c8d88ad73", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager1421", + "profileName": "azsmnet6386", + "endpointType": "ExternalEndpoints", + "endpointName": "azsmnet7187", + "api-version": "2017-05-01" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/e68d4145-c9ae-4667-925d-c51c8d88ad73/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" + } + } + } + } +} \ No newline at end of file diff --git a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/Endpoint-PATCH-External-Target.json b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/Endpoint-PATCH-External-Target.json new file mode 100644 index 000000000000..0aca89f118e0 --- /dev/null +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/Endpoint-PATCH-External-Target.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "subscriptionId": "e68d4145-c9ae-4667-925d-c51c8d88ad73", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager1421", + "profileName": "azsmnet6386", + "endpointType": "ExternalEndpoints", + "endpointName": "azsmnet7187", + "api-version": "2017-05-01", + "parameters": { + "id": "/subscriptions/e68d4145-c9ae-4667-925d-c51c8d88ad73/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/e68d4145-c9ae-4667-925d-c51c8d88ad73/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" + } + } + } + } +} \ No newline at end of file diff --git a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/Endpoint-PUT-External-WithCustomHeaders.json b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/Endpoint-PUT-External-WithCustomHeaders.json new file mode 100644 index 000000000000..72a83ad90e93 --- /dev/null +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/Endpoint-PUT-External-WithCustomHeaders.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "subscriptionId": "e68d4145-c9ae-4667-925d-c51c8d88ad73", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager1421", + "profileName": "azsmnet6386", + "endpointType": "ExternalEndpoints", + "endpointName": "azsmnet7187", + "api-version": "2017-05-01", + "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/e68d4145-c9ae-4667-925d-c51c8d88ad73/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/e68d4145-c9ae-4667-925d-c51c8d88ad73/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"}] + } + } + } + } +} \ No newline at end of file diff --git a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/Endpoint-PUT-External-WithGeoMapping.json b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/Endpoint-PUT-External-WithGeoMapping.json new file mode 100644 index 000000000000..1cbe461a0f39 --- /dev/null +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/Endpoint-PUT-External-WithGeoMapping.json @@ -0,0 +1,60 @@ +{ + "parameters": { + "subscriptionId": "e68d4145-c9ae-4667-925d-c51c8d88ad73", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager2191", + "profileName": "azuresdkfornetautoresttrafficmanager8224", + "endpointType": "ExternalEndpoints", + "endpointName": "My%20external%20endpoint", + "api-version": "2017-05-01", + "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/e68d4145-c9ae-4667-925d-c51c8d88ad73/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/e68d4145-c9ae-4667-925d-c51c8d88ad73/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" + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/Endpoint-PUT-External-WithLocation.json b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/Endpoint-PUT-External-WithLocation.json new file mode 100644 index 000000000000..32d7d5ed530a --- /dev/null +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/Endpoint-PUT-External-WithLocation.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "subscriptionId": "e68d4145-c9ae-4667-925d-c51c8d88ad73", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager1421", + "profileName": "azsmnet6386", + "endpointType": "ExternalEndpoints", + "endpointName": "azsmnet7187", + "api-version": "2017-05-01", + "parameters": { + "name": "azsmnet7187", + "type": "Microsoft.network/TrafficManagerProfiles/ExternalEndpoints", + "properties": { + "target": "foobar.contoso.com", + "endpointStatus": "Enabled", + "endpointLocation": "North Europe" + } + } + }, + "responses": { + "201": { + "body": { + "id": "/subscriptions/e68d4145-c9ae-4667-925d-c51c8d88ad73/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/e68d4145-c9ae-4667-925d-c51c8d88ad73/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" + } + } + } + } +} \ No newline at end of file diff --git a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/GeographicHierarchy-GET-default.json b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/GeographicHierarchy-GET-default.json new file mode 100644 index 000000000000..061d9b63134c --- /dev/null +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/GeographicHierarchy-GET-default.json @@ -0,0 +1,60 @@ +{ + "parameters": { + "api-version": "2017-05-01" + }, + "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": [] + } + ] + } + ] + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/HeatMap-GET-With-Null-Values.json b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/HeatMap-GET-With-Null-Values.json new file mode 100644 index 000000000000..a0bbcbd25901 --- /dev/null +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/HeatMap-GET-With-Null-Values.json @@ -0,0 +1,67 @@ +{ + "parameters": { + "subscriptionId": "e68d4145-c9ae-4667-925d-c51c8d88ad73", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager1323", + "profileName": "azuresdkfornetautoresttrafficmanager3880", + "heatMapType": "default", + "api-version": "2017-09-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/e68d4145-c9ae-4667-925d-c51c8d88ad73/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/e68d4145-c9ae-4667-925d-c51c8d88ad73/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 + } + ] + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/HeatMap-GET-With-TopLeft-BotRight.json b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/HeatMap-GET-With-TopLeft-BotRight.json new file mode 100644 index 000000000000..104e577dfc9d --- /dev/null +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/HeatMap-GET-With-TopLeft-BotRight.json @@ -0,0 +1,70 @@ +{ + "parameters": { + "subscriptionId": "e68d4145-c9ae-4667-925d-c51c8d88ad73", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager1323", + "profileName": "azuresdkfornetautoresttrafficmanager3880", + "heatMapType": "default", + "topLeft": [10.000,50.001], + "botRight": [-50.001,80.000], + "api-version": "2017-09-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/e68d4145-c9ae-4667-925d-c51c8d88ad73/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/e68d4145-c9ae-4667-925d-c51c8d88ad73/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 + } + ] + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/HeatMap-GET.json b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/HeatMap-GET.json new file mode 100644 index 000000000000..43ef96d21449 --- /dev/null +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/HeatMap-GET.json @@ -0,0 +1,68 @@ +{ + "parameters": { + "subscriptionId": "e68d4145-c9ae-4667-925d-c51c8d88ad73", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager1323", + "profileName": "azuresdkfornetautoresttrafficmanager3880", + "heatMapType": "default", + "api-version": "2017-09-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/e68d4145-c9ae-4667-925d-c51c8d88ad73/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/e68d4145-c9ae-4667-925d-c51c8d88ad73/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 + } + ] + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/NameAvailabilityTest_NameAvailable-POST-example-21.json b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/NameAvailabilityTest_NameAvailable-POST-example-21.json new file mode 100644 index 000000000000..ee69c6d3a24a --- /dev/null +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/NameAvailabilityTest_NameAvailable-POST-example-21.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "api-version": "2017-05-01", + "parameters": { + "name": "azsmnet5403", + "type": "microsoft.network/trafficmanagerprofiles" + } + }, + "responses": { + "200": { + "body": { + "name": "azsmnet5403", + "type": "Microsoft.Network/trafficManagerProfiles", + "nameAvailable": true + } + } + } +} \ No newline at end of file diff --git a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/NameAvailabilityTest_NameNotAvailable-POST-example-23.json b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/NameAvailabilityTest_NameNotAvailable-POST-example-23.json new file mode 100644 index 000000000000..c94d59401ab6 --- /dev/null +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/NameAvailabilityTest_NameNotAvailable-POST-example-23.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2017-05-01", + "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." + } + } + } +} \ No newline at end of file diff --git a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/Profile-DELETE.json b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/Profile-DELETE.json new file mode 100644 index 000000000000..71f1ca52ba03 --- /dev/null +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/Profile-DELETE.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "subscriptionId": "e68d4145-c9ae-4667-925d-c51c8d88ad73", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager1323", + "profileName": "azuresdkfornetautoresttrafficmanager3880", + "api-version": "2017-05-01" + }, + "responses": { + "200": { + "body": "" + }, + "204": { + "body": "" + } + } +} \ No newline at end of file diff --git a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/Profile-GET-ByResourceGroup.json b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/Profile-GET-ByResourceGroup.json new file mode 100644 index 000000000000..4c09c9413014 --- /dev/null +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/Profile-GET-ByResourceGroup.json @@ -0,0 +1,95 @@ +{ + "parameters": { + "subscriptionId": "e68d4145-c9ae-4667-925d-c51c8d88ad73", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager3640", + "api-version": "2017-05-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/e68d4145-c9ae-4667-925d-c51c8d88ad73/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/e68d4145-c9ae-4667-925d-c51c8d88ad73/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/e68d4145-c9ae-4667-925d-c51c8d88ad73/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/e68d4145-c9ae-4667-925d-c51c8d88ad73/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" + } + } + ] + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/Profile-GET-BySubscription.json b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/Profile-GET-BySubscription.json new file mode 100644 index 000000000000..4a82cb5e7e67 --- /dev/null +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/Profile-GET-BySubscription.json @@ -0,0 +1,122 @@ +{ + "parameters": { + "subscriptionId": "e68d4145-c9ae-4667-925d-c51c8d88ad73", + "api-version": "2017-05-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/e68d4145-c9ae-4667-925d-c51c8d88ad73/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/e68d4145-c9ae-4667-925d-c51c8d88ad73/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/e68d4145-c9ae-4667-925d-c51c8d88ad73/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/e68d4145-c9ae-4667-925d-c51c8d88ad73/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/e68d4145-c9ae-4667-925d-c51c8d88ad73/resourceGroups/onesdk9785/providers/Microsoft.Network/trafficManagerProfiles/onesdk8819/nestedEndpoints/MyNestedEndpoint", + "name": "MyNestedEndpoint", + "type": "Microsoft.Network/trafficManagerProfiles/nestedEndpoints", + "properties": { + "endpointStatus": "Enabled", + "endpointMonitorStatus": "Stopped", + "targetResourceId": "/subscriptions/e68d4145-c9ae-4667-925d-c51c8d88ad73/resourceGroups/onesdk9785/providers/Microsoft.Network/trafficManagerProfiles/onesdk1792", + "target": "onesdk4285.tmpreview.watmtest.azure-test.net", + "weight": 1, + "priority": 1, + "endpointLocation": "West Europe", + "minChildEndpoints": 1 + } + } + ] + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/Profile-GET-WithEndpoints.json b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/Profile-GET-WithEndpoints.json new file mode 100644 index 000000000000..49844f988a53 --- /dev/null +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/Profile-GET-WithEndpoints.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "subscriptionId": "e68d4145-c9ae-4667-925d-c51c8d88ad73", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager1323", + "profileName": "azuresdkfornetautoresttrafficmanager3880", + "api-version": "2017-05-01" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/e68d4145-c9ae-4667-925d-c51c8d88ad73/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/e68d4145-c9ae-4667-925d-c51c8d88ad73/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" + } + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/Profile-PATCH-MonitorConfig.json b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/Profile-PATCH-MonitorConfig.json new file mode 100644 index 000000000000..3316009739d0 --- /dev/null +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/Profile-PATCH-MonitorConfig.json @@ -0,0 +1,66 @@ +{ + "parameters": { + "subscriptionId": "e68d4145-c9ae-4667-925d-c51c8d88ad73", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager2583", + "profileName": "azuresdkfornetautoresttrafficmanager6192", + "api-version": "2017-05-01", + "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/e68d4145-c9ae-4667-925d-c51c8d88ad73/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/e68d4145-c9ae-4667-925d-c51c8d88ad73/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" + } + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/Profile-PUT-NoEndpoints.json b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/Profile-PUT-NoEndpoints.json new file mode 100644 index 000000000000..ae79c6653f34 --- /dev/null +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/Profile-PUT-NoEndpoints.json @@ -0,0 +1,80 @@ +{ + "parameters": { + "subscriptionId": "e68d4145-c9ae-4667-925d-c51c8d88ad73", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager1421", + "profileName": "azsmnet6386", + "api-version": "2017-05-01", + "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/e68d4145-c9ae-4667-925d-c51c8d88ad73/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/e68d4145-c9ae-4667-925d-c51c8d88ad73/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": [] + } + } + } + } +} \ No newline at end of file diff --git a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/Profile-PUT-WithAliasing.json b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/Profile-PUT-WithAliasing.json new file mode 100644 index 000000000000..a5914a96a036 --- /dev/null +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/Profile-PUT-WithAliasing.json @@ -0,0 +1,129 @@ +{ + "parameters": { + "subscriptionId": "e68d4145-c9ae-4667-925d-c51c8d88ad73", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager2583", + "profileName": "azuresdkfornetautoresttrafficmanager6192", + "api-version": "2017-05-01", + "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/e68d4145-c9ae-4667-925d-c51c8d88ad73/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/e68d4145-c9ae-4667-925d-c51c8d88ad73/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-overriden"}] + } + } + ] + } + } + }, + "200": { + "body": { + "id": "/subscriptions/e68d4145-c9ae-4667-925d-c51c8d88ad73/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/e68d4145-c9ae-4667-925d-c51c8d88ad73/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-overriden"}] + } + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/Profile-PUT-WithCustomHeaders.json b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/Profile-PUT-WithCustomHeaders.json new file mode 100644 index 000000000000..d69dc494f14c --- /dev/null +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/Profile-PUT-WithCustomHeaders.json @@ -0,0 +1,129 @@ +{ + "parameters": { + "subscriptionId": "e68d4145-c9ae-4667-925d-c51c8d88ad73", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager2583", + "profileName": "azuresdkfornetautoresttrafficmanager6192", + "api-version": "2017-05-01", + "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}] + }, + "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-overriden"}] + } + } + ] + }, + "location": "global" + } + }, + "responses": { + "201": { + "body": { + "id": "/subscriptions/e68d4145-c9ae-4667-925d-c51c8d88ad73/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"}] + }, + "endpoints": [ + { + "id": "/subscriptions/e68d4145-c9ae-4667-925d-c51c8d88ad73/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-overriden"}] + } + } + ] + } + } + }, + "200": { + "body": { + "id": "/subscriptions/e68d4145-c9ae-4667-925d-c51c8d88ad73/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"}] + }, + "endpoints": [ + { + "id": "/subscriptions/e68d4145-c9ae-4667-925d-c51c8d88ad73/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-overriden"}] + } + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/Profile-PUT-WithEndpoints.json b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/Profile-PUT-WithEndpoints.json new file mode 100644 index 000000000000..a5fb579a2f8f --- /dev/null +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/examples/Profile-PUT-WithEndpoints.json @@ -0,0 +1,122 @@ +{ + "parameters": { + "subscriptionId": "e68d4145-c9ae-4667-925d-c51c8d88ad73", + "resourceGroupName": "azuresdkfornetautoresttrafficmanager2583", + "profileName": "azuresdkfornetautoresttrafficmanager6192", + "api-version": "2017-05-01", + "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/e68d4145-c9ae-4667-925d-c51c8d88ad73/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/e68d4145-c9ae-4667-925d-c51c8d88ad73/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/e68d4145-c9ae-4667-925d-c51c8d88ad73/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/e68d4145-c9ae-4667-925d-c51c8d88ad73/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" + } + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/trafficmanager.json b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/trafficmanager.json new file mode 100644 index 000000000000..fbc034402522 --- /dev/null +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-03-01/trafficmanager.json @@ -0,0 +1,1403 @@ +{ + "swagger": "2.0", + "info": { + "title": "TrafficManagerManagementClient", + "version": "2018-03-01" + }, + "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": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group containing the Traffic Manager endpoint to be updated." + }, + { + "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." + }, + { + "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": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/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": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group containing the Traffic Manager endpoint." + }, + { + "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." + }, + { + "name": "endpointName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Traffic Manager endpoint." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/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" + } + } + }, + "put": { + "tags": [ + "Endpoints" + ], + "operationId": "Endpoints_CreateOrUpdate", + "description": "Create or update a Traffic Manager endpoint.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group containing the Traffic Manager endpoint to be created or updated." + }, + { + "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." + }, + { + "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": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/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-WithCustomHeaders": { + "$ref": "./examples/Endpoint-PUT-External-WithCustomHeaders.json" + } + } + }, + "delete": { + "tags": [ + "Endpoints" + ], + "operationId": "Endpoints_Delete", + "description": "Deletes a Traffic Manager endpoint.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group containing the Traffic Manager endpoint to be deleted." + }, + { + "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." + }, + { + "name": "endpointName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Traffic Manager endpoint to be deleted." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/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": "#/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": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group containing the Traffic Manager profiles to be listed." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/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": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/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": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group containing the Traffic Manager profile." + }, + { + "name": "profileName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Traffic Manager profile." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/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" + } + } + }, + "put": { + "tags": [ + "Profiles" + ], + "operationId": "Profiles_CreateOrUpdate", + "description": "Create or update a Traffic Manager profile.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group containing the Traffic Manager profile." + }, + { + "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": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/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-WithCustomHeaders": { + "$ref": "./examples/Profile-PUT-WithCustomHeaders.json" + } + } + }, + "delete": { + "tags": [ + "Profiles" + ], + "operationId": "Profiles_Delete", + "description": "Deletes a Traffic Manager profile.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group containing the Traffic Manager profile to be deleted." + }, + { + "name": "profileName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Traffic Manager profile to be deleted." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/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": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group containing the Traffic Manager profile." + }, + { + "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": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/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": "#/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": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group containing the Traffic Manager endpoint." + }, + { + "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" + ], + "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": "#/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" + } + } + } + } + }, + "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'." + }, + "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." + }, + "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." + } + }, + "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." + }, + "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" + ], + "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." + } + }, + "description": "Class representing the Traffic Manager profile properties." + }, + "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." + }, + "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 + } + }, + "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." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client Api Version." + } + }, + "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" + } + } + } +} \ No newline at end of file diff --git a/specification/trafficmanager/resource-manager/readme.md b/specification/trafficmanager/resource-manager/readme.md index 40598f4219e0..b1f822020b0a 100644 --- a/specification/trafficmanager/resource-manager/readme.md +++ b/specification/trafficmanager/resource-manager/readme.md @@ -25,7 +25,16 @@ These are the global settings for the TrafficManager API. ``` yaml openapi-type: arm -tag: package-2017-09-preview +tag: package-2018-03 +``` + +### Tag: package-2018-03 + +These settings apply only when `--tag=package-2018-03` is specified on the command line. + +``` yaml $(tag) == 'package-2018-03' +input-file: +- Microsoft.Network/stable/2018-03-01/trafficmanager.json ``` ### Tag: package-2017-09-preview @@ -150,19 +159,29 @@ go: ``` yaml $(go) && $(multiapi) batch: + - tag: package-2018-03 - tag: package-2017-09-preview - tag: package-2017-05 - tag: package-2017-03 - tag: package-2015-11 ``` +### Tag: package-2018-03 and go + +These settings apply only when `--tag=package-2018-03 --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +``` yaml $(tag) == 'package-2018-03' && $(go) +output-folder: $(go-sdk-folder)/services/trafficmanager/mgmt/2018-03/trafficmanager +``` + ### Tag: package-2017-09-preview and go These settings apply only when `--tag=package-2017-09-preview --go` is specified on the command line. Please also specify `--go-sdk-folder=`. ``` yaml $(tag) == 'package-2017-09-preview' && $(go) -output-folder: $(go-sdk-folder)/services/preview/trafficmanager/mgmt/2017-09-01-preview/trafficmanager +output-folder: $(go-sdk-folder)/services/trafficmanager/mgmt/2017-09-01-preview/trafficmanager ``` ### Tag: package-2017-05 and go