4 Replies Latest reply on Aug 22, 2018 6:44 AM by Marco_2_G

    Using view methods that require parameters

    Marco_2_G Novice

      Hello everybody

       

      Sorry for being a bother. I expect this to be a pretty dumb question but my google fu is weak today and I just can't find the answer.

       

      I want to create snapshots for a list of VMs. I have them as view objects in a variable. I want to use the createsnapshot_task method and I want to pass it a name for the snapshot. However for the life of me I cannot find any examples on how passing parameters to a method works.

       

      I expect they need to go in the parentheses of $vm.createsnapshot_task() somehow. I have found a list of possible parameters in the API docs but no example on the syntax...

       

      Sorry again...