__init__.py 文件源码

python
阅读 18 收藏 0 点赞 0 评论 0

项目:tintri-python-sdk 作者: Tintri 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号