cloudstack/docs/zh-CN/making-api-request.po

133 lines
5.6 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.
#
# Translators:
# Gavin Lee <gavin.lxh@gmail.com>, 2013.
msgid ""
msgstr ""
"Project-Id-Version: Apache CloudStack Docs\n"
"POT-Creation-Date: 2013-03-19T13:38:04\n"
"PO-Revision-Date: 2013-01-02 12:19+0000\n"
"Last-Translator: Gavin Lee <gavin.lxh@gmail.com>\n"
"Language-Team: None\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: zh_CN\n"
"Plural-Forms: nplurals=1; plural=0;\n"
#. Tag: title
#, no-c-format
msgid "Making API Requests"
msgstr "使用API请求"
#. Tag: para
#, no-c-format
msgid ""
"All &PRODUCT; API requests are submitted in the form of a HTTP GET/POST with"
" an associated command and any parameters. A request is composed of the "
"following whether in HTTP or HTTPS:"
msgstr "所有&PRODUCT; API请求都是以HTTP GET/POST形式提交, 同时附上相关的命令和参数. 无论是HTTP或HTTPS, 一个请求都有以下内容组成:"
#. Tag: para
#, no-c-format
msgid ""
"&PRODUCT; API URL: This is the web services API entry point(for example, "
"http://www.cloud.com:8080/client/api)"
msgstr "&PRODUCT; API URL: 这是Web服务API入口(例如, http://www.cloud.com:8080/client/api)"
#. Tag: para
#, no-c-format
msgid ""
"Command: The web services command you wish to execute, such as start a "
"virtual machine or create a disk volume"
msgstr "命令: 你想要执行的Web服务命令, 比如开启一个虚拟机或创建一个磁盘卷"
#. Tag: para
#, no-c-format
msgid ""
"Parameters: Any additional required or optional parameters for the command"
msgstr "参数: 命令所需的任何必要或可选的参数"
#. Tag: para
#, no-c-format
msgid "A sample API GET request looks like the following:"
msgstr "一个API GET请求的样例看起来像这样:"
#. Tag: programlisting
#, no-c-format
msgid ""
"http://localhost:8080/client/api?command=deployVirtualMachine&amp;serviceOfferingId=1&amp;diskOfferingId=1&amp;templateId=2&amp;zoneId=4&amp;apiKey=miVr6X7u6bN_sdahOBpjNejPgEsT35eXq-jB8CG20YI3yaxXcgpyuaIRmFI_EJTVwZ0nUkkJbPmY3y2bciKwFQ&amp;signature=Lxx1DM40AjcXU%2FcaiK8RAP0O1hU%3D\n"
" "
msgstr "http://localhost:8080/client/api?command=deployVirtualMachine&amp;serviceOfferingId=1&amp;diskOfferingId=1&amp;templateId=2&amp;zoneId=4&amp;apiKey=miVr6X7u6bN_sdahOBpjNejPgEsT35eXq-jB8CG20YI3yaxXcgpyuaIRmFI_EJTVwZ0nUkkJbPmY3y2bciKwFQ&amp;signature=Lxx1DM40AjcXU%2FcaiK8RAP0O1hU%3D\n "
#. Tag: para
#, no-c-format
msgid "Or in a more readable format:"
msgstr "或者更易读的方式:"
#. Tag: programlisting
#, no-c-format
msgid ""
"\n"
"1. http://localhost:8080/client/api\n"
"2. ?command=deployVirtualMachine\n"
"3. &amp;serviceOfferingId=1\n"
"4. &amp;diskOfferingId=1\n"
"5. &amp;templateId=2\n"
"6. &amp;zoneId=4\n"
"7. &amp;apiKey=miVr6X7u6bN_sdahOBpjNejPgEsT35eXqjB8CG20YI3yaxXcgpyuaIRmFI_EJTVwZ0nUkkJbPmY3y2bciKwFQ\n"
"8. &amp;signature=Lxx1DM40AjcXU%2FcaiK8RAP0O1hU%3D\n"
" "
msgstr "\n1. http://localhost:8080/client/api\n2. ?command=deployVirtualMachine\n3. &amp;serviceOfferingId=1\n4. &amp;diskOfferingId=1\n5. &amp;templateId=2\n6. &amp;zoneId=4\n7. &amp;apiKey=miVr6X7u6bN_sdahOBpjNejPgEsT35eXqjB8CG20YI3yaxXcgpyuaIRmFI_EJTVwZ0nUkkJbPmY3y2bciKwFQ\n8. &amp;signature=Lxx1DM40AjcXU%2FcaiK8RAP0O1hU%3D\n "
#. Tag: para
#, no-c-format
msgid ""
"The first line is the &PRODUCT; API URL. This is the Cloud instance you wish"
" to interact with."
msgstr "第一行是&PRODUCT; API URL. 这个是你想与之交互的云环境."
#. Tag: para
#, no-c-format
msgid ""
"The second line refers to the command you wish to execute. In our example, "
"we are attempting to deploy a fresh new virtual machine. It is preceded by a"
" (?) to separate itself from the &PRODUCT; API URL."
msgstr "第二行是你想要执行的命令. 在我们的例子中, 我们试着云部署一个全新的虚拟机. 在它前面有一个(?)用来分隔这自己和&PRODUCT; API URL."
#. Tag: para
#, no-c-format
msgid ""
"Lines 3-6 are the parameters for this given command. To see the command and "
"its request parameters, please refer to the appropriate section in the "
"&PRODUCT; API documentation. Each parameter field-value pair (field=value) "
"is preceded by an ampersand character (&amp;)."
msgstr "3到6行是命令的参数. 想要知道这个命令和它的请求参数, 请参照&PRODUCT; API文档里适当的章节. 每一个参数都是一个域-值对(域=值), 在它前面会有一个连字符(&amp;)."
#. Tag: para
#, no-c-format
msgid ""
"Line 7 is the user API Key that uniquely identifies the account. See Signing"
" API Requests on page 7."
msgstr "第7行是用户的API值, 它用来定义用户的身份. 可参考登入API请求."
#. Tag: para
#, no-c-format
msgid ""
"Line 8 is the signature hash created to authenticate the user account "
"executing the API command. See Signing API Requests on page 7."
msgstr "第8行是鉴权用户执行的API命令的签名哈希值. 可参考登入API请求."