Ready to level-up your engineering skills? Join a Pulumi Workshop. Register Now

getClusterAlertGroup

Use this data source to retrieve information about a Rancher v2 cluster alert group.

Example Usage

using Pulumi;
using Rancher2 = Pulumi.Rancher2;

class MyStack : Stack
{
    public MyStack()
    {
        var foo = Output.Create(Rancher2.GetClusterAlertGroup.InvokeAsync(new Rancher2.GetClusterAlertGroupArgs
        {
            ClusterId = "<cluster_id>",
            Name = "<cluster_alert_group_name>",
        }));
    }

}
package main

import (
    "github.com/pulumi/pulumi-rancher2/sdk/v2/go/rancher2"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := rancher2.LookupClusterAlertGroup(ctx, &rancher2.LookupClusterAlertGroupArgs{
            ClusterId: "<cluster_id>",
            Name:      "<cluster_alert_group_name>",
        }, nil)
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_rancher2 as rancher2

foo = rancher2.get_cluster_alert_group(cluster_id="<cluster_id>",
    name="<cluster_alert_group_name>")
import * as pulumi from "@pulumi/pulumi";
import * as rancher2 from "@pulumi/rancher2";

const foo = pulumi.output(rancher2.getClusterAlertGroup({
    clusterId: "<cluster_id>",
    name: "<cluster_alert_group_name>",
}, { async: true }));

Using getClusterAlertGroup

function getClusterAlertGroup(args: GetClusterAlertGroupArgs, opts?: InvokeOptions): Promise<GetClusterAlertGroupResult>
def get_cluster_alert_group(cluster_id: Optional[str] = None, name: Optional[str] = None, opts: Optional[InvokeOptions] = None) -> GetClusterAlertGroupResult
func LookupClusterAlertGroup(ctx *Context, args *LookupClusterAlertGroupArgs, opts ...InvokeOption) (*LookupClusterAlertGroupResult, error)

Note: This function is named LookupClusterAlertGroup in the Go SDK.

public static class GetClusterAlertGroup {
    public static Task<GetClusterAlertGroupResult> InvokeAsync(GetClusterAlertGroupArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

ClusterId string

The cluster id where create cluster alert group (string)

Name string

The cluster alert group name (string)

ClusterId string

The cluster id where create cluster alert group (string)

Name string

The cluster alert group name (string)

clusterId string

The cluster id where create cluster alert group (string)

name string

The cluster alert group name (string)

cluster_id str

The cluster id where create cluster alert group (string)

name str

The cluster alert group name (string)

getClusterAlertGroup Result

The following output properties are available:

Annotations Dictionary<string, object>

(Computed) The cluster alert group annotations (map)

ClusterId string
Description string

(Computed) The cluster alert group description (string)

GroupIntervalSeconds int

(Computed) The cluster alert group interval seconds. Default: 180 (int)

GroupWaitSeconds int

(Computed) The cluster alert group wait seconds. Default: 180 (int)

Id string

The provider-assigned unique ID for this managed resource.

Labels Dictionary<string, object>

(Computed) The cluster alert group labels (map)

Name string
Recipients List<GetClusterAlertGroupRecipient>

(Computed) The cluster alert group recipients (list)

RepeatIntervalSeconds int

(Computed) The cluster alert group wait seconds. Default: 3600 (int)

Annotations map[string]interface{}

(Computed) The cluster alert group annotations (map)

ClusterId string
Description string

(Computed) The cluster alert group description (string)

GroupIntervalSeconds int

(Computed) The cluster alert group interval seconds. Default: 180 (int)

GroupWaitSeconds int

(Computed) The cluster alert group wait seconds. Default: 180 (int)

Id string

The provider-assigned unique ID for this managed resource.

Labels map[string]interface{}

(Computed) The cluster alert group labels (map)

Name string
Recipients []GetClusterAlertGroupRecipient

(Computed) The cluster alert group recipients (list)

RepeatIntervalSeconds int

(Computed) The cluster alert group wait seconds. Default: 3600 (int)

annotations {[key: string]: any}

(Computed) The cluster alert group annotations (map)

clusterId string
description string

(Computed) The cluster alert group description (string)

groupIntervalSeconds number

(Computed) The cluster alert group interval seconds. Default: 180 (int)

groupWaitSeconds number

(Computed) The cluster alert group wait seconds. Default: 180 (int)

id string

The provider-assigned unique ID for this managed resource.

labels {[key: string]: any}

(Computed) The cluster alert group labels (map)

name string
recipients GetClusterAlertGroupRecipient[]

(Computed) The cluster alert group recipients (list)

repeatIntervalSeconds number

(Computed) The cluster alert group wait seconds. Default: 3600 (int)

annotations Mapping[str, Any]

(Computed) The cluster alert group annotations (map)

cluster_id str
description str

(Computed) The cluster alert group description (string)

group_interval_seconds int

(Computed) The cluster alert group interval seconds. Default: 180 (int)

group_wait_seconds int

(Computed) The cluster alert group wait seconds. Default: 180 (int)

id str

The provider-assigned unique ID for this managed resource.

labels Mapping[str, Any]

(Computed) The cluster alert group labels (map)

name str
recipients Sequence[GetClusterAlertGroupRecipient]

(Computed) The cluster alert group recipients (list)

repeat_interval_seconds int

(Computed) The cluster alert group wait seconds. Default: 3600 (int)

Supporting Types

GetClusterAlertGroupRecipient

Package Details

Repository
https://github.com/pulumi/pulumi-rancher2
License
Apache-2.0
Notes
This Pulumi package is based on the rancher2 Terraform Provider.