Interface JitNetworkAccessPoliciesClient


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

    • list

      com.azure.core.http.rest.PagedIterable<JitNetworkAccessPolicyInner> list()
      Policies for protecting resources using Just-in-Time access control.
      Returns:
      the paginated response with PagedIterable.
      Throws:
      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.
    • list

      com.azure.core.http.rest.PagedIterable<JitNetworkAccessPolicyInner> list(com.azure.core.util.Context context)
      Policies for protecting resources using Just-in-Time access control.
      Parameters:
      context - The context to associate with this operation.
      Returns:
      the paginated response with PagedIterable.
      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.
    • listByRegion

      com.azure.core.http.rest.PagedIterable<JitNetworkAccessPolicyInner> listByRegion(String ascLocation)
      Policies for protecting resources using Just-in-Time access control for the subscription, location.
      Parameters:
      ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations.
      Returns:
      the paginated response with PagedIterable.
      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.
    • listByRegion

      com.azure.core.http.rest.PagedIterable<JitNetworkAccessPolicyInner> listByRegion(String ascLocation, com.azure.core.util.Context context)
      Policies for protecting resources using Just-in-Time access control for the subscription, location.
      Parameters:
      ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations.
      context - The context to associate with this operation.
      Returns:
      the paginated response with PagedIterable.
      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.
    • listByResourceGroup

      com.azure.core.http.rest.PagedIterable<JitNetworkAccessPolicyInner> listByResourceGroup(String resourceGroupName)
      Policies for protecting resources using Just-in-Time access control for the subscription, location.
      Parameters:
      resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
      Returns:
      the paginated response with PagedIterable.
      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.
    • listByResourceGroup

      com.azure.core.http.rest.PagedIterable<JitNetworkAccessPolicyInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)
      Policies for protecting resources using Just-in-Time access control for the subscription, location.
      Parameters:
      resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
      context - The context to associate with this operation.
      Returns:
      the paginated response with PagedIterable.
      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.
    • listByResourceGroupAndRegion

      com.azure.core.http.rest.PagedIterable<JitNetworkAccessPolicyInner> listByResourceGroupAndRegion(String resourceGroupName, String ascLocation)
      Policies for protecting resources using Just-in-Time access control for the subscription, location.
      Parameters:
      resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
      ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations.
      Returns:
      the paginated response with PagedIterable.
      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.
    • listByResourceGroupAndRegion

      com.azure.core.http.rest.PagedIterable<JitNetworkAccessPolicyInner> listByResourceGroupAndRegion(String resourceGroupName, String ascLocation, com.azure.core.util.Context context)
      Policies for protecting resources using Just-in-Time access control for the subscription, location.
      Parameters:
      resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
      ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations.
      context - The context to associate with this operation.
      Returns:
      the paginated response with PagedIterable.
      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.
    • get

      JitNetworkAccessPolicyInner get(String resourceGroupName, String ascLocation, String jitNetworkAccessPolicyName)
      Policies for protecting resources using Just-in-Time access control for the subscription, location.
      Parameters:
      resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
      ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations.
      jitNetworkAccessPolicyName - Name of a Just-in-Time access configuration policy.
      Returns:
      the 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.
    • getWithResponse

      com.azure.core.http.rest.Response<JitNetworkAccessPolicyInner> getWithResponse(String resourceGroupName, String ascLocation, String jitNetworkAccessPolicyName, com.azure.core.util.Context context)
      Policies for protecting resources using Just-in-Time access control for the subscription, location.
      Parameters:
      resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
      ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations.
      jitNetworkAccessPolicyName - Name of a Just-in-Time access configuration policy.
      context - The context to associate with this operation.
      Returns:
      the response body 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.
    • createOrUpdate

      JitNetworkAccessPolicyInner createOrUpdate(String resourceGroupName, String ascLocation, String jitNetworkAccessPolicyName, JitNetworkAccessPolicyInner body)
      Create a policy for protecting resources using Just-in-Time access control.
      Parameters:
      resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
      ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations.
      jitNetworkAccessPolicyName - Name of a Just-in-Time access configuration policy.
      body - The body parameter.
      Returns:
      the 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.
    • createOrUpdateWithResponse

      com.azure.core.http.rest.Response<JitNetworkAccessPolicyInner> createOrUpdateWithResponse(String resourceGroupName, String ascLocation, String jitNetworkAccessPolicyName, JitNetworkAccessPolicyInner body, com.azure.core.util.Context context)
      Create a policy for protecting resources using Just-in-Time access control.
      Parameters:
      resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
      ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations.
      jitNetworkAccessPolicyName - Name of a Just-in-Time access configuration policy.
      body - The body parameter.
      context - The context to associate with this operation.
      Returns:
      the response body 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.
    • delete

      void delete(String resourceGroupName, String ascLocation, String jitNetworkAccessPolicyName)
      Delete a Just-in-Time access control policy.
      Parameters:
      resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
      ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations.
      jitNetworkAccessPolicyName - Name of a Just-in-Time access configuration policy.
      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.
    • deleteWithResponse

      com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String ascLocation, String jitNetworkAccessPolicyName, com.azure.core.util.Context context)
      Delete a Just-in-Time access control policy.
      Parameters:
      resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
      ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations.
      jitNetworkAccessPolicyName - Name of a Just-in-Time access configuration policy.
      context - The context to associate with this operation.
      Returns:
      the 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.
    • initiate

      JitNetworkAccessRequestInner initiate(String resourceGroupName, String ascLocation, String jitNetworkAccessPolicyName, JitNetworkAccessPolicyInitiateRequest body)
      Initiate a JIT access from a specific Just-in-Time policy configuration.
      Parameters:
      resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
      ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations.
      jitNetworkAccessPolicyName - Name of a Just-in-Time access configuration policy.
      body - The body parameter.
      Returns:
      the 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.
    • initiateWithResponse

      com.azure.core.http.rest.Response<JitNetworkAccessRequestInner> initiateWithResponse(String resourceGroupName, String ascLocation, String jitNetworkAccessPolicyName, JitNetworkAccessPolicyInitiateRequest body, com.azure.core.util.Context context)
      Initiate a JIT access from a specific Just-in-Time policy configuration.
      Parameters:
      resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
      ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations.
      jitNetworkAccessPolicyName - Name of a Just-in-Time access configuration policy.
      body - The body parameter.
      context - The context to associate with this operation.
      Returns:
      the response body 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.