Oracle Cloud Infrastructure v3.9.0 published on Wednesday, Sep 24, 2025 by Pulumi
oci.DevOps.getBuildPipelines
This data source provides the list of Build Pipelines in Oracle Cloud Infrastructure Devops service.
Returns a list of build pipelines.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testBuildPipelines = oci.DevOps.getBuildPipelines({
compartmentId: compartmentId,
displayName: buildPipelineDisplayName,
id: buildPipelineId,
projectId: testProject.id,
state: buildPipelineState,
});
import pulumi
import pulumi_oci as oci
test_build_pipelines = oci.DevOps.get_build_pipelines(compartment_id=compartment_id,
display_name=build_pipeline_display_name,
id=build_pipeline_id,
project_id=test_project["id"],
state=build_pipeline_state)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/devops"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := devops.GetBuildPipelines(ctx, &devops.GetBuildPipelinesArgs{
CompartmentId: pulumi.StringRef(compartmentId),
DisplayName: pulumi.StringRef(buildPipelineDisplayName),
Id: pulumi.StringRef(buildPipelineId),
ProjectId: pulumi.StringRef(testProject.Id),
State: pulumi.StringRef(buildPipelineState),
}, 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 testBuildPipelines = Oci.DevOps.GetBuildPipelines.Invoke(new()
{
CompartmentId = compartmentId,
DisplayName = buildPipelineDisplayName,
Id = buildPipelineId,
ProjectId = testProject.Id,
State = buildPipelineState,
});
});
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.GetBuildPipelinesArgs;
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 testBuildPipelines = DevOpsFunctions.getBuildPipelines(GetBuildPipelinesArgs.builder()
.compartmentId(compartmentId)
.displayName(buildPipelineDisplayName)
.id(buildPipelineId)
.projectId(testProject.id())
.state(buildPipelineState)
.build());
}
}
variables:
testBuildPipelines:
fn::invoke:
function: oci:DevOps:getBuildPipelines
arguments:
compartmentId: ${compartmentId}
displayName: ${buildPipelineDisplayName}
id: ${buildPipelineId}
projectId: ${testProject.id}
state: ${buildPipelineState}
Using getBuildPipelines
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 getBuildPipelines(args: GetBuildPipelinesArgs, opts?: InvokeOptions): Promise<GetBuildPipelinesResult>
function getBuildPipelinesOutput(args: GetBuildPipelinesOutputArgs, opts?: InvokeOptions): Output<GetBuildPipelinesResult>def get_build_pipelines(compartment_id: Optional[str] = None,
display_name: Optional[str] = None,
filters: Optional[Sequence[GetBuildPipelinesFilter]] = None,
id: Optional[str] = None,
project_id: Optional[str] = None,
state: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetBuildPipelinesResult
def get_build_pipelines_output(compartment_id: Optional[pulumi.Input[str]] = None,
display_name: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetBuildPipelinesFilterArgs]]]] = None,
id: Optional[pulumi.Input[str]] = None,
project_id: Optional[pulumi.Input[str]] = None,
state: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetBuildPipelinesResult]func GetBuildPipelines(ctx *Context, args *GetBuildPipelinesArgs, opts ...InvokeOption) (*GetBuildPipelinesResult, error)
func GetBuildPipelinesOutput(ctx *Context, args *GetBuildPipelinesOutputArgs, opts ...InvokeOption) GetBuildPipelinesResultOutput> Note: This function is named GetBuildPipelines in the Go SDK.
public static class GetBuildPipelines
{
public static Task<GetBuildPipelinesResult> InvokeAsync(GetBuildPipelinesArgs args, InvokeOptions? opts = null)
public static Output<GetBuildPipelinesResult> Invoke(GetBuildPipelinesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetBuildPipelinesResult> getBuildPipelines(GetBuildPipelinesArgs args, InvokeOptions options)
public static Output<GetBuildPipelinesResult> getBuildPipelines(GetBuildPipelinesArgs args, InvokeOptions options)
fn::invoke:
function: oci:DevOps/getBuildPipelines:getBuildPipelines
arguments:
# arguments dictionaryThe following arguments are supported:
- Compartment
Id string - The OCID of the compartment in which to list resources.
- Display
Name string - A filter to return only resources that match the entire display name given.
- Filters
List<Get
Build Pipelines Filter> - Id string
- Unique identifier or OCID for listing a single resource by ID.
- Project
Id string - unique project identifier
- State string
- A filter to return only build pipelines that matches the given lifecycle state.
- Compartment
Id string - The OCID of the compartment in which to list resources.
- Display
Name string - A filter to return only resources that match the entire display name given.
- Filters
[]Get
Build Pipelines Filter - Id string
- Unique identifier or OCID for listing a single resource by ID.
- Project
Id string - unique project identifier
- State string
- A filter to return only build pipelines that matches the given lifecycle state.
- compartment
Id String - The OCID of the compartment in which to list resources.
- display
Name String - A filter to return only resources that match the entire display name given.
- filters
List<Get
Build Pipelines Filter> - id String
- Unique identifier or OCID for listing a single resource by ID.
- project
Id String - unique project identifier
- state String
- A filter to return only build pipelines that matches the given lifecycle state.
- compartment
Id string - The OCID of the compartment in which to list resources.
- display
Name string - A filter to return only resources that match the entire display name given.
- filters
Get
Build Pipelines Filter[] - id string
- Unique identifier or OCID for listing a single resource by ID.
- project
Id string - unique project identifier
- state string
- A filter to return only build pipelines that matches the given lifecycle state.
- compartment_
id str - The OCID of the compartment in which to list resources.
- display_
name str - A filter to return only resources that match the entire display name given.
- filters
Sequence[Get
Build Pipelines Filter] - id str
- Unique identifier or OCID for listing a single resource by ID.
- project_
id str - unique project identifier
- state str
- A filter to return only build pipelines that matches the given lifecycle state.
- compartment
Id String - The OCID of the compartment in which to list resources.
- display
Name String - A filter to return only resources that match the entire display name given.
- filters List<Property Map>
- id String
- Unique identifier or OCID for listing a single resource by ID.
- project
Id String - unique project identifier
- state String
- A filter to return only build pipelines that matches the given lifecycle state.
getBuildPipelines Result
The following output properties are available:
- Build
Pipeline List<GetCollections Build Pipelines Build Pipeline Collection> - The list of build_pipeline_collection.
- Compartment
Id string - The OCID of the compartment where the build pipeline is created.
- Display
Name string - Build pipeline display name, which can be renamed and is not necessarily unique. Avoid entering confidential information.
- Filters
List<Get
Build Pipelines Filter> - Id string
- Unique identifier that is immutable on creation.
- Project
Id string - The OCID of the DevOps project.
- State string
- The current state of the build pipeline.
- Build
Pipeline []GetCollections Build Pipelines Build Pipeline Collection - The list of build_pipeline_collection.
- Compartment
Id string - The OCID of the compartment where the build pipeline is created.
- Display
Name string - Build pipeline display name, which can be renamed and is not necessarily unique. Avoid entering confidential information.
- Filters
[]Get
Build Pipelines Filter - Id string
- Unique identifier that is immutable on creation.
- Project
Id string - The OCID of the DevOps project.
- State string
- The current state of the build pipeline.
- build
Pipeline List<GetCollections Build Pipelines Build Pipeline Collection> - The list of build_pipeline_collection.
- compartment
Id String - The OCID of the compartment where the build pipeline is created.
- display
Name String - Build pipeline display name, which can be renamed and is not necessarily unique. Avoid entering confidential information.
- filters
List<Get
Build Pipelines Filter> - id String
- Unique identifier that is immutable on creation.
- project
Id String - The OCID of the DevOps project.
- state String
- The current state of the build pipeline.
- build
Pipeline GetCollections Build Pipelines Build Pipeline Collection[] - The list of build_pipeline_collection.
- compartment
Id string - The OCID of the compartment where the build pipeline is created.
- display
Name string - Build pipeline display name, which can be renamed and is not necessarily unique. Avoid entering confidential information.
- filters
Get
Build Pipelines Filter[] - id string
- Unique identifier that is immutable on creation.
- project
Id string - The OCID of the DevOps project.
- state string
- The current state of the build pipeline.
- build_
pipeline_ Sequence[Getcollections Build Pipelines Build Pipeline Collection] - The list of build_pipeline_collection.
- compartment_
id str - The OCID of the compartment where the build pipeline is created.
- display_
name str - Build pipeline display name, which can be renamed and is not necessarily unique. Avoid entering confidential information.
- filters
Sequence[Get
Build Pipelines Filter] - id str
- Unique identifier that is immutable on creation.
- project_
id str - The OCID of the DevOps project.
- state str
- The current state of the build pipeline.
- build
Pipeline List<Property Map>Collections - The list of build_pipeline_collection.
- compartment
Id String - The OCID of the compartment where the build pipeline is created.
- display
Name String - Build pipeline display name, which can be renamed and is not necessarily unique. Avoid entering confidential information.
- filters List<Property Map>
- id String
- Unique identifier that is immutable on creation.
- project
Id String - The OCID of the DevOps project.
- state String
- The current state of the build pipeline.
Supporting Types
GetBuildPipelinesBuildPipelineCollection
- Items
List<Get
Build Pipelines Build Pipeline Collection Item> - List of parameters defined for a build pipeline.
- Items
[]Get
Build Pipelines Build Pipeline Collection Item - List of parameters defined for a build pipeline.
- items
List<Get
Build Pipelines Build Pipeline Collection Item> - List of parameters defined for a build pipeline.
- items
Get
Build Pipelines Build Pipeline Collection Item[] - List of parameters defined for a build pipeline.
- items
Sequence[Get
Build Pipelines Build Pipeline Collection Item] - List of parameters defined for a build pipeline.
- items List<Property Map>
- List of parameters defined for a build pipeline.
GetBuildPipelinesBuildPipelineCollectionItem
- Build
Pipeline List<GetParameters Build Pipelines Build Pipeline Collection Item Build Pipeline Parameter> - Specifies list of parameters present in a build pipeline. An UPDATE operation replaces the existing parameters list entirely.
- Compartment
Id string - The OCID of the compartment in which to list resources.
- Dictionary<string, string>
- 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.
- Display
Name string - A filter to return only resources that match the entire display name given.
- Dictionary<string, string>
- 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 or OCID for listing a single resource by ID.
- Lifecycle
Details 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.
- Project
Id string - unique project identifier
- State string
- A filter to return only build pipelines that matches the given lifecycle state.
- Dictionary<string, string>
- Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - The time the build pipeline was created. Format defined by RFC3339.
- Time
Updated string - The time the build pipeline was updated. Format defined by RFC3339.
- Build
Pipeline []GetParameters Build Pipelines Build Pipeline Collection Item Build Pipeline Parameter - Specifies list of parameters present in a build pipeline. An UPDATE operation replaces the existing parameters list entirely.
- Compartment
Id string - The OCID of the compartment in which to list resources.
- map[string]string
- 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.
- Display
Name string - A filter to return only resources that match the entire display name given.
- map[string]string
- 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 or OCID for listing a single resource by ID.
- Lifecycle
Details 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.
- Project
Id string - unique project identifier
- State string
- A filter to return only build pipelines that matches the given lifecycle state.
- map[string]string
- Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - The time the build pipeline was created. Format defined by RFC3339.
- Time
Updated string - The time the build pipeline was updated. Format defined by RFC3339.
- build
Pipeline List<GetParameters Build Pipelines Build Pipeline Collection Item Build Pipeline Parameter> - Specifies list of parameters present in a build pipeline. An UPDATE operation replaces the existing parameters list entirely.
- compartment
Id String - The OCID of the compartment in which to list resources.
- Map<String,String>
- 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.
- display
Name String - A filter to return only resources that match the entire display name given.
- Map<String,String>
- 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 or OCID for listing a single resource by ID.
- lifecycle
Details 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.
- project
Id String - unique project identifier
- state String
- A filter to return only build pipelines that matches the given lifecycle state.
- Map<String,String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - The time the build pipeline was created. Format defined by RFC3339.
- time
Updated String - The time the build pipeline was updated. Format defined by RFC3339.
- build
Pipeline GetParameters Build Pipelines Build Pipeline Collection Item Build Pipeline Parameter[] - Specifies list of parameters present in a build pipeline. An UPDATE operation replaces the existing parameters list entirely.
- compartment
Id string - The OCID of the compartment in which to list resources.
- {[key: string]: string}
- 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.
- display
Name string - A filter to return only resources that match the entire display name given.
- {[key: string]: string}
- 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 or OCID for listing a single resource by ID.
- lifecycle
Details 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.
- project
Id string - unique project identifier
- state string
- A filter to return only build pipelines that matches the given lifecycle state.
- {[key: string]: string}
- Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created string - The time the build pipeline was created. Format defined by RFC3339.
- time
Updated string - The time the build pipeline was updated. Format defined by RFC3339.
- build_
pipeline_ Sequence[Getparameters Build Pipelines Build Pipeline Collection Item Build Pipeline Parameter] - 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 in which to list resources.
- Mapping[str, str]
- 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 - A filter to return only resources that match the entire display name given.
- Mapping[str, str]
- 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 or OCID for listing a single resource by ID.
- 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 - unique project identifier
- state str
- A filter to return only build pipelines that matches the given lifecycle state.
- Mapping[str, str]
- 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.
- build
Pipeline List<Property Map>Parameters - Specifies list of parameters present in a build pipeline. An UPDATE operation replaces the existing parameters list entirely.
- compartment
Id String - The OCID of the compartment in which to list resources.
- Map<String>
- 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.
- display
Name String - A filter to return only resources that match the entire display name given.
- Map<String>
- 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 or OCID for listing a single resource by ID.
- lifecycle
Details 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.
- project
Id String - unique project identifier
- state String
- A filter to return only build pipelines that matches the given lifecycle state.
- Map<String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - The time the build pipeline was created. Format defined by RFC3339.
- time
Updated String - The time the build pipeline was updated. Format defined by RFC3339.
GetBuildPipelinesBuildPipelineCollectionItemBuildPipelineParameter
- Items
List<Get
Build Pipelines Build Pipeline Collection Item Build Pipeline Parameter Item> - List of parameters defined for a build pipeline.
- Items
[]Get
Build Pipelines Build Pipeline Collection Item Build Pipeline Parameter Item - List of parameters defined for a build pipeline.
- items
List<Get
Build Pipelines Build Pipeline Collection Item Build Pipeline Parameter Item> - List of parameters defined for a build pipeline.
- items
Get
Build Pipelines Build Pipeline Collection Item Build Pipeline Parameter Item[] - List of parameters defined for a build pipeline.
- items
Sequence[Get
Build Pipelines Build Pipeline Collection Item Build Pipeline Parameter Item] - List of parameters defined for a build pipeline.
- items List<Property Map>
- List of parameters defined for a build pipeline.
GetBuildPipelinesBuildPipelineCollectionItemBuildPipelineParameterItem
- Default
Value 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 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 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 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'
- default
Value 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'
GetBuildPipelinesFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
