Oracle Cloud Infrastructure

Pulumi Official
Package maintained by Pulumi
v0.1.1 published on Tuesday, May 3, 2022 by Pulumi

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 Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testConnection = Output.Create(Oci.DevOps.GetConnection.InvokeAsync(new Oci.DevOps.GetConnectionArgs
        {
            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
	})
}

Coming soon!

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,
});

Coming soon!

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:

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.

CompartmentId string

The OCID of the compartment containing the connection.

ConnectionId string
ConnectionType string

The type of connection.

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 connection.

DisplayName string

Connection 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.

ProjectId string

The OCID of the DevOps project.

State string

The current state of the connection.

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 connection was created. Format defined by RFC3339.

TimeUpdated string

The time the connection was updated. Format defined by RFC3339.

AccessToken string

The OCID of personal access token saved in secret store.

CompartmentId string

The OCID of the compartment containing the connection.

ConnectionId string
ConnectionType string

The type of connection.

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 connection.

DisplayName string

Connection 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.

ProjectId string

The OCID of the DevOps project.

State string

The current state of the connection.

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 connection was created. Format defined by RFC3339.

TimeUpdated string

The time the connection was updated. Format defined by RFC3339.

accessToken String

The OCID of personal access token saved in secret store.

compartmentId String

The OCID of the compartment containing the connection.

connectionId String
connectionType String

The type of connection.

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 connection.

displayName String

Connection 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.

projectId String

The OCID of the DevOps project.

state String

The current state of the connection.

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 connection was created. Format defined by RFC3339.

timeUpdated String

The time the connection was updated. Format defined by RFC3339.

accessToken string

The OCID of personal access token saved in secret store.

compartmentId string

The OCID of the compartment containing the connection.

connectionId string
connectionType string

The type of connection.

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 connection.

displayName string

Connection 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.

projectId string

The OCID of the DevOps project.

state string

The current state of the connection.

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 connection was created. Format defined by RFC3339.

timeUpdated string

The time the connection was updated. Format defined by RFC3339.

access_token str

The OCID of personal access token saved in secret store.

compartment_id str

The OCID of the compartment containing the connection.

connection_id str
connection_type str

The type of connection.

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 connection.

display_name str

Connection 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.

project_id str

The OCID of the DevOps project.

state str

The current state of the connection.

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 connection was created. Format defined by RFC3339.

time_updated str

The time the connection was updated. Format defined by RFC3339.

accessToken String

The OCID of personal access token saved in secret store.

compartmentId String

The OCID of the compartment containing the connection.

connectionId String
connectionType String

The type of connection.

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 connection.

displayName String

Connection 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.

projectId String

The OCID of the DevOps project.

state String

The current state of the connection.

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 connection was created. Format defined by RFC3339.

timeUpdated String

The time the connection was updated. Format defined by RFC3339.

Package Details

Repository
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.