Interface JitNetworkAccessPolicies


public interface JitNetworkAccessPolicies
Resource collection API of JitNetworkAccessPolicies.
  • Method Details

    • list

      com.azure.core.http.rest.PagedIterable<JitNetworkAccessPolicy> 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<JitNetworkAccessPolicy> 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<JitNetworkAccessPolicy> 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<JitNetworkAccessPolicy> 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<JitNetworkAccessPolicy> 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<JitNetworkAccessPolicy> 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<JitNetworkAccessPolicy> 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<JitNetworkAccessPolicy> 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

      JitNetworkAccessPolicy 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<JitNetworkAccessPolicy> 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.
    • 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

      JitNetworkAccessRequest 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<JitNetworkAccessRequest> 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.
    • getById

      Policies for protecting resources using Just-in-Time access control for the subscription, location.
      Parameters:
      id - the resource ID.
      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.
    • getByIdWithResponse

      com.azure.core.http.rest.Response<JitNetworkAccessPolicy> getByIdWithResponse(String id, com.azure.core.util.Context context)
      Policies for protecting resources using Just-in-Time access control for the subscription, location.
      Parameters:
      id - the resource ID.
      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.
    • deleteById

      void deleteById(String id)
      Delete a Just-in-Time access control policy.
      Parameters:
      id - the resource ID.
      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.
    • deleteByIdWithResponse

      com.azure.core.http.rest.Response<Void> deleteByIdWithResponse(String id, com.azure.core.util.Context context)
      Delete a Just-in-Time access control policy.
      Parameters:
      id - the resource ID.
      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.
    • define

      Begins definition for a new JitNetworkAccessPolicy resource.
      Parameters:
      name - resource name.
      Returns:
      the first stage of the new JitNetworkAccessPolicy definition.