30.07.2012 Views

Reference Guide

Reference Guide

Reference Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Parameter Type Required Description<br />

Web API <strong>Reference</strong> <strong>Guide</strong><br />

userParams Hashmap No Set values for user parameters defined in the package.<br />

Depending on package definitions, this parameter may be<br />

required.<br />

Each user parameter defined in the package must be<br />

provided as a key for this parameter.<br />

Expected Response Code: 202 Accepted - For more information see Response Format.<br />

Response Type: applicationInfo<br />

Possible Action Specific Error Codes:<br />

HTTP Code Error Code Description<br />

409 baseUrlConflict The provided base URL is already in use.<br />

400 missingParame<br />

ter<br />

400 invalidParamet<br />

er<br />

400 missingVirtualH<br />

ost<br />

Example:<br />

Request:<br />

A required parameter is missing.<br />

A value provided for a parameter is invalid.<br />

The virtual host in the base URL does not exist. Use the createVhost<br />

parameter to create it.<br />

POST /ZendServerManager/Api/applicationDeploy<br />

Content-type: multipart/form-data, boundary=--bla-bla-bla--<br />

----bla-bla-bla--<br />

Content-disposition: form-data; name=baseUrl<br />

http://example.com/<br />

----bla-bla-bla--<br />

Content-disposition: form-data; name=”appPackage”;<br />

filename=”myApplication.zpk”<br />

Content-type: application/vnd.zend.applicationpackage<br />

[...binary data follows...]<br />

----bla-bla-bla--<br />

Content-disposition: form-data; name=userParams%5Bdbhost%5D<br />

database.example.lan<br />

----bla-bla-bla--<br />

Content-disposition: form-data; name=userParams%5Bdbname%5D<br />

database_schema<br />

381

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!