public interface PolicyExemptionsClient extends InnerSupportsListing<PolicyExemptionInner>, InnerSupportsDelete<Void>
| Modifier and Type | Method and Description |
|---|---|
PolicyExemptionInner |
createOrUpdate(String scope,
String policyExemptionName,
PolicyExemptionInner parameters)
This operation creates or updates a policy exemption with the given scope and name.
|
Mono<PolicyExemptionInner> |
createOrUpdateAsync(String scope,
String policyExemptionName,
PolicyExemptionInner parameters)
This operation creates or updates a policy exemption with the given scope and name.
|
com.azure.core.http.rest.Response<PolicyExemptionInner> |
createOrUpdateWithResponse(String scope,
String policyExemptionName,
PolicyExemptionInner parameters,
com.azure.core.util.Context context)
This operation creates or updates a policy exemption with the given scope and name.
|
Mono<com.azure.core.http.rest.Response<PolicyExemptionInner>> |
createOrUpdateWithResponseAsync(String scope,
String policyExemptionName,
PolicyExemptionInner parameters)
This operation creates or updates a policy exemption with the given scope and name.
|
void |
delete(String scope,
String policyExemptionName)
This operation deletes a policy exemption, given its name and the scope it was created in.
|
Mono<Void> |
deleteAsync(String scope,
String policyExemptionName)
This operation deletes a policy exemption, given its name and the scope it was created in.
|
com.azure.core.http.rest.Response<Void> |
deleteWithResponse(String scope,
String policyExemptionName,
com.azure.core.util.Context context)
This operation deletes a policy exemption, given its name and the scope it was created in.
|
Mono<com.azure.core.http.rest.Response<Void>> |
deleteWithResponseAsync(String scope,
String policyExemptionName)
This operation deletes a policy exemption, given its name and the scope it was created in.
|
PolicyExemptionInner |
get(String scope,
String policyExemptionName)
This operation retrieves a single policy exemption, given its name and the scope it was created at.
|
Mono<PolicyExemptionInner> |
getAsync(String scope,
String policyExemptionName)
This operation retrieves a single policy exemption, given its name and the scope it was created at.
|
com.azure.core.http.rest.Response<PolicyExemptionInner> |
getWithResponse(String scope,
String policyExemptionName,
com.azure.core.util.Context context)
This operation retrieves a single policy exemption, given its name and the scope it was created at.
|
Mono<com.azure.core.http.rest.Response<PolicyExemptionInner>> |
getWithResponseAsync(String scope,
String policyExemptionName)
This operation retrieves a single policy exemption, given its name and the scope it was created at.
|
com.azure.core.http.rest.PagedIterable<PolicyExemptionInner> |
list()
This operation retrieves the list of all policy exemptions associated with the given subscription that match the
optional given $filter.
|
com.azure.core.http.rest.PagedIterable<PolicyExemptionInner> |
list(String filter,
com.azure.core.util.Context context)
This operation retrieves the list of all policy exemptions associated with the given subscription that match the
optional given $filter.
|
com.azure.core.http.rest.PagedFlux<PolicyExemptionInner> |
listAsync()
This operation retrieves the list of all policy exemptions associated with the given subscription that match the
optional given $filter.
|
com.azure.core.http.rest.PagedFlux<PolicyExemptionInner> |
listAsync(String filter)
This operation retrieves the list of all policy exemptions associated with the given subscription that match the
optional given $filter.
|
com.azure.core.http.rest.PagedIterable<PolicyExemptionInner> |
listByResourceGroup(String resourceGroupName)
This operation retrieves the list of all policy exemptions associated with the given resource group in the given
subscription that match the optional given $filter.
|
com.azure.core.http.rest.PagedIterable<PolicyExemptionInner> |
listByResourceGroup(String resourceGroupName,
String filter,
com.azure.core.util.Context context)
This operation retrieves the list of all policy exemptions associated with the given resource group in the given
subscription that match the optional given $filter.
|
com.azure.core.http.rest.PagedFlux<PolicyExemptionInner> |
listByResourceGroupAsync(String resourceGroupName)
This operation retrieves the list of all policy exemptions associated with the given resource group in the given
subscription that match the optional given $filter.
|
com.azure.core.http.rest.PagedFlux<PolicyExemptionInner> |
listByResourceGroupAsync(String resourceGroupName,
String filter)
This operation retrieves the list of all policy exemptions associated with the given resource group in the given
subscription that match the optional given $filter.
|
com.azure.core.http.rest.PagedIterable<PolicyExemptionInner> |
listForManagementGroup(String managementGroupId)
This operation retrieves the list of all policy exemptions applicable to the management group that match the
given $filter.
|
com.azure.core.http.rest.PagedIterable<PolicyExemptionInner> |
listForManagementGroup(String managementGroupId,
String filter,
com.azure.core.util.Context context)
This operation retrieves the list of all policy exemptions applicable to the management group that match the
given $filter.
|
com.azure.core.http.rest.PagedFlux<PolicyExemptionInner> |
listForManagementGroupAsync(String managementGroupId)
This operation retrieves the list of all policy exemptions applicable to the management group that match the
given $filter.
|
com.azure.core.http.rest.PagedFlux<PolicyExemptionInner> |
listForManagementGroupAsync(String managementGroupId,
String filter)
This operation retrieves the list of all policy exemptions applicable to the management group that match the
given $filter.
|
com.azure.core.http.rest.PagedIterable<PolicyExemptionInner> |
listForResource(String resourceGroupName,
String resourceProviderNamespace,
String parentResourcePath,
String resourceType,
String resourceName)
This operation retrieves the list of all policy exemptions associated with the specified resource in the given
resource group and subscription that match the optional given $filter.
|
com.azure.core.http.rest.PagedIterable<PolicyExemptionInner> |
listForResource(String resourceGroupName,
String resourceProviderNamespace,
String parentResourcePath,
String resourceType,
String resourceName,
String filter,
com.azure.core.util.Context context)
This operation retrieves the list of all policy exemptions associated with the specified resource in the given
resource group and subscription that match the optional given $filter.
|
com.azure.core.http.rest.PagedFlux<PolicyExemptionInner> |
listForResourceAsync(String resourceGroupName,
String resourceProviderNamespace,
String parentResourcePath,
String resourceType,
String resourceName)
This operation retrieves the list of all policy exemptions associated with the specified resource in the given
resource group and subscription that match the optional given $filter.
|
com.azure.core.http.rest.PagedFlux<PolicyExemptionInner> |
listForResourceAsync(String resourceGroupName,
String resourceProviderNamespace,
String parentResourcePath,
String resourceType,
String resourceName,
String filter)
This operation retrieves the list of all policy exemptions associated with the specified resource in the given
resource group and subscription that match the optional given $filter.
|
Mono<com.azure.core.http.rest.Response<Void>> deleteWithResponseAsync(String scope, String policyExemptionName)
scope - The scope of the policy exemption. Valid scopes are: management group (format:
'/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format:
'/subscriptions/{subscriptionId}'), resource group (format:
'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format:
'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'.policyExemptionName - The name of the policy exemption to delete.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.Mono<Void> deleteAsync(String scope, String policyExemptionName)
deleteAsync in interface InnerSupportsDelete<Void>scope - The scope of the policy exemption. Valid scopes are: management group (format:
'/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format:
'/subscriptions/{subscriptionId}'), resource group (format:
'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format:
'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'.policyExemptionName - The name of the policy exemption to delete.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.void delete(String scope, String policyExemptionName)
scope - The scope of the policy exemption. Valid scopes are: management group (format:
'/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format:
'/subscriptions/{subscriptionId}'), resource group (format:
'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format:
'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'.policyExemptionName - The name of the policy exemption to delete.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.Response<Void> deleteWithResponse(String scope, String policyExemptionName, com.azure.core.util.Context context)
scope - The scope of the policy exemption. Valid scopes are: management group (format:
'/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format:
'/subscriptions/{subscriptionId}'), resource group (format:
'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format:
'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'.policyExemptionName - The name of the policy exemption to delete.context - The context to associate with this operation.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.Mono<com.azure.core.http.rest.Response<PolicyExemptionInner>> createOrUpdateWithResponseAsync(String scope, String policyExemptionName, PolicyExemptionInner parameters)
scope - The scope of the policy exemption. Valid scopes are: management group (format:
'/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format:
'/subscriptions/{subscriptionId}'), resource group (format:
'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format:
'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'.policyExemptionName - The name of the policy exemption to delete.parameters - Parameters for the policy exemption.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.Mono<PolicyExemptionInner> createOrUpdateAsync(String scope, String policyExemptionName, PolicyExemptionInner parameters)
scope - The scope of the policy exemption. Valid scopes are: management group (format:
'/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format:
'/subscriptions/{subscriptionId}'), resource group (format:
'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format:
'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'.policyExemptionName - The name of the policy exemption to delete.parameters - Parameters for the policy exemption.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.PolicyExemptionInner createOrUpdate(String scope, String policyExemptionName, PolicyExemptionInner parameters)
scope - The scope of the policy exemption. Valid scopes are: management group (format:
'/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format:
'/subscriptions/{subscriptionId}'), resource group (format:
'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format:
'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'.policyExemptionName - The name of the policy exemption to delete.parameters - Parameters for the policy exemption.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.Response<PolicyExemptionInner> createOrUpdateWithResponse(String scope, String policyExemptionName, PolicyExemptionInner parameters, com.azure.core.util.Context context)
scope - The scope of the policy exemption. Valid scopes are: management group (format:
'/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format:
'/subscriptions/{subscriptionId}'), resource group (format:
'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format:
'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'.policyExemptionName - The name of the policy exemption to delete.parameters - Parameters for the policy exemption.context - The context to associate with this operation.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.Mono<com.azure.core.http.rest.Response<PolicyExemptionInner>> getWithResponseAsync(String scope, String policyExemptionName)
scope - The scope of the policy exemption. Valid scopes are: management group (format:
'/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format:
'/subscriptions/{subscriptionId}'), resource group (format:
'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format:
'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'.policyExemptionName - The name of the policy exemption to delete.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.Mono<PolicyExemptionInner> getAsync(String scope, String policyExemptionName)
scope - The scope of the policy exemption. Valid scopes are: management group (format:
'/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format:
'/subscriptions/{subscriptionId}'), resource group (format:
'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format:
'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'.policyExemptionName - The name of the policy exemption to delete.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.PolicyExemptionInner get(String scope, String policyExemptionName)
scope - The scope of the policy exemption. Valid scopes are: management group (format:
'/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format:
'/subscriptions/{subscriptionId}'), resource group (format:
'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format:
'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'.policyExemptionName - The name of the policy exemption to delete.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.Response<PolicyExemptionInner> getWithResponse(String scope, String policyExemptionName, com.azure.core.util.Context context)
scope - The scope of the policy exemption. Valid scopes are: management group (format:
'/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format:
'/subscriptions/{subscriptionId}'), resource group (format:
'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format:
'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'.policyExemptionName - The name of the policy exemption to delete.context - The context to associate with this operation.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.PagedFlux<PolicyExemptionInner> listAsync(String filter)
filter - The filter to apply on the operation. Valid values for $filter are: 'atScope()', 'atExactScope()',
'excludeExpired()' or 'policyAssignmentId eq '{value}''. If $filter is not provided, no filtering is
performed. If $filter is not provided, the unfiltered list includes all policy exemptions associated with the
scope, including those that apply directly or apply from containing scopes. If $filter=atScope() is provided,
the returned list only includes all policy exemptions that apply to the scope, which is everything in the
unfiltered list except those applied to sub scopes contained within the given scope. If
$filter=atExactScope() is provided, the returned list only includes all policy exemptions that at the given
scope. If $filter=excludeExpired() is provided, the returned list only includes all policy exemptions that
either haven't expired or didn't set expiration date. If $filter=policyAssignmentId eq '{value}' is provided.
the returned list only includes all policy exemptions that are associated with the give policyAssignmentId.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.PagedFlux<PolicyExemptionInner> listAsync()
listAsync in interface InnerSupportsListing<PolicyExemptionInner>com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.PagedIterable<PolicyExemptionInner> list()
list in interface InnerSupportsListing<PolicyExemptionInner>com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.PagedIterable<PolicyExemptionInner> list(String filter, com.azure.core.util.Context context)
filter - The filter to apply on the operation. Valid values for $filter are: 'atScope()', 'atExactScope()',
'excludeExpired()' or 'policyAssignmentId eq '{value}''. If $filter is not provided, no filtering is
performed. If $filter is not provided, the unfiltered list includes all policy exemptions associated with the
scope, including those that apply directly or apply from containing scopes. If $filter=atScope() is provided,
the returned list only includes all policy exemptions that apply to the scope, which is everything in the
unfiltered list except those applied to sub scopes contained within the given scope. If
$filter=atExactScope() is provided, the returned list only includes all policy exemptions that at the given
scope. If $filter=excludeExpired() is provided, the returned list only includes all policy exemptions that
either haven't expired or didn't set expiration date. If $filter=policyAssignmentId eq '{value}' is provided.
the returned list only includes all policy exemptions that are associated with the give policyAssignmentId.context - The context to associate with this operation.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.PagedFlux<PolicyExemptionInner> listByResourceGroupAsync(String resourceGroupName, String filter)
resourceGroupName - The name of the resource group containing the resource.filter - The filter to apply on the operation. Valid values for $filter are: 'atScope()', 'atExactScope()',
'excludeExpired()' or 'policyAssignmentId eq '{value}''. If $filter is not provided, no filtering is
performed. If $filter is not provided, the unfiltered list includes all policy exemptions associated with the
scope, including those that apply directly or apply from containing scopes. If $filter=atScope() is provided,
the returned list only includes all policy exemptions that apply to the scope, which is everything in the
unfiltered list except those applied to sub scopes contained within the given scope. If
$filter=atExactScope() is provided, the returned list only includes all policy exemptions that at the given
scope. If $filter=excludeExpired() is provided, the returned list only includes all policy exemptions that
either haven't expired or didn't set expiration date. If $filter=policyAssignmentId eq '{value}' is provided.
the returned list only includes all policy exemptions that are associated with the give policyAssignmentId.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.PagedFlux<PolicyExemptionInner> listByResourceGroupAsync(String resourceGroupName)
listByResourceGroupAsync in interface InnerSupportsListing<PolicyExemptionInner>resourceGroupName - The name of the resource group containing the resource.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.PagedIterable<PolicyExemptionInner> listByResourceGroup(String resourceGroupName)
listByResourceGroup in interface InnerSupportsListing<PolicyExemptionInner>resourceGroupName - The name of the resource group containing the resource.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.PagedIterable<PolicyExemptionInner> listByResourceGroup(String resourceGroupName, String filter, com.azure.core.util.Context context)
resourceGroupName - The name of the resource group containing the resource.filter - The filter to apply on the operation. Valid values for $filter are: 'atScope()', 'atExactScope()',
'excludeExpired()' or 'policyAssignmentId eq '{value}''. If $filter is not provided, no filtering is
performed. If $filter is not provided, the unfiltered list includes all policy exemptions associated with the
scope, including those that apply directly or apply from containing scopes. If $filter=atScope() is provided,
the returned list only includes all policy exemptions that apply to the scope, which is everything in the
unfiltered list except those applied to sub scopes contained within the given scope. If
$filter=atExactScope() is provided, the returned list only includes all policy exemptions that at the given
scope. If $filter=excludeExpired() is provided, the returned list only includes all policy exemptions that
either haven't expired or didn't set expiration date. If $filter=policyAssignmentId eq '{value}' is provided.
the returned list only includes all policy exemptions that are associated with the give policyAssignmentId.context - The context to associate with this operation.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.PagedFlux<PolicyExemptionInner> listForResourceAsync(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String filter)
resourceGroupName - The name of the resource group containing the resource.resourceProviderNamespace - The namespace of the resource provider. For example, the namespace of a virtual
machine is Microsoft.Compute (from Microsoft.Compute/virtualMachines).parentResourcePath - The parent resource path. Use empty string if there is none.resourceType - The resource type name. For example the type name of a web app is 'sites' (from
Microsoft.Web/sites).resourceName - The name of the resource.filter - The filter to apply on the operation. Valid values for $filter are: 'atScope()', 'atExactScope()',
'excludeExpired()' or 'policyAssignmentId eq '{value}''. If $filter is not provided, no filtering is
performed. If $filter is not provided, the unfiltered list includes all policy exemptions associated with the
scope, including those that apply directly or apply from containing scopes. If $filter=atScope() is provided,
the returned list only includes all policy exemptions that apply to the scope, which is everything in the
unfiltered list except those applied to sub scopes contained within the given scope. If
$filter=atExactScope() is provided, the returned list only includes all policy exemptions that at the given
scope. If $filter=excludeExpired() is provided, the returned list only includes all policy exemptions that
either haven't expired or didn't set expiration date. If $filter=policyAssignmentId eq '{value}' is provided.
the returned list only includes all policy exemptions that are associated with the give policyAssignmentId.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.PagedFlux<PolicyExemptionInner> listForResourceAsync(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName)
resourceGroupName - The name of the resource group containing the resource.resourceProviderNamespace - The namespace of the resource provider. For example, the namespace of a virtual
machine is Microsoft.Compute (from Microsoft.Compute/virtualMachines).parentResourcePath - The parent resource path. Use empty string if there is none.resourceType - The resource type name. For example the type name of a web app is 'sites' (from
Microsoft.Web/sites).resourceName - The name of the resource.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.PagedIterable<PolicyExemptionInner> listForResource(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName)
resourceGroupName - The name of the resource group containing the resource.resourceProviderNamespace - The namespace of the resource provider. For example, the namespace of a virtual
machine is Microsoft.Compute (from Microsoft.Compute/virtualMachines).parentResourcePath - The parent resource path. Use empty string if there is none.resourceType - The resource type name. For example the type name of a web app is 'sites' (from
Microsoft.Web/sites).resourceName - The name of the resource.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.PagedIterable<PolicyExemptionInner> listForResource(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String filter, com.azure.core.util.Context context)
resourceGroupName - The name of the resource group containing the resource.resourceProviderNamespace - The namespace of the resource provider. For example, the namespace of a virtual
machine is Microsoft.Compute (from Microsoft.Compute/virtualMachines).parentResourcePath - The parent resource path. Use empty string if there is none.resourceType - The resource type name. For example the type name of a web app is 'sites' (from
Microsoft.Web/sites).resourceName - The name of the resource.filter - The filter to apply on the operation. Valid values for $filter are: 'atScope()', 'atExactScope()',
'excludeExpired()' or 'policyAssignmentId eq '{value}''. If $filter is not provided, no filtering is
performed. If $filter is not provided, the unfiltered list includes all policy exemptions associated with the
scope, including those that apply directly or apply from containing scopes. If $filter=atScope() is provided,
the returned list only includes all policy exemptions that apply to the scope, which is everything in the
unfiltered list except those applied to sub scopes contained within the given scope. If
$filter=atExactScope() is provided, the returned list only includes all policy exemptions that at the given
scope. If $filter=excludeExpired() is provided, the returned list only includes all policy exemptions that
either haven't expired or didn't set expiration date. If $filter=policyAssignmentId eq '{value}' is provided.
the returned list only includes all policy exemptions that are associated with the give policyAssignmentId.context - The context to associate with this operation.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.PagedFlux<PolicyExemptionInner> listForManagementGroupAsync(String managementGroupId, String filter)
managementGroupId - The ID of the management group.filter - The filter to apply on the operation. Valid values for $filter are: 'atScope()', 'atExactScope()',
'excludeExpired()' or 'policyAssignmentId eq '{value}''. If $filter is not provided, no filtering is
performed. If $filter is not provided, the unfiltered list includes all policy exemptions associated with the
scope, including those that apply directly or apply from containing scopes. If $filter=atScope() is provided,
the returned list only includes all policy exemptions that apply to the scope, which is everything in the
unfiltered list except those applied to sub scopes contained within the given scope. If
$filter=atExactScope() is provided, the returned list only includes all policy exemptions that at the given
scope. If $filter=excludeExpired() is provided, the returned list only includes all policy exemptions that
either haven't expired or didn't set expiration date. If $filter=policyAssignmentId eq '{value}' is provided.
the returned list only includes all policy exemptions that are associated with the give policyAssignmentId.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.PagedFlux<PolicyExemptionInner> listForManagementGroupAsync(String managementGroupId)
managementGroupId - The ID of the management group.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.PagedIterable<PolicyExemptionInner> listForManagementGroup(String managementGroupId)
managementGroupId - The ID of the management group.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.PagedIterable<PolicyExemptionInner> listForManagementGroup(String managementGroupId, String filter, com.azure.core.util.Context context)
managementGroupId - The ID of the management group.filter - The filter to apply on the operation. Valid values for $filter are: 'atScope()', 'atExactScope()',
'excludeExpired()' or 'policyAssignmentId eq '{value}''. If $filter is not provided, no filtering is
performed. If $filter is not provided, the unfiltered list includes all policy exemptions associated with the
scope, including those that apply directly or apply from containing scopes. If $filter=atScope() is provided,
the returned list only includes all policy exemptions that apply to the scope, which is everything in the
unfiltered list except those applied to sub scopes contained within the given scope. If
$filter=atExactScope() is provided, the returned list only includes all policy exemptions that at the given
scope. If $filter=excludeExpired() is provided, the returned list only includes all policy exemptions that
either haven't expired or didn't set expiration date. If $filter=policyAssignmentId eq '{value}' is provided.
the returned list only includes all policy exemptions that are associated with the give policyAssignmentId.context - The context to associate with this operation.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.