List all VMware VM's

Last post 09-12-2018, 5:42 PM by shynee. 1 replies.
Sort Posts: Previous Next
  • List all VMware VM's
    Posted: 09-11-2018, 2:46 PM
    Hello,

    I am new to commvault. I need to generate a list of VM's being backed up.
    From the Commvault console, I see them under client computers => Virtual Server => VMware => defaultBackupSet => Subclient's. Under properties of each Subclient in content tab, I see the VM's. I can list the subclients using "Subclient?clientId=4" (4 is an example of one of the vcenter), but not sure how to list the actual VM's under each subclient

    Here is one of the element from "Subclient?clientId=4" REST API call

    "subClientEntity":{
    "clientName":"houpvc01_vcenter","instanceName":"VMware","backupsetId":9,"_type_":7,"instanceId":5,"subclientGUID":"54370EB1-3607-43BF-B45D-0B25F331ED9C","subclientId":29,"clientId":4,"appName":"Virtual Server","backupsetName":"defaultBackupSet","applicationId":106,"subclientName":"HOUP-SPLIT5"
    }

    Thanks in advance

    Shynee
     
  • Re: List all VMware VM's
    Posted: 09-12-2018, 5:42 PM

    Figured it out myself.  Instead of GET Job Details, I used POST Job Details.

    Downloaded Rest API Postman collection from the following URL and it did wonders. Without it, I would probably be still struggling.

    https://github.com/CommvaultEngg/Rest-API-Postman-Collection

    Attached sample Postman script for Python.

    import requests

    url = "http://<commvault server>:81/SearchSvc/CVWebService.svc/JobDetails"

    payload = "{\r\n \"jobId\": <jobId>\r\n}"
    headers = {
    'Accept': "application/json",
    'Authtoken': "QSDK <Auth Token>",
    'Content-Type': "application/json",
    'Cache-Control': "no-cache",
    'Postman-Token': "<Postman-Token>"
    }

    response = requests.request("POST", url, data=payload, headers=headers)

    print(response.text)
The content of the forums, threads and posts reflects the thoughts and opinions of each author, and does not represent the thoughts, opinions, plans or strategies of Commvault Systems, Inc. ("Commvault") and Commvault undertakes no obligation to update, correct or modify any statements made in this forum. Any and all third party links, statements, comments, or feedback posted to, or otherwise provided by this forum, thread or post are not affiliated with, nor endorsed by, Commvault.
Commvault, Commvault and logo, the “CV” logo, Commvault Systems, Solving Forward, SIM, Singular Information Management, Simpana, Commvault Galaxy, Unified Data Management, QiNetix, Quick Recovery, QR, CommNet, GridStor, Vault Tracker, InnerVault, QuickSnap, QSnap, Recovery Director, CommServe, CommCell, SnapProtect, ROMS, and CommValue, are trademarks or registered trademarks of Commvault Systems, Inc. All other third party brands, products, service names, trademarks, or registered service marks are the property of and used to identify the products or services of their respective owners. All specifications are subject to change without notice.
Close
Copyright © 2019 Commvault | All Rights Reserved. | Legal | Privacy Policy