共用方式為


CustomLocations interface

表示 CustomLocations 的介面。

方法

beginCreateOrUpdate(string, string, CustomLocation, CustomLocationsCreateOrUpdateOptionalParams)

在指定的訂用帳戶和資源群組中建立或更新自訂位置

beginCreateOrUpdateAndWait(string, string, CustomLocation, CustomLocationsCreateOrUpdateOptionalParams)

在指定的訂用帳戶和資源群組中建立或更新自訂位置

beginDelete(string, string, CustomLocationsDeleteOptionalParams)

刪除具有指定資源名稱、資源群組和訂用帳戶識別碼的自訂位置。

beginDeleteAndWait(string, string, CustomLocationsDeleteOptionalParams)

刪除具有指定資源名稱、資源群組和訂用帳戶識別碼的自訂位置。

findTargetResourceGroup(string, string, CustomLocationFindTargetResourceGroupProperties, CustomLocationsFindTargetResourceGroupOptionalParams)

傳回與自訂位置之資源同步處理規則相關聯的目標資源群組,此規則與 [尋找目標資源群組要求] 傳入的規則相符。

get(string, string, CustomLocationsGetOptionalParams)

取得具有指定資源組名之 customLocation 的詳細資料。

listByResourceGroup(string, CustomLocationsListByResourceGroupOptionalParams)

取得指定之訂用帳戶和資源群組中的自訂位置清單。 作業會傳回每個自訂位置的屬性。

listBySubscription(CustomLocationsListBySubscriptionOptionalParams)

取得指定訂用帳戶中的自訂位置清單。 作業會傳回每個自訂位置的屬性

listEnabledResourceTypes(string, string, CustomLocationsListEnabledResourceTypesOptionalParams)

取得 [已啟用的資源類型] 清單。

listOperations(CustomLocationsListOperationsOptionalParams)

列出所有可用的自訂位置作業。

update(string, string, CustomLocationsUpdateOptionalParams)

更新具有指定資源群組和訂用帳戶中指定資源名稱的自訂位置。

方法詳細資料

beginCreateOrUpdate(string, string, CustomLocation, CustomLocationsCreateOrUpdateOptionalParams)

在指定的訂用帳戶和資源群組中建立或更新自訂位置

function beginCreateOrUpdate(resourceGroupName: string, resourceName: string, parameters: CustomLocation, options?: CustomLocationsCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<CustomLocation>, CustomLocation>>

參數

resourceGroupName

string

資源群組的名稱。 名稱不區分大小寫。

resourceName

string

自訂位置名稱。

parameters
CustomLocation

提供用來建立或更新自訂位置的參數。

傳回

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

beginCreateOrUpdateAndWait(string, string, CustomLocation, CustomLocationsCreateOrUpdateOptionalParams)

在指定的訂用帳戶和資源群組中建立或更新自訂位置

function beginCreateOrUpdateAndWait(resourceGroupName: string, resourceName: string, parameters: CustomLocation, options?: CustomLocationsCreateOrUpdateOptionalParams): Promise<CustomLocation>

參數

resourceGroupName

string

資源群組的名稱。 名稱不區分大小寫。

resourceName

string

自訂位置名稱。

parameters
CustomLocation

提供用來建立或更新自訂位置的參數。

傳回

Promise<CustomLocation>

beginDelete(string, string, CustomLocationsDeleteOptionalParams)

刪除具有指定資源名稱、資源群組和訂用帳戶識別碼的自訂位置。

function beginDelete(resourceGroupName: string, resourceName: string, options?: CustomLocationsDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>

參數

resourceGroupName

string

資源群組的名稱。 名稱不區分大小寫。

resourceName

string

自訂位置名稱。

options
CustomLocationsDeleteOptionalParams

選項參數。

傳回

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

beginDeleteAndWait(string, string, CustomLocationsDeleteOptionalParams)

刪除具有指定資源名稱、資源群組和訂用帳戶識別碼的自訂位置。

function beginDeleteAndWait(resourceGroupName: string, resourceName: string, options?: CustomLocationsDeleteOptionalParams): Promise<void>

參數

resourceGroupName

string

資源群組的名稱。 名稱不區分大小寫。

resourceName

string

自訂位置名稱。

options
CustomLocationsDeleteOptionalParams

選項參數。

傳回

Promise<void>

findTargetResourceGroup(string, string, CustomLocationFindTargetResourceGroupProperties, CustomLocationsFindTargetResourceGroupOptionalParams)

傳回與自訂位置之資源同步處理規則相關聯的目標資源群組,此規則與 [尋找目標資源群組要求] 傳入的規則相符。

function findTargetResourceGroup(resourceGroupName: string, resourceName: string, parameters: CustomLocationFindTargetResourceGroupProperties, options?: CustomLocationsFindTargetResourceGroupOptionalParams): Promise<CustomLocationFindTargetResourceGroupResult>

參數

resourceGroupName

string

資源群組的名稱。 名稱不區分大小寫。

resourceName

string

自訂位置名稱。

parameters
CustomLocationFindTargetResourceGroupProperties

尋找目標資源群組要求的參數。

傳回

get(string, string, CustomLocationsGetOptionalParams)

取得具有指定資源組名之 customLocation 的詳細資料。

function get(resourceGroupName: string, resourceName: string, options?: CustomLocationsGetOptionalParams): Promise<CustomLocation>

參數

resourceGroupName

string

資源群組的名稱。 名稱不區分大小寫。

resourceName

string

自訂位置名稱。

options
CustomLocationsGetOptionalParams

選項參數。

傳回

Promise<CustomLocation>

listByResourceGroup(string, CustomLocationsListByResourceGroupOptionalParams)

取得指定之訂用帳戶和資源群組中的自訂位置清單。 作業會傳回每個自訂位置的屬性。

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

參數

resourceGroupName

string

資源群組的名稱。 名稱不區分大小寫。

傳回

listBySubscription(CustomLocationsListBySubscriptionOptionalParams)

取得指定訂用帳戶中的自訂位置清單。 作業會傳回每個自訂位置的屬性

function listBySubscription(options?: CustomLocationsListBySubscriptionOptionalParams): PagedAsyncIterableIterator<CustomLocation, CustomLocation[], PageSettings>

參數

傳回

listEnabledResourceTypes(string, string, CustomLocationsListEnabledResourceTypesOptionalParams)

取得 [已啟用的資源類型] 清單。

function listEnabledResourceTypes(resourceGroupName: string, resourceName: string, options?: CustomLocationsListEnabledResourceTypesOptionalParams): PagedAsyncIterableIterator<EnabledResourceType, EnabledResourceType[], PageSettings>

參數

resourceGroupName

string

資源群組的名稱。 名稱不區分大小寫。

resourceName

string

自訂位置名稱。

傳回

listOperations(CustomLocationsListOperationsOptionalParams)

列出所有可用的自訂位置作業。

function listOperations(options?: CustomLocationsListOperationsOptionalParams): PagedAsyncIterableIterator<CustomLocationOperation, CustomLocationOperation[], PageSettings>

參數

傳回

update(string, string, CustomLocationsUpdateOptionalParams)

更新具有指定資源群組和訂用帳戶中指定資源名稱的自訂位置。

function update(resourceGroupName: string, resourceName: string, options?: CustomLocationsUpdateOptionalParams): Promise<CustomLocation>

參數

resourceGroupName

string

資源群組的名稱。 名稱不區分大小寫。

resourceName

string

自訂位置名稱。

options
CustomLocationsUpdateOptionalParams

選項參數。

傳回

Promise<CustomLocation>