Validate a Template

post

/paas/api/v1.1/instancemgmt/{identityDomainId}/templates/cst/instances/validate

Validate template

Request

Supported Media Types
Path Parameters
Form Parameters
Back to Top

Response

Supported Media Types

200 Response

OK
Body ()
Root Schema : default-response
Type: object
The response body contains a result message.
Show Source

400 Response

Bad Request. Returned if there is invalid template.

500 Response

Server Error. Returned if a server error has occurred.
Back to Top

Examples

The following example shows how to validate a template file on your local file system with Oracle Cloud Stack. Submit a POST request to the template validation endpoint. The file is sent as a form parameter.

cURL Command

curl -i -X POST \
-u yourUsername:yourPassword! \
-H "Content-Type:multipart/form-data" \
-H "X-ID-TENANT-NAME:MyIdentityDomain" \
-F "template=@MyTemplate.yaml" \
https://psm.us.oraclecloud.com/paas/api/v1.1/instancemgmt/MyIdentityDomain/templates/cst/instances/validate

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: Fri, 26 Aug 2016 20:42:38 GMT
Transfer-Encoding: chunked
Content-Type: application/json

Example of Response Body

The following shows an example of the response body in JSON format.

{"details":{"message":"Validation completed. No errors found"}}
Back to Top