Oracle Cloud Infrastructure v3.9.0 published on Wednesday, Sep 24, 2025 by Pulumi
oci.DevOps.getConnections
This data source provides the list of Connections in Oracle Cloud Infrastructure Devops service.
Returns a list of connections.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testConnections = oci.DevOps.getConnections({
    compartmentId: compartmentId,
    connectionType: connectionConnectionType,
    displayName: connectionDisplayName,
    id: connectionId,
    projectId: testProject.id,
    state: connectionState,
});
import pulumi
import pulumi_oci as oci
test_connections = oci.DevOps.get_connections(compartment_id=compartment_id,
    connection_type=connection_connection_type,
    display_name=connection_display_name,
    id=connection_id,
    project_id=test_project["id"],
    state=connection_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.GetConnections(ctx, &devops.GetConnectionsArgs{
			CompartmentId:  pulumi.StringRef(compartmentId),
			ConnectionType: pulumi.StringRef(connectionConnectionType),
			DisplayName:    pulumi.StringRef(connectionDisplayName),
			Id:             pulumi.StringRef(connectionId),
			ProjectId:      pulumi.StringRef(testProject.Id),
			State:          pulumi.StringRef(connectionState),
		}, 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 testConnections = Oci.DevOps.GetConnections.Invoke(new()
    {
        CompartmentId = compartmentId,
        ConnectionType = connectionConnectionType,
        DisplayName = connectionDisplayName,
        Id = connectionId,
        ProjectId = testProject.Id,
        State = connectionState,
    });
});
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.GetConnectionsArgs;
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 testConnections = DevOpsFunctions.getConnections(GetConnectionsArgs.builder()
            .compartmentId(compartmentId)
            .connectionType(connectionConnectionType)
            .displayName(connectionDisplayName)
            .id(connectionId)
            .projectId(testProject.id())
            .state(connectionState)
            .build());
    }
}
variables:
  testConnections:
    fn::invoke:
      function: oci:DevOps:getConnections
      arguments:
        compartmentId: ${compartmentId}
        connectionType: ${connectionConnectionType}
        displayName: ${connectionDisplayName}
        id: ${connectionId}
        projectId: ${testProject.id}
        state: ${connectionState}
Using getConnections
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 getConnections(args: GetConnectionsArgs, opts?: InvokeOptions): Promise<GetConnectionsResult>
function getConnectionsOutput(args: GetConnectionsOutputArgs, opts?: InvokeOptions): Output<GetConnectionsResult>def get_connections(compartment_id: Optional[str] = None,
                    connection_type: Optional[str] = None,
                    display_name: Optional[str] = None,
                    filters: Optional[Sequence[GetConnectionsFilter]] = None,
                    id: Optional[str] = None,
                    project_id: Optional[str] = None,
                    state: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetConnectionsResult
def get_connections_output(compartment_id: Optional[pulumi.Input[str]] = None,
                    connection_type: Optional[pulumi.Input[str]] = None,
                    display_name: Optional[pulumi.Input[str]] = None,
                    filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetConnectionsFilterArgs]]]] = 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[GetConnectionsResult]func GetConnections(ctx *Context, args *GetConnectionsArgs, opts ...InvokeOption) (*GetConnectionsResult, error)
