Partager via


PolicyExemptionsClient Interface

Implements

public interface PolicyExemptionsClient
extends InnerSupportsListing<PolicyExemptionInner>, InnerSupportsDelete<Void>

An instance of this class provides access to all the operations defined in PolicyExemptionsClient.

Method Summary

Modifier and Type Method and Description
abstract PolicyExemptionInner createOrUpdate(String scope, String policyExemptionName, PolicyExemptionInner parameters)

Creates or updates a policy exemption.

abstract Mono<PolicyExemptionInner> createOrUpdateAsync(String scope, String policyExemptionName, PolicyExemptionInner parameters)

Creates or updates a policy exemption.

abstract Response<PolicyExemptionInner> createOrUpdateWithResponse(String scope, String policyExemptionName, PolicyExemptionInner parameters, Context context)

Creates or updates a policy exemption.

abstract Mono<Response<PolicyExemptionInner>> createOrUpdateWithResponseAsync(String scope, String policyExemptionName, PolicyExemptionInner parameters)

Creates or updates a policy exemption.

abstract void delete(String scope, String policyExemptionName)

Deletes a policy exemption.

abstract Mono<Void> deleteAsync(String scope, String policyExemptionName)

Deletes a policy exemption.

abstract Response<Void> deleteWithResponse(String scope, String policyExemptionName, Context context)

Deletes a policy exemption.

abstract Mono<Response<Void>> deleteWithResponseAsync(String scope, String policyExemptionName)

Deletes a policy exemption.

abstract PolicyExemptionInner get(String scope, String policyExemptionName)

Retrieves a policy exemption.

abstract Mono<PolicyExemptionInner> getAsync(String scope, String policyExemptionName)

Retrieves a policy exemption.

abstract Response<PolicyExemptionInner> getWithResponse(String scope, String policyExemptionName, Context context)

Retrieves a policy exemption.

abstract Mono<Response<PolicyExemptionInner>> getWithResponseAsync(String scope, String policyExemptionName)

Retrieves a policy exemption.

abstract PagedIterable<PolicyExemptionInner> list()

Retrieves all policy exemptions that apply to a subscription.

abstract PagedIterable<PolicyExemptionInner> list(String filter, Context context)

Retrieves all policy exemptions that apply to a subscription.

abstract PagedFlux<PolicyExemptionInner> listAsync()

Retrieves all policy exemptions that apply to a subscription.

abstract PagedFlux<PolicyExemptionInner> listAsync(String filter)

Retrieves all policy exemptions that apply to a subscription.

abstract PagedIterable<PolicyExemptionInner> listByResourceGroup(String resourceGroupName)

Retrieves all policy exemptions that apply to a resource group.

abstract PagedIterable<PolicyExemptionInner> listByResourceGroup(String resourceGroupName, String filter, Context context)

Retrieves all policy exemptions that apply to a resource group.

abstract PagedFlux<PolicyExemptionInner> listByResourceGroupAsync(String resourceGroupName)

Retrieves all policy exemptions that apply to a resource group.

abstract PagedFlux<PolicyExemptionInner> listByResourceGroupAsync(String resourceGroupName, String filter)

Retrieves all policy exemptions that apply to a resource group.

abstract PagedIterable<PolicyExemptionInner> listForManagementGroup(String managementGroupId)

Retrieves all policy exemptions that apply to a management group.

abstract PagedIterable<PolicyExemptionInner> listForManagementGroup(String managementGroupId, String filter, Context context)

Retrieves all policy exemptions that apply to a management group.

abstract PagedFlux<PolicyExemptionInner> listForManagementGroupAsync(String managementGroupId)

Retrieves all policy exemptions that apply to a management group.

abstract PagedFlux<PolicyExemptionInner> listForManagementGroupAsync(String managementGroupId, String filter)

Retrieves all policy exemptions that apply to a management group.

abstract PagedIterable<PolicyExemptionInner> listForResource(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName)

Retrieves all policy exemptions that apply to a resource.

