Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.DevOps.getConnection
Explore with Pulumi AI
This data source provides details about a specific Connection resource in Oracle Cloud Infrastructure Devops service.
Retrieves a connection by identifier.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testConnection = oci.DevOps.getConnection({
    connectionId: testConnectionOciDevopsConnection.id,
});
import pulumi
import pulumi_oci as oci
test_connection = oci.DevOps.get_connection(connection_id=test_connection_oci_devops_connection["id"])
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/devops"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := devops.GetConnection(ctx, &devops.GetConnectionArgs{
			ConnectionId: testConnectionOciDevopsConnection.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 testConnection = Oci.DevOps.GetConnection.Invoke(new()
    {
        ConnectionId = testConnectionOciDevopsConnection.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.GetConnectionArgs;
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 testConnection = DevOpsFunctions.getConnection(GetConnectionArgs.builder()
            .connectionId(testConnectionOciDevopsConnection.id())
            .build());
    }
}
variables:
  testConnection:
    fn::invoke:
      function: oci:DevOps:getConnection
      arguments:
        connectionId: ${testConnectionOciDevopsConnection.id}
Using getConnection
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 getConnection(args: GetConnectionArgs, opts?: InvokeOptions): Promise<GetConnectionResult>
function getConnectionOutput(args: GetConnectionOutputArgs, opts?: InvokeOptions): Output<GetConnectionResult>def get_connection(connection_id: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetConnectionResult
def get_connection_output(connection_id: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetConnectionResult]func LookupConnection(ctx *Context, args *LookupConnectionArgs, opts ...InvokeOption) (*LookupConnectionResult, error)
func LookupConnectionOutput(ctx *Context, args *LookupConnectionOutputArgs, opts ...InvokeOption) LookupConnectionResultOutput> Note: This function is named LookupConnection in the Go SDK.
public static class GetConnection 
{
    public static Task<GetConnectionResult> InvokeAsync(GetConnectionArgs args, InvokeOptions? opts = null)
    public static Output<GetConnectionResult> Invoke(GetConnectionInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetConnectionResult> getConnection(GetConnectionArgs args, InvokeOptions options)
public static Output<GetConnectionResult> getConnection(GetConnectionArgs args, InvokeOptions options)
fn::invoke:
  function: oci:DevOps/getConnection:getConnection
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ConnectionId string
- Unique connection identifier.
- ConnectionId string
- Unique connection identifier.
- connectionId String
- Unique connection identifier.
- connectionId string
- Unique connection identifier.
- connection_id str
- Unique connection identifier.
- connectionId String
- Unique connection identifier.
getConnection Result
The following output properties are available:
- 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 containing the connection.
- ConnectionId string
- ConnectionType string
- The type of connection.
- 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
- Connection display name, which can be renamed and is not necessarily unique. Avoid entering confidential information.
- 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 that is immutable on creation.
- LastConnection List<GetValidation Results Connection Last Connection Validation Result> 
- The result of validating the credentials of a connection.
- ProjectId string
- The OCID of the DevOps project.
- State string
- The current state of the connection.
- 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 Connection 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 containing the connection.
- ConnectionId string
- ConnectionType string
- The type of connection.
- 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
- Connection display name, which can be renamed and is not necessarily unique. Avoid entering confidential information.
- 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 that is immutable on creation.
- LastConnection []GetValidation Results Connection Last Connection Validation Result 
- The result of validating the credentials of a connection.
- ProjectId string
- The OCID of the DevOps project.
- State string
- The current state of the connection.
- 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 Connection 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 containing the connection.
- connectionId String
- connectionType String
- The type of connection.
- 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
- Connection display name, which can be renamed and is not necessarily unique. Avoid entering confidential information.
- 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 that is immutable on creation.
- lastConnection List<GetValidation Results Connection Last Connection Validation Result> 
- The result of validating the credentials of a connection.
- projectId String
- The OCID of the DevOps project.
- state String
- The current state of the connection.
- 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 Connection 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 containing the connection.
- connectionId string
- connectionType string
- The type of connection.
- {[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
- Connection display name, which can be renamed and is not necessarily unique. Avoid entering confidential information.
- {[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 that is immutable on creation.
- lastConnection GetValidation Results Connection Last Connection Validation Result[] 
- The result of validating the credentials of a connection.
- projectId string
- The OCID of the DevOps project.
- state string
- The current state of the connection.
- {[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 Connection 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 containing the connection.
- connection_id str
- connection_type str
- The type of connection.
- 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
- Connection display name, which can be renamed and is not necessarily unique. Avoid entering confidential information.
- 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 that is immutable on creation.
- last_connection_ Sequence[Getvalidation_ results Connection Last Connection Validation Result] 
- The result of validating the credentials of a connection.
- project_id str
- The OCID of the DevOps project.
- state str
- The current state of the connection.
- 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 Connection 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 containing the connection.
- connectionId String
- connectionType String
- The type of connection.
- 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
- Connection display name, which can be renamed and is not necessarily unique. Avoid entering confidential information.
- 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 that is immutable on creation.
- lastConnection List<Property Map>Validation Results 
- The result of validating the credentials of a connection.
- projectId String
- The OCID of the DevOps project.
- state String
- The current state of the connection.
- 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
Supporting Types
GetConnectionLastConnectionValidationResult     
- 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.
GetConnectionTlsVerifyConfig    
- 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.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.