ListReplicatedDatastores
This method queries and lists replicated but unprotected datastores. A datastore is replicated if it contains any virtual machines in a protection group.
Note: This method is deprecated. As an alternative, use ListUnassignedReplicatedDatastores.
Synopsis
vim.Datastore[] listReplicatedDatastores()
Datastore[] is a list of replicated datastores on this site that can be used to create new protection groups.
Faults
- RuntimeFault
See Faults in Site Recovery Manager API for more details.
Method to list replicated datastores
List < ManagedObjectReference > datastores = srmPortType.listReplicatedDatastores(ManagedObjectReference _this); Where ManagedObjectReference _this = _protectionRef; where _protectionRef can be taken from: SrmServiceInstanceContent content = _srmPortType.retrieveContent(_svcRef); ManagedObjectReference _protectionRef = content.getProtection();