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

Instances interface

表示实例的接口。

方法

beginCreate(string, string, string, Instance, InstancesCreateOptionalParams)

创建或更新实例。

beginCreateAndWait(string, string, string, Instance, InstancesCreateOptionalParams)

创建或更新实例。

beginDelete(string, string, string, InstancesDeleteOptionalParams)

删除实例。

beginDeleteAndWait(string, string, string, InstancesDeleteOptionalParams)

删除实例。

get(string, string, string, InstancesGetOptionalParams)

返回给定实例和帐户名称的实例详细信息。

head(string, string, string, InstancesHeadOptionalParams)

检查实例是否存在。

listByAccount(string, string, InstancesListByAccountOptionalParams)

返回给定帐户名称的实例。

update(string, string, string, TagUpdate, InstancesUpdateOptionalParams)

更新实例的标记。

方法详细信息

beginCreate(string, string, string, Instance, InstancesCreateOptionalParams)

创建或更新实例。

function beginCreate(resourceGroupName: string, accountName: string, instanceName: string, instance: Instance, options?: InstancesCreateOptionalParams): Promise<PollerLike<PollOperationState<Instance>, Instance>>

参数

resourceGroupName

string

资源组名称。

accountName

string

帐户名称。

instanceName

string

实例名称。

instance
Instance

实例详细信息。

options
InstancesCreateOptionalParams

选项参数。

返回

Promise<PollerLike<@azure/core-lro.PollOperationState<Instance>, Instance>>

beginCreateAndWait(string, string, string, Instance, InstancesCreateOptionalParams)

创建或更新实例。

function beginCreateAndWait(resourceGroupName: string, accountName: string, instanceName: string, instance: Instance, options?: InstancesCreateOptionalParams): Promise<Instance>

参数

resourceGroupName

string

资源组名称。

accountName

string

帐户名称。

instanceName

string

实例名称。

instance
Instance

实例详细信息。

options
InstancesCreateOptionalParams

选项参数。

返回

Promise<Instance>

beginDelete(string, string, string, InstancesDeleteOptionalParams)

删除实例。

function beginDelete(resourceGroupName: string, accountName: string, instanceName: string, options?: InstancesDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>

参数

resourceGroupName

string

资源组名称。

accountName

string

帐户名称。

instanceName

string

实例名称。

options
InstancesDeleteOptionalParams

选项参数。

返回

Promise<PollerLike<@azure/core-lro.PollOperationState<void>, void>>

beginDeleteAndWait(string, string, string, InstancesDeleteOptionalParams)

删除实例。

function beginDeleteAndWait(resourceGroupName: string, accountName: string, instanceName: string, options?: InstancesDeleteOptionalParams): Promise<void>

参数

resourceGroupName

string

资源组名称。

accountName

string

帐户名称。

instanceName

string

实例名称。

options
InstancesDeleteOptionalParams

选项参数。

返回

Promise<void>

get(string, string, string, InstancesGetOptionalParams)

返回给定实例和帐户名称的实例详细信息。

function get(resourceGroupName: string, accountName: string, instanceName: string, options?: InstancesGetOptionalParams): Promise<Instance>

参数

resourceGroupName

string

资源组名称。

accountName

string

帐户名称。

instanceName

string

实例名称。

options
InstancesGetOptionalParams

选项参数。

返回

Promise<Instance>

head(string, string, string, InstancesHeadOptionalParams)

检查实例是否存在。

function head(resourceGroupName: string, accountName: string, instanceName: string, options?: InstancesHeadOptionalParams): Promise<InstancesHeadResponse>

参数

resourceGroupName

string

资源组名称。

accountName

string

帐户名称。

instanceName

string

实例名称。

options
InstancesHeadOptionalParams

选项参数。

返回

listByAccount(string, string, InstancesListByAccountOptionalParams)

返回给定帐户名称的实例。

function listByAccount(resourceGroupName: string, accountName: string, options?: InstancesListByAccountOptionalParams): PagedAsyncIterableIterator<Instance, Instance[], PageSettings>

参数

resourceGroupName

string

资源组名称。

accountName

string

帐户名称。

options
InstancesListByAccountOptionalParams

选项参数。

返回

update(string, string, string, TagUpdate, InstancesUpdateOptionalParams)

更新实例的标记。

function update(resourceGroupName: string, accountName: string, instanceName: string, tagUpdatePayload: TagUpdate, options?: InstancesUpdateOptionalParams): Promise<Instance>

参数

resourceGroupName

string

资源组名称。

accountName

string

帐户名称。

instanceName

string

实例名称。

tagUpdatePayload
TagUpdate

更新了标记。

options
InstancesUpdateOptionalParams

选项参数。

返回

Promise<Instance>