Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 231085

SRM APIs: How to call CreateAbrProtectionGroup using PowerCLI

$
0
0

Anyone who has used CreateAbrProtectionGroup API to create a new protection group?

What are the arguments to be passed to this method? The API doc says the arguments include the moref to the protection folder and the name of the protection group.

 

However, I see the below error on specifying these arguments:

 

$pgmoref=$srmApi.Protection.CreateAbrProtectionGroup("Folder-group-v22", "Group02")

Cannot find an overload for "CreateAbrProtectionGroup" and the argument count:

"2".

At line:1 char:53

+ $pgmoref=$srmApi.Protection.CreateAbrProtectionGroup <<<< ("Folder-group-v22"

, "Group02")

    + CategoryInfo          : NotSpecified: (:) [], MethodException

    + FullyQualifiedErrorId : MethodCountCouldNotFindBest


Viewing all articles
Browse latest Browse all 231085

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>