Modify an LST XML File Secret

Complete these tasks to modify the secret of the LST XML file.

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. Modify the LST XML file.

    This API endpoint does not require a request body.

    Use the URL parameter filename to identify the LST XML file to modify. Use the URL parameter oldsecret to identify the previous secret provided to the LST XML file. Use the URL parameter secret to identify the new password for the LST XML file.

    curl -X PUT \
        --header "Accept: application/xml" \
        --header "Authorization: Bearer $TOKEN" \
        "https://10.0.0.2/rest/v1.1/configuration/lst/lstfile?filename=<LSTXMLFILE>&oldsecret=<OLDSECRET>&secret=<NEWSECRET>"
  3. 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"