Previous Topic: lock Method (template Object)Next Topic: get_acl Method (template Object)


unlock Method (template Object)
Description

Unlock an application template

Syntax
/api/v1/template/unlock?template=template&pwd=password&vdc=controller-name 
Arguments
template

Name of the application template

pwd

Password

vdc

Name of the target virtual data center

Transaction Type

synchronous

Request Type

GET

Examples

Unlock application template VDS_CentOS51_r15.

GET http://192.168.123.200/api/v1/template/unlock?template=VDS_CentOS51_r15&pwd=password&vdc=mygrid 
Sample Output
XML:
<opt></opt>
JSON:
{} 
HTTP Error Codes
404

Entity vdc mygrid not found - A VDC name was specified that is not configured in the WS_API application.

400.4

Missing required arguments (template). - Argument template=template missing in the request.

400.4

Missing required arguments (pwd). - Argument password=password missing in the request.

403.1

Permission Denied for ‘lock’ access on object ‘application’ with name ‘VDS_CentOS55_r5’.

404.1

Entity not found – Permission Denied – application VDS_CentOS_r1 does not exist.

Note: If the application was locked with a password, the passwords must match. If the application was locked without a password, then only an administrator may unlock the application.