Map ID between vCloud Director and vCenter Chargeback by API

I currently have a configuration where vCenter Chargeback automatically imports the hierarchies of vCloud Director by a data collector. I find difficulty in mapping a vCloud Director ID entity in a vCenter Chargeback one.

I'll give a practical example:

I vCloud Director organization ORGNAME and VM VMNAME.

I want to generate a chargeback for the entity VMNAME report. How do I tell me what ID of entity should I spend in the report query if the only information I have comes from the vCloud Director?

Thank you in advance,

Marco

Hi Marco,.

To get the Id of the virtual machine in the entity report request, you have the following option: -.

  • Go step by step to VM, in this approach, you have to call according to API
  1. Get all the hierarchies, GET hierarchies--> this response API, get the id of the hierarchy based on the hierarchy name (name of the hierarchy will be same as the name of the Organization to vCloud Director)
  2. Hierarchy of browse, GET /hierarchy/ {hierarchyId} / browse--> this the API response, you get the id of the entity of the root of the hierarchy
  3. Entity to browse, GET /entity/ /hierarchy/ {hierarchyId} {entityId} / browse--> this response from the API, you will GET the ID of the entity for immediate children of the entity of the root of the hierarchy
  4. Go by calling the entity API browse recursively until you reach your desired VM (or entity).

Please note that travel entity API returns very few details about the entity (name and entity id). If you want to filter your VM (or other entity) based on the name, this might be enough for you.

But if you want to filter your VM (or other entity) on other criteria, you may need to call ' entity Get GET /entity/ /hierarchy/ {hierarchyId} {entityId} "API for more details on the entity.

