Delete An LST Entry

Complete these tasks to delete an existing LST entry.

Table - Prerequisites

Prerequisite More Information
Authenticate Authenticate

This example assumes you have exported the access token to the variable $TOKEN.

  1. 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"
  2. 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>"
  3. 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>"
  4. 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"