CustomLocations interface
表示 CustomLocations 的接口。
方法
方法详细信息
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)
删除具有指定资源名称、资源组和订阅 ID 的自定义位置。
function beginDelete(resourceGroupName: string, resourceName: string, options?: CustomLocationsDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>
参数
- resourceGroupName
-
string
资源组的名称。 此名称不区分大小写。
- resourceName
-
string
自定义位置名称。
选项参数。
返回
Promise<PollerLike<@azure/core-lro.PollOperationState<void>, void>>
beginDeleteAndWait(string, string, CustomLocationsDeleteOptionalParams)
删除具有指定资源名称、资源组和订阅 ID 的自定义位置。
function beginDeleteAndWait(resourceGroupName: string, resourceName: string, options?: CustomLocationsDeleteOptionalParams): Promise<void>
参数
- resourceGroupName
-
string
资源组的名称。 此名称不区分大小写。
- resourceName
-
string
自定义位置名称。
选项参数。
返回
Promise<void>
findTargetResourceGroup(string, string, CustomLocationFindTargetResourceGroupProperties, CustomLocationsFindTargetResourceGroupOptionalParams)
返回与自定义位置的资源同步规则关联的目标资源组,这些规则与传入的规则与“查找目标资源组请求”匹配。
function findTargetResourceGroup(resourceGroupName: string, resourceName: string, parameters: CustomLocationFindTargetResourceGroupProperties, options?: CustomLocationsFindTargetResourceGroupOptionalParams): Promise<CustomLocationFindTargetResourceGroupResult>
参数
- resourceGroupName
-
string
资源组的名称。 此名称不区分大小写。
- resourceName
-
string
自定义位置名称。
查找目标资源组请求的参数。
选项参数。
返回
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
自定义位置名称。
选项参数。
返回
Promise<CustomLocation>