oci.DevOps.getConnection
This data source provides details about a specific Connection resource in Oracle Cloud Infrastructure Devops service.
Retrieves a connection by identifier.
Example Usage
using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testConnection = Oci.DevOps.GetConnection.Invoke(new()
{
ConnectionId = oci_devops_connection.Test_connection.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.GetConnection(ctx, &devops.GetConnectionArgs{
ConnectionId: oci_devops_connection.Test_connection.Id,
}, nil)
if err != nil {
return err
}
return nil
})
}
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(oci_devops_connection.test_connection().id())
.build());
}
}
import pulumi
import pulumi_oci as oci
test_connection = oci.DevOps.get_connection(connection_id=oci_devops_connection["test_connection"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testConnection = oci.DevOps.getConnection({
connectionId: oci_devops_connection.test_connection.id,
});
variables:
testConnection:
fn::invoke:
Function: oci:DevOps:getConnection
Arguments:
connectionId: ${oci_devops_connection.test_connection.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 GetConnection(ctx *Context, args *GetConnectionArgs, opts ...InvokeOption) (*GetConnectionResult, error)
func GetConnectionOutput(ctx *Context, args *GetConnectionOutputArgs, opts ...InvokeOption) GetConnectionResultOutput
> Note: This function is named GetConnection
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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:DevOps/getConnection:getConnection
arguments:
# arguments dictionary
The following arguments are supported:
- Connection
Id string Unique connection identifier.
- Connection
Id string Unique connection identifier.
- connection
Id String Unique connection identifier.
- connection
Id string Unique connection identifier.
- connection_
id str Unique connection identifier.
- connection
Id String Unique connection identifier.
getConnection Result
The following output properties are available:
- Access
Token string The OCID of personal access token saved in secret store.
- App
Password string OCID of personal Bitbucket Cloud AppPassword saved in secret store
- Base
Url string The Base URL of the hosted BitbucketServer/Visual Builder Studio server.
- Compartment
Id string The OCID of the compartment containing the connection.
- Connection
Id string - Connection
Type string The type of connection.
- 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 connection.
- Display
Name string Connection display name, which can be renamed and is not necessarily unique. Avoid entering confidential information.
- 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.
- Project
Id string The OCID of the DevOps project.
- State string
The current state of the connection.
- 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"}
- Time
Created string The time the connection was created. Format defined by RFC3339.
- Time
Updated string The time the connection was updated. Format defined by RFC3339.
- Tls
Verify 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
- Access
Token string The OCID of personal access token saved in secret store.
- App
Password string OCID of personal Bitbucket Cloud AppPassword saved in secret store
- Base
Url string The Base URL of the hosted BitbucketServer/Visual Builder Studio server.
- Compartment
Id string The OCID of the compartment containing the connection.
- Connection
Id string - Connection
Type string The type of connection.
- 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 connection.
- Display
Name string Connection display name, which can be renamed and is not necessarily unique. Avoid entering confidential information.
- 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.
- Project
Id string The OCID of the DevOps project.
- State string
The current state of the connection.
- 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"}
- Time
Created string The time the connection was created. Format defined by RFC3339.
- Time
Updated string The time the connection was updated. Format defined by RFC3339.
- Tls
Verify []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 String The OCID of personal access token saved in secret store.
- app
Password String OCID of personal Bitbucket Cloud AppPassword saved in secret store
- base
Url String The Base URL of the hosted BitbucketServer/Visual Builder Studio server.
- compartment
Id String The OCID of the compartment containing the connection.
- connection
Id String - connection
Type String The type of connection.
- 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 connection.
- display
Name String Connection display name, which can be renamed and is not necessarily unique. Avoid entering confidential information.
- 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.
- project
Id String The OCID of the DevOps project.
- state String
The current state of the connection.
- 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"}
- time
Created String The time the connection was created. Format defined by RFC3339.
- time
Updated String The time the connection was updated. Format defined by RFC3339.
- tls
Verify 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
- access
Token string The OCID of personal access token saved in secret store.
- app
Password string OCID of personal Bitbucket Cloud AppPassword saved in secret store
- base
Url string The Base URL of the hosted BitbucketServer/Visual Builder Studio server.
- compartment
Id string The OCID of the compartment containing the connection.
- connection
Id string - connection
Type string The type of connection.
- {[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 connection.
- display
Name string Connection display name, which can be renamed and is not necessarily unique. Avoid entering confidential information.
- {[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.
- project
Id string The OCID of the DevOps project.
- state string
The current state of the connection.
- {[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"}
- time
Created string The time the connection was created. Format defined by RFC3339.
- time
Updated string The time the connection was updated. Format defined by RFC3339.
- tls
Verify 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, 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 connection.
- display_
name str Connection display name, which can be renamed and is not necessarily unique. Avoid entering confidential information.
- 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.
- project_
id str The OCID of the DevOps project.
- state str
The current state of the connection.
- 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 connection was created. Format defined by RFC3339.
- time_
updated str The time the connection was updated. Format defined by RFC3339.
- tls_
verify_ Getconfigs Connection Tls Verify Config] TLS configuration used by build service to verify TLS connection.
- username str
Public Bitbucket Cloud Username in plain text
- access
Token String The OCID of personal access token saved in secret store.
- app
Password String OCID of personal Bitbucket Cloud AppPassword saved in secret store
- base
Url String The Base URL of the hosted BitbucketServer/Visual Builder Studio server.
- compartment
Id String The OCID of the compartment containing the connection.
- connection
Id String - connection
Type String The type of connection.
- 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 connection.
- display
Name String Connection display name, which can be renamed and is not necessarily unique. Avoid entering confidential information.
- 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.
- project
Id String The OCID of the DevOps project.
- state String
The current state of the connection.
- Map<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 String The time the connection was created. Format defined by RFC3339.
- time
Updated String The time the connection was updated. Format defined by RFC3339.
- tls
Verify 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
GetConnectionTlsVerifyConfig
- Ca
Certificate stringBundle Id The OCID of Oracle Cloud Infrastructure certificate service CA bundle.
- Tls
Verify stringMode The type of TLS verification.
- Ca
Certificate stringBundle Id The OCID of Oracle Cloud Infrastructure certificate service CA bundle.
- Tls
Verify stringMode The type of TLS verification.
- ca
Certificate StringBundle Id The OCID of Oracle Cloud Infrastructure certificate service CA bundle.
- tls
Verify StringMode The type of TLS verification.
- ca
Certificate stringBundle Id The OCID of Oracle Cloud Infrastructure certificate service CA bundle.
- tls
Verify 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.
- ca
Certificate StringBundle Id The OCID of Oracle Cloud Infrastructure certificate service CA bundle.
- tls
Verify 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
oci
Terraform Provider.