Accessible resources within a platform with the HQ API

Hello

I use the HQ API to build a custom Java monitoring tool.
So far, I can easily access agents and its related settings.

My problem is that I don't know how to access resources related to agent: Mount of the file server, servers, services... Is it impossible with the HQ API?

How can I do?

If you use this, it will be very easy!

Get all your HQ server agents: this will return a list of the agents!

listAgent = hq.getAgentApi () .getAgents () .getAgent ();

Get all your HQ server platform: this will return a list of Resources (platform)!

listPlatform = hq.getResourceApi () .getResources (listAgent.get (i), true, true) .getResource ();

Get all your HQ Server server: this will return a list of Resources (server)!

list server = listPlatform.get (j) .getResource ();

get all your HQ Server services: this will return a list of Resources (services)!

listServices = listServer.get (k) .getResources ();

with this, you can have the agent (machines) and all the resources under it!

Hope this will help u

Tags: VMware

Similar Questions

  • Get members of the group with the Java API in LiveCycle

    I work with the Java API in LiveCycle (LiveCycle 8.2) and I am looking


    an example of how read the members of a group.

    I am able to get a group (Type GroupImpl) using the PrincipalSearchFilter.


    But how do I get the members of this group. I checked the
    DirectoryManagerServiceClient and classes of different search filters
    without success?

    As a solution, I can retrieve all users of my application area and
    check their membership to see if they are in the group concerned. But this
    is a dirty hack, I really don't want to use.

    Any ideas?

    Hello!

    I know you mentioned that you were watching in this without success, but it should work really.

    First make a GroupMemebershipSearchFilter, defining the groupoid be the ID of the group itself.  Using the DirectoryManagerServiceClient you can then call findGroupMembers using the searchFilter that will return a list of, as follows:

    DirectoryManager DirectoryManagerServiceClient = new DirectoryManagerServiceClient (serviceConnection.getFactory ());

    List userList = new ArrayList ();

    Try
    {
    userList = directoryManager.findGroupMembers (searchFilter);
    }
    catch (System.Exception e)
    {

    Animals mistake
    }

    return userList;

  • Add vNIC PortGroup scope with the REST API security group

    I created a security group within the reach of a PortGroup via the REST API. Now, I'm trying to add a vNIC, also via the REST API.

    To help illustrate, I have a JMTest1 VM with 1 vNIC connected to the PortGroup which is the scope of the security group. When I change this group the first item in the list that could be added to the security group is the first (and only) JMTest1 vNIC.

    AddvNICToSecurityGroup.PNG

    To add it via the REST API, I need to provide the following:

    https://192.168.x.x/API/2.0/services/SecurityGroup/SecurityGroup-XX/members/ < member-moref >

    for example I need to understand what the < member-moref > for the vNIC to JMTest1 and this is what I have a problem with.

    If I add the vNIC through the user interface and then interrogate the security group it gives me below the answer:

    < securitygroup >

    < objectIdobjectId > securitygroup-xx < / objectId >

    < type >

    < typeName > SecurityGroup < / typeName >

    < / type >

    < name > JMTest7 < / name >

    < description / >

    < revision > 9 < / revision >

    < objectTypeName > SecurityGroup < / objectTypeName >

    < scope >

    < id > dvportgroup-xxxxx / < ID >

    < objectTypeName > DistributedVirtualPortgroup < / objectTypeName >

    < name > dv-xxxxx < / name >

    < / scope >

    < extendedAttributes / >

    < inheritanceAllowed > false < / inheritanceAllowed >

    < member >

    500758f6-b97b - 7A 79 - 0c < objectId > 04 - 996f53edf3f0.000 < / objectId >

    < type >

    Vnic < typeName > < / typeName >

    < / type >

    < name > JMTest1 - NIC 1 < / name >

    < revision > 6 < / revision >

    < objectTypeName > Vnic < / objectTypeName >

    < scope >

    < id > vm-xxxxx / < ID >

    < objectTypeName > VirtualMachine < / objectTypeName >

    < name > JMTest1 < / name >

    < / scope >

    < extendedAttributes / >

    < / member >

    < / securitygroup >

    It seems that the < member-moref > for the JMTest1 vNIC is < objectId > 500758f6-b97b - a 7, 79 - 0c 04 - 996f53edf3f0.000 < / objectId >

    If I run now:

    https://192.168.x.x/API/2.0/services/SecurityGroup/SecurityGroup-XX/members/500758f6-b97b-7a79-0c04-996f53edf3f0.000

    then the vNIC is successfully added to the security group. (yay!) So I am now left with the task of how to get

    500758f6-b97b - 7A 79 - 0c < objectId > 04 - 996f53edf3f0.000 < / objectId >

    of a vNIC?

    I have looked at the object in the Mob vCenter and via PowerCLI, but cannot see how to derive from it.

    Anyone know the answer to that?

    The uuid vnic is created by concatenating the vm instanceUuid + '. ' + the last three digits of the vnic device key.  (The vnic is located in the area of the config.hardware.device of the virtual machine and the key will be to shape 4xxx, where xxx represents the 3 numbers you need).

  • How to emulate esxcfg-vmhbadevs - m with the Perl API?

    I have an iSCSI target that has been formatted and divided into a volume. I want to be able to map to the UUID volume iSCSI target LUN.

    esxcfig-vmhbadev - m do it directly, for example in the LUN low, 207 maps line the UUID 4ac128de-d4b8f7c3-a4a5-001ec9ab7607.

    vmhba0:1:0:1/dev/sdb1 47a3995d-bf8312ea-aa8a-0019b9f36fbf

    vmhba0:0:0:3/dev/sda3 479f6ab3 - 636688 b 2-277 - 0019b9f36fc1

    vmhba1:4:200:1/dev/sdc1 4ac127e9-81fb1fcf-1138-001ec9ab7607

    vmhba1:15:207:1/dev/sdd1 4ac128de-d4b8f7c3-a4a5-001ec9ab7607

    How can I do this using the Perl API? I can get both halves of the information, but I do not see how to associate.

    This snippet gives me information on the LUN and the SCSI UUID

    Print "canonical name, UUID\n;

    My $scsiLUN = $storageSystem - & gt; storageDeviceInfo - & gt; scsiLun;

    {foreach (@$scsiLUN)}

    Print "". " $_ - & gt; canonicalName

    . ", " . $_ - & gt; UUID

    . "\n";

    }

    Canonical name, UUID

    vmhba1:15:207, 0100cf000020202020564952545541

    vmhba0:1:0, 020000000050014ee0004544c3574443205744

    vmhba0:0:0, 020000000050014ee0004544d2574443205744

    vmhba1:4:200, 0100 c 8000020202020564952545541

    Then this excerpt gives me information on the volume:

    My $mountInfo = $storageSystem - & gt; fileSystemVolumeInfo - & gt; mountInfo;

    print 'Volume Name, Path, Type, Capacity\n';

    {foreach (@$mountInfo)}

    Print "". " $_ - & gt; volume - & gt; name

    . ", " . $_ - & gt; mountInfo - & gt; path

    . ", " . $_ - & gt; volume - & gt; type

    . ", " . $_ - & gt; volume - & gt; capacity

    . "\n";

    }

    Volume name, Path, Type, capacity

    esx7_local_storage2, / vmfs/volumes/47a3995d-bf8312ea-aa8a-0019b9f36fbf, VMFS, 79725330432

    esx7_local_storage1, / vmfs/volumes/479f6ab3 - 636688b 2-277 b-0019b9f36fc1, VMFS, 71672266752

    vol_2_1, / vmfs/volumes/4ac127e9-81fb1fcf-1138-001ec9ab7607, VMFS, 805306368

    snap-0e22598d-vol_2_1, / vmfs/volumes/4ac128de-d4b8f7c3-a4a5-001ec9ab7607, VMFS, 805306368

    But then how to map vmhba1:15:207 to/vmfs/volumes/4ac128de-d4b8f7c3-a4a5-001ec9ab7607?

    Thank you

    From vSphere 4.0, esxcfg-vmhbadevs has been replaced by a new order with a lot more information called esxcfg-scsidevs. This script is available on the classic ESX 4.0 w/Service Console of course but also in the context of the new vCLI which uses the new vSphere SDK for Perl 4.0 which can take a look at how this new information is extracted.

    The command works on ESX 4.0 and 3.5 and here is the output of ESX 3.5 system example:

    [vi-admin@scofield ~]$ esxcfg-scsidevs -m --server bertha.primp-industries.com. --username root
    Enter password:
    vmhba1:0:200:1   /vmfs/devices/disks/vml.0200c80000600508b40008dd5b0000800000640000485356333030:1   48e1cd81-81223593-6cd8-00215acaa2b2   0  dlgCore-FC-LUN200.Templates
    vmhba1:0:202:1   /vmfs/devices/disks/vml.0200ca0000600508b40008dd5b0000800000bd0000485356333030:1   48e1a4a6-3b55e69b-02a9-001f29c948e2   0  dlgCore-FC-LUN202.VMstorage2
    vmhba1:0:204:1   /vmfs/devices/disks/vml.0200cc0000600508b40008dd5b0000a00000810000485356333030:1   495e986b-b61cc1d6-27b1-00215ab08a79   0  dlgCore-FC-LUN204.VMstorage4
    vmhba1:0:203:1   /vmfs/devices/disks/vml.0200cb0000600508b40008dd5b0000800000b50000485356333030:1   48e16ed0-420158d5-5601-00215acaa2b2   0  dlgCore-FC-LUN203.VMstorage3
    vmhba1:0:201:1   /vmfs/devices/disks/vml.0200c90000600508b40008dd5b0000800000c30000485356333030:1   48e1b819-3443974c-03c4-001f29c948e2   0  dlgCore-FC-LUN201.VMstorage1
    vmhba0:0:0:5     /vmfs/devices/disks/vmhba0:0:0:0:5                                                 4913e014-62bc3b90-da2e-001f29c948f8   0  esx-1-local-SAS.Storage
    

    You have listed the vmhbaC:T:L:P mapped to the VML path and then store data UUID, then the readable name for the data store human. You can certainly create a copy of the script and only what you want exactly and that nobody is re - invent the wheel.

    =========================================================================

    William Lam

    VMware vExpert 2009

    Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/

    repository scripts vGhetto

    VMware Code Central - Scripts/code samples for developers and administrators

    150 VMware developer

    Twitter: @lamw

    If you find this information useful, please give points to "correct" or "useful".

  • Adding properties files TDMS with the C API

    I use the free C API (dll) to write TDMS files. Everything works perfectly except the next function call.

    int __stdcall DDC_CreateFilePropertyString (file DDCFileHandle,
    const char * property.
    const char * value);

    I call the following function in advance to create the PDM file.

    int __stdcall DDC_CreateFile (const char * filePath,)
    const char * fileType.
    const char * name,
    const char * description.
    const char * title,.
    const char * author;
    DDCFileHandle * file);

    When I call the function to create the property, it returns with the error-6202 code (invalid argument). I don't think that there is an invalid argument in my appeal. Someone at - it examples of code? What I need to do something before I can create a property?

    Thanks for your help.

    Does

    DDC_CreateFilePropertyString (file, "MyProperty", "MyValue");

    work?

  • Update the price of the products with the v3 API

    So I try to update all the prices of my product in my product catalog programmatically. I have gone through the documentation to the product price | Catalyst of business support
    and I see that there is no end point of update of the prices of the products.  I tried also just do a PUT option with an AJAX call and is not no longer works.  Can't BC really have a way to update the prices of the products via an application?  I did a lot of things with the API v3, so I assumed that any of this would be a given, but maybe I'm wrong.

    var myurl = "/ webresources/api/v3/sites/current/products / ' + myproductid + ' / price";
    var requestC = $.ajax({)
    URL: myurl
    type: "PUT."
    connection: "keep-alive"
    contentType: "application/json",
    MIME type: ' application/json ',.
    headers: {'Authorization': $.cookie ('access_token')},
    processData: false,
    data: JSON.stringify ({}
    "retailPrice': '533.00."
    'Flags': '533.00'
    })
    });

    You can't do that. The API of POSITION for the products had not been with the rest of the update of the POST API on the products. I already talked to the engineers on this subject. No update on when it will be executed has been given.

  • 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

  • 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

  • QUESTION: Can't create a firewall rule to (edge) with the REST API

    Dear Sir

    I am trying to create a firewall rule for simple and basic edge using the REST API.

    I use the REST API guide as a reference on page 158.


    edge-fw-rule.png

    I use the following code (single) in my client REST API (with good content Type (application/xml)):

    < rule >

    < ruleTag > < / ruleTag >

    < name > edge5-rest-rule < / name >

    all < source > < / source >

    < destination > all < / destination >

    < application > all < / application >

    < matchTranslated > true < / matchTranslated >

    < management > in < / direction >

    < action > deny < / action >

    < enabled > false < / enabled >

    < loggingEnabled > true < / loggingEnabled >

    rest-api-rule of the < description > < / description >

    < / rule >

    The error message that I receive is the following:

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

    < error >

    request details invalid <>. Found no match for item rule. < / details >

    < > 223 errorCode < / errorCode >

    < / error >

    The full screenshot of my action REST API is in the screenshot below:

    full-request.png

    Anyone know what I'm doing wrong here?

    Thank you!

    Try this as the body...

    rest-rule

    user

    true

    in

    deny

    fake

    true

    rest-api-rule

  • To access the vCOPs with the RESTful API

    VCOPs can be used such as the information it provides are accessible via the RESTful API?

    RV Ops 6.x see this thread:

    Integration of vCO and vCOps

  • Connection to vCloud Director 5.1 with the REST api plugin

    vco3.PNGI can't get this to work.

    I'm following part of the manual, I found here: http://blogs.vmware.com/orchestrator/2011/07/vcloud-director-twitter-yahoo-and-foursquarecom-http-rest-plug-in-use-case-examples.html

    So I install the plugin and run the workflow to add a host:

    vco1.PNG

    And set the authentication with the workflow "Set vCloud to authenticate a host REMAINS:

    vco2.PNG

    And run the supplied workflow "show a vCloud, Director of the Organization:

    vco3.PNG

    And get the error: "no valid API version can be selected.

    I also tried with version 1.0 and 1.5 of putting in the URL, but cannot make it work. What Miss me?

    Thank you.

    Hello

    It is a problem with you REST plugin does not support the vCloud 5.1 authentication correctly.

    I created the following work around to fill the gap until a new version of the plugin REST solves this problem.

    Please find here.

    Christophe.

  • 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"
    }
    
  • How to configure Hostname of the node with the REST API?

    I tried the value of hostname of the virtual machine when I deploy an application, but were unsuccessful.  The application consists of all the operating system - there is no installed service but an example here that I used when I deployed the application.  It is based on the release of the REST API "node info": for the particular deployment profile.

    {

    'node': [{}

    "name': 'VM1."

    "properties": [{}

    "hostname": "joe".

    }],

    ["nodeComponent":]

    }]

    }

    But when you use this application I get the error message: "the node 'VM1' does not exist in the current 'deployment profile'. ' even if 'VM1' is the only node in the deployment profile.  I tried other variations and still get the same error message.

    Does anyone have suggestions for how I can configure the hostname of the node when you deploy the application?  Thank you.

    Apparently, the REST API for planning a deployment is designed after characteristic GUI Application Director "rapid deployment". Rapid deployment does not allow the substitution of properties of node as hostname. Idea being the deployment profile once defined and prepared, each individual call of it must change some subset of the properties of the component. We can always create several profiles of deployment to account for changes in node.

    Nevertheless, it seems that property of node specifications would help your situation... so that your comments reached the product team.

    Thank you rags

    This posting is provided as is and confers no rights.

  • How to show/hide conditional text on the text selected with the FDK API

    Hello!

    Do you know how to show/hide conditional text in a selected text using the FDK API? I managed to do it on the whole document, but I need to do on specific selected text...

    Thanks in advance,

    Stefano

    Hi Stefano,

    This is not possible, the conditions are the properties of the document and cannot be changed from visible to hidden or v.v. for the full document.

    If you really need a more detailed method, you must create a separate condition for the selected text.

    -Michael

  • How to get the domain of the user with the Flex API

    Hello

    I did a runing custom application inside the LC workspace. There are, I have the SessionMap LC for communication server as well as information from the user:

    Get the session from the application owner
    var session: SessionMap = SessionMap (Application.application.session);
    var Manager: ISessionManager = ISessionManager (session.getObject ("lc.core.ISessionManager"));
    username = manager.authenticatedUser.userid;
    UserDomain = manager.authenticatedUser.domain;

    but unfortunately the userdomain is always null without worrying that the user is certainly linked to the default 'DefaultDom' domain If not, then how can I load the domain name for the logged-on user?

    THX Simon

    Hi Simon,.

    You can also consider using the DirectoryManagerServiceClient of you Java component and use the findPrincipal API. This allows you to call the API of UserManager LC from code Java itself and avoid the need to go through DB

Maybe you are looking for

  • Credit card

    When I type, and I add a credit card interactive keyboard wants to enter a cc and a menu drop-down is displayed. How can I remove cc exceeded numbers?

  • Timestamp of city on messaging

    Is the timestamp and visible location when it is sent the cat to, or once the Skype is registered?

  • How to remove ixpand for ipad

    Am sure that if you are 'with it' my question seem you stupid. I know that to eject ixpand main PC pressing on eject safely... How can I remove ixpand of iPad safely? I look everywhere and impossible to find all the instructions... I have just come o

  • HP Pavilion: Can my laptop all regions?

    Hi, is it possible for me to know if my laptop can play all regions DVD & Blu - Ray? Or what any laptop can play only those in the same region where the laptop was purchased? My laptop is Laptop HP Pavilion 15-e013tx Thank you.

  • How to remove persistent storage...

    Hello I want to remove persistent when storing the user to uninstall the application. Here, how I know user uninstall the application...? public void deleteLogin() {PersistentStore.destroyPersistentObject (0xa3b3159378f59a29L) ;}