mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-10-26 08:42:29 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			167 lines
		
	
	
		
			6.4 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			167 lines
		
	
	
		
			6.4 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| #Licensed to the Apache Software Foundation (ASF) under one
 | |
| #or more contributor license agreements.  See the NOTICE file
 | |
| #distributed with this work for additional information
 | |
| #regarding copyright ownership.  The ASF licenses this file
 | |
| #to you under the Apache License, Version 2.0 (the
 | |
| #"License"); you may not use this file except in compliance
 | |
| #with the License.  You may obtain a copy of the License at
 | |
| #http://www.apache.org/licenses/LICENSE-2.0
 | |
| #Unless required by applicable law or agreed to in writing,
 | |
| #software distributed under the License is distributed on an
 | |
| #"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 | |
| #KIND, either express or implied.  See the License for the
 | |
| #specific language governing permissions and limitations
 | |
| #under the License.
 | |
| msgid ""
 | |
| msgstr ""
 | |
| "Project-Id-Version: 0\n"
 | |
| "POT-Creation-Date: 2013-02-02T20:11:57\n"
 | |
| "PO-Revision-Date: 2013-02-02T20:11:57\n"
 | |
| "Last-Translator: Automatically generated\n"
 | |
| "Language-Team: None\n"
 | |
| "MIME-Version: 1.0\n"
 | |
| "Content-Type: application/x-publican; charset=UTF-8\n"
 | |
| "Content-Transfer-Encoding: 8bit\n"
 | |
| 
 | |
| #. Tag: title
 | |
| #, no-c-format
 | |
| msgid "Example"
 | |
| msgstr ""
 | |
| 
 | |
| #. Tag: para
 | |
| #, no-c-format
 | |
| msgid "The following shows an example of using an asynchronous command. Assume the API command:"
 | |
| msgstr ""
 | |
| 
 | |
| #. Tag: programlisting
 | |
| #, no-c-format
 | |
| msgid "command=deployVirtualMachine&zoneId=1&serviceOfferingId=1&diskOfferingId=1&templateId=1\n"
 | |
| "        "
 | |
| msgstr ""
 | |
| 
 | |
| #. Tag: para
 | |
| #, no-c-format
 | |
| msgid "CloudStack will immediately return a job ID and any other additional data."
 | |
| msgstr ""
 | |
| 
 | |
| #. Tag: programlisting
 | |
| #, no-c-format
 | |
| msgid "\n"
 | |
| "         <deployvirtualmachineresponse> \n"
 | |
| "              <jobid>1</jobid>\n"
 | |
| "             <id>100</id>\n"
 | |
| "         </deployvirtualmachineresponse>\n"
 | |
| "        "
 | |
| msgstr ""
 | |
| 
 | |
| #. Tag: para
 | |
| #, no-c-format
 | |
| msgid "Using the job ID, you can periodically poll for the results by using the queryAsyncJobResult command."
 | |
| msgstr ""
 | |
| 
 | |
| #. Tag: programlisting
 | |
| #, no-c-format
 | |
| msgid "command=queryAsyncJobResult&jobId=1"
 | |
| msgstr ""
 | |
| 
 | |
| #. Tag: para
 | |
| #, no-c-format
 | |
| msgid "Three possible results could come from this query."
 | |
| msgstr ""
 | |
| 
 | |
| #. Tag: para
 | |
| #, no-c-format
 | |
| msgid "Job is still pending:"
 | |
| msgstr ""
 | |
| 
 | |
| #. Tag: programlisting
 | |
| #, no-c-format
 | |
| msgid "\n"
 | |
| "         <queryasyncjobresult> \n"
 | |
| "              <jobid>1</jobid>\n"
 | |
| "              <jobstatus>0</jobstatus>\n"
 | |
| "              <jobprocstatus>1</jobprocstatus>\n"
 | |
| "         </queryasyncjobresult>\n"
 | |
| "        "
 | |
| msgstr ""
 | |
| 
 | |
| #. Tag: para
 | |
| #, no-c-format
 | |
| msgid "Job has succeeded:"
 | |
| msgstr ""
 | |
| 
 | |
| #. Tag: programlisting
 | |
| #, no-c-format
 | |
| msgid "\n"
 | |
