-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Network Profile swagger and examples (#3806)
* add network profile swagger and examples * add x-ms-client-flatten property as per feedback * appease travis by fixing model + examples
- Loading branch information
1 parent
a3b4803
commit cc47342
Showing
9 changed files
with
1,220 additions
and
0 deletions.
There are no files selected for viewing
110 changes: 110 additions & 0 deletions
110
...-manager/Microsoft.Network/stable/2018-08-01/examples/NetworkProfileCreateConfigOnly.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2018-08-01", | ||
"subscriptionId": "subid", | ||
"resourceGroupName": "rg1", | ||
"networkProfileName": "networkProfile1", | ||
"location": "westus", | ||
"parameters": { | ||
"properties": { | ||
"containerNetworkInterfaceConfigurations": [ | ||
{ | ||
"name": "eth1", | ||
"properties": { | ||
"ipConfigurations": [ | ||
{ | ||
"name": "ipconfig1", | ||
"properties": { | ||
"subnet": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/networkProfileVnet/subnets/networkProfileSubnet1" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "networkProfile1", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1", | ||
"etag": "W/\"4d705a71-752f-4e0a-8057-c02b125b1c08\"", | ||
"type": "Microsoft.Network/networkProfiles", | ||
"location": "westus", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"resourceGuid": "1570d8b6-ab8a-4ad2-81d6-d2799b429cbf", | ||
"containerNetworkInterfaceConfigurations": [ | ||
{ | ||
"name": "eth1", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1/containerNetworkInterfaceConfigurations/eth1", | ||
"etag": "W/\"4d705a71-752f-4e0a-8057-c02b125b1c08\"", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"ipConfigurations": [ | ||
{ | ||
"name": "ipconfig1", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1/containerNetworkInterfaceConfigurations/eth1/ipConfigurations/ipconfig1", | ||
"etag": "W/\"4d705a71-752f-4e0a-8057-c02b125b1c08\"", | ||
"type": "Microsoft.Network/networkProfiles/containerNetworkInterfaceConfigurations/ipConfigurations", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"subnet": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/networkProfileVnet/subnets/networkProfileSubnet1" | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
"type": "Microsoft.Network/networkProfiles/containerNetworkInterfaceConfigurations" | ||
} | ||
], | ||
"containerNetworkInterfaces": [] | ||
} | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"name": "networkProfile1", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1", | ||
"etag": "W/\"4d705a71-752f-4e0a-8057-c02b125b1c08\"", | ||
"type": "Microsoft.Network/networkProfiles", | ||
"location": "westus", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"resourceGuid": "1570d8b6-ab8a-4ad2-81d6-d2799b429cbf", | ||
"containerNetworkInterfaceConfigurations": [ | ||
{ | ||
"name": "eth1", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1/containerNetworkInterfaceConfigurations/eth1", | ||
"etag": "W/\"4d705a71-752f-4e0a-8057-c02b125b1c08\"", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"ipConfigurations": [ | ||
{ | ||
"name": "ipconfig1", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1/containerNetworkInterfaceConfigurations/eth1/ipConfigurations/ipconfig1", | ||
"etag": "W/\"4d705a71-752f-4e0a-8057-c02b125b1c08\"", | ||
"type": "Microsoft.Network/networkProfiles/containerNetworkInterfaceConfigurations/ipConfigurations", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"subnet": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/networkProfileVnet/subnets/networkProfileSubnet1" | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
"type": "Microsoft.Network/networkProfiles/containerNetworkInterfaceConfigurations" | ||
} | ||
], | ||
"containerNetworkInterfaces": [] | ||
} | ||
} | ||
} | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...k/resource-manager/Microsoft.Network/stable/2018-08-01/examples/NetworkProfileDelete.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2018-08-01", | ||
"subscriptionId": "subid", | ||
"resourceGroupName": "rg1", | ||
"networkProfileName": "networkProfile1" | ||
}, | ||
"responses": { | ||
"204": { } | ||
} | ||
} |
84 changes: 84 additions & 0 deletions
84
...rce-manager/Microsoft.Network/stable/2018-08-01/examples/NetworkProfileGetConfigOnly.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2018-08-01", | ||
"subscriptionId": "subid", | ||
"resourceGroupName": "rg1", | ||
"networkProfileName": "networkProfile1" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "networkProfile1", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1", | ||
"etag": "W/\"4d705a71-752f-4e0a-8057-c02b125b1c08\"", | ||
"type": "Microsoft.Network/networkProfiles", | ||
"location": "centraluseuap", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"resourceGuid": "1570d8b6-ab8a-4ad2-81d6-d2799b429cbf", | ||
"containerNetworkInterfaceConfigurations": [ | ||
{ | ||
"name": "eth0", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1/containerNetworkInterfaceConfigurations/eth0", | ||
"etag": "W/\"4d705a71-752f-4e0a-8057-c02b125b1c08\"", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"ipConfigurations": [ | ||
{ | ||
"name": "ipconfigprofile1", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1/containerNetworkInterfaceConfigurations/eth0/ipConfigurations/ipconfigprofile1", | ||
"etag": "W/\"4d705a71-752f-4e0a-8057-c02b125b1c08\"", | ||
"type": "Microsoft.Network/networkProfiles/containerNetworkInterfaceConfigurations/ipConfigurations", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"subnet": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/networkProfileVnet/subnets/networkProfileSubnet1" | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "ipconfigprofile2", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1/containerNetworkInterfaceConfigurations/eth0/ipConfigurations/ipconfigprofile2", | ||
"etag": "W/\"4d705a71-752f-4e0a-8057-c02b125b1c08\"", | ||
"type": "Microsoft.Network/networkProfiles/containerNetworkInterfaceConfigurations/ipConfigurations", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"subnet": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/networkProfileVnet/subnets/networkProfileSubnet1" | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
"type": "Microsoft.Network/networkProfiles/containerNetworkInterfaceConfigurations" | ||
}, | ||
{ | ||
"name": "eth1", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1/containerNetworkInterfaceConfigurations/eth1", | ||
"etag": "W/\"4d705a71-752f-4e0a-8057-c02b125b1c08\"", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"ipConfigurations": [ | ||
{ | ||
"name": "ipconfigprofile3", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1/containerNetworkInterfaceConfigurations/eth1/ipConfigurations/ipconfigprofile3", | ||
"etag": "W/\"4d705a71-752f-4e0a-8057-c02b125b1c08\"", | ||
"type": "Microsoft.Network/networkProfiles/containerNetworkInterfaceConfigurations/ipConfigurations", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"subnet": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/networkProfileVnet/subnets/networkProfileSubnet1" | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
"type": "Microsoft.Network/networkProfiles/containerNetworkInterfaceConfigurations" | ||
} | ||
], | ||
"containerNetworkInterfaces": [] | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.