Complete these tasks to modify the secret of the LST XML file.
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"
- 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>"
- 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"