abstract PagedIterable<PolicyExemptionInner> listForResource(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String filter, Context context)

Retrieves all policy exemptions that apply to a resource.

abstract PagedFlux<PolicyExemptionInner> listForResourceAsync(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName)

Retrieves all policy exemptions that apply to a resource.

abstract PagedFlux<PolicyExemptionInner> listForResourceAsync(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String filter)

Retrieves all policy exemptions that apply to a resource.

abstract PolicyExemptionInner update(String scope, String policyExemptionName, PolicyExemptionUpdate parameters)

Updates a policy exemption.

abstract Mono<PolicyExemptionInner> updateAsync(String scope, String policyExemptionName, PolicyExemptionUpdate parameters)

Updates a policy exemption.

abstract Response<PolicyExemptionInner> updateWithResponse(String scope, String policyExemptionName, PolicyExemptionUpdate parameters, Context context)

Updates a policy exemption.

abstract Mono<Response<PolicyExemptionInner>> updateWithResponseAsync(String scope, String policyExemptionName, PolicyExemptionUpdate parameters)

Updates a policy exemption.

Method Details

createOrUpdate

public abstract PolicyExemptionInner createOrUpdate(String scope, String policyExemptionName, PolicyExemptionInner parameters)

Creates or updates a policy exemption. This operation creates or updates a policy exemption with the given scope and name. Policy exemptions apply to all resources contained within their scope. For example, when you create a policy exemption at resource group scope for a policy assignment at the same or above level, the exemption exempts to all applicable resources in the resource group.

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.

Returns:

the policy exemption.

createOrUpdateAsync

public abstract Mono createOrUpdateAsync(String scope, String policyExemptionName, PolicyExemptionInner parameters)

Creates or updates a policy exemption. This operation creates or updates a policy exemption with the given scope and name. Policy exemptions apply to all resources contained within their scope. For example, when you create a policy exemption at resource group scope for a policy assignment at the same or above level, the exemption exempts to all applicable resources in the resource group.

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.

Returns:

the policy exemption on successful completion of Mono.

createOrUpdateWithResponse

public abstract Response createOrUpdateWithResponse(String scope, String policyExemptionName, PolicyExemptionInner parameters, Context context)

Creates or updates a policy exemption. This operation creates or updates a policy exemption with the given scope and name. Policy exemptions apply to all resources contained within their scope. For example, when you create a policy exemption at resource group scope for a policy assignment at the same or above level, the exemption exempts to all applicable resources in the resource group.

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.
context - The context to associate with this operation.

Returns:

the policy exemption along with Response<T>.

createOrUpdateWithResponseAsync

public abstract Mono> createOrUpdateWithResponseAsync(String scope, String policyExemptionName, PolicyExemptionInner parameters)

Creates or updates a policy exemption. This operation creates or updates a policy exemption with the given scope and name. Policy exemptions apply to all resources contained within their scope. For example, when you create a policy exemption at resource group scope for a policy assignment at the same or above level, the exemption exempts to all applicable resources in the resource group.

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.

Returns:

the policy exemption along with Response<T> on successful completion of Mono.

delete

public abstract void delete(String scope, String policyExemptionName)

Deletes a policy exemption. This operation deletes a policy exemption, given its name and the scope it was created in. The scope of a policy exemption is the part of its ID preceding '/providers/Microsoft.Authorization/policyExemptions/{policyExemptionName}'.

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.

deleteAsync

public abstract Mono deleteAsync(String scope, String policyExemptionName)

Deletes a policy exemption. This operation deletes a policy exemption, given its name and the scope it was created in. The scope of a policy exemption is the part of its ID preceding '/providers/Microsoft.Authorization/policyExemptions/{policyExemptionName}'.

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.

Returns:

A Mono that completes when a successful response is received.

deleteWithResponse

public abstract Response deleteWithResponse(String scope, String policyExemptionName, Context context)

