Skip to content

Instantly share code, notes, and snippets.

@yeshess
Created January 2, 2018 09:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yeshess/72ffe14edd968d20403a2e6ff64c05c5 to your computer and use it in GitHub Desktop.
Save yeshess/72ffe14edd968d20403a2e6ff64c05c5 to your computer and use it in GitHub Desktop.
rest_calls:
# DELETE self IP 192.168.20.53 on VLAN 1.1 - subscribers
- path: /mgmt/tm/net/self/subscriberVlanIP
method: DELETE
headers:
X-F5-Auth-Token: "{{TOKEN}}"
Content-type: application/json
response_format: raw
recoverable_codes: [400]
# DELETE VLAN 1.1 - subscribers
- path: /mgmt/tm/net/vlan/subscribers
method: DELETE
headers:
X-F5-Auth-Token: "{{TOKEN}}"
Content-type: application/json
response_format: raw
recoverable_codes: [400]
# DELETE self IP 192.168.10.64 on VLAN 1.2 - internet
- path: /mgmt/tm/net/self/internetVlanIP
method: DELETE
headers:
X-F5-Auth-Token: "{{TOKEN}}"
Content-type: application/json
response_format: raw
recoverable_codes: [400]
# DELETE VLAN 1.2 - internet
- path: /mgmt/tm/net/vlan/internet
method: DELETE
headers:
X-F5-Auth-Token: "{{TOKEN}}"
Content-type: application/json
response_format: raw
recoverable_codes: [400]
# save configuration
- path: /mgmt/tm/sys/config
method: POST
headers:
X-F5-Auth-Token: "{{TOKEN}}"
Content-type: application/json
payload:
command: "save"
response_format: json
recoverable_codes: [400]
response_translation: [savestate]
response_expectation:
- ['kind', "tm:sys:config:savestate"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment