Automation

 View Only
  • 1.  Get-CisService Documentation Field - Explanation?

    Posted Oct 02, 2018 01:05 AM

    I've started working with the Get-CisService, which appears to open a WHOLE bunch of access points.  Issuing a 

    $x = Get-CisService -Name com.vmware.appliance.health.load     AND   $x.help.Documentation   RETURNS

    {@name Load} {@term service} provides {@term operations} Get load health.

    What does the @name, @term, represent / mean?  I can get bits of information from $x.help.get.  But I'm curious what the above means and if there is a way to consume that information.  If anyone has a pointer to a website / article / etc. or perhaps a quick explanation, I'd be grateful.

    Thanks

    JoeA

     

                                Name Documentation
                                ---- -------------
    com.vmware.appliance.health.load {@name Load} {@term service} provides {@term operations} Get load health.


  • 2.  RE: Get-CisService Documentation Field - Explanation?
    Best Answer

    Posted Oct 02, 2018 06:47 AM

    VMware is using Swagger to develop/describe their REST API.


    Afaik these terms you are seeing under Documentation are attributes for specific words in the documentation for these REST API.
    They have no impact on the service itself and are (again afaik) only used for formatting/documentation purposes.

    You can see the structure of an object returned for a CIS service much better if you use the Format-Custom cmdlet.

    In fact you will see similar when you go to the same method via the REST API Explorer (watch the @term in there as well)
    This interface is generated from the same Swagger files.



  • 3.  RE: Get-CisService Documentation Field - Explanation?

    Posted Oct 02, 2018 06:39 PM

    Thanks for the correct, informative answer Luc.  Time to delve into some Swagger and Format-Custom.  JoeA