1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DevOps
  5. getBuildPipeline
Oracle Cloud Infrastructure v1.29.0 published on Thursday, Mar 28, 2024 by Pulumi

oci.DevOps.getBuildPipeline

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.29.0 published on Thursday, Mar 28, 2024 by Pulumi

    This data source provides details about a specific Build Pipeline resource in Oracle Cloud Infrastructure Devops service.

    Retrieves a build pipeline by identifier.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testBuildPipeline = oci.DevOps.getBuildPipeline({
        buildPipelineId: oci_devops_build_pipeline.test_build_pipeline.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_build_pipeline = oci.DevOps.get_build_pipeline(build_pipeline_id=oci_devops_build_pipeline["test_build_pipeline"]["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/DevOps"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := DevOps.GetBuildPipeline(ctx, &devops.GetBuildPipelineArgs{
    			BuildPipelineId: oci_devops_build_pipeline.Test_build_pipeline.Id,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testBuildPipeline = Oci.DevOps.GetBuildPipeline.Invoke(new()
        {
            BuildPipelineId = oci_devops_build_pipeline.Test_build_pipeline.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.DevOps.DevOpsFunctions;
    import com.pulumi.oci.DevOps.inputs.GetBuildPipelineArgs;
    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 testBuildPipeline = DevOpsFunctions.getBuildPipeline(GetBuildPipelineArgs.builder()
                .buildPipelineId(oci_devops_build_pipeline.test_build_pipeline().id())
                .build());
    
        }
    }
    
    variables:
      testBuildPipeline:
        fn::invoke:
          Function: oci:DevOps:getBuildPipeline
          Arguments:
            buildPipelineId: ${oci_devops_build_pipeline.test_build_pipeline.id}
    

    Using getBuildPipeline

    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 getBuildPipeline(args: GetBuildPipelineArgs, opts?: InvokeOptions): Promise<GetBuildPipelineResult>
    function getBuildPipelineOutput(args: GetBuildPipelineOutputArgs, opts?: InvokeOptions): Output<GetBuildPipelineResult>
    def get_build_pipeline(build_pipeline_id: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetBuildPipelineResult
    def get_build_pipeline_output(build_pipeline_id: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetBuildPipelineResult]
    func GetBuildPipeline(ctx *Context, args *GetBuildPipelineArgs, opts ...InvokeOption) (*GetBuildPipelineResult, error)
    func GetBuildPipelineOutput(ctx *Context, args *GetBuildPipelineOutputArgs, opts ...InvokeOption) GetBuildPipelineResultOutput

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

    public static class GetBuildPipeline 
    {
        public static Task<GetBuildPipelineResult> InvokeAsync(GetBuildPipelineArgs args, InvokeOptions? opts = null)
        public static Output<GetBuildPipelineResult> Invoke(GetBuildPipelineInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetBuildPipelineResult> getBuildPipeline(GetBuildPipelineArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:DevOps/getBuildPipeline:getBuildPipeline
      arguments:
        # arguments dictionary

    The following arguments are supported:

    BuildPipelineId string
    Unique build pipeline identifier.
    BuildPipelineId string
    Unique build pipeline identifier.
    buildPipelineId String
    Unique build pipeline identifier.
    buildPipelineId string
    Unique build pipeline identifier.
    build_pipeline_id str
    Unique build pipeline identifier.
    buildPipelineId String
    Unique build pipeline identifier.

    getBuildPipeline Result

    The following output properties are available:

    BuildPipelineId string
    BuildPipelineParameters List<GetBuildPipelineBuildPipelineParameter>
    Specifies list of parameters present in a build pipeline. An UPDATE operation replaces the existing parameters list entirely.
    CompartmentId string
    The OCID of the compartment where the build pipeline is created.
    DefinedTags Dictionary<string, object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}
    Description string
    Optional description about the build pipeline.
    DisplayName string
    Build pipeline display name, which can be renamed and is not necessarily unique. Avoid entering confidential information.
    FreeformTags Dictionary<string, object>
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example: {"bar-key": "value"}
    Id string
    Unique identifier that is immutable on creation.
    LifecycleDetails string
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
    ProjectId string
    The OCID of the DevOps project.
    State string
    The current state of the build pipeline.
    SystemTags Dictionary<string, object>
    Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The time the build pipeline was created. Format defined by RFC3339.
    TimeUpdated string
    The time the build pipeline was updated. Format defined by RFC3339.
    BuildPipelineId string
    BuildPipelineParameters []GetBuildPipelineBuildPipelineParameter
    Specifies list of parameters present in a build pipeline. An UPDATE operation replaces the existing parameters list entirely.
    CompartmentId string
    The OCID of the compartment where the build pipeline is created.
    DefinedTags map[string]interface{}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}
    Description string
    Optional description about the build pipeline.
    DisplayName string
    Build pipeline display name, which can be renamed and is not necessarily unique. Avoid entering confidential information.
    FreeformTags map[string]interface{}
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example: {"bar-key": "value"}
    Id string
    Unique identifier that is immutable on creation.
    LifecycleDetails string
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
    ProjectId string
    The OCID of the DevOps project.
    State string
    The current state of the build pipeline.
    SystemTags map[string]interface{}
    Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The time the build pipeline was created. Format defined by RFC3339.
    TimeUpdated string
    The time the build pipeline was updated. Format defined by RFC3339.
    buildPipelineId String
    buildPipelineParameters List<GetBuildPipelineBuildPipelineParameter>
    Specifies list of parameters present in a build pipeline. An UPDATE operation replaces the existing parameters list entirely.
    compartmentId String
    The OCID of the compartment where the build pipeline is created.
    definedTags Map<String,Object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}
    description String
    Optional description about the build pipeline.
    displayName String
    Build pipeline display name, which can be renamed and is not necessarily unique. Avoid entering confidential information.
    freeformTags Map<String,Object>
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example: {"bar-key": "value"}
    id String
    Unique identifier that is immutable on creation.
    lifecycleDetails String
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
    projectId String
    The OCID of the DevOps project.
    state String
    The current state of the build pipeline.
    systemTags Map<String,Object>
    Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The time the build pipeline was created. Format defined by RFC3339.
    timeUpdated String
    The time the build pipeline was updated. Format defined by RFC3339.
    buildPipelineId string
    buildPipelineParameters GetBuildPipelineBuildPipelineParameter[]
    Specifies list of parameters present in a build pipeline. An UPDATE operation replaces the existing parameters list entirely.
    compartmentId string
    The OCID of the compartment where the build pipeline is created.
    definedTags {[key: string]: any}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}
    description string
    Optional description about the build pipeline.
    displayName string
    Build pipeline display name, which can be renamed and is not necessarily unique. Avoid entering confidential information.
    freeformTags {[key: string]: any}
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example: {"bar-key": "value"}
    id string
    Unique identifier that is immutable on creation.
    lifecycleDetails string
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
    projectId string
    The OCID of the DevOps project.
    state string
    The current state of the build pipeline.
    systemTags {[key: string]: any}
    Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    The time the build pipeline was created. Format defined by RFC3339.
    timeUpdated string
    The time the build pipeline was updated. Format defined by RFC3339.
    build_pipeline_id str
    build_pipeline_parameters GetBuildPipelineBuildPipelineParameter]
    Specifies list of parameters present in a build pipeline. An UPDATE operation replaces the existing parameters list entirely.
    compartment_id str
    The OCID of the compartment where the build pipeline is created.
    defined_tags Mapping[str, Any]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}
    description str
    Optional description about the build pipeline.
    display_name str
    Build pipeline display name, which can be renamed and is not necessarily unique. Avoid entering confidential information.
    freeform_tags Mapping[str, Any]
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example: {"bar-key": "value"}
    id str
    Unique identifier that is immutable on creation.
    lifecycle_details str
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
    project_id str
    The OCID of the DevOps project.
    state str
    The current state of the build pipeline.
    system_tags Mapping[str, Any]
    Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    time_created str
    The time the build pipeline was created. Format defined by RFC3339.
    time_updated str
    The time the build pipeline was updated. Format defined by RFC3339.
    buildPipelineId String
    buildPipelineParameters List<Property Map>
    Specifies list of parameters present in a build pipeline. An UPDATE operation replaces the existing parameters list entirely.
    compartmentId String
    The OCID of the compartment where the build pipeline is created.
    definedTags Map<Any>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}
    description String
    Optional description about the build pipeline.
    displayName String
    Build pipeline display name, which can be renamed and is not necessarily unique. Avoid entering confidential information.
    freeformTags Map<Any>
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example: {"bar-key": "value"}
    id String
    Unique identifier that is immutable on creation.
    lifecycleDetails String
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
    projectId String
    The OCID of the DevOps project.
    state String
    The current state of the build pipeline.
    systemTags Map<Any>
    Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The time the build pipeline was created. Format defined by RFC3339.
    timeUpdated String
    The time the build pipeline was updated. Format defined by RFC3339.

    Supporting Types

    GetBuildPipelineBuildPipelineParameter

    Items List<GetBuildPipelineBuildPipelineParameterItem>
    List of parameters defined for a build pipeline.
    Items []GetBuildPipelineBuildPipelineParameterItem
    List of parameters defined for a build pipeline.
    items List<GetBuildPipelineBuildPipelineParameterItem>
    List of parameters defined for a build pipeline.
    items GetBuildPipelineBuildPipelineParameterItem[]
    List of parameters defined for a build pipeline.
    items GetBuildPipelineBuildPipelineParameterItem]
    List of parameters defined for a build pipeline.
    items List<Property Map>
    List of parameters defined for a build pipeline.

    GetBuildPipelineBuildPipelineParameterItem

    DefaultValue string
    Default value of the parameter.
    Description string
    Optional description about the build pipeline.
    Name string
    Name of the parameter (case-sensitive). Parameter name must be ^[a-zA-Z][a-zA-Z_0-9]*$. Example: 'Build_Pipeline_param' is not same as 'build_pipeline_Param'
    DefaultValue string
    Default value of the parameter.
    Description string
    Optional description about the build pipeline.
    Name string
    Name of the parameter (case-sensitive). Parameter name must be ^[a-zA-Z][a-zA-Z_0-9]*$. Example: 'Build_Pipeline_param' is not same as 'build_pipeline_Param'
    defaultValue String
    Default value of the parameter.
    description String
    Optional description about the build pipeline.
    name String
    Name of the parameter (case-sensitive). Parameter name must be ^[a-zA-Z][a-zA-Z_0-9]*$. Example: 'Build_Pipeline_param' is not same as 'build_pipeline_Param'
    defaultValue string
    Default value of the parameter.
    description string
    Optional description about the build pipeline.
    name string
    Name of the parameter (case-sensitive). Parameter name must be ^[a-zA-Z][a-zA-Z_0-9]*$. Example: 'Build_Pipeline_param' is not same as 'build_pipeline_Param'
    default_value str
    Default value of the parameter.
    description str
    Optional description about the build pipeline.
    name str
    Name of the parameter (case-sensitive). Parameter name must be ^[a-zA-Z][a-zA-Z_0-9]*$. Example: 'Build_Pipeline_param' is not same as 'build_pipeline_Param'
    defaultValue String
    Default value of the parameter.
    description String
    Optional description about the build pipeline.
    name String
    Name of the parameter (case-sensitive). Parameter name must be ^[a-zA-Z][a-zA-Z_0-9]*$. Example: 'Build_Pipeline_param' is not same as 'build_pipeline_Param'

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.29.0 published on Thursday, Mar 28, 2024 by Pulumi