Skip to content

Commit

Permalink
AGC v.2024-05-01-preview (#28726)
Browse files Browse the repository at this point in the history
* init

* examples ref + security config

* readme changes

* main + examples

* addressing arm review comments

* fixing validation errors from comment fixes

* remmoving ddos changes

* adding documentation and addressing warnings

* securitypolicy config !readonly + validation

* validation errors

* securityconfig array -> field

* v5 + examples

* example operation id

* readme fixes

* keeping stable version as well

* reverting 2023-11-01 changes

* adding docs for PR pipeline

* new line

* reverting

* updating to latest tsp syntax

* versioning

* removing 200s from 2023-11-01

* push

* description space
  • Loading branch information
malpaniHMC committed May 23, 2024
1 parent 9a19f9c commit 306da47
Show file tree
Hide file tree
Showing 54 changed files with 3,703 additions and 62 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"associationName": "as1"
},
"responses": {
"200": {},
"202": {
"headers": {
"Retry-After": 3,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"frontendName": "fe1"
},
"responses": {
"200": {},
"202": {
"headers": {
"Retry-After": 3,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"trafficControllerName": "tc1"
},
"responses": {
"200": {},
"202": {
"headers": {
"Retry-After": 3,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"title": "Delete Association",
"operationId": "AssociationsInterface_Delete",
"parameters": {
"api-version": "2024-05-01-preview",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"trafficControllerName": "tc1",
"associationName": "as1"
},
"responses": {
"202": {
"headers": {
"Retry-After": 3,
"location": "https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/associations/as1"
}
},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"title": "Get Association",
"operationId": "AssociationsInterface_Get",
"parameters": {
"api-version": "2024-05-01-preview",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"trafficControllerName": "tc1",
"associationName": "as1"
},
"responses": {
"200": {
"body": {
"name": "as1",
"type": "Microsoft.ServiceNetworking/trafficControllers/associations",
"id": "/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/associations/as1",
"location": "NorthCentralUS",
"properties": {
"associationType": "subnets",
"subnet": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet-tc/subnets/tc-subnet"
},
"provisioningState": "Succeeded"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"title": "Update Association",
"operationId": "AssociationsInterface_Update",
"parameters": {
"api-version": "2024-05-01-preview",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"trafficControllerName": "tc1",
"associationName": "as1",
"properties": {
"properties": {
"associationType": "subnets",
"subnet": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet-tc/subnets/tc-subnet"
}
}
}
},
"responses": {
"200": {
"body": {
"name": "as1",
"type": "Microsoft.ServiceNetworking/trafficControllers/associations",
"id": "/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/associations/as1",
"location": "NorthCentralUS",
"properties": {
"associationType": "subnets",
"subnet": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet-tc/subnets/tc-subnet"
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"title": "Put Association",
"operationId": "AssociationsInterface_CreateOrUpdate",
"parameters": {
"api-version": "2024-05-01-preview",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"trafficControllerName": "tc1",
"associationName": "as1",
"resource": {
"location": "NorthCentralUS",
"properties": {
"associationType": "subnets",
"subnet": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet-tc/subnets/tc-subnet"
}
}
}
},
"responses": {
"200": {
"body": {
"name": "associatedvnet-1",
"type": "Microsoft.ServiceNetworking/trafficControllers/associations",
"id": "/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/associations/as1",
"location": "NorthCentralUS",
"properties": {
"associationType": "subnets",
"subnet": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet-tc/subnets/tc-subnet"
},
"provisioningState": "Accepted"
}
}
},
"201": {
"body": {
"name": "associatedvnet-1",
"type": "Microsoft.ServiceNetworking/trafficControllers/associations",
"id": "/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/associations/as1",
"location": "NorthCentralUS",
"properties": {
"associationType": "subnets",
"subnet": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet-tc/subnets/tc-subnet"
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"title": "Get Associations",
"operationId": "AssociationsInterface_ListByTrafficController",
"parameters": {
"api-version": "2024-05-01-preview",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"trafficControllerName": "tc1"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "as1",
"type": "Microsoft.ServiceNetworking/trafficControllers/associations",
"id": "/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/associations/as1",
"location": "NorthCentralUS",
"properties": {
"associationType": "subnets",
"subnet": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet-tc/subnets/tc-subnet"
},
"provisioningState": "Succeeded"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"title": "Delete Frontend",
"operationId": "FrontendsInterface_Delete",
"parameters": {
"api-version": "2024-05-01-preview",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"trafficControllerName": "tc1",
"frontendName": "fe1"
},
"responses": {
"202": {
"headers": {
"Retry-After": 3,
"location": "https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/frontends/fe1"
}
},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"title": "Get Frontend",
"operationId": "FrontendsInterface_Get",
"parameters": {
"api-version": "2024-05-01-preview",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"trafficControllerName": "tc1",
"frontendName": "fe1"
},
"responses": {
"200": {
"body": {
"name": "fe1",
"location": "NorthCentralUS",
"type": "Microsoft.ServiceNetworking/trafficControllers/frontends",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/frontends/fe1",
"properties": {
"fqdn": "test.net",
"provisioningState": "Succeeded"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"title": "Update Frontend",
"operationId": "FrontendsInterface_Update",
"parameters": {
"api-version": "2024-05-01-preview",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"trafficControllerName": "tc1",
"frontendName": "fe1",
"properties": {}
},
"responses": {
"200": {
"body": {
"name": "fe1",
"location": "NorthCentralUS",
"type": "Microsoft.ServiceNetworking/trafficControllers/frontends",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/frontends/fe1",
"properties": {
"fqdn": "test.net",
"provisioningState": "Succeeded"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"title": "Put Frontend",
"operationId": "FrontendsInterface_CreateOrUpdate",
"parameters": {
"api-version": "2024-05-01-preview",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"trafficControllerName": "tc1",
"frontendName": "fe1",
"resource": {
"location": "NorthCentralUS",
"properties": {}
}
},
"responses": {
"200": {
"body": {
"name": "fe1",
"location": "NorthCentralUS",
"type": "Microsoft.ServiceNetworking/trafficControllers/frontends",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/frontends/fe1",
"properties": {
"fqdn": "test.net",
"provisioningState": "Succeeded"
}
}
},
"201": {
"body": {
"name": "fe1",
"location": "NorthCentralUS",
"type": "Microsoft.ServiceNetworking/trafficControllers/frontends",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/frontends/fe1",
"properties": {
"fqdn": "test.net",
"provisioningState": "Succeeded"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"title": "Get Frontends",
"operationId": "FrontendsInterface_ListByTrafficController",
"parameters": {
"api-version": "2024-05-01-preview",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"trafficControllerName": "tc1"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "fe1",
"location": "NorthCentralUS",
"type": "Microsoft.ServiceNetworking/trafficControllers/frontends",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/frontends/fe1",
"properties": {
"fqdn": "test.net",
"provisioningState": "Succeeded"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"title": "Get Operations List",
"operationId": "Operations_List",
"parameters": {
"api-version": "2024-05-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "Microsoft.ServiceNetworking/trafficControllers/read",
"isDataAction": false,
"display": {
"provider": "Microsoft Service Networking",
"resource": "Traffic Controller",
"operation": "Get Traffic Controller configuration",
"description": "Traffic Controller is a L7 Load Balancing solution for a Multi Cluster setup"
},
"origin": "user,system"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"title": "Get SecurityPolicies",
"operationId": "SecurityPoliciesInterface_ListByTrafficController",
"parameters": {
"api-version": "2024-05-01-preview",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"trafficControllerName": "tc1"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "waf-0",
"type": "Microsoft.ServiceNetworking/trafficControllers/securityPolicies",
"id": "/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/sample-tc/securityPolicies/waf-0",
"location": "eastus",
"properties": {
"policyType": "waf",
"wafPolicy": {
"id": "/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.Networking/applicationGatewayWebApplicationFirewallPolicies/wp-0"
},
"provisioningState": "Succeeded"
}
}
]
}
}
}
}
Loading

0 comments on commit 306da47

Please sign in to comment.