To delete a resource instance, use the following request components:
Component | Details |
---|---|
Headers |
Accept: application/json Authorization: <auth_cookie>If a resource type has request arguments for the DELETE operation, you must also use the following header: Content-Type: application/json |
Operation | DELETE |
URI pattern |
/api/rest/<resource_type>/<id>where:
|
Body | For most resource types, the body of a DELETE request is empty. However, if a resource type has request arguments for the DELETE operation, they are passed as a comma-separated list of standard JSON name:value pairs. |
If the request succeeds, it returns a 204 No Content HTTP status code and an empty response body. If the request does not succeed, the server returns a 4xx or 5xx HTTP status code in the response header and a message entity in the response body.
The following request deletes the volume_group instance that has an id of 23772434-6373-4748-aa1a-f4197475812a:
Component | Details |
---|---|
Headers |
Accept: application/json Content-Type: application/json Authorization: <auth_cookie> |
Request |
DELETE https://1.2.3.4/api/rest/volume_group/23772434-6373-4748-aa1a-f4197475812a |
Request body | Empty. |
Response body | Empty. |