Delete a Template
delete
/paas/api/v1.1/instancemgmt/{identityDomainId}/templates/cst/instances/{templateName}
Delete an existing template
Request
Path Parameters
-
identityDomainId: string
Name of the Oracle Cloud identity domain
-
templateName: string
Name of the template to be deleted
Query Parameters
-
version(optional): string
Version of the template to be deleted
Response
Supported Media Types
- application/json
200 Response
OK
Root Schema : default-response
Type:
object
The response body contains a result message.
Show Source
-
applications(optional):
string
Information about the operation.
400 Response
Bad Request. Returned if there is bad input.
401 Response
Unauthorized. Returned if there is a unauthorized delete performed.
404 Response
Not Found. Returned if the template does not exist.
500 Response
Server Error. Returned if a server error has occurred.
Examples
The following example shows how to delete an existing template in Oracle Cloud Stack by submitting a DELETE request to the endpoint for the template.
cURL Command
curl -i -X DELETE \ -u yourUsername:yourPassword \ -H "X-ID-TENANT-NAME:MyIdentityDomain" \ https://psm.us.oraclecloud.com/paas/api/v1.1/instancemgmt/MyIdentityDomain/templates/cst/instances/MyTemplate
Note: This example uses the URL prefix for the United States. For information about the URL prefixes for other regions of the world, see Send Requests.
Example of Response Header
The following shows an example of the response header.
HTTP/1.1 200 OK Date: Thu, 25 Aug 2016 18:50:14 GMT Transfer-Encoding: chunked Content-Type: application/json
Example of Response Body
The following shows an example of the response body in JSON format.
{"status":"Template [MyTemplate] deleted successfully"}