public interface PolicyRestrictions
Modifier and Type | Method and Description |
---|---|
CheckRestrictionsResult |
checkAtResourceGroupScope(String resourceGroupName,
CheckRestrictionsRequest parameters)
Checks what restrictions Azure Policy will place on a resource within a resource group.
|
com.azure.core.http.rest.Response<CheckRestrictionsResult> |
checkAtResourceGroupScopeWithResponse(String resourceGroupName,
CheckRestrictionsRequest parameters,
com.azure.core.util.Context context)
Checks what restrictions Azure Policy will place on a resource within a resource group.
|
CheckRestrictionsResult |
checkAtSubscriptionScope(CheckRestrictionsRequest parameters)
Checks what restrictions Azure Policy will place on a resource within a subscription.
|
com.azure.core.http.rest.Response<CheckRestrictionsResult> |
checkAtSubscriptionScopeWithResponse(CheckRestrictionsRequest parameters,
com.azure.core.util.Context context)
Checks what restrictions Azure Policy will place on a resource within a subscription.
|
CheckRestrictionsResult checkAtSubscriptionScope(CheckRestrictionsRequest parameters)
parameters
- The check policy restrictions parameters.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<CheckRestrictionsResult> checkAtSubscriptionScopeWithResponse(CheckRestrictionsRequest parameters, com.azure.core.util.Context context)
parameters
- The check policy restrictions parameters.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.CheckRestrictionsResult checkAtResourceGroupScope(String resourceGroupName, CheckRestrictionsRequest parameters)
resourceGroupName
- The name of the resource group. The name is case insensitive.parameters
- The check policy restrictions parameters.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<CheckRestrictionsResult> checkAtResourceGroupScopeWithResponse(String resourceGroupName, CheckRestrictionsRequest parameters, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group. The name is case insensitive.parameters
- The check policy restrictions parameters.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.