def test_replication_path(self, datastore_id, destinationIp=None, destionationPassphrase=None, destionationPort=None, sourceIp=None, testType=None, request=None):
"""
Tests the specified replication path on the specified datastore, provide either request or set other params.
**Supported on:** VMstore (all versions)
Args:
datastore_id: Datastore object's UUID
destinationIp: Remote IPv4 address of another datastore where replication data is received.
destionationPassphrase: Authorization key used on the remote end of this replication link.
destionationPort: Remote port of another datastore where replication data is received.
sourceIp: Local IPv4 address used by datastore to send replication data.
testType: Test to perform
request: TestReplicationPath request
"""
if 'v310.41' in self.version.supportedVersionSet:
url = "datastore/%s/testReplicationPath"
else:
url = "datastore/%s/replicationPath/test"
self._update(_get_request_object(locals(), ["self", "datastore_id"], TestReplicationPath),
path_params = [datastore_id], resource_url=url, request_class=types.StringType)
评论列表
文章目录