Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(apim): Introduce gateway resource #27757

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
34a4096
WIP
tomkerkhove Feb 13, 2024
c43d385
Update sample
tomkerkhove Feb 13, 2024
c7061ec
WIP
tomkerkhove Feb 13, 2024
66bbd83
Add GatewayNameParameter
tomkerkhove Feb 14, 2024
1652ca0
Clean up
tomkerkhove Feb 14, 2024
2895550
Update sample
tomkerkhove Feb 14, 2024
7cf2865
Add another sample
tomkerkhove Feb 14, 2024
ea21dae
Add sample for delete gateway
tomkerkhove Feb 14, 2024
b1cafb9
Remove endpoints
tomkerkhove Feb 14, 2024
21699be
Fix typo
tomkerkhove Feb 15, 2024
582ea4d
Add list sample
tomkerkhove Feb 15, 2024
86ee4d1
Clean up
tomkerkhove Feb 15, 2024
cb5bae6
Add disclaimer
tomkerkhove Feb 15, 2024
c934632
Make it pretty 💄
tomkerkhove Feb 15, 2024
4b1de1e
Refer to new file
tomkerkhove Feb 15, 2024
c87ca12
Add missing ApiManagementGatewayListResult
tomkerkhove Feb 15, 2024
c9cf768
Update sample reference
tomkerkhove Feb 15, 2024
4155b28
Remove ApiManagementGatewayIdentity + List by operation
tomkerkhove Feb 15, 2024
2f22363
Add more sample
tomkerkhove Feb 15, 2024
c714c46
Latest version of common types
tomkerkhove Feb 16, 2024
7710859
Remove 200 for delete
tomkerkhove Feb 16, 2024
ab4b52a
Formatting and re-order
tomkerkhove Feb 16, 2024
3cea56c
Align with spec
tomkerkhove Feb 16, 2024
d273c31
Align sample with spec
tomkerkhove Feb 16, 2024
fd20b2f
Error response from common types
tomkerkhove Feb 17, 2024
c11db92
Rename SKU name
tomkerkhove Mar 14, 2024
ffe5459
Have seperate SKU for patch to not make it mandatory
tomkerkhove Mar 18, 2024
1244f11
Remove empty required
tomkerkhove Mar 18, 2024
ac24d03
Improve note
tomkerkhove Mar 18, 2024
6e4e3c2
Rename schema
tomkerkhove Mar 18, 2024
349dc32
Remove unused type
tomkerkhove Mar 18, 2024
2717bba
sku.capacity should not be required
tomkerkhove Mar 19, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,17 @@
"description": "Email identifier.",
"x-ms-parameter-location": "method"
},
"GatewayNameParameter": {
"name": "gatewayName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the API Management gateway.",
"minLength": 1,
"maxLength": 50,
"pattern": "^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$",
"x-ms-parameter-location": "method"
},
"GroupIdParameter": {
"name": "groupId",
"in": "path",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
{
"parameters": {
"gatewayName": "apimGateway1",
"resourceGroupName": "rg1",
"api-version": "2023-09-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"parameters": {
"properties": {
"backend": {
"subnet": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vn1/subnets/sn1"
}
}
},
"sku": {
"name": "Standard",
"capacity": 1
},
"location": "South Central US",
"tags": {
"Name": "Contoso",
"Test": "User"
}
}
},
"responses": {
"201": {
"headers": {
"Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/gateways/apimGateway1/operationresults/ZWFzdHVzOmFuZHktdGVzdGluZy0yMDIyLTA0LTAxLXByZXZpZXctNF9BY3RfODQ2ZWE4Ng==?api-version=2023-09-01-preview&asyncResponse",
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/gateways/apimGateway1/operationresults/ZWFzdHVzOmFuZHktdGVzdGluZy0yMDIyLTA0LTAxLXByZXZpZXctNF9BY3RfODQ2ZWE4Ng==?api-version=2023-09-01-preview&asyncResponse"
},
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/gateways/apimGateway1",
"name": "apimGateway1",
"type": "Microsoft.ApiManagement/gateway",
"tags": {
"api-version": "2023-09-01-preview"
},
"location": "East US",
"etag": "AAAAAAAmRAM=",
"properties": {
"provisioningState": "Created",
"targetProvisioningState": "Activating",
"createdAtUtc": "2022-07-11T18:41:01.2506031Z",
"backend": {
"subnet": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vn1/subnets/sn1"
}
}
},
"sku": {
"name": "Standard",
"capacity": 1
},
"systemData": {
"createdBy": "user@contoso.com",
"createdByType": "User",
"createdAt": "2022-07-11T18:41:00.9390609Z",
"lastModifiedBy": "user@contoso.com",
"lastModifiedByType": "User",
"lastModifiedAt": "2022-07-11T18:41:00.9390609Z"
}
}
},
"200": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/gateways/apimGateway1",
"name": "apimGateway1",
"type": "Microsoft.ApiManagement/gateways",
"tags": {
"api-version": "2023-09-01-preview"
},
"location": "East US",
"etag": "AAAAAAAmREI=",
"properties": {
"provisioningState": "Succeeded",
"targetProvisioningState": "",
"createdAtUtc": "2022-07-11T18:41:01.2506031Z",
"frontend": {
"defaultHostname": "apimGateway1.eastus.gateway.azure-api.net"
},
"backend": {
"subnet": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vn1/subnets/sn1"
}
},
"configurationApi": {
"hostname": "apimGateway1.eastus.configuration.gateway.azure-api.net"
}
},
"sku": {
"name": "Standard",
"capacity": 1
},
"systemData": {
"createdBy": "user@contoso.com",
"createdByType": "User",
"createdAt": "2022-07-11T18:41:00.9390609Z",
"lastModifiedBy": "user@contoso.com",
"lastModifiedByType": "User",
"lastModifiedAt": "2022-07-11T18:41:00.9390609Z"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"parameters": {
"gatewayName": "example-gateway",
"resourceGroupName": "rg1",
"api-version": "2023-09-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000"
},
"responses": {
"202": {
"headers": {
"location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/gateway/example-gateway/operationresults/TGV2eTExMDZtMDJfVGVybV9jMmZlY2QwMA==?api-version=2023-09-01-preview"
},
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/gateway/example-gateway",
"name": "example-gateway",
"type": "Microsoft.ApiManagement/gateway",
"tags": {},
"location": "West US",
"etag": "AAAAAAFfhHY=",
"properties": {
"provisioningState": "Succeeded",
"targetProvisioningState": "Deleting",
"createdAtUtc": "2016-12-20T19:41:21.5823069Z",
"frontend": {
"defaultHostname": "example-gateway.westus.gateway.azure-api.net"
},
"backend": {
"subnet": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vn1/subnets/sn1"
}
},
"configurationApi": {
"hostname": "example-gateway.westus.configuration.gateway.azure-api.net"
}
},
"sku": {
"name": "Standard",
"capacity": 1
}
}
},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"parameters": {
"gatewayName": "apimService1",
"resourceGroupName": "rg1",
"api-version": "2023-09-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/gateway/example-gateway",
"name": "example-gateway",
"type": "Microsoft.ApiManagement/gateway",
"tags": {
"owner": "v-aswmoh",
"ReleaseName": "Z3"
},
"location": "East US",
"etag": "AAAAAAAWN/4=",
"properties": {
"provisioningState": "Succeeded",
"targetProvisioningState": "",
"createdAtUtc": "2021-06-16T09:40:00.9453556Z",
"frontend": {
"defaultHostname": "example-gateway.eastus.gateway.azure-api.net"
},
"backend": {
"subnet": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vn1/subnets/sn1"
}
},
"configurationApi": {
"hostname": "example-gateway.eastus.configuration.gateway.azure-api.net"
}
},
"sku": {
"name": "Standard",
"capacity": 1
},
"systemData": {
"createdBy": "string",
"createdByType": "User",
"createdAt": "2021-06-16T09:40:00.7106733Z",
"lastModifiedBy": "foo@contoso.com",
"lastModifiedByType": "User",
"lastModifiedAt": "2021-06-20T06:33:09.6159006Z"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
{
"parameters": {
"api-version": "2023-09-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/gateways/standard-gw-1",
"name": "standard-gw-1",
"type": "Microsoft.ApiManagement/gateways",
"tags": {
"owner": "v-aswmoh",
"ReleaseName": "Z3"
},
"location": "West US",
"etag": "AAAAAAAWN/4=",
"properties": {
"provisioningState": "Succeeded",
"targetProvisioningState": "",
"createdAtUtc": "2021-06-16T09:40:00.9453556Z",
"frontend": {
"defaultHostname": "standard-gw-1.westus.gateway.azure-api.net"
},
"backend": {
"subnet": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vn1/subnets/sn1"
}
},
"configurationApi": {
"hostname": "standard-gw-1.westus.configuration.gateway.azure-api.net"
}
},
"sku": {
"name": "Standard",
"capacity": 1
},
"systemData": {
"createdBy": "bar@contoso.com",
"createdByType": "User",
"createdAt": "2021-06-16T09:40:00.7106733Z",
"lastModifiedBy": "foo@contoso.com",
"lastModifiedByType": "User",
"lastModifiedAt": "2021-06-20T06:33:09.6159006Z"
}
},
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg2/providers/Microsoft.ApiManagement/gateways/standard-gw-2",
"name": "standard-gw-2",
"type": "Microsoft.ApiManagement/gateways",
"tags": {
"Owner": "vitaliik"
},
"location": "East US",
"etag": "AAAAAAAWKwo=",
"properties": {
"provisioningState": "Succeeded",
"targetProvisioningState": "",
"createdAtUtc": "2021-06-16T09:40:00.9453556Z",
"frontend": {
"defaultHostname": "standard-gw-2.eastus.gateway.azure-api.net"
},
"backend": {
"subnet": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vn2/subnets/sn2"
}
},
"configurationApi": {
"hostname": "standard-gw-2.eastus.configuration.gateway.azure-api.net"
}
},
"sku": {
"name": "Standard",
"capacity": 1
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
{
"parameters": {
"resourceGroupName": "rg1",
"api-version": "2023-09-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/gateways/standard-gw-1",
"name": "standard-gw-1",
"type": "Microsoft.ApiManagement/gateways",
"tags": {
"owner": "v-aswmoh",
"ReleaseName": "Z3"
},
"location": "West US",
"etag": "AAAAAAAWN/4=",
"properties": {
"provisioningState": "Succeeded",
"targetProvisioningState": "",
"createdAtUtc": "2021-06-16T09:40:00.9453556Z",
"frontend": {
"defaultHostname": "standard-gw-1.westus.gateway.azure-api.net"
},
"backend": {
"subnet": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vn1/subnets/sn1"
}
},
"configurationApi": {
"hostname": "standard-gw-1.westus.configuration.gateway.azure-api.net"
}
},
"sku": {
"name": "Standard",
"capacity": 1
},
"systemData": {
"createdBy": "bar@contoso.com",
"createdByType": "User",
"createdAt": "2021-06-16T09:40:00.7106733Z",
"lastModifiedBy": "foo@contoso.com",
"lastModifiedByType": "User",
"lastModifiedAt": "2021-06-20T06:33:09.6159006Z"
}
},
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/gateways/standard-gw-2",
"name": "standard-gw-2",
"type": "Microsoft.ApiManagement/gateways",
"tags": {
"Owner": "vitaliik"
},
"location": "East US",
"etag": "AAAAAAAWKwo=",
"properties": {
"provisioningState": "Succeeded",
"targetProvisioningState": "",
"createdAtUtc": "2021-06-16T09:40:00.9453556Z",
"frontend": {
"defaultHostname": "standard-gw-2.eastus.gateway.azure-api.net"
},
"backend": {
"subnet": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vn2/subnets/sn2"
}
},
"configurationApi": {
"hostname": "standard-gw-2.eastus.configuration.gateway.azure-api.net"
}
},
"sku": {
"name": "Standard",
"capacity": 1
}
}
]
}
}
}
}
Loading