Skip to content

Commit ec119ba

Browse files
IP Prefix examples added.
1 parent 5a5e91b commit ec119ba

File tree

1 file changed

+37
-2
lines changed

1 file changed

+37
-2
lines changed

articles/operator-nexus/how-to-ip-prefixes.md

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,41 @@ This article explains the main management operations for IP prefixes and IP pref
1616

1717
## IP prefixes
1818

19+
### Example
20+
21+
The following json object is an example of an IP prefix resource that can be used in route policies: 
22+
23+
```azurecli
24+
{
25+
"id": "/subscriptions/subscription-id/resourceGroups/op1-cluster/providers/Microsoft.ManagedNetworkFabric/ipPrefixes/ipprefixv4-1204-cn1",
26+
"location": "eastus",
27+
"name": "ipprefixv4-1204-cn1",
28+
"provisioningState": "Succeeded",
29+
"resourceGroup": "op1-cluster",
30+
"ipPrefixRules": [
31+
{
32+
"action": "Permit",
33+
"networkPrefix": "10.10.10.0/28",
34+
"sequenceNumber": 10
35+
},
36+
{
37+
"action": "Permit",
38+
"networkPrefix": "20.20.20.0/24",
39+
"sequenceNumber": 12
40+
}
41+
],
42+
"systemData": {
43+
"createdAt": "2023-06-12T10:23:26.7645536Z",
44+
"createdBy": "[email protected]",
45+
"createdByType": "User",
46+
"lastModifiedAt": "2023-06-12T10:23:26.7645536Z",
47+
"lastModifiedBy": "[email protected]",
48+
"lastModifiedByType": "User"
49+
},
50+
"type": "microsoft.managednetworkfabric/ipPrefixes"
51+
}
52+
```
53+
1954
### Create an IP prefix
2055

2156

@@ -110,7 +145,7 @@ The REST API response body for getting the details of an IP Prefix resource by i
110145
}
111146
```
112147

113-
## Updating an IP Prefix Resource 
148+
### Updating an IP Prefix Resource 
114149

115150
To update an IP Prefix resource, follow these steps: 
116151

@@ -127,7 +162,7 @@ To update an IP Prefix resource, follow these steps: 
127162
128163
In this example, `resourceGroupName` is the name of the resource group where you created the IP Prefix resource, `ipPrefixName` is the name of the IP Prefix resource, and the `--add` option adds a new rule to the ipPrefixRules property. The new rule denies routes with network prefix 30.30.30.0/24 and has a sequence number of 30. 
129164
130-
## Deleting an IP Prefix resource 
165+
### Deleting an IP Prefix resource 
131166
132167
To delete an existing IP Prefix resource by its ID or name, use the following command: 
133168

0 commit comments

Comments
 (0)