public interface PolicyAssignmentsClient extends InnerSupportsListing<PolicyAssignmentInner>, InnerSupportsDelete<PolicyAssignmentInner>
| Modifier and Type | Method and Description |
|---|---|
PolicyAssignmentInner |
create(String scope,
String policyAssignmentName,
PolicyAssignmentInner parameters)
This operation creates or updates a policy assignment with the given scope and name.
|
Mono<PolicyAssignmentInner> |
createAsync(String scope,
String policyAssignmentName,
PolicyAssignmentInner parameters)
This operation creates or updates a policy assignment with the given scope and name.
|
PolicyAssignmentInner |
createById(String policyAssignmentId,
PolicyAssignmentInner parameters)
This operation creates or updates the policy assignment with the given ID.
|
Mono<PolicyAssignmentInner> |
createByIdAsync(String policyAssignmentId,
PolicyAssignmentInner parameters)
This operation creates or updates the policy assignment with the given ID.
|
com.azure.core.http.rest.Response<PolicyAssignmentInner> |
createByIdWithResponse(String policyAssignmentId,
PolicyAssignmentInner parameters,
com.azure.core.util.Context context)
This operation creates or updates the policy assignment with the given ID.
|
Mono<com.azure.core.http.rest.Response<PolicyAssignmentInner>> |
createByIdWithResponseAsync(String policyAssignmentId,
PolicyAssignmentInner parameters)
This operation creates or updates the policy assignment with the given ID.
|
com.azure.core.http.rest.Response<PolicyAssignmentInner> |
createWithResponse(String scope,
String policyAssignmentName,
PolicyAssignmentInner parameters,
com.azure.core.util.Context context)
This operation creates or updates a policy assignment with the given scope and name.
|
Mono<com.azure.core.http.rest.Response<PolicyAssignmentInner>> |
createWithResponseAsync(String scope,
String policyAssignmentName,
PolicyAssignmentInner parameters)
This operation creates or updates a policy assignment with the given scope and name.
|
PolicyAssignmentInner |
delete(String scope,
String policyAssignmentName)
This operation deletes a policy assignment, given its name and the scope it was created in.
|
Mono<PolicyAssignmentInner> |
deleteAsync(String scope,
String policyAssignmentName)
This operation deletes a policy assignment, given its name and the scope it was created in.
|
PolicyAssignmentInner |
deleteById(String policyAssignmentId)
This operation deletes the policy with the given ID.
|
Mono<PolicyAssignmentInner> |
deleteByIdAsync(String policyAssignmentId)
This operation deletes the policy with the given ID.
|
com.azure.core.http.rest.Response<PolicyAssignmentInner> |
deleteByIdWithResponse(String policyAssignmentId,
com.azure.core.util.Context context)
This operation deletes the policy with the given ID.
|
Mono<com.azure.core.http.rest.Response<PolicyAssignmentInner>> |
deleteByIdWithResponseAsync(String policyAssignmentId)
This operation deletes the policy with the given ID.
|
com.azure.core.http.rest.Response<PolicyAssignmentInner> |
deleteWithResponse(String scope,
String policyAssignmentName,
com.azure.core.util.Context context)
This operation deletes a policy assignment, given its name and the scope it was created in.
|
Mono<com.azure.core.http.rest.Response<PolicyAssignmentInner>> |
deleteWithResponseAsync(String scope,
String policyAssignmentName)
This operation deletes a policy assignment, given its name and the scope it was created in.
|
PolicyAssignmentInner |
get(String scope,
String policyAssignmentName)
This operation retrieves a single policy assignment, given its name and the scope it was created at.
|
Mono<PolicyAssignmentInner> |
getAsync(String scope,
String policyAssignmentName)
This operation retrieves a single policy assignment, given its name and the scope it was created at.
|
PolicyAssignmentInner |
getById(String policyAssignmentId)
The operation retrieves the policy assignment with the given ID.
|
Mono<PolicyAssignmentInner> |
getByIdAsync(String policyAssignmentId)
The operation retrieves the policy assignment with the given ID.
|
com.azure.core.http.rest.Response<PolicyAssignmentInner> |
getByIdWithResponse(String policyAssignmentId,
com.azure.core.util.Context context)
The operation retrieves the policy assignment with the given ID.
|
Mono<com.azure.core.http.rest.Response<PolicyAssignmentInner>> |
getByIdWithResponseAsync(String policyAssignmentId)
The operation retrieves the policy assignment with the given ID.
|
com.azure.core.http.rest.Response<PolicyAssignmentInner> |
getWithResponse(String scope,
String policyAssignmentName,
com.azure.core.util.Context context)
This operation retrieves a single policy assignment, given its name and the scope it was created at.
|
Mono<com.azure.core.http.rest.Response<PolicyAssignmentInner>> |
getWithResponseAsync(String scope,
String policyAssignmentName)
This operation retrieves a single policy assignment, given its name and the scope it was created at.
|
com.azure.core.http.rest.PagedIterable<PolicyAssignmentInner> |
list()
This operation retrieves the list of all policy assignments associated with the given subscription that match the
optional given $filter.
|
com.azure.core.http.rest.PagedIterable<PolicyAssignmentInner> |
list(String filter,
com.azure.core.util.Context context)
This operation retrieves the list of all policy assignments associated with the given subscription that match the
optional given $filter.
|
com.azure.core.http.rest.PagedFlux<PolicyAssignmentInner> |
listAsync()
This operation retrieves the list of all policy assignments associated with the given subscription that match the
optional given $filter.
|
com.azure.core.http.rest.PagedFlux<PolicyAssignmentInner> |
listAsync(String filter)
This operation retrieves the list of all policy assignments associated with the given subscription that match the
optional given $filter.
|
com.azure.core.http.rest.PagedIterable<PolicyAssignmentInner> |
listByResourceGroup(String resourceGroupName)
This operation retrieves the list of all policy assignments associated with the given resource group in the given
subscription that match the optional given $filter.
|
com.azure.core.http.rest.PagedIterable<PolicyAssignmentInner> |
listByResourceGroup(String resourceGroupName,
String filter,
com.azure.core.util.Context context)
This operation retrieves the list of all policy assignments associated with the given resource group in the given
subscription that match the optional given $filter.
|
com.azure.core.http.rest.PagedFlux<PolicyAssignmentInner> |
listByResourceGroupAsync(String resourceGroupName)
This operation retrieves the list of all policy assignments associated with the given resource group in the given
subscription that match the optional given $filter.
|
com.azure.core.http.rest.PagedFlux<PolicyAssignmentInner> |
listByResourceGroupAsync(String resourceGroupName,
String filter)
This operation retrieves the list of all policy assignments associated with the given resource group in the given
subscription that match the optional given $filter.
|
com.azure.core.http.rest.PagedIterable<PolicyAssignmentInner> |
listForManagementGroup(String managementGroupId,
String filter)
This operation retrieves the list of all policy assignments applicable to the management group that match the
given $filter.
|
com.azure.core.http.rest.PagedIterable<PolicyAssignmentInner> |
listForManagementGroup(String managementGroupId,
String filter,
com.azure.core.util.Context context)
This operation retrieves the list of all policy assignments applicable to the management group that match the
given $filter.
|
com.azure.core.http.rest.PagedFlux<PolicyAssignmentInner> |
listForManagementGroupAsync(String managementGroupId,
String filter)
This operation retrieves the list of all policy assignments applicable to the management group that match the
given $filter.
|
com.azure.core.http.rest.PagedIterable<PolicyAssignmentInner> |
listForResource(String resourceGroupName,
String resourceProviderNamespace,
String parentResourcePath,
String resourceType,
String resourceName)
This operation retrieves the list of all policy assignments associated with the specified resource in the given
resource group and subscription that match the optional given $filter.
|
com.azure.core.http.rest.PagedIterable<PolicyAssignmentInner> |
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 assignments associated with the specified resource in the given
resource group and subscription that match the optional given $filter.
|
com.azure.core.http.rest.PagedFlux<PolicyAssignmentInner> |
listForResourceAsync(String resourceGroupName,
String resourceProviderNamespace,
String parentResourcePath,
String resourceType,
String resourceName)
This operation retrieves the list of all policy assignments associated with the specified resource in the given
resource group and subscription that match the optional given $filter.
|
com.azure.core.http.rest.PagedFlux<PolicyAssignmentInner> |
listForResourceAsync(String resourceGroupName,
String resourceProviderNamespace,
String parentResourcePath,
String resourceType,
String resourceName,
String filter)
This operation retrieves the list of all policy assignments 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<PolicyAssignmentInner>> deleteWithResponseAsync(String scope, String policyAssignmentName)
scope - The scope of the policy assignment. 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}'.policyAssignmentName - The name of the policy assignment 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<PolicyAssignmentInner> deleteAsync(String scope, String policyAssignmentName)
deleteAsync in interface InnerSupportsDelete<PolicyAssignmentInner>scope - The scope of the policy assignment. 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}'.policyAssignmentName - The name of the policy assignment 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.PolicyAssignmentInner delete(String scope, String policyAssignmentName)
scope - The scope of the policy assignment. 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}'.policyAssignmentName - The name of the policy assignment 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<PolicyAssignmentInner> deleteWithResponse(String scope, String policyAssignmentName, com.azure.core.util.Context context)
scope - The scope of the policy assignment. 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}'.policyAssignmentName - The name of the policy assignment 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<PolicyAssignmentInner>> createWithResponseAsync(String scope, String policyAssignmentName, PolicyAssignmentInner parameters)
scope - The scope of the policy assignment. 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}'.policyAssignmentName - The name of the policy assignment.parameters - The policy assignment.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<PolicyAssignmentInner> createAsync(String scope, String policyAssignmentName, PolicyAssignmentInner parameters)
scope - The scope of the policy assignment. 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}'.policyAssignmentName - The name of the policy assignment.parameters - The policy assignment.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.PolicyAssignmentInner create(String scope, String policyAssignmentName, PolicyAssignmentInner parameters)
scope - The scope of the policy assignment. 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}'.policyAssignmentName - The name of the policy assignment.parameters - The policy assignment.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<PolicyAssignmentInner> createWithResponse(String scope, String policyAssignmentName, PolicyAssignmentInner parameters, com.azure.core.util.Context context)
scope - The scope of the policy assignment. 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}'.policyAssignmentName - The name of the policy assignment.parameters - The policy assignment.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<PolicyAssignmentInner>> getWithResponseAsync(String scope, String policyAssignmentName)
scope - The scope of the policy assignment. 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}'.policyAssignmentName - The name of the policy assignment to get.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<PolicyAssignmentInner> getAsync(String scope, String policyAssignmentName)
scope - The scope of the policy assignment. 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}'.policyAssignmentName - The name of the policy assignment to get.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.PolicyAssignmentInner get(String scope, String policyAssignmentName)
scope - The scope of the policy assignment. 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}'.policyAssignmentName - The name of the policy assignment to get.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<PolicyAssignmentInner> getWithResponse(String scope, String policyAssignmentName, com.azure.core.util.Context context)
scope - The scope of the policy assignment. 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}'.policyAssignmentName - The name of the policy assignment to get.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<PolicyAssignmentInner> listByResourceGroupAsync(String resourceGroupName, String filter)
resourceGroupName - The name of the resource group that contains policy assignments.filter - The filter to apply on the operation. Valid values for $filter are: 'atScope()' or
'policyDefinitionId eq '{value}''. If $filter is not provided, no filtering is performed.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<PolicyAssignmentInner> listByResourceGroupAsync(String resourceGroupName)
listByResourceGroupAsync in interface InnerSupportsListing<PolicyAssignmentInner>resourceGroupName - The name of the resource group that contains policy assignments.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<PolicyAssignmentInner> listByResourceGroup(String resourceGroupName, String filter, com.azure.core.util.Context context)
resourceGroupName - The name of the resource group that contains policy assignments.filter - The filter to apply on the operation. Valid values for $filter are: 'atScope()' or
'policyDefinitionId eq '{value}''. If $filter is not provided, no filtering is performed.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.PagedIterable<PolicyAssignmentInner> listByResourceGroup(String resourceGroupName)
listByResourceGroup in interface InnerSupportsListing<PolicyAssignmentInner>resourceGroupName - The name of the resource group that contains policy assignments.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<PolicyAssignmentInner> 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()' or
'policyDefinitionId eq '{value}''. If $filter is not provided, no filtering is performed.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<PolicyAssignmentInner> 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<PolicyAssignmentInner> 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()' or
'policyDefinitionId eq '{value}''. If $filter is not provided, no filtering is performed.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.PagedIterable<PolicyAssignmentInner> 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.PagedFlux<PolicyAssignmentInner> 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()' or
'policyDefinitionId eq '{value}''. A filter is required when listing policy assignments at management group
scope.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<PolicyAssignmentInner> listForManagementGroup(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()' or
'policyDefinitionId eq '{value}''. A filter is required when listing policy assignments at management group
scope.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<PolicyAssignmentInner> 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()' or
'policyDefinitionId eq '{value}''. A filter is required when listing policy assignments at management group
scope.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<PolicyAssignmentInner> listAsync(String filter)
filter - The filter to apply on the operation. Valid values for $filter are: 'atScope()' or
'policyDefinitionId eq '{value}''. If $filter is not provided, no filtering is performed.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<PolicyAssignmentInner> listAsync()
listAsync in interface InnerSupportsListing<PolicyAssignmentInner>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<PolicyAssignmentInner> list(String filter, com.azure.core.util.Context context)
filter - The filter to apply on the operation. Valid values for $filter are: 'atScope()' or
'policyDefinitionId eq '{value}''. If $filter is not provided, no filtering is performed.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.PagedIterable<PolicyAssignmentInner> list()
list in interface InnerSupportsListing<PolicyAssignmentInner>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<PolicyAssignmentInner>> deleteByIdWithResponseAsync(String policyAssignmentId)
policyAssignmentId - The ID of the policy assignment to delete. Use the format
'{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'.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<PolicyAssignmentInner> deleteByIdAsync(String policyAssignmentId)
policyAssignmentId - The ID of the policy assignment to delete. Use the format
'{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'.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.PolicyAssignmentInner deleteById(String policyAssignmentId)
policyAssignmentId - The ID of the policy assignment to delete. Use the format
'{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'.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<PolicyAssignmentInner> deleteByIdWithResponse(String policyAssignmentId, com.azure.core.util.Context context)
policyAssignmentId - The ID of the policy assignment to delete. Use the format
'{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'.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<PolicyAssignmentInner>> createByIdWithResponseAsync(String policyAssignmentId, PolicyAssignmentInner parameters)
policyAssignmentId - The ID of the policy assignment to create. Use the format
'{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'.parameters - The policy assignment.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<PolicyAssignmentInner> createByIdAsync(String policyAssignmentId, PolicyAssignmentInner parameters)
policyAssignmentId - The ID of the policy assignment to create. Use the format
'{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'.parameters - The policy assignment.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.PolicyAssignmentInner createById(String policyAssignmentId, PolicyAssignmentInner parameters)
policyAssignmentId - The ID of the policy assignment to create. Use the format
'{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'.parameters - The policy assignment.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<PolicyAssignmentInner> createByIdWithResponse(String policyAssignmentId, PolicyAssignmentInner parameters, com.azure.core.util.Context context)
policyAssignmentId - The ID of the policy assignment to create. Use the format
'{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'.parameters - The policy assignment.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<PolicyAssignmentInner>> getByIdWithResponseAsync(String policyAssignmentId)
policyAssignmentId - The ID of the policy assignment to get. Use the format
'{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'.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<PolicyAssignmentInner> getByIdAsync(String policyAssignmentId)
policyAssignmentId - The ID of the policy assignment to get. Use the format
'{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'.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.PolicyAssignmentInner getById(String policyAssignmentId)
policyAssignmentId - The ID of the policy assignment to get. Use the format
'{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'.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<PolicyAssignmentInner> getByIdWithResponse(String policyAssignmentId, com.azure.core.util.Context context)
policyAssignmentId - The ID of the policy assignment to get. Use the format
'{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'.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.Copyright © 2021 Microsoft Corporation. All rights reserved.