Skip to content

Commit

Permalink
Adding support for interface endpoints (#3783)
Browse files Browse the repository at this point in the history
* Creating Interface Endpoint definition

* Adding references to interface endpoints in existing resources
  • Loading branch information
rupalivohra authored and dsgouda committed Aug 31, 2018
1 parent 17d1ddf commit da8dc7c
Show file tree
Hide file tree
Showing 9 changed files with 602 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{
"parameters" : {
"api-version": "2018-08-01",
"subscriptionId" : "subId",
"resourceGroupName": "rg1",
"interfaceEndpointName": "testIe",
"parameters": {
"properties": {
"fqdn": "uniqueIdentifier.fqdn.windows.net",
"subnet": {
"id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet"
},
"endpointService": {
"id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Provider/resourceType/resourceName"
}
}
}
},
"responses" : {
"200" : {
"body" : {
"name" : "testIe",
"id" : "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/interfaceEndpoints/testIe",
"location" : "eastus",
"properties" : {
"provisioningState" : "Succeeded",
"fqdn": "uniqueIdentifier.fqdn.windows.net",
"owner": "User",
"endpointService": {
"id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Provider/resourceType/resourceName"
},
"subnet": {
"id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet"
},
"networkInterfaces": [
{
"id": "/subscriptions/subId/resourceGroups/rg1/provders/Microsoft.Network/networkInterfaces/testIe.nic.abcd1234"
}
]
}
}
},
"201" : {
"body" : {
"name" : "testIe",
"id" : "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/interfaceEndpoints/testIe",
"location" : "eastus",
"properties" : {
"provisioningState" : "Succeeded",
"fqdn": "uniqueIdentifier.fqdn.windows.net",
"owner": "User",
"endpointService": {
"id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Provider/resourceType/resourceName"
},
"subnet": {
"id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet"
},
"networkInterfaces": [
{
"id": "/subscriptions/subId/resourceGroups/rg1/provders/Microsoft.Network/networkInterfaces/testIe.nic.abcd1234"
}
]
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"parameters" : {
"api-version": "2018-08-01",
"subscriptionId" : "subId",
"resourceGroupName": "rg1",
"networkInterfaceName": "testIe"
},
"responses" : {
"200" : { },
"202" : { },
"204" : { }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"parameters" : {
"api-version": "2018-08-01",
"subscriptionId" : "subId",
"resourceGroupName" : "rg1",
"virtualNetworkName" : "testIe"
},
"responses" : {
"200" : {
"body" : {
"name" : "testIe",
"id" : "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/interfaceEndpoints/testIe",
"type" : "Microsoft.Network/interfaceEndpoints",
"location" : "eastus",
"properties" : {
"provisioningState" : "Succeeded",
"fqdn": "uniqueIdentifier.fqdn.windows.net",
"owner": "User",
"endpointService": {
"id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Provider/resourceType/resourceName"
},
"subnet": {
"id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet"
},
"networkInterfaces": [
{
"id": "/subscriptions/subId/resourceGroups/rg1/provders/Microsoft.Network/networkInterfaces/testIe.nic.abcd1234"
}
]
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"parameters" : {
"api-version": "2018-08-01",
"subscriptionId" : "subId",
"resourceGroupName" : "rg1"
},
"responses" : {
"200" : {
"body" : {
"value": [
{
"id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/interfaceEndpoints/ie1",
"name": "ie1",
"type": "Microsoft.Network/interfaceEndpoints",
"location": "eastus",
"properties" : {
"provisioningState" : "Succeeded",
"fqdn": "uniqueIdentifier.fqdn.windows.net",
"owner": "User",
"endpointService": {
"id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Provider/resourceType/resourceName"
},
"subnet": {
"id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet"
},
"networkInterfaces": [
{
"id": "/subscriptions/subId/resourceGroups/rg1/provders/Microsoft.Network/networkInterfaces/ie1.nic.abcd1234"
}
]
}
},
{
"id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/interfaceEndpoints/ie2",
"name": "ie2",
"type": "Microsoft.Network/interfaceEndpoints",
"location": "eastus",
"properties" : {
"provisioningState" : "Succeeded",
"fqdn": "alsoUnique.fqdn.windows.net",
"owner": "User",
"endpointService": {
"id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Provider/resourceType/otherResourceName"
},
"subnet": {
"id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet"
},
"networkInterfaces": [
{
"id": "/subscriptions/subId/resourceGroups/rg1/provders/Microsoft.Network/networkInterfaces/ie2.nic.zyxw9876"
}
]
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
{
"parameters" : {
"api-version": "2018-08-01",
"subscriptionId" : "subId"
},
"responses" : {
"200" : {
"body" : {
"value": [
{
"id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/interfaceEndpoints/ie1",
"name": "ie1",
"type": "Microsoft.Network/interfaceEndpoints",
"location": "eastus",
"properties" : {
"provisioningState" : "Succeeded",
"fqdn": "uniqueIdentifier.fqdn.windows.net",
"owner": "User",
"endpointService": {
"id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Provider/resourceType/resourceName"
},
"subnet": {
"id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet"
},
"networkInterfaces": [
{
"id": "/subscriptions/subId/resourceGroups/rg1/provders/Microsoft.Network/networkInterfaces/ie1.nic.abcd1234"
}
]
}
},
{
"id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/interfaceEndpoints/ie2",
"name": "ie2",
"type": "Microsoft.Network/interfaceEndpoints",
"location": "eastus",
"properties" : {
"provisioningState" : "Succeeded",
"fqdn": "alsoUnique.fqdn.windows.net",
"owner": "User",
"endpointService": {
"id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Provider/resourceType/otherResourceName"
},
"subnet": {
"id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet"
},
"networkInterfaces": [
{
"id": "/subscriptions/subId/resourceGroups/rg1/provders/Microsoft.Network/networkInterfaces/ie2.nic.zyxw9876"
}
]
}
},
{
"id": "/subscriptions/subId/resourceGroups/rg2/providers/Microsoft.Network/interfaceEndpoints/ie1",
"name": "ie1",
"type": "Microsoft.Network/interfaceEndpoints",
"location": "eastus",
"properties" : {
"provisioningState" : "Succeeded",
"fqdn": "stillVeryUnique.fqdn.windows.net",
"owner": "User",
"endpointService": {
"id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Provider/resourceType/resourceName"
},
"subnet": {
"id": "/subscriptions/subId/resourceGroups/rg2/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet"
},
"networkInterfaces": [
{
"id": "/subscriptions/subId/resourceGroups/rg2/provders/Microsoft.Network/networkInterfaces/ie1.nic.efgh5463"
}
]
}
}
]
}
}
}
}
Loading

0 comments on commit da8dc7c

Please sign in to comment.