func GetConnectionsOutput(ctx *Context, args *GetConnectionsOutputArgs, opts ...InvokeOption) GetConnectionsResultOutput> Note: This function is named GetConnections in the Go SDK.
public static class GetConnections 
{
    public static Task<GetConnectionsResult> InvokeAsync(GetConnectionsArgs args, InvokeOptions? opts = null)
    public static Output<GetConnectionsResult> Invoke(GetConnectionsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetConnectionsResult> getConnections(GetConnectionsArgs args, InvokeOptions options)
public static Output<GetConnectionsResult> getConnections(GetConnectionsArgs args, InvokeOptions options)
fn::invoke:
  function: oci:DevOps/getConnections:getConnections
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CompartmentId string
- The OCID of the compartment in which to list resources.
- ConnectionType string
- A filter to return only resources that match the given connection type.
- DisplayName string
- A filter to return only resources that match the entire display name given.
- Filters
List<GetConnections Filter> 
- Id string
- Unique identifier or OCID for listing a single resource by ID.
- ProjectId string
- unique project identifier
- State string
- A filter to return only connections that matches the given lifecycle state.
- CompartmentId string
- The OCID of the compartment in which to list resources.
- ConnectionType string
- A filter to return only resources that match the given connection type.
- DisplayName string
- A filter to return only resources that match the entire display name given.
- Filters
[]GetConnections Filter 
- Id string
- Unique identifier or OCID for listing a single resource by ID.
- ProjectId string
- unique project identifier
- State string
- A filter to return only connections that matches the given lifecycle state.
- compartmentId String
- The OCID of the compartment in which to list resources.
- connectionType String
- A filter to return only resources that match the given connection type.
- displayName String
- A filter to return only resources that match the entire display name given.
- filters
List<GetConnections Filter> 
- id String
- Unique identifier or OCID for listing a single resource by ID.
- projectId String
- unique project identifier
- state String
- A filter to return only connections that matches the given lifecycle state.
- compartmentId string
- The OCID of the compartment in which to list resources.
- connectionType string
- A filter to return only resources that match the given connection type.
- displayName string
- A filter to return only resources that match the entire display name given.
- filters
GetConnections Filter[] 
- id string
- Unique identifier or OCID for listing a single resource by ID.
- projectId string
- unique project identifier
- state string
- A filter to return only connections that matches the given lifecycle state.
- compartment_id str
- The OCID of the compartment in which to list resources.
- connection_type str
- A filter to return only resources that match the given connection type.
- display_name str
- A filter to return only resources that match the entire display name given.
- filters
Sequence[GetConnections 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 connections that matches the given lifecycle state.
- compartmentId String
- The OCID of the compartment in which to list resources.
- connectionType String
- A filter to return only resources that match the given connection type.
- displayName 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.
- projectId String
- unique project identifier
- state String
- A filter to return only connections that matches the given lifecycle state.
getConnections Result
The following output properties are available:
- ConnectionCollections List<GetConnections Connection Collection> 
- The list of connection_collection.
- CompartmentId string
- The OCID of the compartment containing the connection.
- ConnectionType string
- The type of connection.
- DisplayName string
- Connection display name, which can be renamed and is not necessarily unique. Avoid entering confidential information.
- Filters
List<GetConnections Filter> 
- Id string
- Unique identifier that is immutable on creation.
- ProjectId string
- The OCID of the DevOps project.
- State string
- The current state of the connection.
- ConnectionCollections []GetConnections Connection Collection 
- The list of connection_collection.
- CompartmentId string
- The OCID of the compartment containing the connection.
- ConnectionType string
- The type of connection.
- DisplayName string
- Connection display name, which can be renamed and is not necessarily unique. Avoid entering confidential information.
- Filters
[]GetConnections Filter 
- Id string
- Unique identifier that is immutable on creation.
- ProjectId string
- The OCID of the DevOps project.
- State string
- The current state of the connection.
- connectionCollections List<GetConnections Connection Collection> 
- The list of connection_collection.
- compartmentId String
- The OCID of the compartment containing the connection.
- connectionType String
- The type of connection.
- displayName String
- Connection display name, which can be renamed and is not necessarily unique. Avoid entering confidential information.
- filters
List<GetConnections Filter> 
- id String
- Unique identifier that is immutable on creation.
- projectId String
- The OCID of the DevOps project.
- state String
- The current state of the connection.
- connectionCollections GetConnections Connection Collection[] 
- The list of connection_collection.
- compartmentId string
- The OCID of the compartment containing the connection.
- connectionType string
- The type of connection.
- displayName string
- Connection display name, which can be renamed and is not necessarily unique. Avoid entering confidential information.
- filters
GetConnections Filter[] 
- id string
- Unique identifier that is immutable on creation.
- projectId string
- The OCID of the DevOps project.
- state string
- The current state of the connection.
- connection_collections Sequence[GetConnections Connection Collection] 
- The list of connection_collection.
- compartment_id str
- The OCID of the compartment containing the connection.
- connection_type str
- The type of connection.
- display_name str
- Connection display name, which can be renamed and is not necessarily unique. Avoid entering confidential information.
- filters
Sequence[GetConnections 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 connection.
- connectionCollections List<Property Map>
- The list of connection_collection.
- compartmentId String
- The OCID of the compartment containing the connection.
- connectionType String
- The type of connection.
- displayName String
- Connection 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.
- projectId String
- The OCID of the DevOps project.
- state String
- The current state of the connection.
Supporting Types
GetConnectionsConnectionCollection   
GetConnectionsConnectionCollectionItem    
- AccessToken string
- The OCID of personal access token saved in secret store.
- AppPassword string
- OCID of personal Bitbucket Cloud AppPassword saved in secret store
- BaseUrl string
- The Base URL of the hosted BitbucketServer/Visual Builder Studio server.
- CompartmentId string
- The OCID of the compartment in which to list resources.
- ConnectionType string
- A filter to return only resources that match the given connection type.
- 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 connection.
- DisplayName 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.
- LastConnection List<GetValidation Results Connections Connection Collection Item Last Connection Validation Result> 
- The result of validating the credentials of a connection.
- ProjectId string
- unique project identifier
- State string
- A filter to return only connections 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"}
- TimeCreated string
- The time the connection was created. Format defined by RFC3339.
- TimeUpdated string
- The time the connection was updated. Format defined by RFC3339.
- TlsVerify List<GetConfigs Connections Connection Collection Item Tls Verify Config> 
- TLS configuration used by build service to verify TLS connection.
- Username string
- Public Bitbucket Cloud Username in plain text
- AccessToken string
- The OCID of personal access token saved in secret store.
- AppPassword string
- OCID of personal Bitbucket Cloud AppPassword saved in secret store
- BaseUrl string
- The Base URL of the hosted BitbucketServer/Visual Builder Studio server.
- CompartmentId string
- The OCID of the compartment in which to list resources.
- ConnectionType string
- A filter to return only resources that match the given connection type.
- 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 connection.
- DisplayName 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.
- LastConnection []GetValidation Results Connections Connection Collection Item Last Connection Validation Result 
- The result of validating the credentials of a connection.
- ProjectId string
- unique project identifier
- State string
- A filter to return only connections 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"}
- TimeCreated string
- The time the connection was created. Format defined by RFC3339.
- TimeUpdated string
- The time the connection was updated. Format defined by RFC3339.
- TlsVerify []GetConfigs Connections Connection Collection Item Tls Verify Config 
- TLS configuration used by build service to verify TLS connection.
- Username string
- Public Bitbucket Cloud Username in plain text
- accessToken String
- The OCID of personal access token saved in secret store.
- appPassword String
- OCID of personal Bitbucket Cloud AppPassword saved in secret store
- baseUrl String
- The Base URL of the hosted BitbucketServer/Visual Builder Studio server.
- compartmentId String
- The OCID of the compartment in which to list resources.
- connectionType String
- A filter to return only resources that match the given connection type.
- 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 connection.
- displayName 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.
- lastConnection List<GetValidation Results Connections Connection Collection Item Last Connection Validation Result> 
- The result of validating the credentials of a connection.
- projectId String
- unique project identifier
- state String
- A filter to return only connections 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"}
- timeCreated String
- The time the connection was created. Format defined by RFC3339.
- timeUpdated String
- The time the connection was updated. Format defined by RFC3339.
- tlsVerify List<GetConfigs Connections Connection Collection Item Tls Verify Config> 
- TLS configuration used by build service to verify TLS connection.
- username String
- Public Bitbucket Cloud Username in plain text
- accessToken string
- The OCID of personal access token saved in secret store.
- appPassword string
- OCID of personal Bitbucket Cloud AppPassword saved in secret store
- baseUrl string
- The Base URL of the hosted BitbucketServer/Visual Builder Studio server.
- compartmentId string
- The OCID of the compartment in which to list resources.
- connectionType string
- A filter to return only resources that match the given connection type.
- {[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 connection.
- displayName 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.
- lastConnection GetValidation Results Connections Connection Collection Item Last Connection Validation Result[] 
- The result of validating the credentials of a connection.
- projectId string
- unique project identifier
- state string
- A filter to return only connections 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"}
- timeCreated string
- The time the connection was created. Format defined by RFC3339.
- timeUpdated string
- The time the connection was updated. Format defined by RFC3339.
- tlsVerify GetConfigs Connections Connection Collection Item Tls Verify Config[] 
- TLS configuration used by build service to verify TLS connection.
- username string
- Public Bitbucket Cloud Username in plain text
- access_token str
- The OCID of personal access token saved in secret store.
- app_password str
- OCID of personal Bitbucket Cloud AppPassword saved in secret store
- base_url str
- The Base URL of the hosted BitbucketServer/Visual Builder Studio server.
- compartment_id str
- The OCID of the compartment in which to list resources.
- connection_type str
- A filter to return only resources that match the given connection type.
- 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 connection.
- 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.
- last_connection_ Sequence[Getvalidation_ results Connections Connection Collection Item Last Connection Validation Result] 
- The result of validating the credentials of a connection.
- project_id str
- unique project identifier
- state str
- A filter to return only connections 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 connection was created. Format defined by RFC3339.
- time_updated str
- The time the connection was updated. Format defined by RFC3339.
- tls_verify_ Sequence[Getconfigs Connections Connection Collection Item Tls Verify Config] 
- TLS configuration used by build service to verify TLS connection.
- username str
- Public Bitbucket Cloud Username in plain text
- accessToken String
- The OCID of personal access token saved in secret store.
- appPassword String
- OCID of personal Bitbucket Cloud AppPassword saved in secret store
- baseUrl String
- The Base URL of the hosted BitbucketServer/Visual Builder Studio server.
- compartmentId String
- The OCID of the compartment in which to list resources.
- connectionType String
- A filter to return only resources that match the given connection type.
- 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 connection.
- displayName 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.
- lastConnection List<Property Map>Validation Results 
- The result of validating the credentials of a connection.
- projectId String
- unique project identifier
- state String
- A filter to return only connections 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"}
- timeCreated String
- The time the connection was created. Format defined by RFC3339.
- timeUpdated String
- The time the connection was updated. Format defined by RFC3339.
- tlsVerify List<Property Map>Configs 
- TLS configuration used by build service to verify TLS connection.
- username String
- Public Bitbucket Cloud Username in plain text
GetConnectionsConnectionCollectionItemLastConnectionValidationResult        
- Message string
- A message describing the result of connection validation in more detail.
- Result string
- The latest result of whether the credentials pass the validation.
- TimeValidated string
- The latest timestamp when the connection was validated. Format defined by RFC3339.
- Message string
- A message describing the result of connection validation in more detail.
- Result string
- The latest result of whether the credentials pass the validation.
- TimeValidated string
- The latest timestamp when the connection was validated. Format defined by RFC3339.
- message String
- A message describing the result of connection validation in more detail.
- result String
- The latest result of whether the credentials pass the validation.
- timeValidated String
- The latest timestamp when the connection was validated. Format defined by RFC3339.
- message string
- A message describing the result of connection validation in more detail.
- result string
- The latest result of whether the credentials pass the validation.
- timeValidated string
- The latest timestamp when the connection was validated. Format defined by RFC3339.
- message str
- A message describing the result of connection validation in more detail.
- result str
- The latest result of whether the credentials pass the validation.
- time_validated str
- The latest timestamp when the connection was validated. Format defined by RFC3339.
- message String
- A message describing the result of connection validation in more detail.
- result String
- The latest result of whether the credentials pass the validation.
- timeValidated String
- The latest timestamp when the connection was validated. Format defined by RFC3339.
GetConnectionsConnectionCollectionItemTlsVerifyConfig       
- CaCertificate stringBundle Id 
- The OCID of Oracle Cloud Infrastructure certificate service CA bundle.
- TlsVerify stringMode 
- The type of TLS verification.
- CaCertificate stringBundle Id 
- The OCID of Oracle Cloud Infrastructure certificate service CA bundle.
- TlsVerify stringMode 
- The type of TLS verification.
- caCertificate StringBundle Id 
- The OCID of Oracle Cloud Infrastructure certificate service CA bundle.
- tlsVerify StringMode 
- The type of TLS verification.
- caCertificate stringBundle Id 
- The OCID of Oracle Cloud Infrastructure certificate service CA bundle.
- tlsVerify stringMode 
- The type of TLS verification.
- ca_certificate_ strbundle_ id 
- The OCID of Oracle Cloud Infrastructure certificate service CA bundle.
- tls_verify_ strmode 
- The type of TLS verification.
- caCertificate StringBundle Id 
- The OCID of Oracle Cloud Infrastructure certificate service CA bundle.
- tlsVerify StringMode 
- The type of TLS verification.
GetConnectionsFilter  
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.
