cloudstack/docs/pot/response-formats.pot

85 lines
2.9 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-04-12T11:19:40\n"
"PO-Revision-Date: 2013-04-12T11:19:40\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 "Response Formats: XML and JSON"
msgstr ""
#. Tag: para
#, no-c-format
msgid "CloudStack supports two formats as the response to an API call. The default response is XML. If you would like the response to be in JSON, add &response=json to the Command String."
msgstr ""
#. Tag: para
#, no-c-format
msgid "The two response formats differ in how they handle blank fields. In JSON, if there is no value for a response field, it will not appear in the response. If all the fields were empty, there might be no response at all. In XML, even if there is no value to be returned, an empty field will be returned as a placeholder XML element."
msgstr ""
#. Tag: para
#, no-c-format
msgid "Sample XML Response:"
msgstr ""
#. Tag: programlisting
#, no-c-format
msgid "\n"
" <listipaddressesresponse> \n"
" <allocatedipaddress>\n"
" <ipaddress>192.168.10.141</ipaddress> \n"
" <allocated>2009-09-18T13:16:10-0700</allocated> \n"
" <zoneid>4</zoneid> \n"
" <zonename>WC</zonename> \n"
" <issourcenat>true</issourcenat> \n"
" </allocatedipaddress>\n"
" </listipaddressesresponse>\n"
" "
msgstr ""
#. Tag: para
#, no-c-format
msgid "Sample JSON Response:"
msgstr ""
#. Tag: programlisting
#, no-c-format
msgid "\n"
" { \"listipaddressesresponse\" : \n"
" { \"allocatedipaddress\" :\n"
" [ \n"
" { \n"
" \"ipaddress\" : \"192.168.10.141\", \n"
" \"allocated\" : \"2009-09-18T13:16:10-0700\",\n"
" \"zoneid\" : \"4\", \n"
" \"zonename\" : \"WC\", \n"
" \"issourcenat\" : \"true\" \n"
" } \n"
" ]\n"
" } \n"
" } \n"
" "
msgstr ""