Harness v0.3.2 published on Monday, Sep 16, 2024 by Pulumi
harness.platform.getTriggers
Explore with Pulumi AI
Data source for retrieving a Harness trigger.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as harness from "@pulumi/harness";
const example = harness.platform.getTriggers({
identifier: "identifier",
orgId: "org_id",
projectId: "project_id",
targetId: "pipeline_id",
});
import pulumi
import pulumi_harness as harness
example = harness.platform.get_triggers(identifier="identifier",
org_id="org_id",
project_id="project_id",
target_id="pipeline_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.LookupTriggers(ctx, &platform.LookupTriggersArgs{
Identifier: pulumi.StringRef("identifier"),
OrgId: "org_id",
ProjectId: "project_id",
TargetId: "pipeline_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.GetTriggers.Invoke(new()
{
Identifier = "identifier",
OrgId = "org_id",
ProjectId = "project_id",
TargetId = "pipeline_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.GetTriggersArgs;
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.getTriggers(GetTriggersArgs.builder()
.identifier("identifier")
.orgId("org_id")
.projectId("project_id")
.targetId("pipeline_id")
.build());
}
}
variables:
example:
fn::invoke:
Function: harness:platform:getTriggers
Arguments:
identifier: identifier
orgId: org_id
projectId: project_id
targetId: pipeline_id
Using getTriggers
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 getTriggers(args: GetTriggersArgs, opts?: InvokeOptions): Promise<GetTriggersResult>
function getTriggersOutput(args: GetTriggersOutputArgs, opts?: InvokeOptions): Output<GetTriggersResult>
def get_triggers(identifier: Optional[str] = None,
ignore_error: Optional[bool] = None,
name: Optional[str] = None,
org_id: Optional[str] = None,
project_id: Optional[str] = None,
target_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetTriggersResult
def get_triggers_output(identifier: Optional[pulumi.Input[str]] = None,
ignore_error: Optional[pulumi.Input[bool]] = None,
name: Optional[pulumi.Input[str]] = None,
org_id: Optional[pulumi.Input[str]] = None,
project_id: Optional[pulumi.Input[str]] = None,
target_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetTriggersResult]
func LookupTriggers(ctx *Context, args *LookupTriggersArgs, opts ...InvokeOption) (*LookupTriggersResult, error)
func LookupTriggersOutput(ctx *Context, args *LookupTriggersOutputArgs, opts ...InvokeOption) LookupTriggersResultOutput
> Note: This function is named LookupTriggers
in the Go SDK.
public static class GetTriggers
{
public static Task<GetTriggersResult> InvokeAsync(GetTriggersArgs args, InvokeOptions? opts = null)
public static Output<GetTriggersResult> Invoke(GetTriggersInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetTriggersResult> getTriggers(GetTriggersArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: harness:platform/getTriggers:getTriggers
arguments:
# arguments dictionary
The following arguments are supported:
- Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- Target
Id string - Identifier of the target pipeline
- Identifier string
- Unique identifier of the resource.
- Ignore
Error bool - ignore error default false
- Name string
- Name of the resource.
- Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- Target
Id string - Identifier of the target pipeline
- Identifier string
- Unique identifier of the resource.
- Ignore
Error bool - ignore error default false
- Name string
- Name of the resource.
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
- target
Id String - Identifier of the target pipeline
- identifier String
- Unique identifier of the resource.
- ignore
Error Boolean - ignore error default false
- name String
- Name of the resource.
- org
Id string - Unique identifier of the organization.
- project
Id string - Unique identifier of the project.
- target
Id string - Identifier of the target pipeline
- identifier string
- Unique identifier of the resource.
- ignore
Error boolean - ignore error default false
- name string
- Name of the resource.
- org_
id str - Unique identifier of the organization.
- project_
id str - Unique identifier of the project.
- target_
id str - Identifier of the target pipeline
- identifier str
- Unique identifier of the resource.
- ignore_
error bool - ignore error default false
- name str
- Name of the resource.
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
- target
Id String - Identifier of the target pipeline
- identifier String
- Unique identifier of the resource.
- ignore
Error Boolean - ignore error default false
- name String
- Name of the resource.
getTriggers Result
The following output properties are available:
- Description string
- Description of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- List<string>
- Tags to associate with the resource.
- Target
Id string - Identifier of the target pipeline
- Yaml string
- trigger yaml
- Identifier string
- Unique identifier of the resource.
- Ignore
Error bool - ignore error default false
- Name string
- Name of the resource.
- Description string
- Description of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- []string
- Tags to associate with the resource.
- Target
Id string - Identifier of the target pipeline
- Yaml string
- trigger yaml
- Identifier string
- Unique identifier of the resource.
- Ignore
Error bool - ignore error default false
- Name string
- Name of the resource.
- description String
- Description of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
- List<String>
- Tags to associate with the resource.
- target
Id String - Identifier of the target pipeline
- yaml String
- trigger yaml
- identifier String
- Unique identifier of the resource.
- ignore
Error Boolean - ignore error default false
- name String
- Name of the resource.
- description string
- Description of the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- org
Id string - Unique identifier of the organization.
- project
Id string - Unique identifier of the project.
- string[]
- Tags to associate with the resource.
- target
Id string - Identifier of the target pipeline
- yaml string
- trigger yaml
- identifier string
- Unique identifier of the resource.
- ignore
Error boolean - ignore error default false
- name string
- Name of the resource.
- description str
- Description of the resource.
- id str
- The provider-assigned unique ID for this managed resource.
- org_
id str - Unique identifier of the organization.
- project_
id str - Unique identifier of the project.
- Sequence[str]
- Tags to associate with the resource.
- target_
id str - Identifier of the target pipeline
- yaml str
- trigger yaml
- identifier str
- Unique identifier of the resource.
- ignore_
error bool - ignore error default false
- name str
- Name of the resource.
- description String
- Description of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
- List<String>
- Tags to associate with the resource.
- target
Id String - Identifier of the target pipeline
- yaml String
- trigger yaml
- identifier String
- Unique identifier of the resource.
- ignore
Error Boolean - ignore error default false
- name String
- Name of the resource.
Package Details
- Repository
- harness pulumi/pulumi-harness
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
harness
Terraform Provider.