Deleting an SLA policy

You can 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

Tip

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

Parameters

Parameter 1: name

Specify the name of the SLA policy to delete.

  • Example value Diamond

  • Type: System string. Required. Available in the web user interface.

None.

Data

None.

Example: Delete an SLA policy

Assume that you have an SLA policy, Diamond, and you want to delete it.

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

_params = {"name": "Diamond"}

requests.delete('https://' + spp_ipv4 + '/ngp/slapolicy/',
    headers={...}, params=_params, 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.