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

MaintenanceExtensions.GetConfigurationAssignmentBySubscription 方法

定义

获取 resource 的配置分配。

  • 请求路径/subscriptions/{subscriptionId}/providers/Microsoft.Maintenance/configurationAssignments/{configurationAssignmentName}
  • 操作IdConfigurationAssignmentsForSubscriptions_Get
public static Azure.Response<Azure.ResourceManager.Maintenance.Models.MaintenanceConfigurationAssignmentData> GetConfigurationAssignmentBySubscription (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string configurationAssignmentName, System.Threading.CancellationToken cancellationToken = default);
static member GetConfigurationAssignmentBySubscription : Azure.ResourceManager.Resources.SubscriptionResource * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Maintenance.Models.MaintenanceConfigurationAssignmentData>
<Extension()>
Public Function GetConfigurationAssignmentBySubscription (subscriptionResource As SubscriptionResource, configurationAssignmentName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of MaintenanceConfigurationAssignmentData)

参数

subscriptionResource
SubscriptionResource

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

configurationAssignmentName
String

配置分配名称。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

configurationAssignmentName 是一个空字符串,预期为非空。

configurationAssignmentName 为 null。

适用于