VMware Cloud Director API - POST-UploadLocalizationBundle

VMware Cloud Director API - POST-UploadLocalizationBundle

POST /admin/extension/service/localizationbundles

Operation:
POST /admin/extension/service/localizationbundles
Description:
Initiates localization bundle upload.
Since:
5.1
Input parameters
Consume media type(s):
application/vnd.vmware.admin.bundleUploadParams+xml
application/vnd.vmware.admin.bundleUploadParams+json
Input type:
BundleUploadParamsType
Output parameters
BundleUploadSocketType containing URL where bundle must be uploaded.

Produce media type(s):
application/vnd.vmware.admin.bundleUploadSocket+xml
application/vnd.vmware.admin.bundleUploadSocket+json
Output type:
BundleUploadSocketType
Examples
Request
HTTP 1.1
POST /api/admin/extension/service/localizationbundles

Headers:
Content-Length: 202
Content-Type: application/vnd.vmware.admin.bundleUploadParams+xml; charset=ISO-8859-1
x-vcloud-authorization: SZMKkKToUBmDWSEeqZYL2yxpCqDiyToj5PYW3TigOrI=

Body:
<?xml version="1.0" encoding="UTF-8"?><vmext:BundleUploadParams
    xmlns:vmext="http://www.vmware.com/vcloud/extension/v1.5"
    fileSize="632"
    serviceNamespace="ServiceNamespace"/>
Response
HTTP/1.1 200 OK

Headers:
Content-Length: 418
Content-Type: application/vnd.vmware.admin.bundleuploadsocket+xml;version=5.5
Vary: Accept-Encoding

Body:
<?xml version="1.0" encoding="UTF-8"?><vmext:BundleUploadSocket
    xmlns:vmext="http://www.vmware.com/vcloud/extension/v1.5"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    uploadLocation="https://vcloud.example.com/transfer/5bc50b6c-2e60-4bf2-89d7-77cc69dda617/file"
    xsi:schemaLocation="http://www.vmware.com/vcloud/extension/v1.5 http://https://vcloud.example.com/api/v1.5/schema/vmwextensions.xsd"/>