Rancher 2 v6.1.1 published on Friday, May 10, 2024 by Pulumi
rancher2.getProjectAlertGroup
Explore with Pulumi AI
Use this data source to retrieve information about a Rancher v2 project alert group.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as rancher2 from "@pulumi/rancher2";
const foo = rancher2.getProjectAlertGroup({
projectId: "<project_id>",
name: "<project_alert_group_name>",
});
import pulumi
import pulumi_rancher2 as rancher2
foo = rancher2.get_project_alert_group(project_id="<project_id>",
name="<project_alert_group_name>")
package main
import (
"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := rancher2.LookupProjectAlertGroup(ctx, &rancher2.LookupProjectAlertGroupArgs{
ProjectId: "<project_id>",
Name: "<project_alert_group_name>",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Rancher2 = Pulumi.Rancher2;
return await Deployment.RunAsync(() =>
{
var foo = Rancher2.GetProjectAlertGroup.Invoke(new()
{
ProjectId = "<project_id>",
Name = "<project_alert_group_name>",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.rancher2.Rancher2Functions;
import com.pulumi.rancher2.inputs.GetProjectAlertGroupArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var foo = Rancher2Functions.getProjectAlertGroup(GetProjectAlertGroupArgs.builder()
.projectId("<project_id>")
.name("<project_alert_group_name>")
.build());
}
}
variables:
foo:
fn::invoke:
Function: rancher2:getProjectAlertGroup
Arguments:
projectId: <project_id>
name: <project_alert_group_name>
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 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 Map<String,Object>
- (Computed) The project alert group annotations (map)
- description String
- (Computed) The project alert group description (string)
- group
Interval IntegerSeconds - (Computed) The project alert group interval seconds. Default:
180
(int) - group
Wait IntegerSeconds - (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
- project
Id String - recipients
List<Get
Project Alert Group Recipient> - (Computed) The project alert group recipients (list)
- repeat
Interval IntegerSeconds - (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 Mapping[str, Any]
- (Computed) The project alert group annotations (map)
- description str
- (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 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[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<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 Map<Any>
- (Computed) The project alert group labels (map)
- name String
- project
Id String - recipients List<Property Map>
- (Computed) The project alert group recipients (list)
- repeat
Interval NumberSeconds - (Computed) The project alert group wait seconds. Default:
3600
(int)
Supporting Types
GetProjectAlertGroupRecipient
- Notifier
Id string - Recipient notifier ID
- Notifier
Type string - Recipient notifier type
- Recipient string
- Recipient
- Default
Recipient bool - Use notifier default recipient
- Notifier
Id string - Recipient notifier ID
- Notifier
Type string - Recipient notifier type
- Recipient string
- Recipient
- Default
Recipient bool - Use notifier default recipient
- notifier
Id String - Recipient notifier ID
- notifier
Type String - Recipient notifier type
- recipient String
- Recipient
- default
Recipient Boolean - Use notifier default recipient
- notifier
Id string - Recipient notifier ID
- notifier
Type string - Recipient notifier type
- recipient string
- Recipient
- default
Recipient boolean - Use notifier default recipient
- notifier_
id str - Recipient notifier ID
- notifier_
type str - Recipient notifier type
- recipient str
- Recipient
- default_
recipient bool - Use notifier default recipient
- notifier
Id String - Recipient notifier ID
- notifier
Type String - Recipient notifier type
- recipient String
- Recipient
- default
Recipient Boolean - Use notifier default recipient
Package Details
- Repository
- Rancher2 pulumi/pulumi-rancher2
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
rancher2
Terraform Provider.