GetProjectAlertGroup
Use this data source to retrieve information about a Rancher v2 project alert group.
Example Usage
using Pulumi;
using Rancher2 = Pulumi.Rancher2;
class MyStack : Stack
{
public MyStack()
{
var foo = Output.Create(Rancher2.GetProjectAlertGroup.InvokeAsync(new Rancher2.GetProjectAlertGroupArgs
{
Name = "<project_alert_group_name>",
ProjectId = "<project_id>",
}));
}
}
Coming soon!
import pulumi
import pulumi_rancher2 as rancher2
foo = rancher2.get_project_alert_group(name="<project_alert_group_name>",
project_id="<project_id>")import * as pulumi from "@pulumi/pulumi";
import * as rancher2 from "@pulumi/rancher2";
const foo = pulumi.output(rancher2.getProjectAlertGroup({
name: "<project_alert_group_name>",
projectId: "<project_id>",
}, { async: true }));Using GetProjectAlertGroup
function getProjectAlertGroup(args: GetProjectAlertGroupArgs, opts?: InvokeOptions): Promise<GetProjectAlertGroupResult>function get_project_alert_group(name=None, project_id=None, opts=None)func LookupProjectAlertGroup(ctx *Context, args *LookupProjectAlertGroupArgs, opts ...InvokeOption) (*LookupProjectAlertGroupResult, error)Note: This function is named
LookupProjectAlertGroupin the Go SDK.
public static class GetProjectAlertGroup {
public static Task<GetProjectAlertGroupResult> InvokeAsync(GetProjectAlertGroupArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- name str
The project alert group name (string)
- project_
id str The project id where create project alert group (string)
GetProjectAlertGroup Result
The following output properties are available:
- Annotations Dictionary<string, object>
(Computed) The project alert group annotations (map)
- Description string
(Computed) The project alert group description (string)
- Group
Interval intSeconds (Computed) The project alert group interval seconds. Default:
180(int)- Group
Wait intSeconds (Computed) The project alert group wait seconds. Default:
180(int)- Id string
The provider-assigned unique ID for this managed resource.
- Labels Dictionary<string, object>
(Computed) The project alert group labels (map)
- Name string
- Project
Id string - Recipients
List<Get
Project Alert Group Recipient> (Computed) The project alert group recipients (list)
- Repeat
Interval intSeconds (Computed) The project alert group wait seconds. Default:
3600(int)
- Annotations map[string]interface{}
(Computed) The project alert group annotations (map)
- Description string
(Computed) The project alert group description (string)
- Group
Interval intSeconds (Computed) The project alert group interval seconds. Default:
180(int)- Group
Wait intSeconds (Computed) The project alert group wait seconds. Default:
180(int)- Id string
The provider-assigned unique ID for this managed resource.
- Labels map[string]interface{}
(Computed) The project alert group labels (map)
- Name string
- Project
Id string - Recipients
[]Get
Project Alert Group Recipient (Computed) The project alert group recipients (list)
- Repeat
Interval intSeconds (Computed) The project alert group wait seconds. Default:
3600(int)
- annotations {[key: string]: any}
(Computed) The project alert group annotations (map)
- description string
(Computed) The project alert group description (string)
- group
Interval numberSeconds (Computed) The project alert group interval seconds. Default:
180(int)- group
Wait numberSeconds (Computed) The project alert group wait seconds. Default:
180(int)- id string
The provider-assigned unique ID for this managed resource.
- labels {[key: string]: any}
(Computed) The project alert group labels (map)
- name string
- project
Id string - recipients
Get
Project Alert Group Recipient[] (Computed) The project alert group recipients (list)
- repeat
Interval numberSeconds (Computed) The project alert group wait seconds. Default:
3600(int)
- annotations Dict[str, Any]
(Computed) The project alert group annotations (map)
- description str
(Computed) The project alert group description (string)
- group_
interval_ floatseconds (Computed) The project alert group interval seconds. Default:
180(int)- group_
wait_ floatseconds (Computed) The project alert group wait seconds. Default:
180(int)- id str
The provider-assigned unique ID for this managed resource.
- labels Dict[str, Any]
(Computed) The project alert group labels (map)
- name str
- project_
id str - recipients
List[Get
Project Alert Group Recipient] (Computed) The project alert group recipients (list)
- repeat_
interval_ floatseconds (Computed) The project alert group wait seconds. Default:
3600(int)
Supporting Types
GetProjectAlertGroupRecipient
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
Package Details
- Repository
- https://github.com/pulumi/pulumi-rancher2
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
rancher2Terraform Provider.