Deletes the specified image name
delete
/rhp-restapi/rhp/images/{imageId}
Delete the gold image represented by the given image name.
Request
Supported Media Types
- application/json
Path Parameters
-
imageId(required): string
Name of the image.
Response
Supported Media Types
- application/json
- text/html
200 Response
OK. A JSON object containing an image resource representation with multiple properties and the links array with at least the "self" link. Only if it was successfully deleted.
Root Schema : imageResource
Type:
Show Source
object
-
clientName:
string
-
complete:
boolean
-
containsNonRollingPatch:
boolean
-
groupsConfigured:
string
-
homePath:
string
-
imageId:
string
-
imageSize:
integer
-
imageState:
string
-
imageType:
string
-
links:
array links
-
owner:
string
-
parentImage:
string
-
patches:
array patches
-
platform:
string
-
roles:
array roles
-
templateWithDataFiles:
array templateWithDataFiles
-
templateWithoutDataFiles:
array templateWithoutDataFiles
-
version:
string
Nested Schema : singleResourceLinks
Type:
Show Source
object
-
href:
string
The referenced hyperlink element provided in an absolute format.
-
rel:
string
Allowed Values:
[ "self", "collection", "up", "describedBy" ]
Specify the type of relationship the link has with the described resource.
Default Response
Unexpected error. A JSON object containing error details of the issue while executing the operation.
Root Schema : errorResource
Type:
Show Source
object
-
errorCode:
string
Application specific error code, related to the error message shown at tittle.
-
errorDetails:
array errorDetails
If multiple errors are reported they can be organized in a hierarchical structure in this array.
-
errorPath:
string
XPath or JSON path to indicate where the error occurs.
-
instance:
string
URI to the link that provides more detail about the error.
-
status:
integer
HTTP status code.
-
title:
string
Summary error message.
-
type:
string
Link to HTTP error code page.
Nested Schema : errorDetails
Type:
array
If multiple errors are reported they can be organized in a hierarchical structure in this array.
Show Source
Examples
The following example shows how to delete a gold image from the Fleet Patching and Provisioning Server by submitting a DELETE request on the REST resource using cURL.
curl -u restUser -X DELETE "https://RHP_node_name:8894/rhp-restapi/rhp/images/DB_Image1"
HTTP Status Code and Response Headers
The following shows an example of the response header.
HTTP/1.1 202
Location: https://RHP_node_name:8894/rhp-restapi/rhp/jobs/1
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Access-Control-Allow-Methods: GET,PUT,POST,DELETE,PATCH,OPTIONS
Access-Control-Allow-Headers: X-Requested-With, Content-Type, Content-Length, Authorization
Connection: keep-alive
Content-Type: application/json
Content-Length: 159
Date: Tue, 19 Jun 2018 14:03:23 GMT
Response Body
{
"links": [{
"uri": "https://RHP_node_name:8894/rhp-restapi/rhp/jobs/1",
"rel": "self"
}],
"jobId": "1",
"output": { }
}