Deleting an SLA policy

Delete a SLA policy.

Method and URI

To delete an SLA policy with {slapolicyId}, the request’s method and URI are similar to the following example:

DELETE  https://{hostname|IPv4}/ngp/slapolicy/{slapolicyId}

Tip

To get an {slapolicyId} value based on its name, follow the instructions in Getting an {slapolicyId}.

Parameters

None.

Data

None.

Example: Delete an SLA policy

Assume that you have an SLA policy, Diamond ({slapolicyId} 2101), and you want to delete it.

A Python snippet that is similar to the following example can be used to delete the SLA policy:

sla_id = "2101"    # Diamond

requests.delete('https://' + spp_ipv4 + '/ngp/slapolicy/' + sla_id,
    headers={...}, verify=...)

After you run the Python snippet, ensure that you get a response with the HTTP status of 204 (No Content) and that you no longer see the SLA policy Diamond.