Interface PolicyRestrictions
public interface PolicyRestrictions
Resource collection API of PolicyRestrictions.
-
Method Summary
Modifier and TypeMethodDescriptioncheckAtManagementGroupScope
(String managementGroupId, CheckManagementGroupRestrictionsRequest parameters) Checks what restrictions Azure Policy will place on resources within a management group.com.azure.core.http.rest.Response<CheckRestrictionsResult>
checkAtManagementGroupScopeWithResponse
(String managementGroupId, CheckManagementGroupRestrictionsRequest parameters, com.azure.core.util.Context context) Checks what restrictions Azure Policy will place on resources within a management group.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.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.
-
Method Details
-
checkAtSubscriptionScopeWithResponse
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.- Parameters:
parameters
- The check policy restrictions parameters.context
- The context to associate with this operation.- Returns:
- the result of a check policy restrictions evaluation on a resource along with
Response
. - Throws:
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.
-
checkAtSubscriptionScope
Checks what restrictions Azure Policy will place on a resource within a subscription.- Parameters:
parameters
- The check policy restrictions parameters.- Returns:
- the result of a check policy restrictions evaluation on a resource.
- Throws:
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.
-
checkAtResourceGroupScopeWithResponse
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. Use this when the resource group the resource will be created in is already known.- Parameters:
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.- Returns:
- the result of a check policy restrictions evaluation on a resource along with
Response
. - Throws:
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.
-
checkAtResourceGroupScope
CheckRestrictionsResult checkAtResourceGroupScope(String resourceGroupName, CheckRestrictionsRequest parameters) Checks what restrictions Azure Policy will place on a resource within a resource group. Use this when the resource group the resource will be created in is already known.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.parameters
- The check policy restrictions parameters.- Returns:
- the result of a check policy restrictions evaluation on a resource.
- Throws:
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.
-
checkAtManagementGroupScopeWithResponse
com.azure.core.http.rest.Response<CheckRestrictionsResult> checkAtManagementGroupScopeWithResponse(String managementGroupId, CheckManagementGroupRestrictionsRequest parameters, com.azure.core.util.Context context) Checks what restrictions Azure Policy will place on resources within a management group.- Parameters:
managementGroupId
- Management group ID.parameters
- The check policy restrictions parameters.context
- The context to associate with this operation.- Returns:
- the result of a check policy restrictions evaluation on a resource along with
Response
. - Throws:
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.
-
checkAtManagementGroupScope
CheckRestrictionsResult checkAtManagementGroupScope(String managementGroupId, CheckManagementGroupRestrictionsRequest parameters) Checks what restrictions Azure Policy will place on resources within a management group.- Parameters:
managementGroupId
- Management group ID.parameters
- The check policy restrictions parameters.- Returns:
- the result of a check policy restrictions evaluation on a resource.
- Throws:
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.
-