Deletes a policy exemption. This operation deletes a policy exemption, given its name and the scope it was created in. The scope of a policy exemption is the part of its ID preceding '/providers/Microsoft.Authorization/policyExemptions/{policyExemptionName}'.

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.
context - The context to associate with this operation.

Returns:

deleteWithResponseAsync

public abstract Mono> deleteWithResponseAsync(String scope, String policyExemptionName)

Deletes a policy exemption. This operation deletes a policy exemption, given its name and the scope it was created in. The scope of a policy exemption is the part of its ID preceding '/providers/Microsoft.Authorization/policyExemptions/{policyExemptionName}'.

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.

Returns:

the Response<T> on successful completion of Mono.

get

public abstract PolicyExemptionInner get(String scope, String policyExemptionName)

Retrieves a policy exemption. This operation retrieves a single policy exemption, given its name and the scope it was created at.

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.

Returns:

the policy exemption.

getAsync

public abstract Mono getAsync(String scope, String policyExemptionName)

Retrieves a policy exemption. This operation retrieves a single policy exemption, given its name and the scope it was created at.

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.

Returns:

the policy exemption on successful completion of Mono.

getWithResponse

public abstract Response getWithResponse(String scope, String policyExemptionName, Context context)

Retrieves a policy exemption. This operation retrieves a single policy exemption, given its name and the scope it was created at.

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.
context - The context to associate with this operation.

Returns:

the policy exemption along with Response<T>.

getWithResponseAsync

public abstract Mono> getWithResponseAsync(String scope, String policyExemptionName)

Retrieves a policy exemption. This operation retrieves a single policy exemption, given its name and the scope it was created at.

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.

Returns:

the policy exemption along with Response<T> on successful completion of Mono.

list

public abstract PagedIterable list()

Retrieves all policy exemptions that apply to a subscription. This operation retrieves the list of all policy exemptions associated with the given subscription that match the optional given $filter. Valid values for $filter are: 'atScope()', 'atExactScope()', 'excludeExpired()' or 'policyAssignmentId eq '{value}''. If $filter is not provided, the unfiltered list includes all policy exemptions associated with the subscription, including those that apply directly or from management groups that contain the given subscription, as well as any applied to objects contained within the subscription.

Returns:

list of policy exemptions as paginated response with PagedIterable<T>.

list

public abstract PagedIterable list(String filter, Context context)

Retrieves all policy exemptions that apply to a subscription. This operation retrieves the list of all policy exemptions associated with the given subscription that match the optional given $filter. Valid values for $filter are: 'atScope()', 'atExactScope()', 'excludeExpired()' or 'policyAssignmentId eq '{value}''. If $filter is not provided, the unfiltered list includes all policy exemptions associated with the subscription, including those that apply directly or from management groups that contain the given subscription, as well as any applied to objects contained within the subscription.

Parameters:

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.

Returns:

list of policy exemptions as paginated response with PagedIterable<T>.

listAsync

public abstract PagedFlux listAsync()

Retrieves all policy exemptions that apply to a subscription. This operation retrieves the list of all policy exemptions associated with the given subscription that match the optional given $filter. Valid values for $filter are: 'atScope()', 'atExactScope()', 'excludeExpired()' or 'policyAssignmentId eq '{value}''. If $filter is not provided, the unfiltered list includes all policy exemptions associated with the subscription, including those that apply directly or from management groups that contain the given subscription, as well as any applied to objects contained within the subscription.

Returns:

list of policy exemptions as paginated response with PagedFlux<T>.

listAsync

public abstract PagedFlux listAsync(String filter)

Retrieves all policy exemptions that apply to a subscription. This operation retrieves the list of all policy exemptions associated with the given subscription that match the optional given $filter. Valid values for $filter are: 'atScope()', 'atExactScope()', 'excludeExpired()' or 'policyAssignmentId eq '{value}''. If $filter is not provided, the unfiltered list includes all policy exemptions associated with the subscription, including those that apply directly or from management groups that contain the given subscription, as well as any applied to objects contained within the subscription.

Parameters:

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.

Returns:

