你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

PacketCapture.DefinitionStages.WithStorageLocation 接口

public interface WithStorageLocation

方法摘要

修饰符和类型 方法和描述
PacketCapture.DefinitionStages.WithCreate withFilePath(String filePath)

目标 VM 上的有效本地路径。 必须包含捕获文件的名称 (*.cap) 。 对于 Linux 虚拟机,它必须以 /var/captures 开头。 如果未提供存储 ID,则为必需,否则为可选。

PacketCapture.DefinitionStages.WithCreateAndStoragePath withStorageAccountId(String storageId)

用于保存数据包捕获会话的存储帐户的 ID。 如果未提供本地文件路径,则为必需。

方法详细信息

withFilePath

public WithCreate withFilePath(String filePath)

目标 VM 上的有效本地路径。 必须包含捕获文件的名称 (*.cap) 。 对于 Linux 虚拟机,它必须以 /var/captures 开头。 如果未提供存储 ID,则为必需,否则为可选。

参数:

filePath - 目标 VM 上的有效本地路径

返回:

下一阶段

withStorageAccountId

public WithCreateAndStoragePath withStorageAccountId(String storageId)

用于保存数据包捕获会话的存储帐户的 ID。 如果未提供本地文件路径,则为必需。

参数:

storageId - 用于保存数据包捕获会话的存储帐户的 ID

返回:

定义的下一阶段

适用于