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

CostManagementExtensions.CheckCostManagementNameAvailabilityByScopeScheduledAction 方法

定义

检查给定范围内计划操作的名称的可用性和正确性。

  • 请求路径/{scope}/providers/Microsoft.CostManagement/checkNameAvailability
  • 操作IdScheduledActions_CheckNameAvailabilityByScope
public static Azure.Response<Azure.ResourceManager.CostManagement.Models.CostManagementNameAvailabilityResult> CheckCostManagementNameAvailabilityByScopeScheduledAction (this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, Azure.ResourceManager.CostManagement.Models.CostManagementNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default);
static member CheckCostManagementNameAvailabilityByScopeScheduledAction : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier * Azure.ResourceManager.CostManagement.Models.CostManagementNameAvailabilityContent * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.CostManagement.Models.CostManagementNameAvailabilityResult>
<Extension()>
Public Function CheckCostManagementNameAvailabilityByScopeScheduledAction (client As ArmClient, scope As ResourceIdentifier, content As CostManagementNameAvailabilityContent, Optional cancellationToken As CancellationToken = Nothing) As Response(Of CostManagementNameAvailabilityResult)

参数

client
ArmClient

方法 ArmClient 将对其执行的实例。

scope
ResourceIdentifier

资源将应用于的范围。

content
CostManagementNameAvailabilityContent

要创建或更新的计划操作。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

content 为 null。

适用于