list of policy exemptions as paginated response with PagedFlux<T>.

listByResourceGroup

public abstract PagedIterable listByResourceGroup(String resourceGroupName)

Retrieves all policy exemptions that apply to a resource group. 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. Valid values for $filter are: 'atScope()', 'atExactScope()', 'excludeExpired()' or 'policyAssignmentId eq '{value}''. If $filter is not provided, the unfiltered list includes all policy exemptions associated with the resource group, including those that apply directly or apply from containing scopes, as well as any applied to resources contained within the resource group.

Parameters:

resourceGroupName - The name of the resource group containing the resource.

Returns:

list of policy exemptions as paginated response with PagedIterable<T>.

listByResourceGroup

public abstract PagedIterable listByResourceGroup(String resourceGroupName, String filter, Context context)

Retrieves all policy exemptions that apply to a resource group. 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. Valid values for $filter are: 'atScope()', 'atExactScope()', 'excludeExpired()' or 'policyAssignmentId eq '{value}''. If $filter is not provided, the unfiltered list includes all policy exemptions associated with the resource group, including those that apply directly or apply from containing scopes, as well as any applied to resources contained within the resource group.

Parameters:

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.

Returns:

list of policy exemptions as paginated response with PagedIterable<T>.

listByResourceGroupAsync

public abstract PagedFlux listByResourceGroupAsync(String resourceGroupName)

Retrieves all policy exemptions that apply to a resource group. 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. Valid values for $filter are: 'atScope()', 'atExactScope()', 'excludeExpired()' or 'policyAssignmentId eq '{value}''. If $filter is not provided, the unfiltered list includes all policy exemptions associated with the resource group, including those that apply directly or apply from containing scopes, as well as any applied to resources contained within the resource group.

Parameters:

resourceGroupName - The name of the resource group containing the resource.

Returns:

list of policy exemptions as paginated response with PagedFlux<T>.

listByResourceGroupAsync

public abstract PagedFlux listByResourceGroupAsync(String resourceGroupName, String filter)

Retrieves all policy exemptions that apply to a resource group. 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. Valid values for $filter are: 'atScope()', 'atExactScope()', 'excludeExpired()' or 'policyAssignmentId eq '{value}''. If $filter is not provided, the unfiltered list includes all policy exemptions associated with the resource group, including those that apply directly or apply from containing scopes, as well as any applied to resources contained within the resource group.

Parameters:

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.

Returns:

list of policy exemptions as paginated response with PagedFlux<T>.

listForManagementGroup

public abstract PagedIterable listForManagementGroup(String managementGroupId)

Retrieves all policy exemptions that apply to a management group. This operation retrieves the list of all policy exemptions applicable to the management group that match the given $filter. Valid values for $filter are: 'atScope()', 'atExactScope()', 'excludeExpired()' or 'policyAssignmentId eq '{value}''. If $filter=atScope() is provided, the returned list includes all policy exemptions that are assigned to the management group or the management group's ancestors.

Parameters:

managementGroupId - The ID of the management group.

Returns:

list of policy exemptions as paginated response with PagedIterable<T>.

listForManagementGroup

public abstract PagedIterable listForManagementGroup(String managementGroupId, String filter, Context context)

Retrieves all policy exemptions that apply to a management group. This operation retrieves the list of all policy exemptions applicable to the management group that match the given $filter. Valid values for $filter are: 'atScope()', 'atExactScope()', 'excludeExpired()' or 'policyAssignmentId eq '{value}''. If $filter=atScope() is provided, the returned list includes all policy exemptions that are assigned to the management group or the management group's ancestors.

Parameters:

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.

Returns:

list of policy exemptions as paginated response with PagedIterable<T>.

listForManagementGroupAsync

public abstract PagedFlux listForManagementGroupAsync(String managementGroupId)

Retrieves all policy exemptions that apply to a management group. This operation retrieves the list of all policy exemptions applicable to the management group that match the given $filter. Valid values for $filter are: 'atScope()', 'atExactScope()', 'excludeExpired()' or 'policyAssignmentId eq '{value}''. If $filter=atScope() is provided, the returned list includes all policy exemptions that are assigned to the management group or the management group's ancestors.

