Loading...
 

Multi Select: Delete VMs


HTTP VerbPOST
URI Template/delete_virtualmachines?releaseIPs={true|false}
MIME Typeapplication/vnd.pncp.v.1.0+json onwards
Normal HTTP Response Code202 Accepted
Invoked ByResellers can invoke this for their own account as well as any other account they own. End-clients can also place this request for their own account.
Response ModeAsynchronous.

Sample Request

POST /pncp-external-api-rest/delete_virtualmachines?releaseIPs=true HTTP/1.1
Accept: application/vnd.pncp.v.5.0+json
Authorization: PNCP OTQ1NzE4ZmFkNDUwYWI5odz0=
Content-Length: 0
User-Agent: Jakarta Commons-HttpClient/3.1
Host: YOUR_API_URL

{  
   "deviceResources":[  
      {  
         "resourceURL":"/virtualmachine/24"
      },
      {  
         "resourceURL":"/ virtualmachine/63"
      }
   ]
}

Sample Response

HTTP/1.1 202 Accepted
Server: Apache-Coyote/1.1
Pragma: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Cache-Control: no-cache
Cache-Control: no-store
Content-Type: application/vnd.pncp.v.5.0+json
Transfer-Encoding: chunked
Date: Fri, 26 Oct 2012 15:50:29 GMT

[
   {
      "deviceResource":{
         "resourceURL":"/virtualmachine/24"
      },
      "taskResource":{
         "resourceURL":"/task/3d038901-f103-4eda-bc17-8f890aa4ca24"
      }
   },
   {
      "deviceResource":{
         "resourceURL":"/virtualmachine/63"
      },
      "taskResource":{
         "resourceURL":"/task/ea30249d-ddaa-4671-b0b1-5b472269ec8d"
      }
   }
]