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

GuestAgents interface

表示 GuestAgents 的接口。

方法

beginCreate(string, GuestAgent, GuestAgentsCreateOptionalParams)

创建或更新 GuestAgent。

beginCreateAndWait(string, GuestAgent, GuestAgentsCreateOptionalParams)

创建或更新 GuestAgent。

delete(string, GuestAgentsDeleteOptionalParams)

实现 GuestAgent DELETE 方法。

get(string, GuestAgentsGetOptionalParams)

实现 GuestAgent GET 方法。

listByVirtualMachineInstance(string, GuestAgentsListByVirtualMachineInstanceOptionalParams)

返回给定 VM 的 GuestAgent 列表。

方法详细信息

beginCreate(string, GuestAgent, GuestAgentsCreateOptionalParams)

创建或更新 GuestAgent。

function beginCreate(resourceUri: string, resource: GuestAgent, options?: GuestAgentsCreateOptionalParams): Promise<SimplePollerLike<OperationState<GuestAgent>, GuestAgent>>

参数

resourceUri

string

资源的完全限定的 Azure 资源管理器标识符。

resource
GuestAgent

资源创建参数。

options
GuestAgentsCreateOptionalParams

选项参数。

返回

Promise<@azure/core-lro.SimplePollerLike<OperationState<GuestAgent>, GuestAgent>>

beginCreateAndWait(string, GuestAgent, GuestAgentsCreateOptionalParams)

创建或更新 GuestAgent。

function beginCreateAndWait(resourceUri: string, resource: GuestAgent, options?: GuestAgentsCreateOptionalParams): Promise<GuestAgent>

参数

resourceUri

string

资源的完全限定的 Azure 资源管理器标识符。

resource
GuestAgent

资源创建参数。

options
GuestAgentsCreateOptionalParams

选项参数。

返回

Promise<GuestAgent>

delete(string, GuestAgentsDeleteOptionalParams)

实现 GuestAgent DELETE 方法。

function delete(resourceUri: string, options?: GuestAgentsDeleteOptionalParams): Promise<void>

参数

resourceUri

string

资源的完全限定的 Azure 资源管理器标识符。

options
GuestAgentsDeleteOptionalParams

选项参数。

返回

Promise<void>

get(string, GuestAgentsGetOptionalParams)

实现 GuestAgent GET 方法。

function get(resourceUri: string, options?: GuestAgentsGetOptionalParams): Promise<GuestAgent>

参数

resourceUri

string

资源的完全限定的 Azure 资源管理器标识符。

options
GuestAgentsGetOptionalParams

选项参数。

返回

Promise<GuestAgent>

listByVirtualMachineInstance(string, GuestAgentsListByVirtualMachineInstanceOptionalParams)

返回给定 VM 的 GuestAgent 列表。

function listByVirtualMachineInstance(resourceUri: string, options?: GuestAgentsListByVirtualMachineInstanceOptionalParams): PagedAsyncIterableIterator<GuestAgent, GuestAgent[], PageSettings>

参数

resourceUri

string

资源的完全限定的 Azure 资源管理器标识符。

返回