Parameters:

managementGroupId - The ID of the management group.

Returns:

list of policy exemptions as paginated response with PagedFlux<T>.

listForManagementGroupAsync

public abstract PagedFlux listForManagementGroupAsync(String managementGroupId, String filter)

Retrieves all policy exemptions that apply to a management group. This operation retrieves the list of all policy exemptions applicable to the management group that match the given $filter. Valid values for $filter are: 'atScope()', 'atExactScope()', 'excludeExpired()' or 'policyAssignmentId eq '{value}''. If $filter=atScope() is provided, the returned list includes all policy exemptions that are assigned to the management group or the management group's ancestors.

Parameters:

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.

Returns:

list of policy exemptions as paginated response with PagedFlux<T>.

listForResource

public abstract PagedIterable listForResource(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName)

Retrieves all policy exemptions that apply to a resource. 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. Valid values for $filter are: 'atScope()', 'atExactScope()', 'excludeExpired()' or 'policyAssignmentId eq '{value}''. If $filter is not provided, the unfiltered list includes all policy exemptions associated with the resource, including those that apply directly or from all containing scopes, as well as any applied to resources contained within the resource. Three parameters plus the resource name are used to identify a specific resource. If the resource is not part of a parent resource (the more common case), the parent resource path should not be provided (or provided as ''). For example a web app could be specified as ({resourceProviderNamespace} == 'Microsoft.Web', {parentResourcePath} == '', {resourceType} == 'sites', {resourceName} == 'MyWebApp'). If the resource is part of a parent resource, then all parameters should be provided. For example a virtual machine DNS name could be specified as ({resourceProviderNamespace} == 'Microsoft.Compute', {parentResourcePath} == 'virtualMachines/MyVirtualMachine', {resourceType} == 'domainNames', {resourceName} == 'MyComputerName'). A convenient alternative to providing the namespace and type name separately is to provide both in the {resourceType} parameter, format: ({resourceProviderNamespace} == '', {parentResourcePath} == '', {resourceType} == 'Microsoft.Web/sites', {resourceName} == 'MyWebApp').

Parameters:

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.

Returns:

list of policy exemptions as paginated response with PagedIterable<T>.

listForResource

public abstract PagedIterable listForResource(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String filter, Context context)

Retrieves all policy exemptions that apply to a resource. 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. Valid values for $filter are: 'atScope()', 'atExactScope()', 'excludeExpired()' or 'policyAssignmentId eq '{value}''. If $filter is not provided, the unfiltered list includes all policy exemptions associated with the resource, including those that apply directly or from all containing scopes, as well as any applied to resources contained within the resource. Three parameters plus the resource name are used to identify a specific resource. If the resource is not part of a parent resource (the more common case), the parent resource path should not be provided (or provided as ''). For example a web app could be specified as ({resourceProviderNamespace} == 'Microsoft.Web', {parentResourcePath} == '', {resourceType} == 'sites', {resourceName} == 'MyWebApp'). If the resource is part of a parent resource, then all parameters should be provided. For example a virtual machine DNS name could be specified as ({resourceProviderNamespace} == 'Microsoft.Compute', {parentResourcePath} == 'virtualMachines/MyVirtualMachine', {resourceType} == 'domainNames', {resourceName} == 'MyComputerName'). A convenient alternative to providing the namespace and type name separately is to provide both in the {resourceType} parameter, format: ({resourceProviderNamespace} == '', {parentResourcePath} == '', {resourceType} == 'Microsoft.Web/sites', {resourceName} == 'MyWebApp').

Parameters:

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.

Returns:

list of policy exemptions as paginated response with PagedIterable<T>.

listForResourceAsync

public abstract PagedFlux listForResourceAsync(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName)

