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

IPolicyExemptionsOperations.ListForResourceNextWithHttpMessagesAsync 方法

定义

检索应用于资源的所有策略豁免。

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.ResourceManager.Models.PolicyExemption>>> ListForResourceNextWithHttpMessagesAsync (string nextPageLink, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member ListForResourceNextWithHttpMessagesAsync : string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.ResourceManager.Models.PolicyExemption>>>
Public Function ListForResourceNextWithHttpMessagesAsync (nextPageLink As String, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of IPage(Of PolicyExemption)))

参数

nextPageLink
String

上一次成功调用 List 操作的 NextLink。

customHeaders
Dictionary<String,List<String>>

将添加到请求的标头。

cancellationToken
CancellationToken

取消标记。

返回

例外

操作返回无效状态代码时引发

无法反序列化响应时引发

当所需的参数为 null 时引发

注解

此操作检索与给定资源组和订阅中与可选给定$filter匹配的指定资源关联的所有策略豁免列表。 $filter的有效值为:“atScope () ”、“atExactScope () ”、“excludeExpired () ”或“policyAssignmentId eq'{value}”。 如果未提供$filter,则未筛选列表包括与资源关联的所有策略豁免,包括直接应用或从所有包含范围应用的策略豁免,以及应用于资源中包含的资源的任何策略豁免。 三个参数加上资源名称用于标识特定资源。 如果资源不是父资源的一部分 (更常见的情况) ,则父资源路径不应 (提供或作为“”) 提供。 例如,可以将 Web 应用指定为 ({resourceProviderNamespace} == 'Microsoft.Web', {parentResourcePath} == '', {resourceType} == 'sites', {resourceName} == 'MyWebApp') 。 如果资源是父资源的一部分,则应提供所有参数。 例如,可以将虚拟机 DNS 名称指定为 ({resourceProviderNamespace} == 'Microsoft.Compute',{parentResourcePath} == 'virtualMachines/MyVirtualMachine', {resourceType} == 'domainNames', {resourceName} == 'MyComputerName') 。 单独提供命名空间和类型名称的一种便捷替代方法是以 {resourceType} 参数提供两种格式: ({resourceProviderNamespace} == '',{parentResourcePath} == '',{resourceType} == 'Microsoft.Web/sites',{resourceName} == 'MyWebApp') 。

适用于