Complete these tasks to delete an existing LST entry.
This example assumes you have exported the access token to the variable $TOKEN
.
- Acquire the configuration lock.
curl -X POST \
--header "Accept: application/xml" \
--header "Authorization: Bearer $TOKEN" \
"https://10.0.0.2/rest/v1.1/configuration/lock"
- Delete the LST entry.
Use the URL parameter key
to identify the username and the URL parameter filename
to identify the LST XML file from which to delete the entry.
curl -X DELETE \
--header "Accept: application/xml" \
--header "Authorization: Bearer $TOKEN" \
"https://10.0.0.2/rest/v1.1/configuration/lst/lstentry?key=<USERNAME>&filename=<LSTXMLFILE>"
- If done editing the configuration, verify, save, and refresh the LST.
To verify the LST:
curl -X PUT \
--header "Accept: application/xml" \
--header "Authorization: Bearer $TOKEN" \
"https://10.0.0.2/rest/v1.1/configuration/lst?action=verify&filename=<LSTXMLFILE>"
To save the LST:
curl -X PUT \
--header "Accept: application/xml" \
--header "Authorization: Bearer $TOKEN" \
"https://10.0.0.2/rest/v1.1/configuration/lst?action=save&filename=<LSTXMLFILE>"
To refresh the LST:
curl -X PUT \
--header "Accept: application/xml" \
--header "Authorization: Bearer $TOKEN" \
"https://10.0.0.2/rest/v1.1/configuration/lst?action=refresh&filename=<LSTXMLFILE>"
- Release the configuration lock.
curl -X POST \
--header "Accept: application/xml" \
--header "Authorization: Bearer $TOKEN" \
"https://10.0.0.2/rest/v1.1/configuration/unlock"