GetActionGroup
Use this data source to access the properties of an Action Group.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Azure.Monitoring.GetActionGroup.InvokeAsync(new Azure.Monitoring.GetActionGroupArgs
{
ResourceGroupName = "example-rg",
Name = "tfex-actiongroup",
}));
this.ActionGroupId = example.Apply(example => example.Id);
}
[Output("actionGroupId")]
public Output<string> ActionGroupId { get; set; }
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/monitoring"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := monitoring.LookupActionGroup(ctx, &monitoring.LookupActionGroupArgs{
ResourceGroupName: "example-rg",
Name: "tfex-actiongroup",
}, nil)
if err != nil {
return err
}
ctx.Export("actionGroupId", example.Id)
return nil
})
}import pulumi
import pulumi_azure as azure
example = azure.monitoring.get_action_group(resource_group_name="example-rg",
name="tfex-actiongroup")
pulumi.export("actionGroupId", example.id)import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.monitoring.getActionGroup({
resourceGroupName: "example-rg",
name: "tfex-actiongroup",
});
export const actionGroupId = example.then(example => example.id);Using GetActionGroup
function getActionGroup(args: GetActionGroupArgs, opts?: InvokeOptions): Promise<GetActionGroupResult>function get_action_group(name=None, resource_group_name=None, opts=None)func LookupActionGroup(ctx *Context, args *LookupActionGroupArgs, opts ...InvokeOption) (*LookupActionGroupResult, error)Note: This function is named
LookupActionGroupin the Go SDK.
public static class GetActionGroup {
public static Task<GetActionGroupResult> InvokeAsync(GetActionGroupArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Name string
Specifies the name of the Action Group.
- Resource
Group stringName Specifies the name of the resource group the Action Group is located in.
- Name string
Specifies the name of the Action Group.
- Resource
Group stringName Specifies the name of the resource group the Action Group is located in.
- name string
Specifies the name of the Action Group.
- resource
Group stringName Specifies the name of the resource group the Action Group is located in.
- name str
Specifies the name of the Action Group.
- resource_
group_ strname Specifies the name of the resource group the Action Group is located in.
GetActionGroup Result
The following output properties are available:
- Arm
Role List<GetReceivers Action Group Arm Role Receiver> One or more
arm_role_receiverblocks as defined below.- Automation
Runbook List<GetReceivers Action Group Automation Runbook Receiver> One or more
automation_runbook_receiverblocks as defined below.- Azure
App List<GetPush Receivers Action Group Azure App Push Receiver> One or more
azure_app_push_receiverblocks as defined below.- Azure
Function List<GetReceivers Action Group Azure Function Receiver> One or more
azure_function_receiverblocks as defined below.- Email
Receivers List<GetAction Group Email Receiver> One or more
email_receiverblocks as defined below.- Enabled bool
Whether this action group is enabled.
- Id string
The provider-assigned unique ID for this managed resource.
- Itsm
Receivers List<GetAction Group Itsm Receiver> One or more
itsm_receiverblocks as defined below.- Logic
App List<GetReceivers Action Group Logic App Receiver> One or more
logic_app_receiverblocks as defined below.- Name string
The name of the webhook receiver.
- Resource
Group stringName - Short
Name string The short name of the action group.
- Sms
Receivers List<GetAction Group Sms Receiver> One or more
sms_receiverblocks as defined below.- Voice
Receivers List<GetAction Group Voice Receiver> One or more
voice_receiverblocks as defined below.- Webhook
Receivers List<GetAction Group Webhook Receiver> One or more
webhook_receiverblocks as defined below.
- Arm
Role []GetReceivers Action Group Arm Role Receiver One or more
arm_role_receiverblocks as defined below.- Automation
Runbook []GetReceivers Action Group Automation Runbook Receiver One or more
automation_runbook_receiverblocks as defined below.- Azure
App []GetPush Receivers Action Group Azure App Push Receiver One or more
azure_app_push_receiverblocks as defined below.- Azure
Function []GetReceivers Action Group Azure Function Receiver One or more
azure_function_receiverblocks as defined below.- Email
Receivers []GetAction Group Email Receiver One or more
email_receiverblocks as defined below.- Enabled bool
Whether this action group is enabled.
- Id string
The provider-assigned unique ID for this managed resource.
- Itsm
Receivers []GetAction Group Itsm Receiver One or more
itsm_receiverblocks as defined below.- Logic
App []GetReceivers Action Group Logic App Receiver One or more
logic_app_receiverblocks as defined below.- Name string
The name of the webhook receiver.
- Resource
Group stringName - Short
Name string The short name of the action group.
- Sms
Receivers []GetAction Group Sms Receiver One or more
sms_receiverblocks as defined below.- Voice
Receivers []GetAction Group Voice Receiver One or more
voice_receiverblocks as defined below.- Webhook
Receivers []GetAction Group Webhook Receiver One or more
webhook_receiverblocks as defined below.
- arm
Role GetReceivers Action Group Arm Role Receiver[] One or more
arm_role_receiverblocks as defined below.- automation
Runbook GetReceivers Action Group Automation Runbook Receiver[] One or more
automation_runbook_receiverblocks as defined below.- azure
App GetPush Receivers Action Group Azure App Push Receiver[] One or more
azure_app_push_receiverblocks as defined below.- azure
Function GetReceivers Action Group Azure Function Receiver[] One or more
azure_function_receiverblocks as defined below.- email
Receivers GetAction Group Email Receiver[] One or more
email_receiverblocks as defined below.- enabled boolean
Whether this action group is enabled.
- id string
The provider-assigned unique ID for this managed resource.
- itsm
Receivers GetAction Group Itsm Receiver[] One or more
itsm_receiverblocks as defined below.- logic
App GetReceivers Action Group Logic App Receiver[] One or more
logic_app_receiverblocks as defined below.- name string
The name of the webhook receiver.
- resource
Group stringName - short
Name string The short name of the action group.
- sms
Receivers GetAction Group Sms Receiver[] One or more
sms_receiverblocks as defined below.- voice
Receivers GetAction Group Voice Receiver[] One or more
voice_receiverblocks as defined below.- webhook
Receivers GetAction Group Webhook Receiver[] One or more
webhook_receiverblocks as defined below.
- arm_
role_ List[Getreceivers Action Group Arm Role Receiver] One or more
arm_role_receiverblocks as defined below.- automation_
runbook_ List[Getreceivers Action Group Automation Runbook Receiver] One or more
automation_runbook_receiverblocks as defined below.- azure_
app_ List[Getpush_ receivers Action Group Azure App Push Receiver] One or more
azure_app_push_receiverblocks as defined below.- azure_
function_ List[Getreceivers Action Group Azure Function Receiver] One or more
azure_function_receiverblocks as defined below.- email_
receivers List[GetAction Group Email Receiver] One or more
email_receiverblocks as defined below.- enabled bool
Whether this action group is enabled.
- id str
The provider-assigned unique ID for this managed resource.
- itsm_
receivers List[GetAction Group Itsm Receiver] One or more
itsm_receiverblocks as defined below.- logic_
app_ List[Getreceivers Action Group Logic App Receiver] One or more
logic_app_receiverblocks as defined below.- name str
The name of the webhook receiver.
- resource_
group_ strname - short_
name str The short name of the action group.
- sms_
receivers List[GetAction Group Sms Receiver] One or more
sms_receiverblocks as defined below.- voice_
receivers List[GetAction Group Voice Receiver] One or more
voice_receiverblocks as defined below.- webhook_
receivers List[GetAction Group Webhook Receiver] One or more
webhook_receiverblocks as defined below.
Supporting Types
GetActionGroupArmRoleReceiver
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
GetActionGroupAutomationRunbookReceiver
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Automation
Account stringId The automation account ID which holds this runbook and authenticates to Azure resources.
- Is
Global boolRunbook Indicates whether this instance is global runbook.
- Name string
Specifies the name of the Action Group.
- Runbook
Name string The name for this runbook.
- Service
Uri string The URI where webhooks should be sent.
- Use
Common boolAlert Schema Indicates whether to use common alert schema.
- Webhook
Resource stringId The resource id for webhook linked to this runbook.
- Automation
Account stringId The automation account ID which holds this runbook and authenticates to Azure resources.
- Is
Global boolRunbook Indicates whether this instance is global runbook.
- Name string
Specifies the name of the Action Group.
- Runbook
Name string The name for this runbook.
- Service
Uri string The URI where webhooks should be sent.
- Use
Common boolAlert Schema Indicates whether to use common alert schema.
- Webhook
Resource stringId The resource id for webhook linked to this runbook.
- automation
Account stringId The automation account ID which holds this runbook and authenticates to Azure resources.
- is
Global booleanRunbook Indicates whether this instance is global runbook.
- name string
Specifies the name of the Action Group.
- runbook
Name string The name for this runbook.
- service
Uri string The URI where webhooks should be sent.
- use
Common booleanAlert Schema Indicates whether to use common alert schema.
- webhook
Resource stringId The resource id for webhook linked to this runbook.
- automation
Account strId The automation account ID which holds this runbook and authenticates to Azure resources.
- is
Global boolRunbook Indicates whether this instance is global runbook.
- name str
Specifies the name of the Action Group.
- runbook_
name str The name for this runbook.
- service_
uri str The URI where webhooks should be sent.
- use
Common boolAlert Schema Indicates whether to use common alert schema.
- webhook
Resource strId The resource id for webhook linked to this runbook.
GetActionGroupAzureAppPushReceiver
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Email
Address string The email address of this receiver.
- Name string
Specifies the name of the Action Group.
- Email
Address string The email address of this receiver.
- Name string
Specifies the name of the Action Group.
- email
Address string The email address of this receiver.
- name string
Specifies the name of the Action Group.
- email_
address str The email address of this receiver.
- name str
Specifies the name of the Action Group.
GetActionGroupAzureFunctionReceiver
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Function
App stringResource Id - Function
Name string The function name in the function app.
- Http
Trigger stringUrl The http trigger url where http request sent to.
- Name string
Specifies the name of the Action Group.
- Use
Common boolAlert Schema Indicates whether to use common alert schema.
- Function
App stringResource Id - Function
Name string The function name in the function app.
- Http
Trigger stringUrl The http trigger url where http request sent to.
- Name string
Specifies the name of the Action Group.
- Use
Common boolAlert Schema Indicates whether to use common alert schema.
- function
App stringResource Id - function
Name string The function name in the function app.
- http
Trigger stringUrl The http trigger url where http request sent to.
- name string
Specifies the name of the Action Group.
- use
Common booleanAlert Schema Indicates whether to use common alert schema.
- function
App strResource Id - function
Name str The function name in the function app.
- http
Trigger strUrl The http trigger url where http request sent to.
- name str
Specifies the name of the Action Group.
- use
Common boolAlert Schema Indicates whether to use common alert schema.
GetActionGroupEmailReceiver
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Email
Address string The email address of this receiver.
- Name string
Specifies the name of the Action Group.
- Use
Common boolAlert Schema Indicates whether to use common alert schema.
- Email
Address string The email address of this receiver.
- Name string
Specifies the name of the Action Group.
- Use
Common boolAlert Schema Indicates whether to use common alert schema.
- email
Address string The email address of this receiver.
- name string
Specifies the name of the Action Group.
- use
Common booleanAlert Schema Indicates whether to use common alert schema.
- email_
address str The email address of this receiver.
- name str
Specifies the name of the Action Group.
- use
Common boolAlert Schema Indicates whether to use common alert schema.
GetActionGroupItsmReceiver
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Connection
Id string The unique connection identifier of the ITSM connection.
- Name string
Specifies the name of the Action Group.
- Region string
The region of the workspace.
- Ticket
Configuration string A JSON blob for the configurations of the ITSM action. CreateMultipleWorkItems option will be part of this blob as well.
- Workspace
Id string The Azure Log Analytics workspace ID where this connection is defined.
- Connection
Id string The unique connection identifier of the ITSM connection.
- Name string
Specifies the name of the Action Group.
- Region string
The region of the workspace.
- Ticket
Configuration string A JSON blob for the configurations of the ITSM action. CreateMultipleWorkItems option will be part of this blob as well.
- Workspace
Id string The Azure Log Analytics workspace ID where this connection is defined.
- connection
Id string The unique connection identifier of the ITSM connection.
- name string
Specifies the name of the Action Group.
- region string
The region of the workspace.
- ticket
Configuration string A JSON blob for the configurations of the ITSM action. CreateMultipleWorkItems option will be part of this blob as well.
- workspace
Id string The Azure Log Analytics workspace ID where this connection is defined.
- connection
Id str The unique connection identifier of the ITSM connection.
- name str
Specifies the name of the Action Group.
- region str
The region of the workspace.
- ticket
Configuration str A JSON blob for the configurations of the ITSM action. CreateMultipleWorkItems option will be part of this blob as well.
- workspace_
id str The Azure Log Analytics workspace ID where this connection is defined.
GetActionGroupLogicAppReceiver
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Callback
Url string The callback url where http request sent to.
- Name string
Specifies the name of the Action Group.
- Resource
Id string The Azure resource ID of the logic app.
- Use
Common boolAlert Schema Indicates whether to use common alert schema.
- Callback
Url string The callback url where http request sent to.
- Name string
Specifies the name of the Action Group.
- Resource
Id string The Azure resource ID of the logic app.
- Use
Common boolAlert Schema Indicates whether to use common alert schema.
- callback
Url string The callback url where http request sent to.
- name string
Specifies the name of the Action Group.
- resource
Id string The Azure resource ID of the logic app.
- use
Common booleanAlert Schema Indicates whether to use common alert schema.
- callback
Url str The callback url where http request sent to.
- name str
Specifies the name of the Action Group.
- resource_
id str The Azure resource ID of the logic app.
- use
Common boolAlert Schema Indicates whether to use common alert schema.
GetActionGroupSmsReceiver
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Country
Code string The country code of the voice receiver.
- Name string
Specifies the name of the Action Group.
- Phone
Number string The phone number of the voice receiver.
- Country
Code string The country code of the voice receiver.
- Name string
Specifies the name of the Action Group.
- Phone
Number string The phone number of the voice receiver.
- country
Code string The country code of the voice receiver.
- name string
Specifies the name of the Action Group.
- phone
Number string The phone number of the voice receiver.
- country
Code str The country code of the voice receiver.
- name str
Specifies the name of the Action Group.
- phone
Number str The phone number of the voice receiver.
GetActionGroupVoiceReceiver
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Country
Code string The country code of the voice receiver.
- Name string
Specifies the name of the Action Group.
- Phone
Number string The phone number of the voice receiver.
- Country
Code string The country code of the voice receiver.
- Name string
Specifies the name of the Action Group.
- Phone
Number string The phone number of the voice receiver.
- country
Code string The country code of the voice receiver.
- name string
Specifies the name of the Action Group.
- phone
Number string The phone number of the voice receiver.
- country
Code str The country code of the voice receiver.
- name str
Specifies the name of the Action Group.
- phone
Number str The phone number of the voice receiver.
GetActionGroupWebhookReceiver
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Name string
Specifies the name of the Action Group.
- Service
Uri string The URI where webhooks should be sent.
- Use
Common boolAlert Schema Indicates whether to use common alert schema.
- Name string
Specifies the name of the Action Group.
- Service
Uri string The URI where webhooks should be sent.
- Use
Common boolAlert Schema Indicates whether to use common alert schema.
- name string
Specifies the name of the Action Group.
- service
Uri string The URI where webhooks should be sent.
- use
Common booleanAlert Schema Indicates whether to use common alert schema.
- name str
Specifies the name of the Action Group.
- service_
uri str The URI where webhooks should be sent.
- use
Common boolAlert Schema Indicates whether to use common alert schema.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.