| "            <queryasyncjobresultresponse cloud-stack-version=\"3.0.1.6\">\n"
 | |
| "                  <jobid>1</jobid>\n"
 | |
| "                  <jobstatus>1</jobstatus>\n"
 | |
| "                  <jobprocstatus>0</jobprocstatus>\n"
 | |
| "                 <jobresultcode>0</jobresultcode>\n"
 | |
| "                  <jobresulttype>object</jobresulttype>\n"
 | |
| "                  <jobresult>\n"
 | |
| "                    <virtualmachine>\n"
 | |
| "                    <id>450</id>\n"
 | |
| "                    <name>i-2-450-VM</name>\n"
 | |
| "                    <displayname>i-2-450-VM</displayname>\n"
 | |
| "                    <account>admin</account>\n"
 | |
| "                    <domainid>1</domainid>\n"
 | |
| "                    <domain>ROOT</domain>\n"
 | |
| "                    <created>2011-03-10T18:20:25-0800</created>\n"
 | |
| "                    <state>Running</state>\n"
 | |
| "                    <haenable>false</haenable>\n"
 | |
| "                    <zoneid>1</zoneid>\n"
 | |
| "                    <zonename>San Jose 1</zonename>\n"
 | |
| "                    <hostid>2</hostid>\n"
 | |
| "                    <hostname>905-13.sjc.lab.vmops.com</hostname>\n"
 | |
| "                    <templateid>1</templateid>\n"
 | |
| "                    <templatename>CentOS 5.3 64bit LAMP</templatename>\n"
 | |
| "                    <templatedisplaytext>CentOS 5.3 64bit LAMP</templatedisplaytext>\n"
 | |
| "                    <passwordenabled>false</passwordenabled>\n"
 | |
| "                    <serviceofferingid>1</serviceofferingid>\n"
 | |
| "                    <serviceofferingname>Small Instance</serviceofferingname>\n"
 | |
| "                    <cpunumber>1</cpunumber>\n"
 | |
| "                    <cpuspeed>500</cpuspeed>\n"
 | |
| "                    <memory>512</memory>\n"
 | |
| "                    <guestosid>12</guestosid>\n"
 | |
| "                    <rootdeviceid>0</rootdeviceid>\n"
 | |
| "                    <rootdevicetype>NetworkFilesystem</rootdevicetype>\n"
 | |
| "                    <nic>\n"
 | |
| "                      <id>561</id>\n"
 | |
| "                      <networkid>205</networkid>\n"
 | |
| "                      <netmask>255.255.255.0</netmask>\n"
 | |
| "                      <gateway>10.1.1.1</gateway>\n"
 | |
| "                      <ipaddress>10.1.1.225</ipaddress>\n"
 | |
| "                      <isolationuri>vlan://295</isolationuri>\n"
 | |
| "                      <broadcasturi>vlan://295</broadcasturi>\n"
 | |
| "                      <traffictype>Guest</traffictype>\n"
 | |
| "                      <type>Virtual</type>\n"
 | |
| "                      <isdefault>true</isdefault>\n"
 | |
| "                    </nic>\n"
 | |
| "                    <hypervisor>XenServer</hypervisor>\n"
 | |
| "                   </virtualmachine>\n"
 | |
| "                 </jobresult>\n"
 | |
| "            </queryasyncjobresultresponse>\n"
 | |
| "        "
 | |
| msgstr ""
 | |
| 
 | |
| #. Tag: para
 | |
| #, no-c-format
 | |
| msgid "Job has failed:"
 | |
| msgstr ""
 | |
| 
 | |
| #. Tag: programlisting
 | |
| #, no-c-format
 | |
| msgid "\n"
 | |
| "            <queryasyncjobresult>\n"
 | |
| "                  <jobid>1</jobid> \n"
 | |
| "                  <jobstatus>2</jobstatus> \n"
 | |
| "                  <jobprocstatus>0</jobprocstatus>\n"
 | |
| "                  <jobresultcode>551</jobresultcode>\n"
 | |
| "                  <jobresulttype>text</jobresulttype>\n"
 | |
| "                  <jobresult>Unable to deploy virtual machine id = 100 due to not enough capacity</jobresult> \n"
 | |
| "            </queryasyncjobresult>\n"
 | |
| "        "
 | |
| msgstr ""
 | |
| 
 |