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

IDefinition 接口

定义

整个数据包捕获定义。

public interface IDefinition : Microsoft.Azure.Management.Network.Fluent.PacketCapture.Definition.IWithCreateAndStoragePath, Microsoft.Azure.Management.Network.Fluent.PacketCapture.Definition.IWithStorageLocation, Microsoft.Azure.Management.Network.Fluent.PacketCapture.Definition.IWithTarget, Microsoft.Azure.Management.ResourceManager.Fluent.Core.ResourceActions.ICreatable<Microsoft.Azure.Management.Network.Fluent.IPacketCapture>
type IDefinition = interface
    interface IWithTarget
    interface IWithStorageLocation
    interface IWithCreateAndStoragePath
    interface IWithCreate
    interface ICreatable<IPacketCapture>
    interface IIndexable
Public Interface IDefinition
Implements ICreatable(Of IPacketCapture), IWithCreateAndStoragePath, IWithStorageLocation, IWithTarget
实现

属性

Key

整个数据包捕获定义。

(继承自 IIndexable)
Name

获取可创建资源的名称。

(继承自 ICreatable<T>)

方法

Create()

执行创建请求。

(继承自 ICreatable<T>)
CreateAsync(CancellationToken, Boolean)

将请求放入队列,并允许 HTTP 客户端在系统资源可用时执行该请求。

(继承自 ICreatable<T>)
DefinePacketCaptureFilter()

开始数据包捕获筛选器的定义。

(继承自 IWithCreate)
WithBytesToCapturePerPacket(Int32)

设置每个数据包捕获的字节数,其余字节将被截断。

(继承自 IWithCreate)
WithFilePath(String)

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

(继承自 IWithStorageLocation)
WithStorageAccountId(String)

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

(继承自 IWithStorageLocation)
WithStoragePath(String)

用于保存数据包捕获的存储路径的 URI。 必须是格式正确的 URI,用于描述保存数据包捕获的位置。

(继承自 IWithCreateAndStoragePath)
WithTarget(String)

设置目标资源 ID,当前仅支持 VM。

(继承自 IWithTarget)
WithTimeLimitInSeconds(Int32)

设置捕获会话的最大持续时间(以秒为单位)。

(继承自 IWithCreate)
WithTotalBytesPerSession(Int32)

设置捕获输出的最大大小。

(继承自 IWithCreate)

适用于