SRM API: How to call CreateAbrProtectionGroup using PowerCLI

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

What are the arguments to pass to this method? The API doc says that the arguments include the moref in protection record and the name of the protection group.

However, I see the error on the specification of these arguments below:

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

Could not find an overload for the 'CreateAbrProtectionGroup' and the number of arguments:

« 2 ».

On line: 1 char: 53

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

"Group02")

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

+ FullyQualifiedErrorId: MethodCountCouldNotFindBest

According to the API Reference , there are 4 parameters for the CreateAbrProtectionGroup method.


And I think you will have to provide a MoRef object instead of a string for parameters like MoRef.

$folder. ExtensionData.MoRef

Tags: VMware

Similar Questions

  • SRM API: How to specify if the recovery operation must be planned migration or recovery after disaster

    Is it possible using the SRM API to specify whether we want a planned Migration or a recovery during failover?

    In addition, exactly how do we use the APIs AnswerPrompt and ListPrompts? Examples would be appreciated. Thank you!

    If you want to run the disaster recovery, you must use the recovery option (number 0) failover Mode. The SRM 5.8, we introduce a new Mode of recovery option - migration (planned Migration - number 5). This command is not added to the SRM API documentation, but will be updated soon.

    Example:

    PowerCLI > $RPmode = New-Object VMware.VimAutomation.Srm.Views.SrmRecoveryPlanRecoveryMode

    PowerCLI > $RPmode.Value__ = 5

    PowerCLI > $RPmode.ToString)

    > Migrate

    Orders ListPrompts and AnswerPrompt have nothing to do with the implementation of the plan (planned or disaster recovery Migration).

    -Daniel G.

  • vCD API - how to call updateDisks to resize the disks of a virtual machine?

    Had to think about where to post this question; vCD forums or here. I chose here because it's the API specific vCO for vCD and not versions of Java/.NET working team of vCD.

    I'm going to build a workflow to allow my team to change the size of a disk. This disk is part of a virtual machine that vCloud Director 'property '. I heard several times to not only change the size of the disk in vCenter as then vCD runs a risk of being confused. I have reviewed the vCO API for the vCD and found that the VclVM object contains the set of disks (VclVM.disks) as a property. This returns an array of VclVirtualDisk. There is a method VclVM.updateDisks (VclVirtualDisk []), which seems to do exactly what I want. Update disk sizes (could be used to add new facilities). I have a bit of a problem to find how to call it from my point of departure.

    // selectedDisk: a string selected by the user
    // selectedDiskSize: a number input by the user
    
    var disks = virtualMachine.disks;
    
    for (var i = 0; i < disks.length; i++)
    {
    
         if (selectedDisk == disks[i].itemResource.elementName.value)
         {
              if (selectedDiskSize <= disks[i].hardDiskSize)
              {
                   throw "New disk size (" + selectedDiskSize + ") must be larger than original disk size (" +
                        disks[i].hardDiskSize + ")";
              }
     
              disks[i].hardDiskSize = selectedDiskSize;
         }
    }
     
    virtualMachine.updateDisks(disks);
    


    'HardDiskSize' the call throws an error. It is a property read-only and is not a method. The API documentation don't do a good job to define all the methods where I can build a new VclVirtualDisk object. or clone an existing one.

    My thought was to update the existing structures of the disc and then pass them to the updateDisks (...) method. Yes, change an internal structure of an object from the outside is not something I should be doing.

    Any suggestions on how to "clone" this VclVirtualDisk object to change?

    If someone of the vCD of the vCO API team is looking, even updateDisks (...) method will do what I want? Or I have to watch fall down to Java to achieve?


    Thank you!

    If I remember correctly the ability to change the size of an existing drive is not available in API vCD 1.01.

    Christophe.

  • How to call process using ajax

    Hello

    I use Apex 4.0 in oracle 10g

    I am filling an area of text (X 3) based on the value of the selection list (X 2)

    I have a problem with regard to the call for a process in ajax


    I have created a process as below

    declare
    l_CCSS_STATUS varchar2 (1000);
    Start
    Select case_desc in the l_CCSS_STATUS of sced_courses
    where case_number =: P1_X2;

    HTP. PRN (l_CCSS_STATUS);
    end;

    and by using the script below, I'm trying to access the process and print the result in X 3 but I'm not able to get that

    < script >
    function myAjaxCall()
    {
    var ajaxRequest = new htmldb_Get (null, & APP_ID.:116, 'APPLICATION_PROCESS is termpol1', 0);
    ajaxRequest.add ('TEMPORARY_ITEM', $x('P1_X2').value)
    ajaxResult = ajaxRequest.get)
    $s ("P1_X3", ajaxResult);

    }
    < /script >


    Can someone explain please in this regard.

    Thank you
    Rik

    Hello

    Try this

    Write the process always uppercase name.
    Process of creating On Demand GET_VALUE.

    DECLARE
      l_stat VARCHAR2(1000);
    BEGIN
      SELECT case_desc
      INTO l_stat
      FROM sced_courses
      WHERE case_number = :P1_X2
      ;
    
      HTP.PRN(l_stat);
    EXCEPTION WHEN OTHERS
      HTP.PRN(SQLERRM);
    END;
    

    And the JavaScript to HTML page header

     
    

    Kind regards
    Jari

  • The list of DNS suffixes customized using PowerCLI

    If I have 4 custom DNS suffixes configured on my ESXi hosts, how can I list using powerCLI?

    Hello

    Try this:

    Get-VMhost [ESX] | Get-VMHostNetwork

    or

    Get-VMhost [ESX] | Get-VMHostNetwork |  Select SearchDomain


    Kind regards

    Julien

  • VCSA device using PowerCli Configuration (or any other api?)

    Hello

    I was able to deploy aircraft to vcenter server 5.5 using powerCLI.

    Now how to configure it. Here I speak not of the vcsa configuration and NOT vcenter configuration - I hope it makes sense.

    Is there a powercli cmd-left for me to do or should I hit him all vcsa api?

    Please notify.

    Thank you

    RJ

    Hey Luke,

    I scripted it myself and it works!

    AUTOMATE THE DEPLOYMENT OF VCENTER SERVER APPLIANCE. RJ approve this Message!

    And also on my github at rjapproves/VMware - VCSA5.5 - Automation · GitHub

    Thank you

    RJ

  • Xperia m: How can I configure my telephone to end the call by using the power button / stop

    the question is related to the Xperia mobile m. I want to configure my phone to end the call by using the power on button. How to make this configuration in android phones. many other android phones are capable of it.

    Greetings! At your convenience, please join our colleagues in Sony Mobile for assistance with your question. You can attach them to this site: http://www.sonymobile.com/global-en/support/contact-us/contact-info/. Thank you for your message today!

  • In Windows 3.1, I had the ability to send and receive calls by using a modem, it is possible to do it on Vista? If yes how?

    phone calls in vista?

    In Windows 3.1, I had the ability to send and receive calls by using a modem, it is possible to do it on Vista? If yes how?

    The game, February 16, 2012 21:46:49 + 0000, metalfare wrote:

    In Windows 3.1, I had the ability to send and receive calls by using a modem, it is possible to do it on Vista? If yes how?

    This isn't a problem of version of Windows. Must see with what software
    you are running. Yes, if you use a program that has this feature, you
    can do.
    Ken Blake, Microsoft MVP

  • How to call someone at adobe?  I just bought a product and can not use/search it!

    How to call someone at adobe?  I just bought a product and can not use/search it!

    HI Bruno.

    I see you have a subscription to creative under the enamel even cloud as with forums.

    You can download the installer for Creative Cloud from here:
    Creative cloud help | Creative cloud desktop.

    Please let us know if this helps you.

  • How to identify the Protocol of network storage using PowerCli

    Hi all

    Does anyone know how to identify the network storage protocol using Powercli? If you do could you please point me in the right direction and appropriate controls to be used.

    Thank you.

    See you soon

    With the Get-EsxCli cmdlet, you get to many of the features esxcli.

    Something like that

    $esxcli = Get-EsxCli -VMHost MyEsx$esxcli.storage.core.path.list()
    

    You can use Select-Object to choose the specific properties of the returned objects.

    For example

    $esxcli = Get-EsxCli -VMHost MyEsx$esxcli.storage.core.path.list() | Select RuntimeName,Transport
    
  • How to read the content .vmtx of the file using PowerCLI

    Hi all

    I have a virtual computer model in one of the NFS attached to my ESX host data stores.
    I need to get the display name and some other details of the vmtx this model file.
    Any method to get values from vmtx file using PowerCLI... ?

    Thank you in advace for all help.

    Hello, MattGeorgey-

    One way you could do this would be to use the Copy-DatastoreItem cmdlet to retrieve the .vmtx file, and then you can read it, Get-Content on it, etc., as you please.  Something like:

    ## copy the VMTX file from the datastore to a local spotCopy-DatastoreItem vmstore:\MyDatacenterName\my_datastore_name\myTemplate\myTemplate.vmtx C:\temp\.
    
    ## get the contents of the VMTX file$colVMTXContents = gc C:\Temp\myTemplate.vmtx## get the line that contains the "displayName" value$colVMTXContents | Select-String displayName
    

    And, you can access some of the elements that are specified in the file .vmtx using the property Config.ExtraConfig of the display of the model as object:

    ## get the template object$tmplMyTemplate = Get-Template myTemplate## get a particular value for an ExtraConfig item$tmplMyTemplate.ExtensionData.Config.ExtraConfig | ?{$_.Key -eq "nvram"}
    

    How do I?

  • How to call a method defined in AppmoduleImpl using a groovy expression?

    Hi experts,

    With the help of jdev 11.1.1.5.0 - adfbc battery.

    I followed this post as the blogger says.
    How to call a method defined in AppmoduleImpl using a groovy expression?
    https://blogs.Oracle.com/ADF/entry/how_to_call_a_method

    While a button insert hit

    Suite error survey.
    java.sql.SQLException: ORA-20483: ADM-
    ORA-06512: at "RMSTD.FUNC_FIND_PLNT_DESC", line 22
    ORA-06512: at line 1
    
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:457)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)
         at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:889)
         at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:476)
         at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:204)
         at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:540)
    It is my code for the function.
    CREATE OR REPLACE FUNCTION func_find_plnt_desc (
       p_bu        VARCHAR2,
       p_plnt_id   VARCHAR2,
       p_lang      NUMBER
    )
       RETURN VARCHAR2
    IS
       CURSOR cur_find_plant
       IS
          SELECT bup_name1, bup_name2
            FROM bus_unit_plants
           WHERE bup_bu = p_bu AND bup_plant_id = p_plnt_id;
    
       rec_find_plant   cur_find_plant%ROWTYPE;
    BEGIN
       OPEN cur_find_plant;
       FETCH cur_find_plant INTO rec_find_plant;
    --RAISE_APPLICATION_ERROR(-20999,P_BU||P_PLNT_ID);
       IF cur_find_plant%NOTFOUND
       THEN
    
          raise_application_error (-20483, 'ADM' || P_PLNT_ID ||'-'||P_BU);
          --NULL;
       END IF;
    
       CLOSE cur_find_plant;
    
       IF p_lang = 1 THEN
          RETURN (rec_find_plant.bup_name1);
       ELSIF p_lang = 2 THEN
          RETURN (rec_find_plant.bup_name2);
       END IF;
    END;
    /
    Reason behind:
    while hitting the insert means null from the value of the survey so error function.

    If am not hitting doesn't mean no problem. the function works correctly return description.

    can someone help me how to override?

    Published by: ADF7 on April 10, 2012 23:51

    ADF7,
    the subject of the post has nothing to do with the question (for as far as I see it).
    As you can see the error message clearly comes from the procedure pl/sql you call the application module, works of groovy appeal method.

    We cannot decide what makes your service if you pass null as a parameter. You can check the settings before you proceed to the procedure or write the procedure in how it treats null parameters.

    Timo

  • How to use PowerCLI to activate the function VM NPIV and config setting?

    Hi all:

    I'm having a problem on PowerCLI.

    Can I use PowerCLI for NPIV to the VM config?

    OK, I see. This is possible with the operator "set".

    Note that the script must convert the hexadecimal number WWN in a 64-bit decimal number.

    $vmName = "MyVM"
    $nodeWWN = "28:2b:00:0c:29:00:00:07"
    $portWWN = "28:2b:00:0c:29:00:00:08"
    
    # Convert WWN string to 64-bit number
    $nodeWWN64 = [int64]("0x" + $nodeWWN.Replace(":",""))
    $portWWN64 = [int64]("0x" + $portWWN.Replace(":",""))
    
    # Activate NPIV
    $spec = New-Object VMware.Vim.VirtualMachineConfigSpec
    $spec.NpivDesiredNodeWwns = 0
    $spec.NpivDesiredPortWwns = 0
    $spec.NpivTemporaryDisabled = $false
    $spec.NpivWorldWideNameOp = "set"
    $spec.NpivPortWorldWideName = @($portWWN64)
    $spec.NpivNodeWorldWideName = @($nodeWWN64)
    
    $vm = Get-VM -Name $vmName
    $vm.ExtensionData.ReconfigVM($spec)
    

    You can use the cmdlet New - hard drive to attach a disc RDM. Make sure to specify a type of "gross" on the parameter - DiskType.

    You ID LUN with the parameter - DeviceName.

    ____________

    Blog: LucD notes

    Twitter: lucd22

  • How can I determine if a virtual server using PowerCLI (powershell)

    Hello

    I'm looking for a way to use PowerCLI to check if a Windows Server is virtual or physical.  What I want to do is the following.  When I apply the patches to Windows I want to run a powershell script to check if the server is virtual or physical.  If the server is a virtual server so I would like to take a snapshot of the server and then apply patches.

    Any help appreciated,

    Dean

    Dean,

    You can use the cmdlet Get - VM PowerCLI to check if the server virtual or physical. If the server is virtual the cmdlet returns an object. If the server is physical the cmdlet will give an error and returns nothing. Something like:

    $vm = Get-VM YourVmName
    If ($vm) {
      New-Snapshot -VM $vm -Name "Before Patch"
    }
    

    Robert

  • How to call oracle forms report using parameterlist for parameters

    Dear all,
    I want to know how to call oracle forms report and parameter passing between the report and the form with the list of parameters?
    can someone help me?

    What research? The forum is full of examples.

