public interface Watchers
Modifier and Type | Method and Description |
---|---|
Watcher.DefinitionStages.Blank |
define(String name)
Begins definition for a new Watcher resource.
|
void |
delete(String resourceGroupName,
String automationAccountName,
String watcherName)
Delete the watcher by name.
|
void |
deleteById(String id)
Delete the watcher by name.
|
com.azure.core.http.rest.Response<Void> |
deleteByIdWithResponse(String id,
com.azure.core.util.Context context)
Delete the watcher by name.
|
com.azure.core.http.rest.Response<Void> |
deleteWithResponse(String resourceGroupName,
String automationAccountName,
String watcherName,
com.azure.core.util.Context context)
Delete the watcher by name.
|
Watcher |
get(String resourceGroupName,
String automationAccountName,
String watcherName)
Retrieve the watcher identified by watcher name.
|
Watcher |
getById(String id)
Retrieve the watcher identified by watcher name.
|
com.azure.core.http.rest.Response<Watcher> |
getByIdWithResponse(String id,
com.azure.core.util.Context context)
Retrieve the watcher identified by watcher name.
|
com.azure.core.http.rest.Response<Watcher> |
getWithResponse(String resourceGroupName,
String automationAccountName,
String watcherName,
com.azure.core.util.Context context)
Retrieve the watcher identified by watcher name.
|
com.azure.core.http.rest.PagedIterable<Watcher> |
listByAutomationAccount(String resourceGroupName,
String automationAccountName)
Retrieve a list of watchers.
|
com.azure.core.http.rest.PagedIterable<Watcher> |
listByAutomationAccount(String resourceGroupName,
String automationAccountName,
String filter,
com.azure.core.util.Context context)
Retrieve a list of watchers.
|
void |
start(String resourceGroupName,
String automationAccountName,
String watcherName)
Resume the watcher identified by watcher name.
|
com.azure.core.http.rest.Response<Void> |
startWithResponse(String resourceGroupName,
String automationAccountName,
String watcherName,
com.azure.core.util.Context context)
Resume the watcher identified by watcher name.
|
void |
stop(String resourceGroupName,
String automationAccountName,
String watcherName)
Resume the watcher identified by watcher name.
|
com.azure.core.http.rest.Response<Void> |
stopWithResponse(String resourceGroupName,
String automationAccountName,
String watcherName,
com.azure.core.util.Context context)
Resume the watcher identified by watcher name.
|
Watcher get(String resourceGroupName, String automationAccountName, String watcherName)
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.watcherName
- The watcher name.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.com.azure.core.http.rest.Response<Watcher> getWithResponse(String resourceGroupName, String automationAccountName, String watcherName, com.azure.core.util.Context context)
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.watcherName
- The watcher name.context
- The context to associate with this operation.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.void delete(String resourceGroupName, String automationAccountName, String watcherName)
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.watcherName
- The watcher name.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.com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String automationAccountName, String watcherName, com.azure.core.util.Context context)
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.watcherName
- The watcher name.context
- The context to associate with this operation.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.void start(String resourceGroupName, String automationAccountName, String watcherName)
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.watcherName
- The watcher name.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.com.azure.core.http.rest.Response<Void> startWithResponse(String resourceGroupName, String automationAccountName, String watcherName, com.azure.core.util.Context context)
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.watcherName
- The watcher name.context
- The context to associate with this operation.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.void stop(String resourceGroupName, String automationAccountName, String watcherName)
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.watcherName
- The watcher name.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.com.azure.core.http.rest.Response<Void> stopWithResponse(String resourceGroupName, String automationAccountName, String watcherName, com.azure.core.util.Context context)
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.watcherName
- The watcher name.context
- The context to associate with this operation.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.com.azure.core.http.rest.PagedIterable<Watcher> listByAutomationAccount(String resourceGroupName, String automationAccountName)
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.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.com.azure.core.http.rest.PagedIterable<Watcher> listByAutomationAccount(String resourceGroupName, String automationAccountName, String filter, com.azure.core.util.Context context)
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.filter
- The filter to apply on the operation.context
- The context to associate with this operation.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.Watcher getById(String id)
id
- the resource ID.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.com.azure.core.http.rest.Response<Watcher> getByIdWithResponse(String id, com.azure.core.util.Context context)
id
- the resource ID.context
- The context to associate with this operation.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.void deleteById(String id)
id
- the resource ID.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.com.azure.core.http.rest.Response<Void> deleteByIdWithResponse(String id, com.azure.core.util.Context context)
id
- the resource ID.context
- The context to associate with this operation.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.Watcher.DefinitionStages.Blank define(String name)
name
- resource name.Copyright © 2021 Microsoft Corporation. All rights reserved.