Interface PolicyRestrictionsClient


  • public interface PolicyRestrictionsClient
    An instance of this class provides access to all the operations defined in PolicyRestrictionsClient.
    • Method Detail

      • checkAtSubscriptionScope

        CheckRestrictionsResultInner checkAtSubscriptionScope​(CheckRestrictionsRequest parameters)
        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.
      • checkAtSubscriptionScopeWithResponse

        com.azure.core.http.rest.Response<CheckRestrictionsResultInner> 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.
        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

        CheckRestrictionsResultInner 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.
      • checkAtResourceGroupScopeWithResponse

        com.azure.core.http.rest.Response<CheckRestrictionsResultInner> 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.
        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.