vROPS Java REST API example

Can anyone help me to get a sample of how clear instantiate the client and run a command base with Java get?

I see from the documentation, it is recommended to use something like:

Customer customer =.

ClientConfig.builder)

.serverUrl ("https://{ip} / suite-api / ')

.basicAuth ("username", "password")

. useJson()

. Build();

System.out.println (client.platformMetadatas () .listAdapterTypes ());

But how to build off of that for a get command, saying get all the cards? On the one hand, the platformMetadatas class is not recognized as a result they do not even provide a good example.

I understand that I should just go learn Java and then it will be all logic, but the documentation is not very clear to me.

Hello

For all instances of the adapter, you can try something like this:

Customer customer = ClientConfig.builder () .serverUrl ("https://{ip} / api suite")

.basicAuth ("user", "pass")

. userJson()

. Build()

. newClient();

Adapters AdapterInstancesInfoDto = client.adapterInstancesClient () .list ();

Basically, after you get the customer running, you can get different "sous-clients" him as adapterInstancesClient above.

Hope this helps

Customer customer = ClientConfig.builder () .serverUrl ("https://localhost/suite-api")
.basicAuth (restUser, restPass)
. Build()
. newClient();
        
Adapters AdapterInstancesInfoDto = client.adapterInstancesClient () .list ();
        
{for (adapter AdapterInstanceInfoDto: {adapters.getAdapterInstancesInfoDto ())}
System.out.println (adapt);
}

Tags: VMware

Similar Questions

  • HttpClientErrorException with the REST of Java Orchestrator APIs

    Hello

    I'm trying to quickly reach the speed to use this API.  I'm using version 5.1.0 configured with PASS-THROUGH authentication.

    I'm trying to run a workflow, or simply call whatever it is really on the Orchestrator who also interacts with vCenter.

    I went through the code example in the rest-client-examples-test that comes with Orchestrator, and I get an exception. My code is on a closed network, sorry that I can't copy paste.

    but here's the gist of the stack trace:

    org.springframework.web.client.HttpClientErrorException: 400 < big long guid > false - rest - not related caused by: big long guid > false - rest - not related

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

    .. few other spring classes

    .

    .

    at com.vmware.o11n.sdk.rest.client.SsoAuthenticator.getVcoSolutionPrincipal(SSoAuthenticator.java:174)

    at com.vmware.o11n.sdk.rest.client.SsoAuthenticator.getVcoSolutionPrincipal(SSoAuthenticator.java:155)

    at com.vmware.o11n.sdk.rest.client.DefaultVcoSessionFactory.newSsoSession(DefaultVcoSessionFactory.java:89)

    at com.vmware.o11n.sdk.rest.client.examples.tests.RestTest < init > (RestTest.java:93)

    at com.vmware.o11n.sdk.rest.client.examples.tests.RestTest.main(RestTest.java:118)

    Looks like it will always fail in trying to get the principal amount of the solution?

    I saw the post here: How to move the VM of Workflow using JavaSDK name?

    and tried to not not using the call to newSsoSession() as suggested in the post and create my own SSOAuthenticator and passing the session, but which resulted in the same exception.

    That's essentially what my code looks like:

    public class RestTest

    {

    Public Shared Sub main (string args [])

    {

    try {}

    VcoSession session = DefaultVcoSessionFactory.newSsoSession (new URI ("https://hostname:8281 / api /"), new URI ("https://hostname:7444/ims/STSService"), 1234567, 'user', 'pass');

    WorkflowService wfService = new WorkflowService (session);

    InventoryItemQuerySpec filter = new InventoryItemQuerySpec();

    filter.setMaxResult (10);

    List InventoryItemsList = wfService.getAll (filter);

    System.out.println ("Got list:" + (list is nothing));

    }

    catch (System.Exception e)

    {

    System.out.println (e);

    }

    }

    }

    Note: if I use DefaultVcoSessionFactory.newLdapSession () just for fun and then tried to call UtilService.getSupportedApiVersion () and who does not, but I guess it's because no interaction is required with the vCenter server to call this method.

    I'm stuck! Any ideas or suggestions would be greatly appreciated! THX!

    I understood that... Finally, looks like I didn't specify mydomain user@domain, and I was not authenticated correctly, or maybe to halfway.  Error message returned should be much better, as the only way that I thought that this point has been to the server.log the Orchestrator.

    THX!

  • VROps REST API documentation

    Can someone tell me where in the rest API vROps 6.0 documentation I can get information about a function to create a custom group?

    CreateUserGroup - search

    POST/api/auth/usergroups

  • vROps REST API SSL Certificate Problem

    Hello

    For a while, trying to reach the REST API through Powershell but got the following error. I did most of the things that is said on blogs. All the world is facing this problem before? PowerShell is the right way to do it? Can VMware Support help me with the problem?

    restapi.png

    Thank you

    Ramazan

    did you run the secure connection & certificate?

    a few example- Powershell Invoke-RestMethod using self-signed certificates and authentication of base - Any Examples? - Stack Overflow

  • Using the REST API to delete the contact from the contacts list

    Hello world

    I am looking for some info for the creation of a request to delete a contact from a list of Contact using the REST API.   Here's what I have in Java where the contact id is 1 'and my list is 72'.     I'm open to responses in Java, c# or other languages.

    serverAddress = new URL ("https://secure.p03.eloqua.com/API/REST/1.0/assets/contact/list/72");

    establish communication stuff

    connection = null;

    Set up the initial connection

    connection = (HttpURLConnection) serverAddress.openConnection ();

    connection.setRequestMethod ("PUT");

    connection.setRequestProperty ("content-type", "json; charset=utf-8 ");"

    connection.setRequestProperty ("authorization", 'Basic BLOCKED');

    String body = '{\"membershipDeletions\":[\"1\']}";

    connection.setDoOutput (true);

    connection.getOutputStream () .write (body.getBytes ("UTF8"));

    connection.setReadTimeout (10000);

    Connection.Connect ();

    When I test with it I get a '400' HTTP response

    Thank you!

    Hi Noel,

    The following document describes the operations available for lists of contacts in the Rest API. Please note that we also have a project open source c# example illustrates the use of these endpoints.

    Repositories are all available to the public on Github. Hope this helps and please let me know if you need more information.

    Thank you

    Fred

  • Using c# to access the REST API - 404 not found

    Hi all!

    Since there is currently no available c# example to access the REST API, I'm going at this from scratch using the Nuget - Microsoft.AspNet.WebApi.Client package.

    I was able to successfully implement a framework for code that is able to make a call to the base_uris method and successfully receive a response.

    I'm doing a transientDocuments call, but I still get a 404 not found error.  I'm hoping somewhere here may be able to enlighten.  I tried to use the current examples of Java to call REST API to get help on how to go about things.

    I create an instance of the AdobeDCREST class, and pass the BaseUrl (https://api.echosign.com/api/rest/v5/) and my key to integration.  When I make a call to the PostTransientDocuments method I pass into the path of the pdf file that I am trying to download.  PostTransientDocuments then deals with the creation of an object the HttpContent (StreamContent) of the file, and then adding the headers, ContentType and ContentDisposition.  The call to GetClient() will determine whether base_uris should be called still or not (I make the call to base_uris and storage of the api_access_point in a variable static for all other calls, as well as the java examples) and returns an object of the HttpClient with the access in the header already token.  The call to base_uris works and returns a https://api.na1.echosign.com/ api_access_point

    I then add/api/rest/v5 to the url access_point to call transientDocuments. Failure occurs during the call to PostAsync in transientDocuments with a 404 not found error.

    Here's the code I'm using to test things so far.  Any help would be greatly appreciated.  I've been spinning my wheels on that for too long already.

    using System;

    using System.Collections.Generic;

    using System.IO;

    using System.Linq;

    using System.Net.Http;

    using System.Net.Http.Headers;

    using System.Text;

    using System.Threading.Tasks;

    namespace Ivezt.Documents {}

    public class AdobeDCREST {}

    < Summary >

    A static variable that is defined by an initial call to GetBaseURIs() and used for all API calls later.

    < / Summary >

    Private Shared ReadOnly Property SERVICES_BASE_URL as string = string. Empty;

    < Summary >

    The end point of API to use.  This aspect will have to be changed if Adobe is moving to a new version of the API and we update this

    the code to use this new version.

    < / Summary >

    Private Shared ReadOnly Property API_URL as string = "api/rest/v5 /";

    < Summary >

    This BaseUrl is passed to the constructor and used to make a call to GetBaseURIs().

    < / Summary >

    private string m_strBaseUrl = string. Empty;

    < Summary >

    The IntegrationKey is passed to the constructor and must be added to the header of each API request.

    < / Summary >

    private string m_strIntegrationKey = string. Empty;

    public AdobeDCREST (string strBaseUrl, string strIntegrationKey) {}

    m_strBaseUrl = strBaseUrl;

    m_strIntegrationKey = strIntegrationKey;

    }

    private HttpClient GetDefaultClient() {}

    HttpClient client = new HttpClient();

    Add an Accept header for JSON format.

    customer. () DefaultRequestHeaders.Accept.Add

    (new MediaTypeWithQualityHeaderValue("application/json"));

    Add the access token

    customer. DefaultRequestHeaders.Add ("Access token", m_strIntegrationKey);

    customer feedback;

    }

    private HttpClient GetClient() {}

    If we have not yet the SERVICES_BASE_URL, then we must do a GetBaseURIs call

    If (SERVICES_BASE_URL. Length == 0) {}

    HttpClient baseClient = GetDefaultClient();

    Use the BaseUrl passed to the constructor

    baseClient.BaseAddress = new Uri (m_strBaseUrl);

    URI BaseURIs_Response = GetBaseURIs (baseClient);

    SERVICES_BASE_URL = string. Format ("{0} {1}", uris.api_access_point, API_URL);

    baseClient.Dispose ();

    }

    If (SERVICES_BASE_URL. Length == 0)

    throw new Exception ("failed to retrieve Adobe Document cloud Base URI");

    HttpClient client = GetDefaultClient();

    customer. BaseAddress = new Uri (SERVICES_BASE_URL).

    customer feedback;

    }

    public BaseURIs_Response GetBaseURIs(HttpClient client) {}

    Call base_uris

    HttpResponseMessage response = client. GetAsync ("base_uris"). Result;  Call blocking!

    If (answer. IsSuccessStatusCode) {}

    Analyze the response body. Blocking!

    answer back (BaseURIs_Response). Content.ReadAsAsync (typeof (BaseURIs_Response)). Result;

    }

    else {}

    throw new Exception (string. Format ("{0} ({1})", (int) response. ") StatusCode, response. ReasonPhrase));

    }

    }

    public TransientDocument_Response PostTransientDocuments (string strFilePath) {}

    Call transientDocuments

    Content the HttpContent = new StreamContent (new FileStream (strFilePath, FileMode.Open, FileAccess.Read));

    content. Headers.ContentType = new MediaTypeHeaderValue("application/pdf");

    content. Headers.ContentDisposition = new ContentDispositionHeaderValue("form-data") {}

    Name = "file."

    FileName = 'Template.pdf.

    };

    HttpClient client = GetClient();

    HttpResponseMessage response = client. PostAsync ("transientDocuments", content). Result;  Call blocking!

    If (answer. IsSuccessStatusCode) {}

    Analyze the response body. Blocking!

    answer back (TransientDocument_Response). Content.ReadAsAsync (typeof (TransientDocument_Respons e)). Result;

    }

    else {}

    throw new Exception (string. Format ("{0} ({1})", (int) response. ") StatusCode, response. ReasonPhrase));

    }

    }

    }

    public class BaseURIs_Response {}

    public string web_access_point {get; set ;}}

    public string api_access_point {get; set ;}}

    }

    public class TransientDocument_Response {}

    public string transientDocumentId {get; set ;}}

    }

    }

    I think I found my problem.  I was not a multi-part post form data.  Once I changed this, everything worked as expected.  Here is an updated version of the PostTransientDocuments() method that works:

    public TransientDocument_Response PostTransientDocuments (string strFilePath) {}

    Call transientDocuments

    using (var = {GetClient() customer)}

    using (var content = new MultipartFormDataContent()) {}

    var multiplesContent = new StreamContent (new FileStream (strFilePath, FileMode.Open, FileAccess.Read));

    fileContent.Headers.ContentType = new MediaTypeHeaderValue("application/pdf");

    fileContent.Headers.ContentDisposition = new ContentDispositionHeaderValue("form-data") {}

    Name = "file."

    FileName = 'Template.pdf.

    };

    content. Add (FileContent);

    HttpResponseMessage response = client. PostAsync ("transientDocuments", content). Result;  Call blocking!

    If (answer. IsSuccessStatusCode) {}

    Analyze the response body. Blocking!

    answer back (TransientDocument_Response). Content.ReadAsAsync (typeof (TransientDocument_Respons e)). Result;

    }

    else {}

    throw new Exception (string. Format ("{0} ({1})", (int) response. ") StatusCode, response. ReasonPhrase));

    }

    }

    }

    }

  • REST API assignRolePermissionToUserGroup

    Im trying to update the objects of our clients have right of in vROps, programmatically through the REST API. The idea is that when a customer starts rotating or destroyed a virtual computer through vRA, we would find all of their machines virtual provisioned and rebuild the list of objects for their group of vROps through vRO using the REST API of vROps. I have a vRO workflow that looks like this:

    var groupId = "8c380090-d5c3-42a7-a77c-5de4437ce85b"
    var resourceId = "8e62002f-0965-47e2-a82a-6d403b44b756"
    
    var body = {"traversal-spec-instances" : [{
      "traversal-spec-instance" : {
           "selectAllResources" : false,
           "name" : "vSphere Hosts and Clusters",
           "resourceKind" : "vSphere World",
           "adapterKind" : "VMWARE",
           "resourceSelection" : [{
                "resourceId" : [
                     resourceId,
                     "4abb32e5-1fd0-443b-85ed-4995da4a1a0d"
                ],
                "type" : "SPECIFIC"
           }]
      }
    }],
    "allowAllObjects" : false,
    "roleName" : "ReadOnly"
    }
    System.log(JSON.stringify(body));
    
    
    var request = restHost.createRequest("PUT", "/auth/usergroups/" + groupId + "/permissions", body);
    request.contentType = "application/json";
    
    
    var json = JSON.stringify(System.getModule("com.vmware.library.http-rest").xml2json(request.execute().contentAsString));
    System.log(json);
    
    
    

    Which produces the string JSON:

    {"traversal-spec-instances":[{"traversal-spec-instance":{"selectAllResources":false,"name":"vSphere Hosts and Clusters","resourceKind":"vSphere World","adapterKind":"VMWARE","resourceSelection":[{"resourceId":["8e62002f-0965-47e2-a82a-6d403b44b756","4abb32e5-1fd0-443b-85ed-4995da4a1a0d"],"type":"SPECIFIC"}]}}],"allowAllObjects":false,"roleName":"ReadOnly"}
    
    
    

    There are no examples of the request body then I'm just doing what I interpret requires that the documentation of the REST API.

    Run this generates the error:

    {"error":{"message":"Invalid input format.","xmlns:ops":"http://webservice.vmware.com/vRealizeOpsMgr/1.0/","moreInformation":{"info":{"content":"/suite-api/api/auth/usergroups/8c380090-d5c3-42a7-a77c-5de4437ce85b/permissions","name":"api-uri"}},"httpStatusCode":400,"xmlns:xs":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","apiErrorCode":400}}
    
    
    

    Which is not very useful.

    I checked with other API calls that the groupId is correct and returns a grump object valid through the REST API. So my assumption at this point is that the body of the request is malformed but I'm not sure how and errors are not giving me much to go.

    You're right about the resourceKind.  I did some tests and the JSON body below worked for me.  I changed two things:

    1. I converted the body to a string variable.  It seemed that it was sent as an object.
    2. I removed the "path-spec-instance", while the instance is just placed between braces inside the "crossing-spec-proceedings".  I did a get on a sample group and that's how it was formatted.
    var body = {"traversal-spec-instances" : [{  
    
           "selectAllResources" : false,
           "name" : "vSphere Hosts and Clusters",
           "resourceKind" : "vSphere World",
           "adapterKind" : "VMWARE",
           "resourceSelection" : [{
                "resourceId" : [
                     resourceId,
                     "414f5fdc-a651-4886-adb7-5d947c69ae63"
                ],
                "type" : "SPECIFIC"
           }]  
    
    }],
    "allowAllObjects" : false,
    "roleName" : "ReadOnly"
    }
    System.log(JSON.stringify(body));
    System.log(typeof body);
    var stringBody = JSON.stringify(body);  
    
    var request = restHost.createRequest("PUT", "/auth/usergroups/" + groupId + "/permissions", stringBody);
    request.contentType = "application/json";
    
  • Expose REST APIs on the API Oracle Gateway

    Hi all

    Can someone help me to OAG. I'm new on this.

    I want to expose some REST API of gateway API as well as Oracle are accessible on mobile phones and browsers.

    An example or a document for this help

    Thank you

    Laetitia

    What version of Oracle application Gateway you use, if you use of the OAG version 11.1.2.4.0 then you need to install the hotfix.

    Please see this document on the oracle support: Doc ID 2070998.1

    Kind regards

    Anshul

  • create the document using the CMIS REST API

    Hello! I would like to integrate my java application with Oracle Webcenter via the REST API of CMIS. I can read, delete documents, but have some problem with creating one.

    I get success only when I create document (type = "/ ucmserver / IDC:GlobalProfile") with the name "idcPrimaryFile". In other cases I have the exception:

    oracle.webcenter.content.integration.RepositoryException: November 12, 2015 08:52:06 oracle.webcenter.content.integration.spi.ucm.DocumentManager mapBinaryPropertiesToTransferFile

    GRAVE: Impossible to perform the action on document with binary because the binary name and the name of the node must be the same, but they are not.  The binary name is XXX and the name of the file is idcPrimaryFile

    My properties:

    Properties =]

    (PropertyIds.OBJECT_TYPE_ID): type.

    (PropertyIds.NAME): name,.

    "/ ucmserver / IDC:GlobalProfile.ora:p:dDocType ':"Application. "

    ' / ucmserver / IDC:GlobalProfile.ora:p:dDocTitle ': 'Test ',.

    ' / ucmserver / IDC:GlobalProfile.ora:p:dSecurityGroup ': 'Public ',.

    ]

    I would appreciate help

    Hello! I solved my problem, but with a workaround.

    I will try to explain the problem and how it is possible to create documents via Oracle Webcenter Content Management API REST CMIS:

    For the next POST request:

    POST/rest/api/cmis/children/ucmserver? UID = IDC:Folder / FLD_USERS & versioningState = none HTTP/1.1

    Host: 192.168.32.192:8888

    User-Agent: Mozilla/5.0 (X 11; Linux x86_64; RV:38.0) Gecko/20100101 Firefox/38.0

    Accept-Encoding: gzip, deflate

    Connection: keep-alive

    Accept-Language: en-US, en; q = 0.5

    Content-Type: application/atom + xml; type = entry

    Cache-Control: no cache

    "http://www.w3.org/2005/Atom' xmlns:cmis ="http://docs.oasis-open.org/ns/cmis/core/200908/"xmlns:cmisra ="http://docs.oasis-open.org/ns/cmis/restatom/200908/"xmlns:chemistry ="http://chemistry.apache.org/">."

    urn: uuid:00000000 - 0000-0000-0000-00000000000

    test

    2015 11-13 T 08: 06:27.014Z

    a text

    Public

    test

    Application

    MyTitle

    / ucmserver / IDC:GlobalProfile

    I get the response from the server

    Error 500 - Internal server error

    oracle.webcenter.content.integration.RepositoryException: 18 November 2015 05:24:04 oracle.webcenter.content.integration.spi.ucm.DocumentManager mapBinaryPropertiesToTransferFile

    GRAVE: Impossible to perform the action on document with binary because the binary name and the name of the node must be the same, but they are not.  The binary name is test , and the name of the file is idcPrimaryFile.

    When the test is the document name.

    This request, I checked with an another compatible services of CMIS (IBM FileNet and OpenCMIS InMemory repository). I created the document with name test it.

    Workaround solution:

    POST request:

    POST/rest/api/cmis/children/ucmserver? UID = IDC:Folder / FLD_USERS & versioningState = none HTTP/1.1

    Host: 192.168.32.192:8888

    User-Agent: Mozilla/5.0 (X 11; Linux x86_64; RV:38.0) Gecko/20100101 Firefox/38.0

    Accept-Encoding: gzip, deflate

    Connection: keep-alive

    Accept-Language: en-US, en; q = 0.5

    Host: 192.168.32.192:8888

    Content-Type: application/atomsvc + xml

    Slug: test

    Cache-Control: no cache

    "http://www.w3.org/2005/Atom' xmlns:cmis ="http://docs.oasis-open.org/ns/cmis/core/200908/"xmlns:cmisra ="http://docs.oasis-open.org/ns/cmis/restatom/200908/"xmlns:chemistry ="http://chemistry.apache.org/">."

    urn: uuid:00000000 - 0000-0000-0000-00000000000

    test

    2015 11-13 T 08: 06:27.014Z

    a text

    Public

    test

    Application

    MyTitle

    / ucmserver / IDC:GlobalProfile

    I created the document with the name test in Oracle Webcenter.

    The differences between applications are:

    Content-Type: application/atomsvc + xml

    Slug: test

    So I'm not sure that the Oracle Webcenter Content Management Service STILL provides "correct" implementation of the OASIS CMIS specification, because I found nothing in therehttp://docs.oasis-open.org/cmis/CMIS/v1.0/cmis-spec-v1.0.html on the Slug query parameter and it is not clear to me how the Oracle Webcenter Content Management REST Service works with Content-type application/atom + xml; type = entry (I mean according to CMIS specification().



    It will be very useful for me to get another point of view. Maybe someone could correct me if I'm wrong.

    Thanks in advance.

  • More quick REST API / JSON approaches to the interviews of the OPA?

    I recognize there are services / libraries that can convert an OPA Web Service deployment on the hub to a JSON / REST API.  (Examples: Mashape I used for the other REMAINS in the SOAP proxy).

    But, is there a consensus on the more common approach / best to this operation?  Is there an approach that may be more in line with the future development of the OPA hub around REST API?  I think I saw something with Oracle Cloud Computing Mobile Service, but I cannot find enough documentation to the CEP with.

    It occurs to me, that instead of researching the topic for an hour or more, I could have benefits more ask on the forum.

    Thank you

    Paul, my quick view is that whatever you do will be OK, because even once we add REST API, existing SOAP API will remain for backward compatibility reasons.

    It would also be impossible to build compatibility for something we have not designed yet, so I can't really all guide on what to do / avoid in order to simplify any possible future transition official rest API.

    Davin.

  • REST API - the field value date Contact exported in digital format.

    Hi people,

    I used below REST API to retrieve the Contacts with the views and custom filter.

    The JSON response, I shot the date value in the number format. As 'C_Lead_Score_Date': '1434456862',


    https://secure.Eloqua.com/API/rest/1.0/data/contact/view/ {identifier} / contacts/filter / {id}


    How can I convert the appropriate number in date value? or y at - it an adjustment to the level of the code to retrieve the value in the correct date format.


    The data type of the field is dates.

    The date is returned to as a Unix timestamp.

    You can use an online converter to convert it to a normal value, for example: online - time conversion Conversion Unix

    1434456862 = Tuesday, June 16, 2015 12:14:22 GMT

  • 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);

  • Is it possible to activate / De Activate campaign via the REST API?

    Hello

    Is it possible to activate / campaigns via the API REST Eloqua activates?

    I was checking out this site on the Eloqua Rest API, but did not see the option http://secure.eloqua.com/api/docs/Static/Rest/2.0/index.htm

    Kind regards

    Aditya

    Yes, for example, to Activate your campaign, use a POST/assets / campaign / active / {id}, where id is the ID of the campaign.

  • Can not do a query with the REST api

    Hello

    After discovering that the use of the standard SOAP API what is like poking yourself in the eye with a sharp stick, I try to use the REST API. At first, I tried to exercise it through the extension of POSTMAN on Chrome. But I have no joy.

    Can I use caller ID to get the URL, so I know that my authentication is OK. But all other calls give me:

    Failure of 403 XSRF Protection


    Is an example of a call, that I'm trying:

    https://secure.Eloqua.com/API/rest/1.0/data/[email protected] & Count = 1

    I can't find any reference anywhere to this error 403.

    Help!

    Thank you

    Simon

    Hi Simon,.

    Looks like you're client (web browser) might have stored credentials for Eloqua, probably in the cookies collection. If you try to delete your cookies and rerun the query API with basic authentication, it should work.

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

    Thank you

    Fred

  • Download Images in Eloqua via the REST API (via an API?)

    Hello community!

    We are interfacing content between a site CMS and Eloqua for custom content, so that we can deliver such content in emails and the landing pages effectively.

    We have an obligation to affix an image (such as an icon of great white game) overlay, a bit like this: http://u3.uicdn.net/372/cc7727211f2a7907850d2f844e707/diy-business-us/vi_video_content.jpg

    Unfortunately the CMS system he can not provide, we for some reason any.  And trying to superimpose the image in e-mails of Eloqua using CSS will result in inconsistent results between email clients, particularly mobile and so on...

    Our plan is so - to superimpose the image in our middleware software and then download the image to Eloqua, then use newly uploaded in the system.

    Is there a way we can download a picture of Eloqua via the REST API or any other API?

    Thank you

    Mark

    Hi Mark,

    Yes, you can use the Rest API to upload images to your installation of Eloqua. We will aim to provide documentation in the near future, but for now, we have an example of project available on Github to show how load images: Image of assistance

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

    Thank you

    Fred

