Interface AutomationsClient


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

    • list

      com.azure.core.http.rest.PagedIterable<AutomationInner> list()
      Lists all the security automations in the specified subscription. Use the 'nextLink' property in the response to get the next page of security automations for the specified subscription.
      Returns:
      list of security automations response as 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<AutomationInner> list(com.azure.core.util.Context context)
      Lists all the security automations in the specified subscription. Use the 'nextLink' property in the response to get the next page of security automations for the specified subscription.
      Parameters:
      context - The context to associate with this operation.
      Returns:
      list of security automations response as 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<AutomationInner> listByResourceGroup(String resourceGroupName)
      Lists all the security automations in the specified resource group. Use the 'nextLink' property in the response to get the next page of security automations for the specified resource group.
      Parameters:
      resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
      Returns:
      list of security automations response as 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<AutomationInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)
      Lists all the security automations in the specified resource group. Use the 'nextLink' property in the response to get the next page of security automations for the specified resource group.
      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:
      list of security automations response as 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.
    • getByResourceGroup

      AutomationInner getByResourceGroup(String resourceGroupName, String automationName)
      Retrieves information about the model of a security automation.
      Parameters:
      resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
      automationName - The security automation name.
      Returns:
      the security automation 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.
    • getByResourceGroupWithResponse

      com.azure.core.http.rest.Response<AutomationInner> getByResourceGroupWithResponse(String resourceGroupName, String automationName, com.azure.core.util.Context context)
      Retrieves information about the model of a security automation.
      Parameters:
      resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
      automationName - The security automation name.
      context - The context to associate with this operation.
      Returns:
      the security automation 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.
    • createOrUpdate

      AutomationInner createOrUpdate(String resourceGroupName, String automationName, AutomationInner automation)
      Creates or updates a security automation. If a security automation is already created and a subsequent request is issued for the same automation id, then it will be updated.
      Parameters:
      resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
      automationName - The security automation name.
      automation - The security automation resource.
      Returns:
      the security automation 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.
    • createOrUpdateWithResponse

      com.azure.core.http.rest.Response<AutomationInner> createOrUpdateWithResponse(String resourceGroupName, String automationName, AutomationInner automation, com.azure.core.util.Context context)
      Creates or updates a security automation. If a security automation is already created and a subsequent request is issued for the same automation id, then it will be updated.
      Parameters:
      resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
      automationName - The security automation name.
      automation - The security automation resource.
      context - The context to associate with this operation.
      Returns:
      the security automation 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.
    • delete

      void delete(String resourceGroupName, String automationName)
      Deletes a security automation.
      Parameters:
      resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
      automationName - The security automation name.
      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 automationName, com.azure.core.util.Context context)
      Deletes a security automation.
      Parameters:
      resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
      automationName - The security automation name.
      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.
    • validate

      AutomationValidationStatusInner validate(String resourceGroupName, String automationName, AutomationInner automation)
      Validates the security automation model before create or update. Any validation errors are returned to the client.
      Parameters:
      resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
      automationName - The security automation name.
      automation - The security automation resource.
      Returns:
      the security automation model state property bag.
      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.
    • validateWithResponse

      com.azure.core.http.rest.Response<AutomationValidationStatusInner> validateWithResponse(String resourceGroupName, String automationName, AutomationInner automation, com.azure.core.util.Context context)
      Validates the security automation model before create or update. Any validation errors are returned to the client.
      Parameters:
      resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
      automationName - The security automation name.
      automation - The security automation resource.
      context - The context to associate with this operation.
      Returns:
      the security automation model state property bag 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.