Hosts interface

代表主機的介面。

方法詳細資料

beginCreate(string, string, HostsCreateOptionalParams)

建立或更新主機。

function beginCreate(resourceGroupName: string, hostName: string, options?: HostsCreateOptionalParams): Promise<SimplePollerLike<OperationState<Host>, Host>>

參數

resourceGroupName

string

資源組名。

hostName

string

主機的名稱。

options
HostsCreateOptionalParams

選項參數。

傳回

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

beginCreateAndWait(string, string, HostsCreateOptionalParams)

建立或更新主機。

function beginCreateAndWait(resourceGroupName: string, hostName: string, options?: HostsCreateOptionalParams): Promise<Host>

參數

resourceGroupName

string

資源組名。

hostName

string

主機的名稱。

options
HostsCreateOptionalParams

選項參數。

傳回

Promise<Host>

beginDelete(string, string, HostsDeleteOptionalParams)

實作主機 DELETE 方法。

function beginDelete(resourceGroupName: string, hostName: string, options?: HostsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>

參數

resourceGroupName

string

資源組名。

hostName

string

主機的名稱。

options
HostsDeleteOptionalParams

選項參數。

傳回

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

beginDeleteAndWait(string, string, HostsDeleteOptionalParams)

實作主機 DELETE 方法。

function beginDeleteAndWait(resourceGroupName: string, hostName: string, options?: HostsDeleteOptionalParams): Promise<void>

參數

resourceGroupName

string

資源組名。

hostName

string

主機的名稱。

options
HostsDeleteOptionalParams

選項參數。

傳回

Promise<void>

get(string, string, HostsGetOptionalParams)

實作主機 GET 方法。

function get(resourceGroupName: string, hostName: string, options?: HostsGetOptionalParams): Promise<Host>

參數

resourceGroupName

string

資源組名。

hostName

string

主機的名稱。

options
HostsGetOptionalParams

選項參數。

傳回

Promise<Host>

list(HostsListOptionalParams)

訂用帳戶中的主機清單。

function list(options?: HostsListOptionalParams): PagedAsyncIterableIterator<Host, Host[], PageSettings>

參數

options
HostsListOptionalParams

選項參數。

傳回

listByResourceGroup(string, HostsListByResourceGroupOptionalParams)

資源群組中的主機清單。

function listByResourceGroup(resourceGroupName: string, options?: HostsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<Host, Host[], PageSettings>

參數

resourceGroupName

string

資源組名。

options
HostsListByResourceGroupOptionalParams

選項參數。

傳回

update(string, string, HostsUpdateOptionalParams)

用來更新主機資源特定屬性的 API。

function update(resourceGroupName: string, hostName: string, options?: HostsUpdateOptionalParams): Promise<Host>

參數

resourceGroupName

string

資源組名。

hostName

string

主機的名稱。

options
HostsUpdateOptionalParams

選項參數。

傳回

Promise<Host>