azure-native.automation.getWatcher
Explore with Pulumi AI
Retrieve the watcher identified by watcher name.
Uses Azure REST API version 2023-05-15-preview.
Other available API versions: 2015-10-31, 2019-06-01, 2020-01-13-preview, 2024-10-23. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native automation [ApiVersion]
. See the version guide for details.
Using getWatcher
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getWatcher(args: GetWatcherArgs, opts?: InvokeOptions): Promise<GetWatcherResult>
function getWatcherOutput(args: GetWatcherOutputArgs, opts?: InvokeOptions): Output<GetWatcherResult>
def get_watcher(automation_account_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
watcher_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetWatcherResult
def get_watcher_output(automation_account_name: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
watcher_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetWatcherResult]
func LookupWatcher(ctx *Context, args *LookupWatcherArgs, opts ...InvokeOption) (*LookupWatcherResult, error)
func LookupWatcherOutput(ctx *Context, args *LookupWatcherOutputArgs, opts ...InvokeOption) LookupWatcherResultOutput
> Note: This function is named LookupWatcher
in the Go SDK.
public static class GetWatcher
{
public static Task<GetWatcherResult> InvokeAsync(GetWatcherArgs args, InvokeOptions? opts = null)
public static Output<GetWatcherResult> Invoke(GetWatcherInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetWatcherResult> getWatcher(GetWatcherArgs args, InvokeOptions options)
public static Output<GetWatcherResult> getWatcher(GetWatcherArgs args, InvokeOptions options)
fn::invoke:
function: azure-native:automation:getWatcher
arguments:
# arguments dictionary
The following arguments are supported:
- Automation
Account stringName - The name of the automation account.
- Resource
Group stringName - Name of an Azure Resource group.
- Watcher
Name string - The watcher name.
- Automation
Account stringName - The name of the automation account.
- Resource
Group stringName - Name of an Azure Resource group.
- Watcher
Name string - The watcher name.
- automation
Account StringName - The name of the automation account.
- resource
Group StringName - Name of an Azure Resource group.
- watcher
Name String - The watcher name.
- automation
Account stringName - The name of the automation account.
- resource
Group stringName - Name of an Azure Resource group.
- watcher
Name string - The watcher name.
- automation_
account_ strname - The name of the automation account.
- resource_
group_ strname - Name of an Azure Resource group.
- watcher_
name str - The watcher name.
- automation
Account StringName - The name of the automation account.
- resource
Group StringName - Name of an Azure Resource group.
- watcher
Name String - The watcher name.
getWatcher Result
The following output properties are available:
- Azure
Api stringVersion - The Azure API version of the resource.
- Creation
Time string - Gets or sets the creation time.
- Id string
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- Last
Modified stringBy - Details of the user who last modified the watcher.
- Last
Modified stringTime - Gets or sets the last modified time.
- Name string
- The name of the resource
- Status string
- Gets the current status of the watcher.
- System
Data Pulumi.Azure Native. Automation. Outputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Description string
- Gets or sets the description.
- Etag string
- Gets or sets the etag of the resource.
- Execution
Frequency doubleIn Seconds - Gets or sets the frequency at which the watcher is invoked.
- Location string
- The geo-location where the resource lives
- Script
Name string - Gets or sets the name of the script the watcher is attached to, i.e. the name of an existing runbook.
- Script
Parameters Dictionary<string, string> - Gets or sets the parameters of the script.
- Script
Run stringOn - Gets or sets the name of the hybrid worker group the watcher will run on.
- Dictionary<string, string>
- Resource tags.
- Azure
Api stringVersion - The Azure API version of the resource.
- Creation
Time string - Gets or sets the creation time.
- Id string
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- Last
Modified stringBy - Details of the user who last modified the watcher.
- Last
Modified stringTime - Gets or sets the last modified time.
- Name string
- The name of the resource
- Status string
- Gets the current status of the watcher.
- System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Description string
- Gets or sets the description.
- Etag string
- Gets or sets the etag of the resource.
- Execution
Frequency float64In Seconds - Gets or sets the frequency at which the watcher is invoked.
- Location string
- The geo-location where the resource lives
- Script
Name string - Gets or sets the name of the script the watcher is attached to, i.e. the name of an existing runbook.
- Script
Parameters map[string]string - Gets or sets the parameters of the script.
- Script
Run stringOn - Gets or sets the name of the hybrid worker group the watcher will run on.
- map[string]string
- Resource tags.
- azure
Api StringVersion - The Azure API version of the resource.
- creation
Time String - Gets or sets the creation time.
- id String
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- last
Modified StringBy - Details of the user who last modified the watcher.
- last
Modified StringTime - Gets or sets the last modified time.
- name String
- The name of the resource
- status String
- Gets the current status of the watcher.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- description String
- Gets or sets the description.
- etag String
- Gets or sets the etag of the resource.
- execution
Frequency DoubleIn Seconds - Gets or sets the frequency at which the watcher is invoked.
- location String
- The geo-location where the resource lives
- script
Name String - Gets or sets the name of the script the watcher is attached to, i.e. the name of an existing runbook.
- script
Parameters Map<String,String> - Gets or sets the parameters of the script.
- script
Run StringOn - Gets or sets the name of the hybrid worker group the watcher will run on.
- Map<String,String>
- Resource tags.
- azure
Api stringVersion - The Azure API version of the resource.
- creation
Time string - Gets or sets the creation time.
- id string
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- last
Modified stringBy - Details of the user who last modified the watcher.
- last
Modified stringTime - Gets or sets the last modified time.
- name string
- The name of the resource
- status string
- Gets the current status of the watcher.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- description string
- Gets or sets the description.
- etag string
- Gets or sets the etag of the resource.
- execution
Frequency numberIn Seconds - Gets or sets the frequency at which the watcher is invoked.
- location string
- The geo-location where the resource lives
- script
Name string - Gets or sets the name of the script the watcher is attached to, i.e. the name of an existing runbook.
- script
Parameters {[key: string]: string} - Gets or sets the parameters of the script.
- script
Run stringOn - Gets or sets the name of the hybrid worker group the watcher will run on.
- {[key: string]: string}
- Resource tags.
- azure_
api_ strversion - The Azure API version of the resource.
- creation_
time str - Gets or sets the creation time.
- id str
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- last_
modified_ strby - Details of the user who last modified the watcher.
- last_
modified_ strtime - Gets or sets the last modified time.
- name str
- The name of the resource
- status str
- Gets the current status of the watcher.
- system_
data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- description str
- Gets or sets the description.
- etag str
- Gets or sets the etag of the resource.
- execution_
frequency_ floatin_ seconds - Gets or sets the frequency at which the watcher is invoked.
- location str
- The geo-location where the resource lives
- script_
name str - Gets or sets the name of the script the watcher is attached to, i.e. the name of an existing runbook.
- script_
parameters Mapping[str, str] - Gets or sets the parameters of the script.
- script_
run_ stron - Gets or sets the name of the hybrid worker group the watcher will run on.
- Mapping[str, str]
- Resource tags.
- azure
Api StringVersion - The Azure API version of the resource.
- creation
Time String - Gets or sets the creation time.
- id String
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- last
Modified StringBy - Details of the user who last modified the watcher.
- last
Modified StringTime - Gets or sets the last modified time.
- name String
- The name of the resource
- status String
- Gets the current status of the watcher.
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- description String
- Gets or sets the description.
- etag String
- Gets or sets the etag of the resource.
- execution
Frequency NumberIn Seconds - Gets or sets the frequency at which the watcher is invoked.
- location String
- The geo-location where the resource lives
- script
Name String - Gets or sets the name of the script the watcher is attached to, i.e. the name of an existing runbook.
- script
Parameters Map<String> - Gets or sets the parameters of the script.
- script
Run StringOn - Gets or sets the name of the hybrid worker group the watcher will run on.
- Map<String>
- Resource tags.
Supporting Types
SystemDataResponse
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0