Interface Automations
public interface Automations
Resource collection API of Automations.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new Automation resource.void
deleteById
(String id) Deletes a security automation.com.azure.core.http.rest.Response<Void>
deleteByIdWithResponse
(String id, com.azure.core.util.Context context) Deletes a security automation.void
deleteByResourceGroup
(String resourceGroupName, String automationName) Deletes a security automation.com.azure.core.http.rest.Response<Void>
deleteWithResponse
(String resourceGroupName, String automationName, com.azure.core.util.Context context) Deletes a security automation.Retrieves information about the model of a security automation.com.azure.core.http.rest.Response<Automation>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Retrieves information about the model of a security automation.getByResourceGroup
(String resourceGroupName, String automationName) Retrieves information about the model of a security automation.com.azure.core.http.rest.Response<Automation>
getByResourceGroupWithResponse
(String resourceGroupName, String automationName, com.azure.core.util.Context context) Retrieves information about the model of a security automation.com.azure.core.http.rest.PagedIterable<Automation>
list()
Lists all the security automations in the specified subscription.com.azure.core.http.rest.PagedIterable<Automation>
list
(com.azure.core.util.Context context) Lists all the security automations in the specified subscription.com.azure.core.http.rest.PagedIterable<Automation>
listByResourceGroup
(String resourceGroupName) Lists all the security automations in the specified resource group.com.azure.core.http.rest.PagedIterable<Automation>
listByResourceGroup
(String resourceGroupName, com.azure.core.util.Context context) Lists all the security automations in the specified resource group.validate
(String resourceGroupName, String automationName, AutomationInner automation) Validates the security automation model before create or update.com.azure.core.http.rest.Response<AutomationValidationStatus>
validateWithResponse
(String resourceGroupName, String automationName, AutomationInner automation, com.azure.core.util.Context context) Validates the security automation model before create or update.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<Automation> 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
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
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<Automation> 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
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<Automation> 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.
-
deleteByResourceGroup
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
AutomationValidationStatus 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<AutomationValidationStatus> 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.
-
getById
Retrieves information about the model of a security automation.- Parameters:
id
- the resource ID.- 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.
-
getByIdWithResponse
com.azure.core.http.rest.Response<Automation> getByIdWithResponse(String id, com.azure.core.util.Context context) Retrieves information about the model of a security automation.- Parameters:
id
- the resource ID.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.
-
deleteById
Deletes a security automation.- 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) Deletes a security automation.- 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 Automation resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new Automation definition.
-