POST /admin/extension/action/registervimserver

Operation:
POST /admin/extension/action/registervimserver
Description:
Register a vCenter server and vShield manager.
Since:
0.9
Input parameters
Consume media type(s):
application/vnd.vmware.admin.registerVimServerParams+xml
Input type:
RegisterVimServerParamsType
Output parameters
RegisterVimServerParamsType

Produce media type(s):
application/vnd.vmware.admin.registerVimServerParams+xml
Output type:
RegisterVimServerParamsType
Examples
Request
HTTP 1.1
POST /api/vsm-Administrator/extension/action/registervimserver

Headers:
Content-Length: 643
Content-Type: application/vnd.vmware.vsm-Administrator.registerVimServerParams+xml; charset=ISO-8859-1
x-vcloud-authorization: X600Twh81GezzqBm3B3GXTe8r9U8+U5kIrA3X4H2ctE=

Body:
<?xml version="1.0" encoding="UTF-8"?><vmext:RegisterVimServerParams
    xmlns:vmext="http://www.vmware.com/vcloud/extension/v1.5">
    <vmext:VimServer
        name="VC-2">
        <vmext:Username>vc-Administrator</vmext:Username>
        <vmext:Password>vc-p4ssw0rd</vmext:Password>
        <vmext:Url>https://10.26.61.46:443</vmext:Url>
        <vmext:IsEnabled>true</vmext:IsEnabled>
    </vmext:VimServer>
    <vmext:ShieldManager
        name="VSM-2">
        <vmext:Username>vsm-Administrator</vmext:Username>
        <vmext:Password>vsm-p4ssw0rd</vmext:Password>
        <vmext:Url>https://10.26.61.51:443</vmext:Url>
    </vmext:ShieldManager>
</vmext:RegisterVimServerParams>
Response
HTTP/1.1 200 OK

Headers:
Content-Length: 2921
Content-Type: application/vnd.vmware.vsm-Administrator.registervimserverparams+xml;version=5.1
Vary: Accept-Encoding

Body:
<?xml version="1.0" encoding="UTF-8"?><vmext:RegisterVimServerParams
    xmlns:vcloud="http://www.vmware.com/vcloud/v1.5"
    xmlns:vmext="http://www.vmware.com/vcloud/extension/v1.5"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.vmware.com/vcloud/extension/v1.5 http://https://vcloud.example.com/api/v1.5/schema/vmwextensions.xsd http://www.vmware.com/vcloud/v1.5 http://https://vcloud.example.com/api/v1.5/schema/master.xsd">
    <vmext:VimServer
        href="https://vcloud.example.com/api/vsm-Administrator/extension/vimServer/3691f5d6-32eb-44f6-804a-1d30d17068c3"
        id="urn:vcloud:vimserver:3691f5d6-32eb-44f6-804a-1d30d17068c3"
        name="VC-2"
        type="application/vnd.vmware.vsm-Administrator.vmwvirtualcenter+xml">
        <vcloud:Tasks>
            <vcloud:Task
                cancelRequested="false"
                expiryTime="2013-05-13T16:52:17.029+03:00"
                href="https://vcloud.example.com/api/task/c864bdc6-cb3b-4c2c-846e-3dfac8f88d09"
                id="urn:vcloud:task:c864bdc6-cb3b-4c2c-846e-3dfac8f88d09"
                name="task"
                operation="Registering VirtualCenter VC-2(3691f5d6-32eb-44f6-804a-1d30d17068c3)"
                operationName="systemRegisterVimserver"
                serviceNamespace="com.vmware.vcloud"
                startTime="2013-02-12T16:52:17.029+02:00"
                status="running"
                type="application/vnd.vmware.vcloud.task+xml">
                <vcloud:Link
                    href="https://vcloud.example.com/api/task/c864bdc6-cb3b-4c2c-846e-3dfac8f88d09/action/cancel"
                    rel="task:cancel"/>
                <vcloud:Owner
                    href="https://vcloud.example.com/api/vsm-Administrator/extension/vimServer/3691f5d6-32eb-44f6-804a-1d30d17068c3"
                    name="VC-2"
                    type="application/vnd.vmware.vsm-Administrator.vmwvirtualcenter+xml"/>
                <vcloud:User
                    href="https://vcloud.example.com/api/vsm-Administrator/user/1260efee-6915-494c-8afa-84e7e6d8a310"
                    name="vcloud"
                    type="application/vnd.vmware.vsm-Administrator.user+xml"/>
                <vcloud:Organization
                    href="https://vcloud.example.com/api/org/a93c9db9-7471-3192-8d09-a8f7eeda85f9"
                    name="System"
                    type="application/vnd.vmware.vcloud.org+xml"/>
                <vcloud:Details/>
            </vcloud:Task>
        </vcloud:Tasks>
        <vmext:Username>vc-Administrator</vmext:Username>
        <vmext:Url>https://10.26.61.46:443</vmext:Url>
        <vmext:IsEnabled>true</vmext:IsEnabled>
        <vmext:IsConnected>false</vmext:IsConnected>
        <vmext:Uuid>https://10.26.61.46:443/sdk</vmext:Uuid>
        <vmext:UseVsphereService>false</vmext:UseVsphereService>
    </vmext:VimServer>
    <vmext:ShieldManager
        href="https://vcloud.example.com/api/vsm-Administrator/extension/vsm/e4db19ad-8e30-40bc-bd08-d0d259d40a30"
        id="urn:vcloud:shieldmanager:e4db19ad-8e30-40bc-bd08-d0d259d40a30"
        name="VSM-2">
        <vmext:Username>vsm-Administrator</vmext:Username>
        <vmext:Url>https://10.26.61.51:443</vmext:Url>
        <vmext:AssociatedVimServer
            href="https://vcloud.example.com/api/vsm-Administrator/extension/vimServer/3691f5d6-32eb-44f6-804a-1d30d17068c3"
            name="VC-2"
            type="application/vnd.vmware.vsm-Administrator.vmwvirtualcenter+xml"/>
    </vmext:ShieldManager>
</vmext:RegisterVimServerParams>