{"id":160667,"date":"2012-11-29T12:35:03","date_gmt":"2012-11-29T08:35:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=160667"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=160667","title":{"rendered":"<span class=\"post_title\">\u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 Parallels Automation for Cloud Infrastructure \u0447\u0435\u0440\u0435\u0437 API<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t\u0412 <a href=\"http:\/\/habrahabr.ru\/company\/infobox\/blog\/159801\/\">\u043f\u0440\u043e\u0448\u043b\u044b\u0439 \u0440\u0430\u0437<\/a> \u043c\u044b \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u043b\u0438 \u043f\u0440\u043e \u041e\u0431\u043b\u0430\u0447\u043d\u044b\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u044b \u043d\u0430 \u0431\u0430\u0437\u0435 Parallels Automation for Cloud Infrastructure (PACI) \u2013 \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u043c\u044b\u0435 \u0446\u0435\u043d\u044b, \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435, \u043c\u0435\u043b\u044c\u043a\u043e\u043c \u0443\u043f\u043e\u043c\u044f\u043d\u0443\u043b\u0438 \u043d\u0430\u043b\u0438\u0447\u0438\u0435 API \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u043c\u0438. \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u043c\u044b \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0447\u0435\u0440\u0435\u0437 API \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0438 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 \u043a\u043e\u043c\u0430\u043d\u0434.<\/p>\n<p>  \u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439 \u043f\u043e\u0441\u0442 \u043e\u0446\u0435\u043d\u0438\u043b\u0438 \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0432\u044b\u0441\u043e\u043a\u043e, \u043d\u043e \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b, \u043c\u043d\u043e\u0433\u043e \u043e\u0442\u0437\u044b\u0432\u043e\u0432 \u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0431\u0430\u0433-\u0440\u0435\u043f\u043e\u0440\u0442\u043e\u0432 \u043e\u0442 \u0445\u0430\u0431\u0440\u0430\u044e\u0437\u0435\u0440\u043e\u0432, \u043f\u0440\u0438\u0441\u043e\u0435\u0434\u0438\u043d\u0438\u0432\u0448\u0438\u0445\u0441\u044f \u043a <a href=\"http:\/\/infobox.ru\/habr-cloud-test\">\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044e<\/a>. \u041f\u043e\u0441\u0442\u0430\u0440\u0430\u0435\u043c\u0441\u044f \u043e\u0445\u0432\u0430\u0442\u0438\u0442\u044c \u0437\u0430\u0442\u0440\u043e\u043d\u0443\u0442\u044b\u0435 \u0432\u0430\u043c\u0438 \u0442\u0435\u043c\u044b \u0432 \u044d\u0442\u043e\u043c \u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u043f\u043e\u0441\u0442\u0430\u0445. <\/p>\n<p>  \u041a\u0430\u043a \u043c\u044b \u0443\u0436\u0435 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u043b\u0438, \u043e\u0441\u043d\u043e\u0432\u0430 \u043d\u0430\u0448\u0435\u0433\u043e \u043e\u0431\u043b\u0430\u043a\u0430 \u2013 Parallels Automation for Cloud Infrastructure \u2013 \u043c\u043e\u0434\u0443\u043b\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0431\u0438\u043b\u043b\u0438\u043d\u0433\u0430 \u0438 \u043f\u0440\u043e\u0432\u0438\u0436\u0435\u043d\u0438\u043d\u0433\u0430 \u0443\u0441\u043b\u0443\u0433 Parallels Automation. \u041f\u0440\u043e\u0434\u0443\u043a\u0442 \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441 \u043e\u0442\u043b\u0438\u0447\u043d\u044b\u043c RESTful API. \u041f\u0440\u0438\u0432\u043e\u0434\u0438\u0442\u044c \u0432\u0435\u0441\u044c \u043b\u0438\u0441\u0442\u0438\u043d\u0433 \u0441 \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u043c\u0438 API \u043c\u044b \u043d\u0435 \u0431\u0443\u0434\u0435\u043c \u2013 \u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c <a href=\"http:\/\/download.pa.parallels.com\/poa\/5.4\/doc\/pdf\/POA%20RESTful%20API%20Guide\/paci-restful-api-guide-5.4.pdf\">\u0432 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438<\/a>. \u041b\u0443\u0447\u0448\u0435 \u043f\u043e\u043a\u0430\u0436\u0435\u043c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u044d\u0442\u043e\u0433\u043e \u0441\u043f\u043e\u0441\u043e\u0431\u0430 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u043c\u0430\u0448\u0438\u043d\u0430\u043c\u0438 \u0438 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430\u043c\u0438.<br \/>  <br clear=\"all\"\/>  <br clear=\"all\"\/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/e44\/0f8\/721\/e440f8721a57a54ef7f2bd22b169115b.jpg\"\/><\/p>\n<p>  <a name=\"habracut\"><\/a><\/p>\n<h2>\u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u0438 \u043f\u0443\u043d\u043a\u0442\u0443\u0430\u0446\u0438\u044f<\/h2>\n<p>  \u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043c\u0438 \u043e\u0431\u043b\u0430\u043a\u0430 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0443 API-\u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0449\u0435\u043c\u0443 \u0441\u0435\u0440\u0432\u0435\u0440\u0443 PACI. \u041e\u0442\u0432\u0435\u0442\u044b \u043f\u0440\u0438\u0445\u043e\u0434\u044f\u0442 \u0432 XML-\u0444\u043e\u0440\u043c\u0430\u0442\u0435, \u043a\u043e\u0434 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0447\u0438\u0442\u0430\u0431\u0435\u043b\u0435\u043d \u0438 \u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d \u043d\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u0430 \u043d\u0435 \u043d\u0430 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u0431\u0435\u0437\u0434\u0443\u0448\u043d\u044b\u043c \u043f\u0430\u0440\u0441\u0435\u0440\u043e\u043c, \u0442\u0430\u043a \u0447\u0442\u043e \u0432\u0441\u0435 \u043f\u043e\u043b\u044f \u0438\u043c\u0435\u044e\u0442 \u0432\u0440\u0430\u0437\u0443\u043c\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0438\u043c\u0435\u043d\u0430. \u0412\u0434\u043e\u0431\u0430\u0432\u043e\u043a, \u043c\u043e\u0436\u043d\u043e \u043b\u0435\u0433\u043a\u043e \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435, \u0430 \u0441\u0430\u043c XML \u0431\u0435\u0437 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u043f\u0430\u0440\u0441\u0438\u0442\u0441\u044f, \u0435\u0441\u043b\u0438 \u0432\u0430\u043c \u0432\u0434\u0440\u0443\u0433 \u044d\u0442\u043e \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f.<\/p>\n<p>  \u041e\u0431\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f \u043a API \u043d\u0443\u0436\u043d\u043e \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0449\u0435\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 PACI (\u0432 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u0431\u0443\u0434\u0435\u043c \u0441\u043e\u043a\u0440\u0430\u0449\u0430\u0442\u044c \u0434\u043e baseURL): <\/p>\n<pre><code class=\"php\">https:\/\/{ip_address | hostname}:port\/paci\/version <\/code><\/pre>\n<p>  \u0415\u0441\u043b\u0438 \u0441 ip_address hostname \u0438 port \u0432\u0441\u0451 \u0431\u043e\u043b\u0435\u0435-\u043c\u0435\u043d\u0435\u0435 \u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u0442\u043e \u043d\u0430 \u043e\u0441\u0442\u0430\u0432\u0448\u0438\u0445\u0441\u044f \u0434\u0432\u0443\u0445 \u043f\u043e\u043b\u044f\u0445 \u0441\u0442\u043e\u0438\u0442 \u0437\u0430\u043e\u0441\u0442\u0440\u0438\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435. \/paci\/ \u0432\u0441\u0435\u0433\u0434\u0430 \u0434\u043e\u043b\u0436\u043d\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u043a\u0430\u043a \/paci\/, \u0438 \u043d\u0438\u043a\u0430\u043a \u0438\u043d\u0430\u0447\u0435. \u0410 \u0432\u0435\u0440\u0441\u0438\u044f \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 v1.0 (\u0446\u0438\u0444\u0440\u044b, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u043c\u043e\u0433\u0443\u0442 \u0438 \u043c\u0435\u043d\u044f\u0442\u044c\u0441\u044f \u0432 \u0431\u0443\u0434\u0443\u0449\u0438\u0445 \u0432\u0435\u0440\u0441\u0438\u044f\u0445 PACI). <\/p>\n<p>  \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0433\u043e\u0442\u043e\u0432\u044b\u0439 baseURL \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0432\u043e\u0442 \u0442\u0430\u043a:<\/p>\n<pre><code class=\"html\">https:\/\/109.120.*.*:4465\/paci\/v1.0  <\/code><\/pre>\n<p>  \u0414\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u0435 \u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0441 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f baseURL \u201c\u0432\u043f\u0440\u0430\u0432\u043e\u201d \u2014 \u043c\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u0442\u0430\u0432\u0438\u043c \/ \u0438 \u0434\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043a baseURL. \/ve \u2014 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u043a \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u0441\u0435\u0440\u0432\u0435\u0440\u0443, \u0430 \u0442\u0430\u043a \u043a\u0430\u043a \u0441\u0435\u0440\u0432\u0435\u0440, \u043e\u0431\u044b\u0447\u043d\u043e, \u0438\u043c\u0435\u0435\u0442 \u0441\u0432\u043e\u0439 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440, \u0442\u043e \u043f\u043e\u0441\u043b\u0435 \/ve \u0434\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0438\u043c\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \/my-server-01.<\/p>\n<p>  \u0421\u0442\u0440\u043e\u043a\u0430 baseURL \u0441 \u0434\u0432\u0443\u043c\u044f \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0432\u0438\u0434:<\/p>\n<pre><code class=\"html\">https:\/\/109.120.*.*:4465\/paci\/v1.0\/ve\/my-server-01  <\/code><\/pre>\n<p>  \u0427\u0442\u043e \u0440\u0430\u0432\u043d\u043e\u0446\u0435\u043d\u043d\u043e \u0441\u0442\u0440\u043e\u043a\u0435:<\/p>\n<pre><code class=\"html\">baseURL\/ve\/my-server-01 <\/code><\/pre>\n<p>  \u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432. \u0417\u0430\u0447\u0430\u0441\u0442\u0443\u044e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435, \u043d\u043e \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0435. \u0412\u0441\u0435 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u044f\u044e\u0442\u0441\u044f \u043f\u043e\u0441\u043b\u0435 \u0437\u043d\u0430\u043a\u0430 \u0432\u043e\u043f\u0440\u043e\u0441\u0430. <\/p>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440\u043e\u043c \u0442\u0430\u043a\u043e\u0433\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u043c\u043e\u0436\u0435\u0442 \u0441\u043b\u0443\u0436\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430:<\/p>\n<pre><code class=\"html\">GET baseURL\/ve?subscription=1000001 <\/code><\/pre>\n<p>  \u0421 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u043e\u043c \u043c\u044b \u0431\u043e\u043b\u0435\u0435-\u043c\u0435\u043d\u0435\u0435 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u043b\u0438\u0441\u044c, \u0442\u0435\u043f\u0435\u0440\u044c \u043f\u0435\u0440\u0435\u0439\u0434\u0451\u043c \u043a \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044f\u043c. <\/p>\n<p>  <br clear=\"all\"\/>  <\/p>\n<h2>\u041a\u0430\u043a\u0438\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0447\u0435\u0440\u0435\u0437 API?<\/h2>\n<p>  \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0448\u0438\u0440\u043e\u043a\u0438\u0435. \u0414\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u201c\u043d\u0435\u0432\u0438\u043d\u043d\u044b\u0435\u201d \u0444\u0443\u043d\u043a\u0446\u0438\u0438:  <\/p>\n<ul>\n<li>\u043b\u0438\u0441\u0442\u0438\u043d\u0433 \u0438 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u0438\u043c\u0435\u044e\u0449\u0438\u0445\u0441\u044f \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043e\u043a <\/li>\n<li>\u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043d\u043e\u0432\u044b\u0445 \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0443\u0436\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u043c\u0438<\/li>\n<li>\u0440\u0430\u0437\u0432\u0451\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u0435 \u043e\u0431\u0440\u0430\u0437\u043e\u0432<\/li>\n<li>\u043a\u043b\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0441\u0438\u0441\u0442\u0435\u043c <\/li>\n<li>\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432<\/li>\n<\/ul>\n<p>  \u0418 \u0431\u043e\u043b\u0435\u0435 \u0441\u0435\u0440\u044c\u0451\u0437\u043d\u044b\u0435 \u0432\u0435\u0449\u0438:   <\/p>\n<ul>\n<li>\u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043d\u043e\u0432\u044b\u0445 \u043e\u0431\u0440\u0430\u0437\u043e\u0432<\/li>\n<li>\u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0443\u0436\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u043e\u0431\u0440\u0430\u0437\u0430\u043c\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432<\/li>\n<li>\u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435, \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430, \u0438, \u0440\u0430\u0437\u0443\u043c\u0435\u0435\u0442\u0441\u044f, \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0430 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438<\/li>\n<li>\u0430 \u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0438 \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u043e\u0442 \u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0430<\/li>\n<\/ul>\n<h3>\u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u043c\u0438<\/h3>\n<p>  \u041a\u0430\u043a \u0432\u044b \u0443\u0436\u0435 \u0437\u043d\u0430\u0435\u0442\u0435, \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u043c\u043e\u0436\u043d\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439<\/p>\n<pre><code class=\"html\">GET baseURL\/ve\/ <\/code><\/pre>\n<p>  \u0412 \u043e\u0442\u0432\u0435\u0442 \u043f\u0440\u0438\u0434\u0451\u0442 \u043d\u0435\u0441\u043b\u043e\u0436\u043d\u0430\u044f XML-\u043a\u0430:<\/p>\n<pre><code class=\"html\">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?&gt;  &lt;ve-list&gt;     &lt;ve-info subscription-id=&quot;1000001&quot; name=&quot;Habr1&quot; state=&quot;CREATED&quot; description=&quot;Habr Example 1&quot;\/&gt;     &lt;ve-info subscription-id=&quot;1000002&quot; name=&quot;Habr2&quot; state=&quot;CREATED&quot; description=&quot;Habr Example 2&quot;\/&gt;  &lt;\/ve-list&gt;  <\/code><\/pre>\n<p>  \u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u043e\u043b\u0435\u0439 \u0435\u0441\u0442\u044c \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438, \u043d\u043e \u0438 \u0438\u0445 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f, \u0432 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435, \u0433\u043e\u0432\u043e\u0440\u044f\u0442 \u0441\u0430\u043c\u0438 \u0437\u0430 \u0441\u0435\u0431\u044f.<\/p>\n<p>  \u041e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0438\u043b\u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0433\u043e\u0442\u043e\u0432\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u044b\u043c \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u043c:<\/p>\n<pre><code class=\"html\">PUT baseURL\/ve\/{ve-name}\/start|stop <\/code><\/pre>\n<p>  \u0412\u043c\u0435\u0441\u0442\u043e {ve-name} \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 (\u043f\u043e\u043b\u0435 name \u0438\u0437 \u043e\u0442\u0432\u0435\u0442\u0430 \u0432\u044b\u0448\u0435), \u0430 \u043f\u043e\u0441\u043b\u0435 \u043d\u0435\u0433\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u043d\u0430 \u0437\u0430\u043f\u0443\u0441\u043a \u0438\u043b\u0438 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 \u0441\u0435\u0440\u0432\u0435\u0440\u0430. \u041e\u043f\u044f\u0442\u044c \u0436\u0435, \u043f\u0440\u043e\u0449\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e \u0438 \u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u0442\u0443\u0442, \u0432 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435, \u043d\u0435 \u043d\u0430 \u0447\u0435\u043c.<\/p>\n<p>  \u0427\u0443\u0442\u044c \u0441\u043b\u043e\u0436\u043d\u0435\u0435 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043d\u043e\u0432\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0438\u0437 \u043a\u043e\u043d\u0441\u043e\u043b\u0438. \u0423 \u0434\u0430\u043d\u043d\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u043a\u0443\u0447\u0430 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432, \u0430 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f \u043d\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0442\u0435\u0445 \u0438\u043b\u0438 \u0438\u043d\u044b\u0445 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0432 \u0433\u043e\u043b\u043e\u0432\u0435 \u0438\u043b\u0438 \u043f\u043e\u0434\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u0432 \u0448\u043f\u0430\u0440\u0433\u0430\u043b\u043a\u0435, \u0442\u0430\u043a \u043a\u0430\u043a \u044d\u0442\u043e \u043d\u0435 GUI \u0441 \u043f\u043e\u043b\u0437\u0443\u043d\u043a\u0430\u043c\u0438. \u041f\u0440\u0438 \u043f\u0440\u0435\u0432\u044b\u0448\u0435\u043d\u0438\u0438 \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0432\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u043e\u0448\u0438\u0431\u043a\u0443 406: \u201cSubscription limit for VE number exceeded&quot;.<\/p>\n<p>  \u0421\u0430\u043c\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0432\u043e\u0442 \u0442\u0430\u043a:<\/p>\n<pre><code class=\"html\">POST baseURL\/ve\/ <\/code><\/pre>\n<p>  \u0410 \u0432\u043e\u0442 \u0434\u0430\u043b\u044c\u0448\u0435 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0432\u0441\u044f \u043c\u0430\u0433\u0438\u044f. \u041f\u043e\u043c\u0438\u043c\u043e \u0441\u0430\u043c\u043e\u0433\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0430, \u043d\u0443\u0436\u043d\u043e \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0435\u043c\u0443 \u0435\u0449\u0451 \u0438 XML-\u0442\u0435\u043b\u043e, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0431\u0443\u0434\u0443\u0442 \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043d\u044b \u0432\u0441\u0435-\u0432\u0441\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0442\u0440\u0435\u0431\u0443\u0435\u043c\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430:<\/p>\n<pre><code class=\"html\">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;  &lt;ve&gt;   &lt;name&gt;HabrExample1&lt;\/name&gt;   &lt;description&gt;VE Linux 40&lt;\/description&gt;   &lt;subscription-id&gt;1000001&lt;\/subscription-id&gt;   &lt;cpu number=&quot;1&quot; power=&quot;1500&quot;\/&gt;   &lt;ram-size&gt;256&lt;\/ram-size&gt;   &lt;bandwidth&gt;100&lt;\/bandwidth&gt;   &lt;no-of-public-ip&gt;1&lt;\/no-of-public-ip&gt;    &lt;no-of-public-ipv6&gt;0&lt;\/no-of-public-ipv6&gt;    &lt;ve-disk local=&quot;true&quot; size=&quot;20&quot;\/&gt;    &lt;platform&gt;     &lt;template-info name=&quot;centos-6-x86_64&quot;\/&gt;       &lt;os-info technology=&quot;CT&quot; type=&quot;linux-free&quot;\/&gt;   &lt;\/platform&gt;   &lt;backup-schedule name=&quot;daily&quot;\/&gt;   &lt;admin login=&quot;root&quot; password=&quot;152eyyBHO&quot;\/&gt;  &lt;\/ve&gt;  <\/code><\/pre>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u0441\u0451 \u0443\u043a\u0430\u0437\u0430\u043d\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e, \u0442\u043e \u043f\u0440\u0438\u0434\u0451\u0442 \u043e\u0442\u0432\u0435\u0442 \u043e\u0431 \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u043d\u043e\u0432\u043e\u0439 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043a\u0438:<\/p>\n<pre><code class=\"html\">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?&gt;  &lt;pwd-response&gt;     &lt;message&gt;VE create initiated&lt;\/message&gt;     &lt;password&gt;152eyyBHO&lt;\/password&gt;  &lt;\/pwd-response&gt;   <\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/00f\/249\/81b\/00f24981b8610dd15cf086a0b7859679.jpg\"\/><\/p>\n<h3>\u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043e\u0431\u0440\u0430\u0437\u0430\u043c\u0438<\/h3>\n<p>  \u0424\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b, \u0437\u0430\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0439 \u0432 \u044d\u0442\u0443 \u0433\u0440\u0443\u043f\u043f\u0443 \u043a\u043e\u043c\u0430\u043d\u0434, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0437\u0434\u043e\u0440\u043e\u0432\u043e \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0442\u044c \u0432\u0440\u0435\u043c\u044f \u0438 \u0440\u0435\u0441\u0443\u0440\u0441\u044b \u043f\u0440\u0438 \u0440\u0430\u0437\u0432\u0451\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u0438 \u0438 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u043d\u043e\u0432\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c. <\/p>\n<p>  \u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u043f\u043e\u0434\u0440\u0430\u0437\u0443\u043c\u0435\u0432\u0430\u044e\u0442, \u0447\u0442\u043e \u043e\u0431\u0440\u0430\u0437\u044b \u0443\u0436\u0435 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u044b, \u0430 \u0432\u044b \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u043b\u0438\u0441\u044c \u0441 \u0438\u0445 \u0441\u043f\u0438\u0441\u043a\u043e\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439.<\/p>\n<pre><code class=\"html\">GET baseURL\/image <\/code><\/pre>\n<p>  \u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c, \u0441\u0435\u0440\u0432\u0435\u0440 \u043e\u0442\u0432\u0435\u0442\u0438\u043b \u043d\u0430\u043c, \u0447\u0442\u043e \u0435\u0441\u0442\u044c \u0432\u043e\u0442 \u0442\u0430\u043a\u043e\u0439 \u043e\u0431\u0440\u0430\u0437:<\/p>\n<pre><code class=\"html\">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?&gt;  &lt;image-list&gt;     &lt;image-info image-of=&quot;HabrExample3&quot; active=&quot;true&quot; load-balancer=&quot;true&quot; subscriptionid=&quot;100001&quot; created=&quot;2012-11-11 19:19:19.84091+04&quot; size=&quot;3&quot; name=&quot;lbimage&quot;\/&gt;  &lt;\/image-list&gt; <\/code><\/pre>\n<p>  \u0425\u043e\u0442\u0438\u0442\u0435 \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0438\u0437 \u043d\u0435\u0433\u043e \u0435\u0449\u0451 \u043e\u0434\u0438\u043d \u0441\u0435\u0440\u0432\u0435\u0440? \u041d\u0435\u0442 \u043d\u0438\u0447\u0435\u0433\u043e \u043f\u0440\u043e\u0449\u0435! \u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u0437\u0430\u043f\u0440\u043e\u0441:<\/p>\n<pre><code class=\"html\">POST baseURL\/ve\/{subscription-id}\/{ve-name}\/from\/{image-name} <\/code><\/pre>\n<p>  \u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0432 <\/p>\n<pre><code class=\"html\">POST baseURL\/ve\/1000003\/Habr3\/from\/HabrExample3 <\/code><\/pre>\n<p>  \u041d\u0430 \u044d\u0442\u043e\u043c, \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0440\u0430\u0431\u043e\u0442\u0430 \u0441 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0438\u0437 \u043e\u0431\u0440\u0430\u0437\u0430 \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f, \u043d\u043e \u043d\u0438\u043a\u0442\u043e \u043d\u0435 \u043c\u0435\u0448\u0430\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043d\u043e\u0432\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 \u043f\u0440\u043e\u0441\u0442\u044b\u043c \u043a\u043b\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0443\u0436\u0435 \u0438\u043c\u0435\u044e\u0449\u0435\u0433\u043e\u0441\u044f:<\/p>\n<pre><code class=\"html\">POST baseURL\/ve\/{ve-name}\/clone-to\/{new-server-name} <\/code><\/pre>\n<h3>\u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u043e\u043c<\/h3>\n<p>  \u0421\u043f\u0438\u0441\u043e\u043a \u0438\u043c\u0435\u044e\u0449\u0438\u0445\u0441\u044f \u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u043e\u0432 \u00ab\u0437\u0430\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f\u00bb \u0442\u0430\u043a \u0436\u0435, \u043a\u0430\u043a \u0438 \u043c\u043d\u043e\u0433\u0438\u0435 \u0434\u0440\u0443\u0433\u0438\u0435 \u0441\u043f\u0438\u0441\u043a\u0438 \u0438\u043c\u0435\u044e\u0449\u0438\u0445\u0441\u044f \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432, \u0443\u0441\u043b\u0443\u0433 \u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439:<\/p>\n<pre><code class=\"html\">GET baseURL\/load-balancer <\/code><\/pre>\n<p>  \u0412 \u043e\u0442\u0432\u0435\u0442 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u043a\u043e\u0440\u043e\u0442\u0435\u043d\u044c\u043a\u0438\u0439 XML \u0441 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0435\u0439 \u043e \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0445 load balancer\u2019\u0430\u0445:<\/p>\n<pre><code class=\"html\">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?&gt;  &lt;lb-list&gt;     &lt;load-balancer state=&quot;STARTED&quot; subscription-id=&quot;1&quot; name=&quot;LB1&quot;\/&gt;     &lt;load-balancer state=&quot;STARTED&quot; subscription-id=&quot;1&quot; name=&quot;LB2&quot;\/&gt;  &lt;\/lb-list&gt;  <\/code><\/pre>\n<p>  \u041b\u044e\u0431\u043e\u0439 \u0438\u043c\u0435\u044e\u0449\u0438\u0439\u0441\u044f \u0441\u0435\u0440\u0432\u0435\u0440 \u043b\u0435\u0433\u043a\u043e \u043f\u0440\u0438\u0441\u043e\u0435\u0434\u0438\u043d\u0438\u0442\u044c \u043a \u0443\u0436\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0435\u043c\u0443 \u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0443:<\/p>\n<pre><code class=\"html\">POST baseURL\/load-balancer\/{lb-name}\/{ve-name} <\/code><\/pre>\n<p>  \u0414\u0430 \u0438 \u043e\u0442\u0441\u043e\u0435\u0434\u0438\u043d\u0438\u0442\u044c \u043d\u0435 \u0441\u043b\u043e\u0436\u043d\u0435\u0435:<\/p>\n<pre><code class=\"html\">DELETE baseURL\/load-balancer\/{lb-name}\/{ve-name} <\/code><\/pre>\n<h3>\u0423\u0442\u0438\u043b\u0438\u0442\u044b<\/h3>\n<p>  \u0412 \u044d\u0442\u0443 \u0447\u0430\u0441\u0442\u044c API \u043f\u043e\u043f\u0430\u043b\u0438 \u043f\u043e\u043a\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u0438. \u041e\u0434\u043d\u0430 \u0438\u0437 \u043d\u0438\u0445 \u2013 \u0441\u043f\u0438\u0441\u043e\u043a \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u201c\u043f\u0440\u0435\u0434\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0445\u201d \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u044b\u0445 \u041e\u0421:<\/p>\n<pre><code class=\"html\">GET baseURL\/template\/{name} <\/code><\/pre>\n<p>  \u0421\u043f\u0438\u0441\u043e\u043a \u0433\u043e\u0442\u043e\u0432\u044b\u0445 \u043f\u0440\u0435\u0441\u0435\u0442\u043e\u0432 \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0431\u044d\u043a\u0430\u043f\u0430:<\/p>\n<pre><code class=\"html\">GET baseURL\/schedule <\/code><\/pre>\n<h2>\u041f\u0440\u0438\u043c\u0435\u0440\u044b \u043a\u043e\u0434\u0430 \u043d\u0430 PHP<\/h2>\n<p>  GET-\u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0441\u043f\u0438\u0441\u043a\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432:<\/p>\n<pre><code class=\"php\">&lt;?php           $mainStr = &quot;http:\/\/109.120.166.3:4465\/paci\/v1.0\/&quot;;     $queryStr = 've';     $url = $mainStr.$queryStr;          $process = curl_init();     curl_setopt($process, CURLOPT_URL, $url);         curl_setopt($process, CURLOPT_HEADER, 1);     curl_setopt($process, CURLOPT_USERPWD, '&lt;login&gt;:&lt;password&gt;');     curl_setopt($process, CURLOPT_RETURNTRANSFER, TRUE);         $head = curl_exec($process);     curl_close($process);  ?&gt; <\/code><\/pre>\n<p>  XML-\u043e\u0442\u0432\u0435\u0442:<\/p>\n<pre><code class=\"xml\">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?&gt;      &lt;ve-list&gt;          &lt;ve-info subscription-id=&quot;1000001&quot; name=&quot;web1&quot; state=&quot;CREATED&quot; description=&quot;Web server 1&quot;\/&gt;          &lt;ve-info subscription-id=&quot;1000002&quot; name=&quot;web2&quot; state=&quot;CREATED&quot; description=&quot;Web server 2&quot;\/&gt;      &lt;\/ve-list&gt; <\/code><\/pre>\n<p>  PUT-\u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u0437\u0430\u043f\u0443\u0441\u043a-\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 \u0441\u0435\u0440\u0432\u0435\u0440\u0430:<\/p>\n<pre><code class=\"php\">&lt;?php      $mainStr = &quot;http:\/\/109.120.166.3:4465\/paci\/v1.0\/&quot;;     $queryStr = 've\/&lt;ve-name&gt;\/&lt;start | stop&gt;';     $url = $mainStr.$queryStr;     $process = curl_init();     curl_setopt($process, CURLOPT_URL, $url);     curl_setopt($process, CURLOPT_HTTPHEADER, array('Content-Type: application\/xml'));     curl_setopt($process, CURLOPT_PUT, 1);          curl_setopt($process, CURLOPT_HEADER, 1);     curl_setopt($process, CURLOPT_USERPWD, '&lt;login&gt;:&lt;password&gt;');     curl_setopt($process, CURLOPT_RETURNTRANSFER, TRUE);         $head = curl_exec($process);     curl_close($process);  ?&gt; <\/code><\/pre>\n<p>  XML-\u043e\u0442\u0432\u0435\u0442:  <\/p>\n<pre><code class=\"xml\">    * VE START initiated  <\/code><\/pre>\n<p>  POST-\u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0430:<\/p>\n<pre><code class=\"php\">&lt;?php      $mainStr = &quot;http:\/\/109.120.166.3:4465\/paci\/v1.0\/&quot;;     $queryStr = 've';     $serverInfo =      '&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;          &lt;ve&gt;            &lt;name&gt;Web40&lt;\/name&gt;            &lt;description&gt;VE Linux 40&lt;\/description&gt;            &lt;subscription-id&gt;1000001&lt;\/subscription-id&gt;            &lt;cpu number=&quot;2&quot; power=&quot;1600&quot;\/&gt;            &lt;ram-size&gt;512&lt;\/ram-size&gt;            &lt;bandwidth&gt;100&lt;\/bandwidth&gt;            &lt;no-of-public-ip&gt;2&lt;\/no-of-public-ip&gt;             &lt;no-of-public-ipv6&gt;2&lt;\/no-of-public-ipv6&gt;             &lt;ve-disk local=&quot;true&quot; size=&quot;3&quot;\/&gt;             &lt;platform&gt;              &lt;template-info name=&quot;centos-6-x86_64&quot;\/&gt;                &lt;os-info technology=&quot;CT&quot; type=&quot;linux-free&quot;\/&gt;            &lt;\/platform&gt;            &lt;backup-schedule name=&quot;daily&quot;\/&gt;            &lt;admin login=&quot;root&quot; password=&quot;qwwqq45&quot;\/&gt;          &lt;\/ve&gt; ';          $url = $mainStr.$queryStr;          $process = curl_init();     curl_setopt($process, CURLOPT_URL, $url);     curl_setopt($process, CURLOPT_HTTPHEADER, array('Content-Type: application\/xml'));     curl_setopt($process, CURLOPT_POST, 1);     curl_setopt($process, CURLOPT_HEADER, 1);     curl_setopt($process, CURLOPT_USERPWD, '&lt;login&gt;:&lt;password&gt;');     curl_setopt($process, CURLOPT_RETURNTRANSFER, TRUE);     curl_setopt($process, CURLOPT_POSTFIELDS, $serverInfo);              $head = curl_exec($process);     curl_close($process); ?&gt; <\/code><\/pre>\n<p>  XML-\u043e\u0442\u0432\u0435\u0442:<\/p>\n<pre><code class=\"xml\">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?&gt;     &lt;pwd-response&gt;          &lt;message&gt;VE create initiated&lt;\/message&gt;          &lt;password&gt;152eyyBHO&lt;\/password&gt;      &lt;\/pwd-response&gt;   <\/code><\/pre>\n<p>  DELETE-\u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0430<\/p>\n<pre><code class=\"php\">&lt;?php      $mainStr = &quot;http:\/\/109.120.166.3:4465\/paci\/v1.0\/&quot;;     $queryStr = 've\/&lt;ve-name&gt;';     $url = $mainStr.$queryStr;          $process = curl_init();     curl_setopt($process, CURLOPT_URL, $url);     curl_setopt($process, CURLOPT_CUSTOMREQUEST, &quot;DELETE&quot;);     curl_setopt($process, CURLOPT_HEADER, 1);     curl_setopt($process, CURLOPT_USERPWD, '&lt;login&gt;:&lt;password&gt;');     curl_setopt($process, CURLOPT_RETURNTRANSFER, TRUE);          $head = curl_exec($process);     curl_close($process);          ?&gt; <\/code><\/pre>\n<p>  XML-\u043e\u0442\u0432\u0435\u0442:<\/p>\n<pre><code class=\"xml\">    * VE DELETE initiated <\/code><\/pre>\n<p>  \u041d\u0435\u043a\u043e\u043c\u043c\u0435\u0440\u0447\u0435\u0441\u043a\u043e\u0435 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u041e\u0431\u043b\u0430\u0447\u043d\u044b\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u0441\u044f \u0434\u043e 1 \u0444\u0435\u0432\u0440\u0430\u043b\u044f 2013. \u0420\u0430\u0437\u0432\u0438\u0442\u0438\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u0430 \u0432\u043e \u043c\u043d\u043e\u0433\u043e\u043c \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u0432\u0430\u0448\u0438\u0445 \u043e\u0442\u0437\u044b\u0432\u043e\u0432. <a href=\"http:\/\/infobox.ru\/habr-cloud-test\">\u041f\u0440\u0438\u0441\u043e\u0435\u0434\u0438\u043d\u044f\u0439\u0442\u0435\u0441\u044c<\/a>!<\/p>\n<p>  \u0414\u043b\u044f \u0430\u0432\u0442\u043e\u0440\u043e\u0432 \u043b\u0443\u0447\u0448\u0438\u0445 \u043e\u0431\u0437\u043e\u0440\u043e\u0432 \u0441\u0435\u0440\u0432\u0438\u0441\u0430 \u043c\u044b <a href=\"http:\/\/blog.infobox.ru\/2012\/11\/24\/iipphone5-za-obzory-oblaka\/\">\u043f\u0440\u0438\u0433\u043e\u0442\u043e\u0432\u0438\u043b\u0438 \u043f\u0440\u0438\u0437\u044b<\/a>.<\/p>\n<p>  <br clear=\"all\"\/>  <br clear=\"all\"\/>  <\/p>\n<h3>\u041d\u0430\u0448\u0438 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0435 \u043f\u043e\u0441\u0442\u044b \u043f\u043e \u0442\u0435\u043c\u0435<\/h3>\n<p>  <a href=\"http:\/\/habrahabr.ru\/company\/infobox\/blog\/159801\/\">\u041e\u0431\u043b\u0430\u0447\u043d\u044b\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u044b \u043e\u0442 Infobox<\/a> <\/p>\n<h3>\u0421\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u0443\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u043c\u044b\u0435 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044b<\/h3>\n<p>  <a href=\"http:\/\/download.pa.parallels.com\/poa\/5.4\/doc\/pdf\/POA%20RESTful%20API%20Guide\/paci-restful-api-guide-5.4.pdf\">\u041e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u0430\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043f\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044e API \u0432 Parallels Automation for Cloud Infrastructure (PDF)<\/a><\/p>\n<p>  <a href=\"http:\/\/habrahabr.ru\/company\/infobox\/blog\/\">\u0411\u043b\u043e\u0433 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 Infobox<\/a>    \t   \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/company\/infobox\/blog\/160667\/\"> http:\/\/habrahabr.ru\/company\/infobox\/blog\/160667\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t\u0412 <a href=\"http:\/\/habrahabr.ru\/company\/infobox\/blog\/159801\/\">\u043f\u0440\u043e\u0448\u043b\u044b\u0439 \u0440\u0430\u0437<\/a> \u043c\u044b \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u043b\u0438 \u043f\u0440\u043e \u041e\u0431\u043b\u0430\u0447\u043d\u044b\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u044b \u043d\u0430 \u0431\u0430\u0437\u0435 Parallels Automation for Cloud Infrastructure (PACI) \u2013 \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u043c\u044b\u0435 \u0446\u0435\u043d\u044b, \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435, \u043c\u0435\u043b\u044c\u043a\u043e\u043c \u0443\u043f\u043e\u043c\u044f\u043d\u0443\u043b\u0438 \u043d\u0430\u043b\u0438\u0447\u0438\u0435 API \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u043c\u0438. \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u043c\u044b \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0447\u0435\u0440\u0435\u0437 API \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0438 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 \u043a\u043e\u043c\u0430\u043d\u0434.<\/p>\n<p>  \u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439 \u043f\u043e\u0441\u0442 \u043e\u0446\u0435\u043d\u0438\u043b\u0438 \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0432\u044b\u0441\u043e\u043a\u043e, \u043d\u043e \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b, \u043c\u043d\u043e\u0433\u043e \u043e\u0442\u0437\u044b\u0432\u043e\u0432 \u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0431\u0430\u0433-\u0440\u0435\u043f\u043e\u0440\u0442\u043e\u0432 \u043e\u0442 \u0445\u0430\u0431\u0440\u0430\u044e\u0437\u0435\u0440\u043e\u0432, \u043f\u0440\u0438\u0441\u043e\u0435\u0434\u0438\u043d\u0438\u0432\u0448\u0438\u0445\u0441\u044f \u043a <a href=\"http:\/\/infobox.ru\/habr-cloud-test\">\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044e<\/a>. \u041f\u043e\u0441\u0442\u0430\u0440\u0430\u0435\u043c\u0441\u044f \u043e\u0445\u0432\u0430\u0442\u0438\u0442\u044c \u0437\u0430\u0442\u0440\u043e\u043d\u0443\u0442\u044b\u0435 \u0432\u0430\u043c\u0438 \u0442\u0435\u043c\u044b \u0432 \u044d\u0442\u043e\u043c \u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u043f\u043e\u0441\u0442\u0430\u0445. <\/p>\n<p>  \u041a\u0430\u043a \u043c\u044b \u0443\u0436\u0435 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u043b\u0438, \u043e\u0441\u043d\u043e\u0432\u0430 \u043d\u0430\u0448\u0435\u0433\u043e \u043e\u0431\u043b\u0430\u043a\u0430 \u2013 Parallels Automation for Cloud Infrastructure \u2013 \u043c\u043e\u0434\u0443\u043b\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0431\u0438\u043b\u043b\u0438\u043d\u0433\u0430 \u0438 \u043f\u0440\u043e\u0432\u0438\u0436\u0435\u043d\u0438\u043d\u0433\u0430 \u0443\u0441\u043b\u0443\u0433 Parallels Automation. \u041f\u0440\u043e\u0434\u0443\u043a\u0442 \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441 \u043e\u0442\u043b\u0438\u0447\u043d\u044b\u043c RESTful API. \u041f\u0440\u0438\u0432\u043e\u0434\u0438\u0442\u044c \u0432\u0435\u0441\u044c \u043b\u0438\u0441\u0442\u0438\u043d\u0433 \u0441 \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u043c\u0438 API \u043c\u044b \u043d\u0435 \u0431\u0443\u0434\u0435\u043c \u2013 \u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c <a href=\"http:\/\/download.pa.parallels.com\/poa\/5.4\/doc\/pdf\/POA%20RESTful%20API%20Guide\/paci-restful-api-guide-5.4.pdf\">\u0432 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438<\/a>. \u041b\u0443\u0447\u0448\u0435 \u043f\u043e\u043a\u0430\u0436\u0435\u043c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u044d\u0442\u043e\u0433\u043e \u0441\u043f\u043e\u0441\u043e\u0431\u0430 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u043c\u0430\u0448\u0438\u043d\u0430\u043c\u0438 \u0438 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430\u043c\u0438.<br \/>  <br clear=\"all\"\/>  <br clear=\"all\"\/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/e44\/0f8\/721\/e440f8721a57a54ef7f2bd22b169115b.jpg\"\/><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-160667","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/160667","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=160667"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/160667\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=160667"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=160667"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=160667"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}