Maybe you are looking for

  • Web page fonts problems

    Hello I have some strange fonts like this & nbsp; of & nbsp; on all the Web pages I visit.I think I should just see the ampersand symbol. That I can type in email or even now &. It is a matter of setting in Firefox, or is it just that my old laptop u

  • My TV is compatible?

    I have a Samsung Plasma PS43D455. Is it compatible with the new Apple TV 4th gen? I tried researching it, but I don't understand what I read. It has HDMI ports so I think Yes, but I'm not sure. Thanks in advance

  • Are the plugins Flash 11.1.102.55 and Java SE 6 U 29 6.0.290.11 compatible with Firefox 8 for Windows XP SP3?

    I found information leading me to believe that compatibility between Java SE6 U29 6.0.290.11 and Flash 11.1.102.55 plugins for Firefox 8. Would someone please confirm or deny the weather these plugins are compatible with Firefox 8? Thank you

  • Satellite pro c660 - 21 d cannot update BIOS

    Windows7 64 bittalktalk f-secure antivirus Downloaded BIOS_V200_WIN. EXE, when had alert tempo today clicked on run as administratorextract the files and boxPhoenix uefi winflashanalise old and new biosWinFlash for uefi has stopped workingclose the p

  • start of the fingerprint scanner

    How to reinstall or start up of my fingerprint reader. It was installed at the factory, but for some reason any that it does not work now