Rancher2

Pulumi Official
Package maintained by Pulumi
v3.8.0 published on Tuesday, May 31, 2022 by Pulumi

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>",
        }));
    }

}
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := rancher2.LookupProjectAlertGroup(ctx, &GetProjectAlertGroupArgs{
			Name:      "<project_alert_group_name>",
			ProjectId: "<project_id>",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

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>",
}));

Coming soon!

Using getProjectAlertGroup

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 getProjectAlertGroup(args: GetProjectAlertGroupArgs, opts?: InvokeOptions): Promise<GetProjectAlertGroupResult>
function getProjectAlertGroupOutput(args: GetProjectAlertGroupOutputArgs, opts?: InvokeOptions): Output<GetProjectAlertGroupResult>
def get_project_alert_group(name: Optional[str] = None,
                            project_id: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetProjectAlertGroupResult
def get_project_alert_group_output(name: Optional[pulumi.Input[str]] = None,
                            project_id: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetProjectAlertGroupResult]
func LookupProjectAlertGroup(ctx *Context, args *LookupProjectAlertGroupArgs, opts ...InvokeOption) (*LookupProjectAlertGroupResult, error)
func LookupProjectAlertGroupOutput(ctx *Context, args *LookupProjectAlertGroupOutputArgs, opts ...InvokeOption) LookupProjectAlertGroupResultOutput

> Note: This function is named LookupProjectAlertGroup in the Go SDK.

public static class GetProjectAlertGroup 
{
    public static Task<GetProjectAlertGroupResult> InvokeAsync(GetProjectAlertGroupArgs args, InvokeOptions? opts = null)
    public static Output<GetProjectAlertGroupResult> Invoke(GetProjectAlertGroupInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetProjectAlertGroupResult> getProjectAlertGroup(GetProjectAlertGroupArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: rancher2:index/getProjectAlertGroup:getProjectAlertGroup
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Name string

The project alert group name (string)

ProjectId string

The project id where create project alert group (string)

Name string

The project alert group name (string)

ProjectId string

The project id where create project alert group (string)

name String

The project alert group name (string)

projectId String

The project id where create project alert group (string)

name string

The project alert group name (string)

projectId string

The project id where create project alert group (string)

name str

The project alert group name (string)

project_id str

The project id where create project alert group (string)

name String

The project alert group name (string)

projectId String

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)

GroupIntervalSeconds int

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

GroupWaitSeconds int

(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
ProjectId string
Recipients List<GetProjectAlertGroupRecipient>

(Computed) The project alert group recipients (list)

RepeatIntervalSeconds int

(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)

GroupIntervalSeconds int

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

GroupWaitSeconds int

(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
ProjectId string
Recipients []GetProjectAlertGroupRecipient

(Computed) The project alert group recipients (list)

RepeatIntervalSeconds int

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

annotations Map<String,Object>

(Computed) The project alert group annotations (map)

description String

(Computed) The project alert group description (string)

groupIntervalSeconds Integer

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

groupWaitSeconds Integer

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

id String

The provider-assigned unique ID for this managed resource.

labels Map<String,Object>

(Computed) The project alert group labels (map)

name String
projectId String
recipients List<GetProjectAlertGroupRecipient>

(Computed) The project alert group recipients (list)

repeatIntervalSeconds Integer

(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)

groupIntervalSeconds number

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

groupWaitSeconds number

(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
projectId string
recipients GetProjectAlertGroupRecipient[]

(Computed) The project alert group recipients (list)

repeatIntervalSeconds number

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

annotations Mapping[str, Any]

(Computed) The project alert group annotations (map)

description str

(Computed) The project alert group description (string)

group_interval_seconds int

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

group_wait_seconds int

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

id str

The provider-assigned unique ID for this managed resource.

labels Mapping[str, Any]

(Computed) The project alert group labels (map)

name str
project_id str
recipients Sequence[GetProjectAlertGroupRecipient]

(Computed) The project alert group recipients (list)

repeat_interval_seconds int

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

annotations Map<Any>

(Computed) The project alert group annotations (map)

description String

(Computed) The project alert group description (string)

groupIntervalSeconds Number

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

groupWaitSeconds Number

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

id String

The provider-assigned unique ID for this managed resource.

labels Map<Any>

(Computed) The project alert group labels (map)

name String
projectId String
recipients List<Property Map>

(Computed) The project alert group recipients (list)

repeatIntervalSeconds Number

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

Supporting Types

GetProjectAlertGroupRecipient

Package Details

Repository
https://github.com/pulumi/pulumi-rancher2
License
Apache-2.0
Notes

This Pulumi package is based on the rancher2 Terraform Provider.