1. Packages
  2. Ibm Provider
  3. API Docs
  4. getCdTektonPipelineTriggerProperty
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.getCdTektonPipelineTriggerProperty

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    Provides a read-only data source to retrieve information about a cd_tekton_pipeline_trigger_property. You can then reference the fields of the data source in other resources within the same configuration by using interpolation syntax.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const cdTektonPipelineTriggerProperty = ibm.getCdTektonPipelineTriggerProperty({
        pipelineId: ibm_cd_tekton_pipeline_trigger_property.cd_tekton_pipeline_trigger_property_instance.pipeline_id,
        propertyName: "debug-pipeline",
        triggerId: ibm_cd_tekton_pipeline_trigger_property.cd_tekton_pipeline_trigger_property_instance.trigger_id,
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    cd_tekton_pipeline_trigger_property = ibm.get_cd_tekton_pipeline_trigger_property(pipeline_id=ibm_cd_tekton_pipeline_trigger_property["cd_tekton_pipeline_trigger_property_instance"]["pipeline_id"],
        property_name="debug-pipeline",
        trigger_id=ibm_cd_tekton_pipeline_trigger_property["cd_tekton_pipeline_trigger_property_instance"]["trigger_id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ibm.LookupCdTektonPipelineTriggerProperty(ctx, &ibm.LookupCdTektonPipelineTriggerPropertyArgs{
    			PipelineId:   ibm_cd_tekton_pipeline_trigger_property.Cd_tekton_pipeline_trigger_property_instance.Pipeline_id,
    			PropertyName: "debug-pipeline",
    			TriggerId:    ibm_cd_tekton_pipeline_trigger_property.Cd_tekton_pipeline_trigger_property_instance.Trigger_id,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ibm = Pulumi.Ibm;
    
    return await Deployment.RunAsync(() => 
    {
        var cdTektonPipelineTriggerProperty = Ibm.GetCdTektonPipelineTriggerProperty.Invoke(new()
        {
            PipelineId = ibm_cd_tekton_pipeline_trigger_property.Cd_tekton_pipeline_trigger_property_instance.Pipeline_id,
            PropertyName = "debug-pipeline",
            TriggerId = ibm_cd_tekton_pipeline_trigger_property.Cd_tekton_pipeline_trigger_property_instance.Trigger_id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.IbmFunctions;
    import com.pulumi.ibm.inputs.GetCdTektonPipelineTriggerPropertyArgs;
    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 cdTektonPipelineTriggerProperty = IbmFunctions.getCdTektonPipelineTriggerProperty(GetCdTektonPipelineTriggerPropertyArgs.builder()
                .pipelineId(ibm_cd_tekton_pipeline_trigger_property.cd_tekton_pipeline_trigger_property_instance().pipeline_id())
                .propertyName("debug-pipeline")
                .triggerId(ibm_cd_tekton_pipeline_trigger_property.cd_tekton_pipeline_trigger_property_instance().trigger_id())
                .build());
    
        }
    }
    
    variables:
      cdTektonPipelineTriggerProperty:
        fn::invoke:
          function: ibm:getCdTektonPipelineTriggerProperty
          arguments:
            pipelineId: ${ibm_cd_tekton_pipeline_trigger_property.cd_tekton_pipeline_trigger_property_instance.pipeline_id}
            propertyName: debug-pipeline
            triggerId: ${ibm_cd_tekton_pipeline_trigger_property.cd_tekton_pipeline_trigger_property_instance.trigger_id}
    

    Using getCdTektonPipelineTriggerProperty

    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 getCdTektonPipelineTriggerProperty(args: GetCdTektonPipelineTriggerPropertyArgs, opts?: InvokeOptions): Promise<GetCdTektonPipelineTriggerPropertyResult>
    function getCdTektonPipelineTriggerPropertyOutput(args: GetCdTektonPipelineTriggerPropertyOutputArgs, opts?: InvokeOptions): Output<GetCdTektonPipelineTriggerPropertyResult>
    def get_cd_tekton_pipeline_trigger_property(id: Optional[str] = None,
                                                pipeline_id: Optional[str] = None,
                                                property_name: Optional[str] = None,
                                                trigger_id: Optional[str] = None,
                                                opts: Optional[InvokeOptions] = None) -> GetCdTektonPipelineTriggerPropertyResult
    def get_cd_tekton_pipeline_trigger_property_output(id: Optional[pulumi.Input[str]] = None,
                                                pipeline_id: Optional[pulumi.Input[str]] = None,
                                                property_name: Optional[pulumi.Input[str]] = None,
                                                trigger_id: Optional[pulumi.Input[str]] = None,
                                                opts: Optional[InvokeOptions] = None) -> Output[GetCdTektonPipelineTriggerPropertyResult]
    func LookupCdTektonPipelineTriggerProperty(ctx *Context, args *LookupCdTektonPipelineTriggerPropertyArgs, opts ...InvokeOption) (*LookupCdTektonPipelineTriggerPropertyResult, error)
    func LookupCdTektonPipelineTriggerPropertyOutput(ctx *Context, args *LookupCdTektonPipelineTriggerPropertyOutputArgs, opts ...InvokeOption) LookupCdTektonPipelineTriggerPropertyResultOutput

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

    public static class GetCdTektonPipelineTriggerProperty 
    {
        public static Task<GetCdTektonPipelineTriggerPropertyResult> InvokeAsync(GetCdTektonPipelineTriggerPropertyArgs args, InvokeOptions? opts = null)
        public static Output<GetCdTektonPipelineTriggerPropertyResult> Invoke(GetCdTektonPipelineTriggerPropertyInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCdTektonPipelineTriggerPropertyResult> getCdTektonPipelineTriggerProperty(GetCdTektonPipelineTriggerPropertyArgs args, InvokeOptions options)
    public static Output<GetCdTektonPipelineTriggerPropertyResult> getCdTektonPipelineTriggerProperty(GetCdTektonPipelineTriggerPropertyArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getCdTektonPipelineTriggerProperty:getCdTektonPipelineTriggerProperty
      arguments:
        # arguments dictionary

    The following arguments are supported:

    PipelineId string
    The Tekton pipeline ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[-0-9a-z]+$/.
    PropertyName string
    The property name.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[-0-9a-zA-Z_.]{1,253}$/.
    TriggerId string
    The trigger ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[-0-9a-z]+$/.
    Id string
    The unique identifier of the cd_tekton_pipeline_trigger_property.
    PipelineId string
    The Tekton pipeline ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[-0-9a-z]+$/.
    PropertyName string
    The property name.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[-0-9a-zA-Z_.]{1,253}$/.
    TriggerId string
    The trigger ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[-0-9a-z]+$/.
    Id string
    The unique identifier of the cd_tekton_pipeline_trigger_property.
    pipelineId String
    The Tekton pipeline ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[-0-9a-z]+$/.
    propertyName String
    The property name.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[-0-9a-zA-Z_.]{1,253}$/.
    triggerId String
    The trigger ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[-0-9a-z]+$/.
    id String
    The unique identifier of the cd_tekton_pipeline_trigger_property.
    pipelineId string
    The Tekton pipeline ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[-0-9a-z]+$/.
    propertyName string
    The property name.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[-0-9a-zA-Z_.]{1,253}$/.
    triggerId string
    The trigger ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[-0-9a-z]+$/.
    id string
    The unique identifier of the cd_tekton_pipeline_trigger_property.
    pipeline_id str
    The Tekton pipeline ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[-0-9a-z]+$/.
    property_name str
    The property name.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[-0-9a-zA-Z_.]{1,253}$/.
    trigger_id str
    The trigger ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[-0-9a-z]+$/.
    id str
    The unique identifier of the cd_tekton_pipeline_trigger_property.
    pipelineId String
    The Tekton pipeline ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[-0-9a-z]+$/.
    propertyName String
    The property name.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[-0-9a-zA-Z_.]{1,253}$/.
    triggerId String
    The trigger ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[-0-9a-z]+$/.
    id String
    The unique identifier of the cd_tekton_pipeline_trigger_property.

    getCdTektonPipelineTriggerProperty Result

    The following output properties are available:

    Enums List<string>
    (List) Options for single_select property type. Only needed for single_select property type.

    • Constraints: The list items must match regular expression /^[-0-9a-zA-Z_.]{1,253}$/. The maximum length is 256 items. The minimum length is 0 items.
    Href string
    (String) API URL for interacting with the trigger property.

    • Constraints: The maximum length is 2048 characters. The minimum length is 10 characters. The value must match regular expression /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    Id string
    The unique identifier of the cd_tekton_pipeline_trigger_property.
    Locked bool
    (Boolean) When true, this property cannot be overridden at runtime. Attempting to override it will result in run requests being rejected. The default is false.
    Name string
    (Forces new resource, String) Property name.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[-0-9a-zA-Z_.]{1,253}$/.
    Path string
    (String) A dot notation path for integration type properties only, that selects a value from the tool integration. If left blank the full tool integration data will be used.

    • Constraints: The maximum length is 4096 characters. The minimum length is 0 characters. The value must match regular expression /^[-0-9a-zA-Z_.]*$/.
    PipelineId string
    PropertyName string
    TriggerId string
    Type string
    (Forces new resource, String) Property type.

    • Constraints: Allowable values are: secure, text, integration, single_select, appconfig.
    Value string
    (String) Property value. Any string value is valid.

    • Constraints: The maximum length is 4096 characters. The minimum length is 0 characters. The value must match regular expression /^.*$/.
    Enums []string
    (List) Options for single_select property type. Only needed for single_select property type.

    • Constraints: The list items must match regular expression /^[-0-9a-zA-Z_.]{1,253}$/. The maximum length is 256 items. The minimum length is 0 items.
    Href string
    (String) API URL for interacting with the trigger property.

    • Constraints: The maximum length is 2048 characters. The minimum length is 10 characters. The value must match regular expression /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    Id string
    The unique identifier of the cd_tekton_pipeline_trigger_property.
    Locked bool
    (Boolean) When true, this property cannot be overridden at runtime. Attempting to override it will result in run requests being rejected. The default is false.
    Name string
    (Forces new resource, String) Property name.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[-0-9a-zA-Z_.]{1,253}$/.
    Path string
    (String) A dot notation path for integration type properties only, that selects a value from the tool integration. If left blank the full tool integration data will be used.

    • Constraints: The maximum length is 4096 characters. The minimum length is 0 characters. The value must match regular expression /^[-0-9a-zA-Z_.]*$/.
    PipelineId string
    PropertyName string
    TriggerId string
    Type string
    (Forces new resource, String) Property type.

    • Constraints: Allowable values are: secure, text, integration, single_select, appconfig.
    Value string
    (String) Property value. Any string value is valid.

    • Constraints: The maximum length is 4096 characters. The minimum length is 0 characters. The value must match regular expression /^.*$/.
    enums List<String>
    (List) Options for single_select property type. Only needed for single_select property type.

    • Constraints: The list items must match regular expression /^[-0-9a-zA-Z_.]{1,253}$/. The maximum length is 256 items. The minimum length is 0 items.
    href String
    (String) API URL for interacting with the trigger property.

    • Constraints: The maximum length is 2048 characters. The minimum length is 10 characters. The value must match regular expression /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    id String
    The unique identifier of the cd_tekton_pipeline_trigger_property.
    locked Boolean
    (Boolean) When true, this property cannot be overridden at runtime. Attempting to override it will result in run requests being rejected. The default is false.
    name String
    (Forces new resource, String) Property name.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[-0-9a-zA-Z_.]{1,253}$/.
    path String
    (String) A dot notation path for integration type properties only, that selects a value from the tool integration. If left blank the full tool integration data will be used.

    • Constraints: The maximum length is 4096 characters. The minimum length is 0 characters. The value must match regular expression /^[-0-9a-zA-Z_.]*$/.
    pipelineId String
    propertyName String
    triggerId String
    type String
    (Forces new resource, String) Property type.

    • Constraints: Allowable values are: secure, text, integration, single_select, appconfig.
    value String
    (String) Property value. Any string value is valid.

    • Constraints: The maximum length is 4096 characters. The minimum length is 0 characters. The value must match regular expression /^.*$/.
    enums string[]
    (List) Options for single_select property type. Only needed for single_select property type.

    • Constraints: The list items must match regular expression /^[-0-9a-zA-Z_.]{1,253}$/. The maximum length is 256 items. The minimum length is 0 items.
    href string
    (String) API URL for interacting with the trigger property.

    • Constraints: The maximum length is 2048 characters. The minimum length is 10 characters. The value must match regular expression /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    id string
    The unique identifier of the cd_tekton_pipeline_trigger_property.
    locked boolean
    (Boolean) When true, this property cannot be overridden at runtime. Attempting to override it will result in run requests being rejected. The default is false.
    name string
    (Forces new resource, String) Property name.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[-0-9a-zA-Z_.]{1,253}$/.
    path string
    (String) A dot notation path for integration type properties only, that selects a value from the tool integration. If left blank the full tool integration data will be used.

    • Constraints: The maximum length is 4096 characters. The minimum length is 0 characters. The value must match regular expression /^[-0-9a-zA-Z_.]*$/.
    pipelineId string
    propertyName string
    triggerId string
    type string
    (Forces new resource, String) Property type.

    • Constraints: Allowable values are: secure, text, integration, single_select, appconfig.
    value string
    (String) Property value. Any string value is valid.

    • Constraints: The maximum length is 4096 characters. The minimum length is 0 characters. The value must match regular expression /^.*$/.
    enums Sequence[str]
    (List) Options for single_select property type. Only needed for single_select property type.

    • Constraints: The list items must match regular expression /^[-0-9a-zA-Z_.]{1,253}$/. The maximum length is 256 items. The minimum length is 0 items.
    href str
    (String) API URL for interacting with the trigger property.

    • Constraints: The maximum length is 2048 characters. The minimum length is 10 characters. The value must match regular expression /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    id str
    The unique identifier of the cd_tekton_pipeline_trigger_property.
    locked bool
    (Boolean) When true, this property cannot be overridden at runtime. Attempting to override it will result in run requests being rejected. The default is false.
    name str
    (Forces new resource, String) Property name.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[-0-9a-zA-Z_.]{1,253}$/.
    path str
    (String) A dot notation path for integration type properties only, that selects a value from the tool integration. If left blank the full tool integration data will be used.

    • Constraints: The maximum length is 4096 characters. The minimum length is 0 characters. The value must match regular expression /^[-0-9a-zA-Z_.]*$/.
    pipeline_id str
    property_name str
    trigger_id str
    type str
    (Forces new resource, String) Property type.

    • Constraints: Allowable values are: secure, text, integration, single_select, appconfig.
    value str
    (String) Property value. Any string value is valid.

    • Constraints: The maximum length is 4096 characters. The minimum length is 0 characters. The value must match regular expression /^.*$/.
    enums List<String>
    (List) Options for single_select property type. Only needed for single_select property type.

    • Constraints: The list items must match regular expression /^[-0-9a-zA-Z_.]{1,253}$/. The maximum length is 256 items. The minimum length is 0 items.
    href String
    (String) API URL for interacting with the trigger property.

    • Constraints: The maximum length is 2048 characters. The minimum length is 10 characters. The value must match regular expression /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    id String
    The unique identifier of the cd_tekton_pipeline_trigger_property.
    locked Boolean
    (Boolean) When true, this property cannot be overridden at runtime. Attempting to override it will result in run requests being rejected. The default is false.
    name String
    (Forces new resource, String) Property name.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^[-0-9a-zA-Z_.]{1,253}$/.
    path String
    (String) A dot notation path for integration type properties only, that selects a value from the tool integration. If left blank the full tool integration data will be used.

    • Constraints: The maximum length is 4096 characters. The minimum length is 0 characters. The value must match regular expression /^[-0-9a-zA-Z_.]*$/.
    pipelineId String
    propertyName String
    triggerId String
    type String
    (Forces new resource, String) Property type.

    • Constraints: Allowable values are: secure, text, integration, single_select, appconfig.
    value String
    (String) Property value. Any string value is valid.

    • Constraints: The maximum length is 4096 characters. The minimum length is 0 characters. The value must match regular expression /^.*$/.

    Package Details

    Repository
    ibm ibm-cloud/terraform-provider-ibm
    License
    Notes
    This Pulumi package is based on the ibm Terraform Provider.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud