Package com.vmware.fcd
Class FcdUpdateAndRetrieveInfrastructurePolicyOperations
- java.lang.Object
-
- com.vmware.connection.ConnectedVimServiceBase
-
- com.vmware.fcd.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.ConnectedVimServiceBaseFcdUpdateAndRetrieveInfrastructurePolicyOperations 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]
-
-
Constructor Summary
Constructors Constructor Description FcdUpdateAndRetrieveInfrastructurePolicyOperations()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrun()voidsetDatastoreName(java.lang.String datastoreName)voidsetDeviceGroupId(java.lang.String deviceGroupId)voidsetFaultDomainId(java.lang.String faultDomainId)voidsetProfileSpec(java.lang.String pbmProfileId)voidsetVStorageObjectId(java.lang.String vStorageObjectId)
-
-
-
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
-
-