-
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 IpAllocation resource for Hypernet IP management. (#8701)
* Add IpAllocation resource for Hypernet IP management. * Fix path issue. * Fix some issues by PR comments. * Fix document issue. * Fix reference with SubResource. * Fix IpAllocation tags name issue. * Add patch operation to IpAllocation resource. * Fix spell issue with pretter.
- Loading branch information
Showing
10 changed files
with
691 additions
and
0 deletions.
There are no files selected for viewing
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
52 changes: 52 additions & 0 deletions
52
...ork/resource-manager/Microsoft.Network/stable/2020-03-01/examples/IpAllocationCreate.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,52 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2020-03-01", | ||
"subscriptionId": "subid", | ||
"resourceGroupName": "rg1", | ||
"ipAllocationName": "test-ipallocation", | ||
"parameters": { | ||
"properties": { | ||
"type": "Hypernet", | ||
"prefix": "3.2.5.0/24", | ||
"allocationTags": { | ||
"VNetID": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/HypernetVnet1" | ||
} | ||
}, | ||
"location": "centraluseuap" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "test-ipallocation", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/IpAllocations/test-ipallocation", | ||
"type": "Microsoft.Network/IpAllocations", | ||
"location": "centraluseuap", | ||
"properties": { | ||
"type": "Hypernet", | ||
"prefix": "3.2.5.0/24", | ||
"ipamAllocationId": "916d3b28-663f-448b-9abc-1bea9d5fed8f", | ||
"allocationTags": { | ||
"VNetID": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/HypernetVnet1" | ||
} | ||
} | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"name": "test-ipallocation", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/IpAllocations/test-ipallocation", | ||
"type": "Microsoft.Network/IpAllocations", | ||
"location": "centraluseuap", | ||
"properties": { | ||
"type": "Hypernet", | ||
"prefix": "3.2.5.0/24", | ||
"ipamAllocationId": "916d3b28-663f-448b-9abc-1bea9d5fed8f", | ||
"allocationTags": { | ||
"VNetID": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/HypernetVnet1" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...ork/resource-manager/Microsoft.Network/stable/2020-03-01/examples/IpAllocationDelete.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,13 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2020-03-01", | ||
"subscriptionId": "subid", | ||
"resourceGroupName": "rg1", | ||
"ipAllocationName": "test-ipallocation" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"202": {}, | ||
"204": {} | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
...etwork/resource-manager/Microsoft.Network/stable/2020-03-01/examples/IpAllocationGet.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,26 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2020-03-01", | ||
"subscriptionId": "subid", | ||
"resourceGroupName": "rg1", | ||
"ipAllocationName": "test-ipallocation" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "test-ipallocation", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/IpAllocations/test-ipallocation", | ||
"type": "Microsoft.Network/IpAllocations", | ||
"location": "centraluseuap", | ||
"properties": { | ||
"type": "Hypernet", | ||
"prefix": "3.2.5.0/24", | ||
"ipamAllocationId": "916d3b28-663f-448b-9abc-1bea9d5fed8f", | ||
"allocationTags": { | ||
"VNetID": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/HypernetVnet1" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
...twork/resource-manager/Microsoft.Network/stable/2020-03-01/examples/IpAllocationList.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,42 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2020-03-01", | ||
"subscriptionId": "subid" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"name": "test-ipallocation1", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/IpAllocations/test-ipallocation1", | ||
"type": "Microsoft.Network/IpAllocations", | ||
"location": "centraluseuap", | ||
"properties": { | ||
"type": "Hypernet", | ||
"prefix": "3.2.5.0/24", | ||
"ipamAllocationId": "916d3b28-663f-448b-9abc-1bea9d5fed8f", | ||
"allocationTags": { | ||
"VNetID": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/HypernetVnet1" | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "test-ipallocation2", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/IpAllocations/test-ipallocation2", | ||
"type": "Microsoft.Network/IpAllocations", | ||
"location": "centraluseuap", | ||
"properties": { | ||
"type": "Hypernet", | ||
"prefix": "3.2.6.0/24", | ||
"ipamAllocationId": "57dc7256-2ff7-43f2-b9c8-85a70b5c6408", | ||
"allocationTags": { | ||
"VNetID": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/HypernetVnet2" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
43 changes: 43 additions & 0 deletions
43
...manager/Microsoft.Network/stable/2020-03-01/examples/IpAllocationListByResourceGroup.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,43 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2020-03-01", | ||
"subscriptionId": "subid", | ||
"resourceGroupName": "rg1" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"name": "test-ipallocation1", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/IpAllocations/test-ipallocation1", | ||
"type": "Microsoft.Network/IpAllocations", | ||
"location": "centraluseuap", | ||
"properties": { | ||
"type": "Hypernet", | ||
"prefix": "3.2.5.0/24", | ||
"ipamAllocationId": "916d3b28-663f-448b-9abc-1bea9d5fed8f", | ||
"allocationTags": { | ||
"VNetID": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/HypernetVnet1" | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "test-ipallocation2", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/IpAllocations/test-ipallocation2", | ||
"type": "Microsoft.Network/IpAllocations", | ||
"location": "centraluseuap", | ||
"properties": { | ||
"type": "Hypernet", | ||
"prefix": "3.2.6.0/24", | ||
"ipamAllocationId": "57dc7256-2ff7-43f2-b9c8-85a70b5c6408", | ||
"allocationTags": { | ||
"VNetID": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/HypernetVnet2" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
...resource-manager/Microsoft.Network/stable/2020-03-01/examples/IpAllocationUpdateTags.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,37 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2020-03-01", | ||
"subscriptionId": "subid", | ||
"resourceGroupName": "rg1", | ||
"ipAllocationName": "test-ipallocation", | ||
"location": "centraluseuap", | ||
"parameters": { | ||
"tags": { | ||
"tag1": "value1", | ||
"tag2": "value2" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "test-ipallocation", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/IpAllocations/test-ipallocation", | ||
"type": "Microsoft.Network/IpAllocations", | ||
"location": "centraluseuap", | ||
"tags": { | ||
"tag1": "value1", | ||
"tag2": "value2" | ||
}, | ||
"properties": { | ||
"type": "Hypernet", | ||
"prefix": "3.2.5.0/24", | ||
"ipamAllocationId": "916d3b28-663f-448b-9abc-1bea9d5fed8f", | ||
"allocationTags": { | ||
"VNetID": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/HypernetVnet1" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.