Viewing docs for Harness v0.11.7
published on Friday, Mar 20, 2026 by Pulumi
published on Friday, Mar 20, 2026 by Pulumi
Viewing docs for Harness v0.11.7
published on Friday, Mar 20, 2026 by Pulumi
published on Friday, Mar 20, 2026 by Pulumi
Data source for retrieving a Notification Rule.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as harness from "@pulumi/harness";
const example = harness.platform.getNotificationRule({
identifier: "identifier",
orgId: "org_id",
projectId: "project_id",
});
import pulumi
import pulumi_harness as harness
example = harness.platform.get_notification_rule(identifier="identifier",
org_id="org_id",
project_id="project_id")
package main
import (
"github.com/pulumi/pulumi-harness/sdk/go/harness/platform"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := platform.LookupNotificationRule(ctx, &platform.LookupNotificationRuleArgs{
Identifier: "identifier",
OrgId: "org_id",
ProjectId: "project_id",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Harness = Pulumi.Harness;
return await Deployment.RunAsync(() =>
{
var example = Harness.Platform.GetNotificationRule.Invoke(new()
{
Identifier = "identifier",
OrgId = "org_id",
ProjectId = "project_id",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.harness.platform.PlatformFunctions;
import com.pulumi.harness.platform.inputs.GetNotificationRuleArgs;
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 example = PlatformFunctions.getNotificationRule(GetNotificationRuleArgs.builder()
.identifier("identifier")
.orgId("org_id")
.projectId("project_id")
.build());
}
}
variables:
example:
fn::invoke:
function: harness:platform:getNotificationRule
arguments:
identifier: identifier
orgId: org_id
projectId: project_id
Using getNotificationRule
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 getNotificationRule(args: GetNotificationRuleArgs, opts?: InvokeOptions): Promise<GetNotificationRuleResult>
function getNotificationRuleOutput(args: GetNotificationRuleOutputArgs, opts?: InvokeOptions): Output<GetNotificationRuleResult>def get_notification_rule(identifier: Optional[str] = None,
org_id: Optional[str] = None,
project_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNotificationRuleResult
def get_notification_rule_output(identifier: Optional[pulumi.Input[str]] = None,
org_id: Optional[pulumi.Input[str]] = None,
project_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNotificationRuleResult]func LookupNotificationRule(ctx *Context, args *LookupNotificationRuleArgs, opts ...InvokeOption) (*LookupNotificationRuleResult, error)
func LookupNotificationRuleOutput(ctx *Context, args *LookupNotificationRuleOutputArgs, opts ...InvokeOption) LookupNotificationRuleResultOutput> Note: This function is named LookupNotificationRule in the Go SDK.
public static class GetNotificationRule
{
public static Task<GetNotificationRuleResult> InvokeAsync(GetNotificationRuleArgs args, InvokeOptions? opts = null)
public static Output<GetNotificationRuleResult> Invoke(GetNotificationRuleInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetNotificationRuleResult> getNotificationRule(GetNotificationRuleArgs args, InvokeOptions options)
public static Output<GetNotificationRuleResult> getNotificationRule(GetNotificationRuleArgs args, InvokeOptions options)
fn::invoke:
function: harness:platform/getNotificationRule:getNotificationRule
arguments:
# arguments dictionaryThe following arguments are supported:
- Identifier string
- Identifier of the Notification Rule.
- Org
Id string - Identifier of the organization in which the Notification Rule is configured.
- Project
Id string - Identifier of the project in which the Notification Rule is configured.
- Identifier string
- Identifier of the Notification Rule.
- Org
Id string - Identifier of the organization in which the Notification Rule is configured.
- Project
Id string - Identifier of the project in which the Notification Rule is configured.
- identifier String
- Identifier of the Notification Rule.
- org
Id String - Identifier of the organization in which the Notification Rule is configured.
- project
Id String - Identifier of the project in which the Notification Rule is configured.
- identifier string
- Identifier of the Notification Rule.
- org
Id string - Identifier of the organization in which the Notification Rule is configured.
- project
Id string - Identifier of the project in which the Notification Rule is configured.
- identifier str
- Identifier of the Notification Rule.
- org_
id str - Identifier of the organization in which the Notification Rule is configured.
- project_
id str - Identifier of the project in which the Notification Rule is configured.
- identifier String
- Identifier of the Notification Rule.
- org
Id String - Identifier of the organization in which the Notification Rule is configured.
- project
Id String - Identifier of the project in which the Notification Rule is configured.
getNotificationRule Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Identifier string
- Identifier of the Notification Rule.
- Org
Id string - Identifier of the organization in which the Notification Rule is configured.
- Project
Id string - Identifier of the project in which the Notification Rule is configured.
- Id string
- The provider-assigned unique ID for this managed resource.
- Identifier string
- Identifier of the Notification Rule.
- Org
Id string - Identifier of the organization in which the Notification Rule is configured.
- Project
Id string - Identifier of the project in which the Notification Rule is configured.
- id String
- The provider-assigned unique ID for this managed resource.
- identifier String
- Identifier of the Notification Rule.
- org
Id String - Identifier of the organization in which the Notification Rule is configured.
- project
Id String - Identifier of the project in which the Notification Rule is configured.
- id string
- The provider-assigned unique ID for this managed resource.
- identifier string
- Identifier of the Notification Rule.
- org
Id string - Identifier of the organization in which the Notification Rule is configured.
- project
Id string - Identifier of the project in which the Notification Rule is configured.
- id str
- The provider-assigned unique ID for this managed resource.
- identifier str
- Identifier of the Notification Rule.
- org_
id str - Identifier of the organization in which the Notification Rule is configured.
- project_
id str - Identifier of the project in which the Notification Rule is configured.
- id String
- The provider-assigned unique ID for this managed resource.
- identifier String
- Identifier of the Notification Rule.
- org
Id String - Identifier of the organization in which the Notification Rule is configured.
- project
Id String - Identifier of the project in which the Notification Rule is configured.
Package Details
- Repository
- harness pulumi/pulumi-harness
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
harnessTerraform Provider.
Viewing docs for Harness v0.11.7
published on Friday, Mar 20, 2026 by Pulumi
published on Friday, Mar 20, 2026 by Pulumi
