POST CURL with vCO 5.1 REST API

I am trying to invoke a vco workflow by using the 5.1 REST API through curl. I could do GET without any issue; but POST always gives me the 400 bad request error below. I want to use json instead of xml, so I passed in "Content-Type: application/json". I am using windows curl.

Initially I tried to create a settings file to json with "-d @filename"; It gives the same error.

If someone could tell what is wrong with my syntax? Thank you.

curl-i k - vcoadmin:vcoadmin of the user x POST h ' Content-Type: application / json ' https://192.168.1.7:8281 / api/stream/dec0e608 - 8 b 8
3 4e32-8825-3e77ef31c4d7/presentation/instances - d '{} '.

HTTP/1.1 400 Bad Request
Content-Type: text/html; charset = utf-8

Content-Length: 965
Date: Tuesday, March 5, 2013 02:31:19 GMT
Connection: close
Server: vCO Server

< html > < head > < title > JBossWeb/2.0.1.GA - error report < / title > < style > <!-H1 {make-f
amily:Tahoma, Arial, without serif; color: white; background-color: # 525-76; font-size: 22 p
x ;} H2 {do-family: Tahoma, Arial, without serif; color: white; background-color: # 525 76}
do-size: 16px ;} H3 {do-family: Tahoma, Arial, without serif; color: white; background}
-color: # 525 76; do-size: 14px ;} BODY {do-family: Tahoma, Arial, without serif; color:}
Black; background-color: white ;} B {do-family: Tahoma, Arial, without serif; color: whit}
e; background-color: # 525 76 ;} P {do-family: Tahoma, Arial, without serif; background: w}
Hite; color: black; do-size: 12px ;} A {color: black ;}} B.SID {color: black ;}} HR {co
Lor: # 525 76 ;} --> < / style > < / head > < body > < h1 > State HTTP 400 - < / h1 > < HR size = "1".
NoShade = "noshade" > < p > < b > enter < /b > < /p > < p > < b > report message < /b > < u > < / u > < / p > <
p > < b > description < /b > < u > the request sent by the client was syntactically incorr
(CT). < /u > < /p > < HR size = "1" noshade "noshade" = > < h3 JBossWeb/2.0.1.GA > < / h3 > < body / > < /.
HTML >

Hi jiang.

Could you try without the quotes around the parameter d data?

curl-i k - vcoadmin:vcoadmin of the user x POST h ' Content-Type: application / json ' https://192.168.1.7:8281 / api/stream/dec0e608 - 8 b 8
3 4e32-8825-3e77ef31c4d7/presentation/instances - d {}

-Ilian

Tags: VMware

Similar Questions

  • How to import plugin VCO through the REST API

    I try to import plugin VCO via customer REST VCO, it always by listed below error

    Exception in thread "main" org.springframework.web.client.HttpServerErrorException: 500 Internal Server Error

    at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:92)

    at org.springframework.web.client.RestTemplate.handleResponseError(RestTemplate.java:494)

    at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:451)

    at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:423)

    at org.springframework.web.client.RestTemplate.postForEntity(RestTemplate.java:328)

    at com.vmware.o11n.sdk.rest.client.services.PluginService.importPlugin(PluginService.java:65)

    at com.vmware.o11n.sdk.rest.client.services.PluginService.importPluginFromFile(PluginService.java:53)

    at FileUploadAdv100.uploadVCOPluginsList (FileUploadAdv100.java:53)

    at FileUploadAdv100.main (FileUploadAdv100.java:26)

    My code is here

    File pluginFile = new File("D:\\vcoplugins\\JAVARESTSDK_Examples\\o11nplugin-powershell-1.0.1.vmoapp");
    Boolean overwrite = false;
    SessionFactory VcoSessionFactory = createSessionFactory();
    Authentication auth = createAuthentication (sessionFactory);
    Session VcoSession = sessionFactory.newSession (auth);
    PluginService pluginService = new PluginService (session);
    pluginService.importPluginFromFile (pluginFile, overwrite);

    Concerning
    APR

    Hi APR,.

    PluginService.importPluginFromFile () supports only import plug-ins of .dar files, not files .vmoapp.

    The good news is that you can extract the .dar file is the .vmoapp file. Simply open the file .vmoapp with a program that can open. ZIP archives (like WinRar, WinZip, 7-zip, etc.) and check out the .dar file. Then change your code to pass the path to the file .dar (the first line of your code).

    Another option would be to try PluginService.importApplicationFromFile (), which should support the import of .vmoapp files.

    Hope this helps,

    -Ilian

  • Access to the VCO rest api vsphere Client Web plugin

    Hello

    I want access to vco rest api vsphere Web Client plugin. I know I can find key holder in UserSession object but I failed generate the Authorization (especially the signature part) header. I'm trying to generate the authorization as described in the message header . But still get the signature verification failed. I can't use java sdk to rest because the user credentials not available for the plugin.

    Could someone help?

    Hello

    Here are a few snippets of the existing plugin that communicates with the vCO using the REST API.

    Please let me know if that is enough or you need something more.

    import java.security.PrivateKey;
    import com.vmware.vim.sso.http.AuthCalculator;
    import com.vmware.vim.sso.http.AuthCalculatorFactory;
    import com.vmware.vim.sso.http.SignatureAlgorithm;
    import com.vmware.vise.vim.security.sso.SsoService;
    
    httpRequest.addHeader("Accept-Language", locale.toString().replace('_', '-'));  // Not sure if this is related
    
    PrivateKey keyPair = ssoService.getHokPrivateKey();  // You should have this already
    SamlToken samlToken = ... // You should have this already
    String currentToken = samlToken.toXml();
    
    String[] token = null;
    if (keyPair != null && currentToken != null) {
       AuthCalculator calc = AuthCalculatorFactory.instance(SignatureAlgorithm.RSA_SHA256);
       token = calc.computeToken(request, keyPair, currentToken);
    }
    
    if (token != null) {
       for (int i = 0; i < token.length; i++) {
          httpRequest.addHeader("Authorization", token[i]);
       }
    }
    

    Try it and let me know if you have any questions.

  • execution of action vCO 5.5.1 api

    I see on the news listed in VMware vCenter Orchestrator 5.5.1 published there is a note to be able to perform api actions of vCO.

    There are a few new REST API calls in 5.5.1

    A notable new features, is that you can start an action of vCO through the REST API:

    • POST /actions/ {actionId} / executions performs an action with identifier assigned
    • POST /actions/ {categoryName} / {actionName} / executions performs an action with the function category and name

    In my real install 5.5.1 however I do not seem to be able to find this feature of the API at all. Wrong notes here or I'm looking in the wrong place?

    I checked and it's my mistake. This feature has been implemented on a generation that was a few days after the GA 5.5.1 I'm sorry about that. When I checked I did on the worng device.

    I'm sorry.

  • Cannot add firewall rules using the REST API vShield App

    Hi all

    I get the following error

    "< errors > < error > < code > 100039 < / code > < description > Unmatched rules found in the configuration." "< / description > < / error > < / errors >.

    When you use the App API vSheild:

    POST https:// /API/2.0/app/firewall/dvportgroup-55/config < vsm-ip >

    Paylod XML:

    <? XML version = "1.0" encoding = "UTF-8" standalone = "yes"? >
    < VshieldAppConfiguration >
    < firewallConfiguration = "dvportgroup-55" the contextId >
    < layer3FirewallRule disabled = "false" priority = "none" id = "1021" >
    < action > allow < / action >
    < connected > false < / connected >
    < source >
    < address >
    < ipAddress > 172.30.68.212 < / ipAddress >
    < / address >
    < > 222 portInfo < / portInfo >
    < / source >
    < destination >
    < address >
    < ipAddress > 172.30.68.166 < / ipAddress >
    < / address >
    < application >
    < > 333 portInfo < / portInfo >
    < Protocol > 6 < / Protocol >
    < / application >
    < / destination >
    < / layer3FirewallRule >
    < / firewallConfiguration >
    < / VshieldAppConfiguration >

    Is anyone has seen this before or any idea why this might be happening?

    In addition, create a wall of fire to provide the variable "id"... How do I know which id to use to create a new firewall rule. I'm using id = "1021" I see one last created after quesrying API... but when you call it through automation, what will the process to define an id invalid?

    Thank you

    xar

    ID must be present, for the new rule Id must be '0' while that for others it should kept as what. The reason for this error which I believe is the same. Replacement of 1021 with 0 should solve this problem. http://blogs.VMware.com/security/2011/11/using-the-VShield-API.html should also be useful to start with vShield firewall App REST API.

    -Kone

  • WebCenter Sites REST API: How to add multiple attributes to Active?

    I created an asset with a multiple attribute, as for example, a set of images.

    I would like to insert images of this asset with the Webcenter Sites REST API but I Don t know how.

    Single attribute is like this:

    sourceAssetAttribute = new Attribute();
      sourceAssetAttributeData = new Data();
      sourceAssetAttribute.setName("FSIILongDescription");
      sourceAssetAttributeData.setStringValue("Test Long Description");
      sourceAssetAttribute.setData(sourceAssetAttributeData);
      sourceAsset.getAttributes().add(sourceAssetAttribute);

    And multiple is how?

    I finally got.

    https://support.Oracle.com/epmos/faces/DocumentDisplay?_afrLoop=563491042188574&parent=document&SourceID=1528601.1&ID=1510322.1&_afrWindowMode=0&_adf.CTRL-State=m55lxhl4z_58

    It s like this:

    sourceAssetAttribute = new Attribute();

    sourceAssetAttributeData = new Data();

    sourceAssetAttribute.setName ("attribute_name");

    sourceAssetAttributeData.getStringLists (.add(0,"Asset_type:"+asset_id));))

    sourceAssetAttributeData.getStringLists (.add(1,"Asset_type:"+asset_id));))

    sourceAssetAttribute.setData (sourceAssetAttributeData);

    sourceAsset.getAttributes () .add (sourceAssetAttribute);

  • Import a workflow with Orchestrator rest API

    Hello

    I am trying to import a workflow to Orchestrator through the REST API, but it always end upward with a 500 error:

    HTTP/1.1 100 continue
    HTTP/1.1 500 Internal Server Error
    Content-Type: text/html; charset = utf-8
    Transfer-Encoding: segmented
    Date: Thu, February 28, 2013 16:54:57 GMT
    Connection: close
    Server: vCO Server
    I proceed in this way:
    I prepare the file that will be sent:

    -5bf10fbcf09

    Content-Disposition: form-data; name = "listVm"; filename = "listVm.Workflow"

    Content-Type: application/zip

    Binary

    -5bf10fbcf09-

    and then make a POST request to my server of vCO:
    curl - ik u "user: pass" h "Accept: application / xml ' h ' Content-type: multipart / form - data; "limit = - 5bf10fbcf09 ' h ' content-length: 19442 ' https://IP:PORT/api/stream / x POST @listVm.wf d
    Then it'll wait state:
    HTTP/1.1 100 continue
    and about 60 years later it returns me an error 500
    Thanks for your help!

    Here is a code that a workflow is important in a category:

    SessionFactory VcoSessionFactory = new DefaultVcoSessionFactory (new URI ("https://vcohost:8281 / api")) {}
    @Override
    protected SSLContext newSSLContext() throw KeyManagementException, {NoSuchAlgorithmException}
    Return newUnsecureSSLContext();
    }
    @Override
    protected HostnameVerifier {} newHostnameVerifier()
    Return newUnsecureHostnameVerifier();
    }
    };
    This is for basic authentication in the what the vCO is in LDAP mode
    Authentication Authentication = new UsernamePasswordAuthentication ("userName", "password");
    It is to the SSO authentication
    Authentication Authentication = null;
    try {}
    SsoAuthenticator authenticator =
    new SsoAuthenticator (new
    1800 l);
    Authentication =
    authenticator.createSsoAuthentication ("userName",
    "password");
    } catch (IOException e) {}
    throw new RuntimeException ("Cannot authenticate to the OSP", e);
    } catch (URISyntaxException e) {}
    / / There are unlikely to occur
    // }
    Session VcoSession = sessionFactory.newSession (authentication);
    WorkflowService wfService = new WorkflowService (session);
    wfService.importWorkflowInCategory ("categoryId", new file)
    'path_to_some_workflow.workflow'));

    I have this code I use only the customer is provided with vCO:

    https://vcohost:8281/API/docs/downloads.html

    Hope this helps

    Concerning

    Ivan

  • vCO 5.5.2 and vCAC 6.1 plugin error REST API

    Hello

    I get an error when you try to make applicants vCAC 6.1 REST API calls of vCO 5.5.2 for the items in the catalog.  This same code works very well with the vCAC 6.0.1 plugin.

    Error:

    Data serialization error. (Workflow: Test vCAC remains / Scriptable task (item1) #24)

    Code:

    var point = {'@type': 'CatalogItemRequest',}

    "catalogItemRef": {"id": "3e6c3f13-6ea0-4da5-8bac-d8cb27e64f24"},

    "Organization": {"tenantRef": "vcacadmin"}

    {"subtenantRef": "e931debb-6200-40e5-89a7-01d35d0cc306"},

    "requestedFor": "[email protected]",

    "State": "SUBJECT."

    "requestNumber": 0.

    "requestData": {"items": []}

    {"key": "provider-blueprintId', 'value': {'type': 'string', 'value':"catalogItem.id"}}.

    {"key": "provider-provisioningGroupId', 'value': {'type':"string","value":"e931debb-6200-40e5-89a7-01d35d0cc306"}},

    {"key": "requestedFor', 'value': {'type':"string","value":"[email protected]"}},

    {'key': 'provider - VirtualMachine.CPU.Count', 'value': {'type': 'integer', 'value': 1}},

    {'key': 'provider - VirtualMachine.Memory.Size', 'value': {'type': 'integer', 'value': 1024}},

    {'key': 'provider - VirtualMachine.LeaseDays', 'value': {'type': 'integer', 'value': 0}},

    {"key": "provider-__Notes', 'value': {'type': 'string', 'value': 'Test'}},

    {'key': 'provider - VirtualMachine.Disk0.Size', 'value': {'type': 'string', 'value': '40'}},

    {{[{"key": 'provider - VirtualMachine.Disk1.Size', 'value': {'type': 'string', 'value': '8'}}]}}

    var catalogRest = vcac.createRestClient (vCACCAFEServicesEnum.CATALOG_SERVICE);

    var answer = catalogRest.post("consumer/requests",item);

    vCAC 6.0.x plugin expects a json object in the call to rest.

    6.1 plugin expects a value of json string.

    This will do the trick:

    var response = catalogRest.post ("consumer/queries", JSON.stringify (item));

  • Run a workflow with REST APIs

    Hi all

    I'm not able to run the workflow with the REST api.

    POST https:// < < HOST > >: < < PORT > > / api/workflows/94dd5f20-c190-4023-a0a7-1589c46f3792/executions/

    Here is the answer. VCO is not all workflow runs so I assumed nothing was performed. I can run to the https://wxpcpvcd006a:8281 / api/stream/f29ebe52-27b2-42d1-84f1-6ecfb939326c to get all the info on the workflow. Any help appreciated.

    {

    'relations': {}

    "total": 0.

    "link":]

    {

                    "href": " https://wxpcpvcd006a:8281 / vco/api/stream/94dd5f20-c190-4023-a0a7-1589c46f3792 / ",

    'rel': 'up '.

    },

    {

                    "href": " https://wxpcpvcd006a:8281 / vco/api/stream/94dd5f20-c190-4023-a0a7-1589c46f3792/executions/ ",

    'rel': 'Add '.

    }

    ]

    }

    }

    Simply enter the braces of opening and closing as your json content:

    {}
    
  • Import an element of configuration via REST API vCO

    Hello, I try to import a configuration item via the REST API of the vCO (5.5.1 device), documented here: http://pubs.vmware.com/vsphere-55/index.jsp?topic=%2Fcom.vmware.vsphere.vco_develop_web_services.doc%2FGUID-75E0F269-3D26-418E-8597-E9FC9E67C608.html

    The doc says thyou must add the request headers to set the properties of the element of the configuration that you want to import, but gives no details.  I tried a few variations but each mistake to return 400 (bad request).  For the purposes of this post, I use vCO as the customer STAYS that way.  I think it can be a problem of chickens and eggs, you have probably set a relationship category (folder) to the imported configuration item configuration item - do not know how to do this, but how otherwise he would know where to store the imported configuration item?

    Here is what I tried:

    // I have pre-defined a REST host on the vCO server that points to itself (var restHost)
    // restHost.url is https://<vco IP>:8281/vco/api
    
    var reqString = restHost.url + "/configurations/";
    System.log("Request Query: " + reqString);
    
    // Got the following content from a REST query to export a config element - this is a vanilla config element
    var xmlContent = "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" standalone=\"yes\"?>\n<config-element " +
    // I've tried both omitting and including the id
    //"id=\"CB808080808080808080808080808080038A808001334613384319bad96d0cacb\" +
    "version=\"0.0.0\" >\n" +
    "<display-name><![CDATA[test_element]]></display-name>\n<atts>\n" +
    "</atts>\n</config-element>\n";
    
    var req = restHost.createRequest("POST", reqString);
    req.contentType = "application/vcoobject+xml;charset=UTF-8";
    req.setHeader("contentAsString", xmlContent);
    var response = req.execute();
    System.log("Response: " + response.toSource());
    
    
    

    httpResponse:HTTP / 1.1 400 Bad Request

    Documentation for VMware:

    Make a POST request to the URL of the configuration item objects:

    POST http://{vcoHost}:{port}/vco/api/configurations/

    If the POST request is successful, you receive the 202 status code.

    Not sure if the REST plugin vCO supports several content directly part.

    Do you need to import configuration programmatically items? If this is not the case, the simplest way would be to import the terminal using curl or shell script. Something like the following command:

    curl -i -v -k -u user:password -X POST https://10.23.12.20:8281/vco/api/configurations -F categoryId=8a978c4b46aa6b9a0146aa6d116d0008 -F file=@d:/downloads/abcconfig.vsoconf
    

    where:

    user: password - your credentials of the vCO

    10.23.12.20 - your vCO server address/IP

    8a978c4b46aa6b9a0146aa6d116d0008 - ID of the category of configuration items

    d:/downloads/abcconfig.vsoconf - path to the file containing configuration items to import

  • Get complete information of Contact with the REST API with Ruby

    Hello

    I'm trying to find information from a contact using the REST API from Ruby. I followed the example posted here and I was able to get good contact with Eloqua, but information are the basis and the FieldValues table is very long with fieldValues can only be and no label field.

    I don't know I asked for complete = depth, and I verified that the contact even on the side of Eloqua seen so many other areas.

    It's the URL that I use: https://secure.eloqua.com/API/REST/1.0/data/contacts?search= < emailAddress > & depth = full & count = 1

    and I don't get like this field in the fieldValues can only be: {'type': 'FieldValue', 'id': "100175"}

    With respect to the main information, they are basic.

    Is it possible to obtain all the contact fields, the same than the one I see on the site of Eloqua?

    Thank you

    Hi Theyaa,

    You can use the following endpoint to retrieve a list of all fields with their unique identifier and metadata:

    • GET /API/REST/1.0/assets/contact/fields?depth=complete&search=*&page=1&count=250

    Hope this helps and please let me know if you need more information.

    Thank you

    Fred

  • REST API - POST: / data/Objetpersonnalise / {id}

    Is there a specific documentation describes to the REST API - data object customPOST call?


    I tried a few different ways to call it without success, some of which are described below.


    This is the custom, object that I work with:

    Table

    (

    [type] = > Objetpersonnalise

    [id] = > 19

    [depth] = > full

    [description] = > custom Description of object

    [name] = > custom Elomentary Test object

    [fields] = > Array

    (

    [0] = > array

    (

    [type] = > CustomObjectField

    [id] = > 131

    [depth] = > full

    [name] = > testing a ground

    [type] = > text

    [displayType] = > text

    [internalName] = > Test_field_one1

    )

    [1] = > array

    (

    [type] = > CustomObjectField

    [id] = > 132

    [depth] = > full

    [name] = > two field Test

    [type] = > text

    [displayType] = > text

    [internalName] = > Test_field_two1

    )

    )

    )

    I tried a few different methods to make this request, but I'll try to refrain from posting a wall of the code, and I'll put everything that I think is most close to being correct based on some examples to

    Looking at the test customObjectData-helper to, eloqua-samples/customObjectData-helper/CustomObjectDataTests to fredsakr/eloqua-samples of master · GitHub

    Request URL: https://secure.p03.eloqua.com/api/rest/2.0/data/customObject/19

    The raw request:

    POST /api/rest/2.0/data/customObject/19 HTTP/1.1

    Host: secure.p03.eloqua.com

    User-Agent: Elomentary (http://github.com/tableau-mkt/elomentary)

    Content-Type: application/json

    Content-Length: 90

    {"fieldValues can only be": [{'id': 131, 'value': 'testing123'}, {'id': 132, "value": "alkfjsaldkjfasldjka"}]}

    And the response headers:

    HTTP/1.1 404 not found

    Cache-Control: private

    Content-Length: 1565

    Content-Type: text/html; Charset = UTF-8

    P3P: CP = "" IDC DSP COR DEVa TAIa OUR PHY ONL UNI COM NAV CNT STA BUS ","

    Date: Tuesday, July 29, 2014 14:32:22 GMT

    cannot get property

    The body of the response:

    <? XML version = "1.0" encoding = "utf-8"? >

    < ! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""

    " < html xmlns =" http://www.w3.org/1999/xhtml ">

    < head >

    < title > < /title > Service

    < style > < / style >

    < / head >

    < body >

    < div id = "content" >

    < class p = "title 1" > Service < /p >

    < p > endpoint could not be found. < /p >

    < / div >

    < / body >

    < / html >

    Parris,

    Endpoint for the creation of object (custom p03) data seems to have been replaced by:

    POST Api/rest/1.0/data/customObject/{customObjectId}

    Endpoint you are trying to use has worked before. I don't know what happened... I found this useful documentation:

    https://secure.P03.Eloqua.com/API/docs/dynamic/rest/1.0/reference.aspx

    Jason Kay

  • Error in creating a category with the REST API

    vRO 7.0.1

    I am trying to create a category in the folder root of Workflow using the REST API.

    URL = https://vroserver.fqdn:8281 / vco/api/categories

    Method = POST

    The API documentation suggests that the body should be like this:

    {

    "categoryType": "WorkflowCategory",

    'name': "Test5",.

    'description': 'Testing '.

    }

    However, I always get a 400 response: the request sent by the client is syntactically incorrect.

    reflecting the docs by: category name must be specified

    Can anyone help?

    Body of the request should be:

    {
       "type":"WorkflowCategory",
       "name":"Test5",
       "description":"Testing"
    }
    
  • Create the edge with the NSX REST API

    Hello

    I am trying to create a new benefit using the REST API, but I get the following error over and over again: the server has refused the request because the request entity is in a format not supported by the resource for the requested method.

    I use using a xml model provided by the nsx_61_api.pdf and all the "ids" settings are ok. Can anyone tell my what of wrong in my XML?

    I'm able to get a list of the existing edges using GET on https:// < nsxmgr-ip > /api/4.0/edges/

    In this case, I use the same URL, but with the post OFFICE instead. In the body, I put the following XML code.

    < edge >
    <datacenterMoid>datacenter-2</datacenterMoid>
        < name > MyName-Edge-01 < / name >
        < holding > Default < / holding >
    <vseLogLevelemergency</vseLogLevel> >
    <devices>
    <applianceSize>compact</applianceSize>
            < appliance >
    <resourcePoolId>resgroup-5050</resourcePoolId>
    <datastoreId>datastore-104</datastoreId>
            < / appliance >
        < / appliances >

        < vnics >
            < vnic >
                < index > 0 < / index >
                < name > uplink01 < / name >
                < type > uplink < / type >
    <portgroupId>virtualwire-10</portgroupId>
    <addressGroups>
                    < addressGroup >
    <primaryAddress>10.0.0.1</primaryAddress>
    <secondaryAddresses>
                            < ipAddress > 10.0.0.2 < / ipAddress >
                            < ipAddress > 10.0.0.3 < / ipAddress >
    <>of theipAddress10.0.0.4</> of theipAddress
    </secondaryAddresses>
    <subnetPrefixLength>29</subnetPrefixLength>
                    < / addressGroup >
                < / addressGroups >
                < MTU > 1600 < / MTU >
    <enableProxyArp>false</enableProxyArp>
    <enableSendRedirects>true</enableSendRedirects>
    <isConnected>true</isConnected>
    <inShapingPolicy>
    <averageBandwidth>20000000</averageBandwidth>
    <peakBandwidth>20000000</peakBandwidth>
    <burstSize>0</burstSize>
                    < enabled > true < / enabled >
                    < inherited > false < / inherited >
    </inShapingPolicy>
    <outShapingPolicy>
    <averageBandwidth>20000000</averageBandwidth>
    <peakBandwidth>20000000</peakBandwidth>
                    < burstSize > 0 < / burstSize >
                    < enabled > true < / enabled >
                    < inherited > false < / inherited >
    </outShapingPolicy>
            < / vnic >
        < / vnics >
    <cliSettings>
    <>theusernameadmin</> user name
    <password># 123456 PasssworD</> password
    <remoteAccess>true</remoteAccess>
        < / cliSettings >
    < / edge >


    Thank you very much

    D.

    Finally, I discovered.

    You must add the header without papers:

    XML:application / xml

    Don't ask me why this non-standard header is not documented.

    D.

  • Consume an XML API - RPC of vCO (no SOAP/REST)

    Someone at - it examples of use of an XML - RPC API?

    I am trying to automate an older version of RedHat satellite, before they put in place a REST API compatible.

    It is quite easy to write against her python code using the xmlrpclib, so an idea, that I've been playing is to encapsulate the Python scripts within a script task or action of the vCO. But I've never seen examples of using stdin / stdout /stderr of an external program, so there could be a lot of violin involved.

    The ideal solution would obviously be if there was a Python plugin for vCO, but alas, no such beast exists, it seems.

    Furthermore, a XML - RPC for JavaScript module should be a viable solution, but I guess I would need to load this library from outside the sandbox of vCO.

    I had a similar problem where I was trying to integrate with Shoemaker and I found a code that makes javascript xmlrpc. I reworked so that it uses e4x which ends up being the best way to treat of vCO and created actions to represent the available options.

    I end by using this code, but limited, testing that I did with it worked.

    I don't have an easy way to export / host a package for you, but this substance includes the parts needed to recreate what I've built. Let me know if you have any questions.

    https://gist.github.com/jbweber/11401647

Maybe you are looking for