Oracle Cloud Infrastructure

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

getConnections

This data source provides the list of Connections in Oracle Cloud Infrastructure Devops service.

Returns a list of connections.

Example Usage

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testConnections = Output.Create(Oci.DevOps.GetConnections.InvokeAsync(new Oci.DevOps.GetConnectionsArgs
        {
            CompartmentId = @var.Compartment_id,
            ConnectionType = @var.Connection_connection_type,
            DisplayName = @var.Connection_display_name,
            Id = @var.Connection_id,
            ProjectId = oci_devops_project.Test_project.Id,
            State = @var.Connection_state,
        }));
    }

}
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.GetConnections(ctx, &devops.GetConnectionsArgs{
			CompartmentId:  pulumi.StringRef(_var.Compartment_id),
			ConnectionType: pulumi.StringRef(_var.Connection_connection_type),
			DisplayName:    pulumi.StringRef(_var.Connection_display_name),
			Id:             pulumi.StringRef(_var.Connection_id),
			ProjectId:      pulumi.StringRef(oci_devops_project.Test_project.Id),
			State:          pulumi.StringRef(_var.Connection_state),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_connections = oci.DevOps.get_connections(compartment_id=var["compartment_id"],
    connection_type=var["connection_connection_type"],
    display_name=var["connection_display_name"],
    id=var["connection_id"],
    project_id=oci_devops_project["test_project"]["id"],
    state=var["connection_state"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testConnections = oci.DevOps.getConnections({
    compartmentId: _var.compartment_id,
    connectionType: _var.connection_connection_type,
    displayName: _var.connection_display_name,
    id: _var.connection_id,
    projectId: oci_devops_project.test_project.id,
    state: _var.connection_state,
});

Coming soon!

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[_devops.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[_devops.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)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: oci:DevOps/getConnections:getConnections
  Arguments:
    # Arguments dictionary

The 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<GetConnectionsFilter>
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 []GetConnectionsFilter
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<GetConnectionsFilter>
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 GetConnectionsFilter[]
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 GetConnectionsFilter]
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<GetConnectionsConnectionCollection>

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<GetConnectionsFilter>
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 []GetConnectionsConnectionCollection

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 []GetConnectionsFilter
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<GetConnectionsConnectionCollection>

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<GetConnectionsFilter>
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 GetConnectionsConnectionCollection[]

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 GetConnectionsFilter[]
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 GetConnectionsConnectionCollection]

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 GetConnectionsFilter]
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.

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.

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

A filter to return only resources that match the entire display name given.

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

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 in which to list resources.

ConnectionType string

A filter to return only resources that match the given connection type.

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

A filter to return only resources that match the entire display name given.

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

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 in which to list resources.

connectionType String

A filter to return only resources that match the given connection type.

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

A filter to return only resources that match the entire display name given.

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

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 in which to list resources.

connectionType string

A filter to return only resources that match the given connection type.

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

A filter to return only resources that match the entire display name given.

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

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 in which to list resources.

connection_type str

A filter to return only resources that match the given connection type.

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

A filter to return only resources that match the entire display name given.

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

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 in which to list resources.

connectionType String

A filter to return only resources that match the given connection type.

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

A filter to return only resources that match the entire display name given.

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

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.

GetConnectionsFilter

Name string
Values List<string>
Regex bool
Name string
Values []string
Regex bool
name String
values List<String>
regex Boolean
name string
values string[]
regex boolean
name str
values Sequence[str]
regex bool
name String
values List<String>
regex Boolean

Package Details

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

This Pulumi package is based on the oci Terraform Provider.