Retrieves all policy exemptions that apply to a resource. 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. Valid values for $filter are: 'atScope()', 'atExactScope()', 'excludeExpired()' or 'policyAssignmentId eq '{value}''. If $filter is not provided, the unfiltered list includes all policy exemptions associated with the resource, including those that apply directly or from all containing scopes, as well as any applied to resources contained within the resource. Three parameters plus the resource name are used to identify a specific resource. If the resource is not part of a parent resource (the more common case), the parent resource path should not be provided (or provided as ''). For example a web app could be specified as ({resourceProviderNamespace} == 'Microsoft.Web', {parentResourcePath} == '', {resourceType} == 'sites', {resourceName} == 'MyWebApp'). If the resource is part of a parent resource, then all parameters should be provided. For example a virtual machine DNS name could be specified as ({resourceProviderNamespace} == 'Microsoft.Compute', {parentResourcePath} == 'virtualMachines/MyVirtualMachine', {resourceType} == 'domainNames', {resourceName} == 'MyComputerName'). A convenient alternative to providing the namespace and type name separately is to provide both in the {resourceType} parameter, format: ({resourceProviderNamespace} == '', {parentResourcePath} == '', {resourceType} == 'Microsoft.Web/sites', {resourceName} == 'MyWebApp').

Parameters:

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.

Returns:

list of policy exemptions as paginated response with PagedFlux<T>.

listForResourceAsync

public abstract PagedFlux listForResourceAsync(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String filter)

Retrieves all policy exemptions that apply to a resource. 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. Valid values for $filter are: 'atScope()', 'atExactScope()', 'excludeExpired()' or 'policyAssignmentId eq '{value}''. If $filter is not provided, the unfiltered list includes all policy exemptions associated with the resource, including those that apply directly or from all containing scopes, as well as any applied to resources contained within the resource. Three parameters plus the resource name are used to identify a specific resource. If the resource is not part of a parent resource (the more common case), the parent resource path should not be provided (or provided as ''). For example a web app could be specified as ({resourceProviderNamespace} == 'Microsoft.Web', {parentResourcePath} == '', {resourceType} == 'sites', {resourceName} == 'MyWebApp'). If the resource is part of a parent resource, then all parameters should be provided. For example a virtual machine DNS name could be specified as ({resourceProviderNamespace} == 'Microsoft.Compute', {parentResourcePath} == 'virtualMachines/MyVirtualMachine', {resourceType} == 'domainNames', {resourceName} == 'MyComputerName'). A convenient alternative to providing the namespace and type name separately is to provide both in the {resourceType} parameter, format: ({resourceProviderNamespace} == '', {parentResourcePath} == '', {resourceType} == 'Microsoft.Web/sites', {resourceName} == 'MyWebApp').

Parameters:

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.

Returns:

list of policy exemptions as paginated response with PagedFlux<T>.

update

public abstract PolicyExemptionInner update(String scope, String policyExemptionName, PolicyExemptionUpdate parameters)

Updates a policy exemption. This operation updates a policy exemption with the given scope and name.

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 policy exemption patch request.

Returns:

the policy exemption.

updateAsync

public abstract Mono updateAsync(String scope, String policyExemptionName, PolicyExemptionUpdate parameters)

Updates a policy exemption. This operation updates a policy exemption with the given scope and name.

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 policy exemption patch request.

Returns:

the policy exemption on successful completion of Mono.

updateWithResponse

public abstract Response updateWithResponse(String scope, String policyExemptionName, PolicyExemptionUpdate parameters, Context context)

Updates a policy exemption. This operation updates a policy exemption with the given scope and name.

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 policy exemption patch request.
context - The context to associate with this operation.

Returns:

the policy exemption along with Response<T>.

updateWithResponseAsync

public abstract Mono> updateWithResponseAsync(String scope, String policyExemptionName, PolicyExemptionUpdate parameters)

Updates a policy exemption. This operation updates a policy exemption with the given scope and name.

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 policy exemption patch request.

Returns:

the policy exemption along with Response<T> on successful completion of Mono.

Applies to