Skip to content

Commit b4794af

Browse files
Merge pull request #76 from vbojko/v3.0
add modification of existing objects via REST
2 parents fa98f85 + a621273 commit b4794af

File tree

1 file changed

+26
-6
lines changed

1 file changed

+26
-6
lines changed

docs/class1/module1/lab4.rst

+26-6
Original file line numberDiff line numberDiff line change
@@ -78,35 +78,55 @@ Perform the following steps to configure the VLAN objects/resources:
7878
‘Send’ button to GET the VLAN collection. Examine the response to
7979
make sure both VLANs have been created.
8080

81+
8182
Task 2 – Create Self IPs
8283
~~~~~~~~~~~~~~~~~~~~~~~~
8384

8485
Perform the following steps to configure the Self IP objects/resources:
8586

86-
#. Click the “Step 3: Create a Self IP” item in the collection. Examine
87+
#. Click the “Step 3: Create internal Self IP” item in the collection. Examine
8788
the JSON body; the values for creating the Self-Internal Self IP have
8889
already been populated.
8990

9091
#. Click the ‘Send’ button to create the Self IP
9192

92-
#. Repeat Step 1, however, this time modify the JSON body to create the
93-
Self-External Self IP using the parameters in the table above.
93+
#. Click the “Step 4: Get Self IPs” item in the collection. Click the
94+
‘Send’ button to GET the Self IP collection. Examine the response to
95+
make sure the Self IP has been created.
96+
97+
#. Click the "Step 5: Create external Self IP" item in the collection.
98+
99+
#. Click the “Step 4: Get Self IPs” Examine the response .
100+
Examine the VLAN settings of the 'Self-External' Self IP.
101+
The Self IP 'Self-External' belongs to the wrong VLAN. This is intentionally.
102+
The reason for this is to demonstrate the required steps to change an existing object via the REST API.
103+
Change the VLAN settings of 'Self-External' to "/Common/External" with the REST API.
104+
Click on 'Step 5' and change the HTTP Method to PATCH.
105+
Does it work? Do you know why?
106+
107+
108+
#. In order to modify an existing object via the REST API the URI path has to change.
109+
Take the URI path that was used to create the Self IP and add the object name. in this case use /Self-External.
110+
To see the current settings use the GET method. e.g. "GET https://{{bigip_a_mgmt}}/mgmt/tm/net/self/Self-External"
111+
Copy the response.
112+
To modify the VLAN settings change the request method to "PATCH" and paste the response of the GET request in the body of the PATCH request.
113+
Now change the vlan setting from '"vlan": "/Common/Internal"' to '"vlan": "/Common/External"' and click 'Send'.
94114

95115
#. Click the “Step 4: Get Self IPs” item in the collection. Click the
96116
‘Send’ button to GET the Self IP collection. Examine the response to
97-
make sure both Self IPs have been created.
117+
make sure both Self IPs have been created and belong to the appropriate vlan.
98118

99119
Task 3 – Create Routes
100120
~~~~~~~~~~~~~~~~~~~~~~
101121

102122
Perform the following steps to configure the Route object/resource:
103123

104-
#. Click the “Step 5: Create a Route” item in the collection. Examine
124+
#. Click the “Step 8: Create a Route” item in the collection. Examine
105125
the JSON body; the values for creating the Default Route have already
106126
been populated.
107127

108128
#. Click the ‘Send’ button to create the Route
109129

110-
#. Click the “Step 6: Get Routes” item in the collection. Click the
130+
#. Click the “Step 9: Get Routes” item in the collection. Click the
111131
‘Send’ button to GET the routes collection. Examine the response to
112132
make sure the route has been created.

0 commit comments

Comments
 (0)