If you to filter the VM (or other entity) based on the attribute custom, you can use the API ' get the attributes of an entity, GET /hierarchy/ {hierarchyId} /entity/ {entityId} / attribute.

  • If the size of your hierarchy is not great (you don't have too many entities in the hierarchy), you can follow the following approach: -.
  1. Get all the hierarchies, GET hierarchies--> this response API, get the id of the hierarchy based on the hierarchy name (name of the hierarchy will be same as the name of the Organization to vCloud Director)
  2. Get hierarchy, GET /hierarchy/ {hierarchyId}--> this response API returns you all entities in the hierarchy with a single blow. Once again very little detail of the entity is returned (name and entity id), if you want to refine your entity on other criteria rather than by name, then you need to use 'Get entity' or 'Get the attributes of the entity year' as explained above.

Please note that if Director vCloud in vCenter Chargeback hierarchies that are filled automatically, there is a named "vCloudEntityId" located on the rebilling of entities corresponding to entities vCloud Director of custom attributes. The value of the custom attribute "vCloudEntityId" represents the entity type id and the vCloud vCloud Director entity.

For example, if a TIME named "helloVapp" has id 123456 into vCloud Director. Then in vCenter chargeback the value of the custom attribute "vCloudEntityId" will be "VcloudVappEntity-123456"for this "helloVapp" TIME."

I hope this helps.

-Amrainder

Tags: VMware

Similar Questions

  • Move the VM from: vCloud director to vCenter

    How to move a virtual machine from: vcloud director to the vcenter even integrated into vcloud Director?

    If VCD has no more need of this virtual machine, you can perform steps below.

    1 unregister the virtual of VC machine

    2 remove the machine virtual de VCD

    3. save the VM in VC

    SCR would be an additional tool that would be useful for moving loads of work, but a lot depends on number of cases of use of involved and of the virtual computer.

  • Module - Plugin between vCloud Director & Microsoft Sharepoint

    Hello

    I have a question on how to integrate vCloud Director Microsoft Sharepoint interface, is there any currently available module to create and integrate Microsoft Sharepoint into a dashboard to provide relevant information to Director vCloud? and not only create a link to a sharepoint site to open vCloud Director Web Interface.

    Thank you

    Yes. The vCloud than vCD endpoint API is a RESTful HTTP interface for the product, you can do it yourself by using all the customer support HTTP is available in .NET, or you can use the vCloud SDK for .NET: http://communities.vmware.com/community/developer/forums/vcloudsdk-net

  • EDI inbound mapping difference between 8.4 and 9.0

    Hi all
    We are upgrading to 8.4 financials to 9.0. We strive to apply our customizations again.
    I noticed a difference in the mapping EDI entering between 8.4 to 9.0.
    8.4 the target files are
    1 VCHR_HDR_EC
    2 VCHR_LINE_EC
    3 VCHR_DISTRIB_EC
    4 VCHR_MSCH_EC
    5 VCHR_FRGH_EC
    6 VCHR_SALETX_EC
    7 VCHR_PYMT_EC

    But in 9.0, we have the following.
    1 VCHR_HDR_STG
    2 VCHR_PYMT_STG
    3 VCHR_LINE_STG
    4 VCHR_DIST_STG

    I know that peoplesoft has presented paintings STG after 8.4.

    My question is that we not STG to VCHR_MSCH_STG, VCHR_FRGH_STG, paintings VCHR_SALETX_STG tables in documents of the target to 9.0.

    Do we really need to have them as records of target in 9.0?

    When we went from 8.4 to 8.9, we had to change to use the new table structures. It was about 3 years ago, but I remember that the various tables, that you ask the subject have been combined in the other tables (perhaps the payment). You will need to examine each new table fields to see where freight and taxes are now stored. We didn't store this information for the good we loaded via EDI in the past, so we didn't have to worry in the future.

    Good luck! It was not fun convert this part of the system!
    Jennifer

  • vCloud Director or vRealize Automation?

    Hello

    I was hoping I could get some advice regarding the choice between vCloud Director and vRealize Automation. We have set up a test environment for vCloud Director however read some articles, it seems that it is a product that reaches the end of life for businesses, but not for service providers.

    So my question is a service provider should us be implementation vCloud Director or vRealize Automation? We do not want to be in a position to migrate off vCloud in a year.

    Any advice would be appreciated.

    Thank you

    Chris

    I can't make any kind of recommendation between the two, because I don't know what you want to do with the products.

    Addressing the availability of the product and the support of it:

    vCloud Director just won't be available to independently purchase and withdrew the license of the Suite from 6.x.  You must purchase the license 5.x to get it (assuming that it is available)... This aspect, if not suite your needs right now until mid-2017 (when vCloud will end support for users of the company).  From 2017, you have to make a decision as to what will replace vCloud or continue to use vCloud Director, even if we will not offer support for it.

    VRealize Automation will meet your needs?  I do not know without knowing your use case and requirements... that is for discussion of a VMware sales representative.

    Apart from all this: VSPP is the VMware service provider program.  A version of vCloud Director will exist for them, but it is precisely for them (members of the VSPP program).  Unless you work for a member of the VSPP program, the statements above concerning vCloud Director are what you think.

    If you are Member VSPP, vCloud Director for the providers of services (5.6.x) is available as the direct vcloud Director 5.5.x successor.  Then by all means we will continue to support these versions, and it can be used to manage resources like a Cloud provider.

    I had a number of people say they are service providers, which is very beautiful.  Be a VSPP means being in a specific program of VMware, which gives access to certain things (which AFAIK is vCloud for Service providers).

    I'm not trying to be harsh or terse here, but I want to just make sure we do differentiation key on what is available to whom and how.

  • Run a Virtual Appliance on a vCloud Director 5.5 VDC/vApp

    I want to deploy a Sonicwall Email Security Virtual Appliance (VA) in a vCloud Director 5.5 VDC/vApp.  The VA is in OVA format.  How do you do this in Director vCloud?  I tried to import the VA using vSphere importing, but is does not appear as a selection.

    Thanks for the detailed info Alan.

    2014-12-08 23:14:53, 309 | WARN | backend-activity-pool-237 | VAppUploadManagerImpl | Transfer session: 91f2a458-f5b5-c 451-835-bec280e4165f. Error during downloading content: folder 8_0_6_2779 (e01dea52-17c6-4c26-a411-a88ceb10f0cb) does not exist in our inventory, but vCenter Server claims it does. | VCD=939f2481-9f68-4a39-a0a3-769fc9387b15,Task=65ad7396-5084-4E51-941a-a9f4abcdc657 activity = urn: uuid:65ad7396-5084-4e51-941a-a9f4abcdc657

    com.vmware.ssdc.util.LMException: 8_0_6_2779 (e01dea52-17c6-4c26-a411-a88ceb10f0cb) folder does not exist in our inventory, but vCenter Server claims it does.

    at com.vmware.vcloud.val.internal.impl.VC20VirtualEngine.waitForFolderInInventory(VC20VirtualEngine.java:2102)

    at com.vmware.vcloud.val.internal.impl.FolderUtil.createFolderIfNotAlreadyExist(FolderUtil.java:142)

    Can you please check if the vCD vCenter proxy running.

    Please see the links below.

    Cannot create the VAPP to vCloud 5.1

    http://www.Boche.net/blog/index.php/2011/12/16/vCloud-Director-and-vCenter-proxy-service-failure/

    vCenter | Tom Fojta & #039; s Blog

  • Can't no hierarchy of vCloud Director

    Hi all

    I have configure vCenter Chargeback 1.6 (1.6.0.0 - 351155) and vCloud Director 1.01 (1.0.1 - 356485), two of them are the last version that I downloaded from the vmware Web site.

    I installed vCloud Director Collector but Chargeback cannot load the vCloud Director organization hierarchies.

    Is there anyone, who successfully of Chargeback configuration with vCloud Director?

    I have attached the log file of vCloud datacollector.

    Thank you

    Can you try a connection in the chargeback database or database vCloud by using a client?

    The log shows, connect to the oracle database is not set because of the limited number of connections.

    Might help, check out this link--> http://forums.oracle.com/forums/thread.jspa?threadID=898395.

    In short:

    Select * from v$ session;
    ALTER SYSTEM SET PROCESSES = 500 SCOPE IS SPFILE;.
    ALTER SYSTEM SET SESSIONS IS 500 SCOPE = SPFILE;.

    This should be, but to be able to connect as sysdba or system, you must restart the listener, only if you are not able to connect.

    Make sure you are able to connect to a database using sqlplus or sqldeveloper clients, and then restart the data collector.

    -Kitenge

  • vCloud connector - cannot copy VAPP vCloud Director to vSphere

    Evening,

    Try to copy a paralytic to vCloud Director on vCenter 5.5 5.6 using vCloud connector 2.7.

    The scenario:

    -vCloud Director fully configured with one Org, an Org vDC and a catalog.

    -The catalog is entirely filled, shared and published.

    -Org and catalog are configured to allow the publication to external organizations;

    -vCenter and vCloud Director have been added to vCloud connector via vSphere Client plug-ins;

    -vCloud plug connector is able to see the entire structures of vSphere and vCD (org records, catalogs, vApps, models, etc.).

    Reproduce the error:

    -Using the vSphere Client, click on the Org vCD;

    -Go to the tab vApps.

    -Select a VAPP off engine;

    -Click on copy.

    -Select Catalog (it is marked as shared and, curiously, unpublished);

    -Select vCenter as the target;

    -Select the clusters, folders, data store, formatting the drive and so on;

    -Power On TIME after deploying (or not, does not matter);

    -Validate (managed);

    -Finishing.

    Task starts and fails in a minute (or less) with the following message:

    "Export OVF has failed. Failure when copying data to the clouds: https://< vcloud_director_fqdn >. Reason: [0e65fbc1-4e04-4924-ae06-c4377dfc97af] there is no catalog in the organization. »

    Looks as vCloud connector, for some reason, is unable to locate the catalog during deployment (although it may be perfectly visible during the Copy Wizard and in his inventory).

    I tried searching for it and can't find anything similar to this error.

    Maybe it s a vCD configuration error, but how would be? I ve already selected all types of option to allow editing of catalogue and sharing, and nothing has changed.

    I published also successfully catalog VCDs to vCloud connector content library, so nothing else makes sense to me.

    Solved.

    Created a new catalog and IS NOT published. Used for the copy. Went well.

  • vSphere 5.5 hosts appear under "Hosts" in vCloud Director

    Hi guys.

    I had a problem with my cell of vCloud Director and re-installed completely.

    On the vCD fresh installation I have no problem adding vCenter 5.5 but no host show at all.

    I tried to remove and re - install agents on host computers, vCD reset my vCenter inventory 5.5 database, restart the hosts, but nothing is.

    Any thoughts on this topic?

    Thank you

    Campellos

    Attach a vCenter is not enough, you must create a provider vDC then.  It is the association of a cluster for the vCloud instance.  Once this is done, guests who are part of the cluster should appear in the list of guests to prepare.

    Clusters must be active DRS.  Do not disable DRS on a cluster, it is attached to vCloud Director.

  • Cannot create the vCloud Director VDC

    Hi all

    Need help with my proof of concept of vCloud implementation Director. running on 5.1 vCloud Director unit. Just to give you an idea, I followed the VMware vCloud Director 5.1 Assessment Guide that we find on the VMware Web site.

    Note: My setup does not contane VXLAN although we have the network VLAN supported to improve network performance.  Of the vExpert mentioned to create a dummy VXLAN right in the vCloud Director and I'm not sure how to do this in vCloud Director console. (I noticed a default VXLAN is already created, I understand vCloud 5.1 has this feature is enabled by default)

    Installation succeeded in creating the Org VDC failed with error 'cannot create the VDC' found this disabling and re activation will release the Red 'X' I think it's false positive because it shows us that everything is perfect even if we get an error message in the logs ' status: error "and with" details: Internal Server Error' find the home images below.


    " In any case when it comes to download media after having created the catalogue for Org VDC we get the error message cannot complete the operation because the current organization VDC"Demo-Org-VDC"is disabled or is not ready '.

    I also noticed that we get an error message on vcenter Server vcloud (cell) cannot create the folder name already exists check the last my vcenter Server error message.

    also attached the logs in the images below.

    I found two post, which there is not yet of resolution and the other said its solved but does not have the fix.

    Any help to point me in the right direction will be appreciated.

    I will be happy to provide you with newspapers if necessary.

    Thank you

    Ibrahim

    I was not talking about data warehouses.  I refer to the view in the vSphere Client.

    Open the vSphere Client... and go to the computers view models and virtual (c# = Home button at the top, then models and virtual computers)

    In this perspective, there is a number of record Blue icons. Make sure that none have the same name as you describe.

    This is directly related to the error message in the client image vSphere that you took in the original post "cannot create folder. "PNG"

    vCloud produces an error because of something that happens in vCenter.

  • vCloud Director

    I have just deployed vCloud Director and I set up a port-supported network group pool and he attributed to my Org vDC. I created a paralyzed man with a unique virtual machine, but when I try to turn it on, I get the error below. When I look at the virtual machine, it is connected to the external network. No idea why I can't use the port group supported network I created. ?

    Impossible to deploy the 'VM Network(urn:uuid:3a661866-3556-4747-9216-0c3dd17bec3e)' network.

    com.vmware.vcloud.net.InadequateNetworkBackingException: network pool assigned to this VDC has not all the available networks. Please contact the system administrator.

    -com.vmware.vcloud.net.InadequateNetworkBackingException: network pool assigned to this VDC has not all the available networks. Please contact the system administrator.

    -Pool network assigned to this VDC has not all the available networks. Please contact the system administrator.

    Thank you

    Scott

    org network is like a network of the VAPP/VM can connect to.

    If you do an org network, create a vApp and attach the virtual machine directly to the org network.

    However, if you have only 1 group of ports in the pool of network... you get ONLY 1 network (org or vapp) not both.

    In almost all cases I've seen, they do not use a Port supported group pool... VXLAN or vCNI are the most common options.  for most since a single vLAN = 1000 + networks.

    If you wanted a network to the 'outside world' remove your network pool (separate from the org vdc after all are deleted), create an external network to the system (via the port group)... make an external network in the Organization related to System.  then put a virtual machine on the network it will directly in the external network.

    having a pool of network could do an extra layer.  like having a local network with a gateway to the outside world.

  • Change vCloud Director cell Hostname

    I've deployed the unit of 5.5 vCloud Director and the default values of the hostname to localhost.localdom. I tried to change this to console (Option 3) as well as the webpage (https://hostname:5480). Every time after I reboot, it is up to the localhost.localdom.

    No idea how I can keep this standing?

    Thank you

    Scott

    Go to/opt/vmware/share/vami/vami_set_hostname in the cell of vCD

    And change the line that says:

    HOSTNAME = "localhost.localdom" to your desired host name. Save and exit.

    Restart the unit once.

  • Where can I find the package libXdmcp vCloud Director 5.1 RPM installation?

    Hi all

    I have installed my first vCloud Director and am not a Linux
    Guy at all. In any case my RedHat 6 operating system does not include the RPM libXdmcp
    package. I downloaded and installed several RPM packages on the web,
    but none of them does not seem to fix the problem. vCloud Director always told me
    the package is not installed. I think that am downloading and incorrect installation
    RPM. Can someone please point me to a URL where I can download the right file?
    I went to many Web pages with hundreds of links to libXdmcp
    downloads, but I don't know which one to choose from. Also if you can tell me the
    good way to install this would be great!

    Thank you in advance for your help!

    He should be the one below, it's him I used all my environments and is the one in the post to blog as well.


    libXdmcp - 1.1.1 - 3.el6.x86_64.rpm

  • vCloud Director interface

    Hello

    I have deployed vmware vcloud Director, so I want start using vCloud Director and complete the initial installation

    I Connect the vCloud Director using the URL https:// < address > / cloud

    But although I've installed flash player before, I found this vCloud Director requires Adobe Flash Player

    What can I do to connect to the interface of vCloud Director for the first time?

    Thanks in advance

    There are no that you can do on vCloud Director side. Flash is a requirement. Can you browser other sites requiring flash without problems?

    You may want to use a different browser? Or maybe it's some kind of security restrictions? I would say adding vCloud Director URL (both Portal & consoleproxy) at trustet in internet sites to explore.

  • Get the object of StoragePod storage profiles [vCloud Director]

    Hi all

    I'm automating DTS stuff for the creation of new vApps in vCloud Director and I want to integrate and use the workflow to Change Storage DRS by virtual machine configuration , but to do this I need to provide him with an object of type VC:StoragePod...  I have worked out how to get the default storage of each virtual computer profile, but may not know how to get to the StoragePod that it covers.

    Don't laugh, but I only managed to get this far before getting stuck:

    var vms = vApp.getChildrenVms();
    for each (var vm in vms) {
     storageProfile = vm.storageProfile;
     ....
    }
    

    Can someone show me how to get a StoragePod of a profile of storage object ideally default virtual machines?

    Thank you!

    Mark

    Have you had the opportunity to see this thread: http://communities.vmware.com/message/2147437#2147437 - it seems debating what you are interested... The catch here is that you are trying to do from the side the cloud... I can't look at this right now, but I suspect that you MUST have access to the underlying infrastructure to do what you ask... in this case, you will need to extract the object from VC:VirtualMachine of your vCloud:VM object, then the thread above can deepen assistance.

Maybe you are looking for