How do I get the api equivalent to this:

How do I get the api equivalent to this:
Best answer by clecky
Hello
For this one, I am not sure if API’s get logged for Commcell Console Activity. I did test in my lab by bumping up debug level on EvMgrS service to 10, tried adding a client but could only find XML information in the logging.
However, you can certainly find this in Command Center with higher debug. If you bump up the debug level for WebServer.log to 10, it should list the API’s being used for any activity.
For example:
7728 177 04/19 10:24:10 177 ### - WEBAPI-STARTED processing [POST]:[/InstallClient] request. : /InstallClient : Headers :[Accept=application/json][Accept-Encoding=gzip, deflate, br, zstd][Accept-Language=en-US,en;q=0.9][Content-Length=538][Content-Type=application/json][Host=cgwma.cglab.local:81][Referer=https://cgwma.cglab.local/commandcenter/embeddedCc/index.jsp][locale=en-US,en;q=0.9][client-location=192.168.1.10][LookupNames=false][SendPatchingInfo=true][sec-fetch-mode=cors][sec-fetch-site=same-origin][cc-http-ref=https://cgwma.cglab.local/commandcenter/embeddedCc/index.jsp#/fsServers/addFileServer][origin=https://cgwma.cglab.local][ref-endpoint=proxy//InstallClient][csrf=5eff807eb0b54bc9ba31b03599b33356][timezoneinfo=-04:00][x-original-host=cgwma.cglab.local][ref-page=#/fsServers/addFileServer][sec-ch-ua="Google Chrome";v="123", "Not:A-Brand";v="8", "Chromium";v="123"][sec-ch-ua-mobile=?0][sec-ch-ua-platform="Windows"][x-requested-with=XMLHttpRequest][ts=1713536071586][ref-ts=1713536740656][sec-fetch-dest=empty][FormatOutput=false][SkipOldJsonConverter=true][trace-id=ws0d4f4fca6390][WEBSERVERCORE-FLAG=true] : AdditionalInfo[ ConsoleType[AdminConsole]ClientIP[192.168.1.10] Operation[CV.WebServer.Controllers.ClientController.InstallClient (CVWebControllerClient)] isTokenSupplied?[True] Username[admin]] : Request : <TMMsg_ClientInstallRequest rebootClient="0"><packages packageId="702" packageName="File System" /><entities hostName="test2" displayName="test" clientId="0" clientName="test" /><createPseudoClientRequest registerClient="1"><clientInfo clientType="0"><subclientInfo useLocalContent="1" contentOperationType="1"><fsSubClientProp useGlobalFilters="2" backupSystemState="1" /><content path="\" /></subclientInfo><plan planName="Servers" planId="2" /></clientInfo></createPseudoClientRequest><clientAuthForJob userName="test/test" /></TMMsg_ClientInstallRequest>
You can see the header information and inside the “TMMsg_ClientInstallRequest”, you can see the body of the REST API used.
We also have the “Equivalent API” button, which will generate API requests for actions done int he Command Center as well:
Please let me know if this helps!
-- Chuck Graves
Gui action can be logged, but it has to be enabled.
The reason I asked is because I was trying to capture what is being submitted but could not find it in any of the logs on the webserver.
The equivalent api doesn’t help because while it does give a preview it doesn’t create the vm client.
This is what is created from the GUI
<EVGui_PreviewInventoryReq createClientsForDiscoveredVms="1">
<appId applicationName="Virtual Server" apptypeId="" backupsetId="" backupsetName="vsphere.local" clientId="" clientName="" instanceId="" instanceName="" subclientId=“" subclientName=“"/>
</EVGui_PreviewInventoryReq>
For the record I did try to bump up the logging on webserver, but I just wasn’t seeing this request come through.
Thanks for all the help.
I was trying to tackle this from multiple angles in case one didn’t pan out.
edit: removed identifying information
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.