Class FcdUpdateAndRetrieveInfrastructurePolicyOperations


  • @Sample(name="fcd-updateandretrieveinfrastructurepolicyoperations",
            description="This sample updates vStorageObject policy, updates and retrieves virtual storage infrastructure object SBPM policy on given datastore.")
    public class FcdUpdateAndRetrieveInfrastructurePolicyOperations
    extends com.vmware.connection.ConnectedVimServiceBase
     FcdUpdateAndRetrieveInfrastructurePolicyOperations
    
     This sample updates vStorageObject policy,
     updates and retrieves virtual storage infrastructure object
     SBPM policy on given datastore from vslm.
    
     Pre-requisite :        1. Existing VStorageObject ID
                            2. Existing SPBM profile ID
     Parameters:
     url                    [required] : url of the web service
     username               [required] : username for the authentication
     password               [required] : password for the authentication
     vstorageobjectid       [required] : Uuid of the vstorageobject
     pbmprofileid           [required] : SPBM Profile requirement on the
                                         new virtual storage object.
     datastorename          [required] : Datastore on which policy needs to be retrieved.
                                         It only supports VSAN datastore.
     devicegroupid          [optional] : Id of the replication device group.
     faultdomainid          [optional] : Id of the fault domain to which the group belongs.
    
     Command Line:
     Update vStorageObject policy,Update andRetrieve virtual storage
     infrastructure object SBPM policy on given datastore.
     run.bat com.vmware.fcd.FcdUpdateAndRetrieveInfrastructurePolicyOperations --url [webserviceurl]
     --username [username] --password [password] --vstorageobjectid [vstorageobjectid] --pbmprofileid [pbmprofileid]
     --datastorename [datastorename]
     
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.vmware.connection.ConnectedVimServiceBase

        com.vmware.connection.ConnectedVimServiceBase.ConnectionException
    • Field Summary

      • Fields inherited from class com.vmware.connection.ConnectedVimServiceBase

        PROP_ME_NAME, SVC_INST_NAME
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void run()  
      void setDatastoreName​(java.lang.String datastoreName)  
      void setDeviceGroupId​(java.lang.String deviceGroupId)  
      void setFaultDomainId​(java.lang.String faultDomainId)  
      void setProfileSpec​(java.lang.String pbmProfileId)  
      void setVStorageObjectId​(java.lang.String vStorageObjectId)  
      • Methods inherited from class com.vmware.connection.ConnectedVimServiceBase

        basicConnectionFromConnection, connect, disconnect, getServiceInstanceReference, setConnection, setHostConnection
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FcdUpdateAndRetrieveInfrastructurePolicyOperations

        public FcdUpdateAndRetrieveInfrastructurePolicyOperations()
    • Method Detail

      • setVStorageObjectId

        @Option(name="vstorageobjectid",
                required=true,
                description="Uuid of the vstorageobject.")
        public void setVStorageObjectId​(java.lang.String vStorageObjectId)
        Parameters:
        vStorageObjectId - the vStorageObjectId to set
      • setProfileSpec

        @Option(name="pbmprofileid",
                required=true,
                description="SPBM Profile requirement on the new virtual storage object.")
        public void setProfileSpec​(java.lang.String pbmProfileId)
        Parameters:
        pbmProfileId - the pbmProfileId to set
      • setDatastoreName

        @Option(name="datastorename",
                required=true,
                description="Name of datastore on which datastore policy needs to be assigned.It only supports VSAN datastore.")
        public void setDatastoreName​(java.lang.String datastoreName)
        Parameters:
        datastoreName - the datastoreName to set
      • setDeviceGroupId

        @Option(name="devicegroupid",
                required=false,
                description="Id of the replication device group.")
        public void setDeviceGroupId​(java.lang.String deviceGroupId)
        Parameters:
        deviceGroupId - the deviceGroupId to set for newly created vStorageObject from snapshot
      • setFaultDomainId

        @Option(name="faultdomainid",
                required=false,
                description="ID of the fault domain to which the group belongs.")
        public void setFaultDomainId​(java.lang.String faultDomainId)
        Parameters:
        faultDomainId - the faultDomainId to set for newly created vStorageObject from snapshot
      • run

        @Action
        public void run()
                 throws java.lang.Exception
        Throws:
        java.lang.Exception