Maybe you are looking for

  • Satellite A60 - replacement HD not recognized in the BIOS

    I have an A60 which began to shut down and not start.I tried to use the restore CD that has reinstalled the operating system, but the laptop still not managed to start after that. I suspected that the HD failed and bought a toshiba 40gig drive replac

  • Lenovo k4 "unable to connect to proxy servers.

    Recently I bought lenovo k4 note and I am unable to use mobile dataGoogle chrome has the error "Unable to connect to proxy servers" and other applications do not work as wellI tried different solutions but none of them work so far! Hotspot and WiFi w

  • Windows Update error 80072EFD. No. MS solutions work. Cannot download anything MS Download Center.

    I tried to use windows update. Gave me an error code. I tried to use alll the troubleshooting on the microsoft site. nothing seems to work. I disabled anti viruse software, firewalls. My goal is to get the update, so I can get .NET framework and XNA

  • Linksys wrt110 does not connect to the dsl modem

    I have a Linksys WRT110 router and I use a DSL modem.  I couldn't get an ipad to connect and I couldn't remember the password for my router so I pushed the reset button on the back. I'm officially the day 3 Troubleshooting cross, get new ip addresses

  • PS4 remote play: out of the use of the House?

    The PS4 remote playback function is a selling point of the Xperia Z3 & peripheral more recent and would love to see a new update to do this, so I can play my PS4 out of the House. I know that this is a PS VITA is for, I have one, but the PS4 controll