Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi
oci.DataCatalog.getConnection
Explore with Pulumi AI
This data source provides details about a specific Connection resource in Oracle Cloud Infrastructure Data Catalog service.
Gets a specific data asset connection by key.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testConnection = oci.DataCatalog.getConnection({
catalogId: testCatalog.id,
connectionKey: connectionConnectionKey,
dataAssetKey: connectionDataAssetKey,
fields: connectionFields,
});
import pulumi
import pulumi_oci as oci
test_connection = oci.DataCatalog.get_connection(catalog_id=test_catalog["id"],
connection_key=connection_connection_key,
data_asset_key=connection_data_asset_key,
fields=connection_fields)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/DataCatalog"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := DataCatalog.GetConnection(ctx, &datacatalog.GetConnectionArgs{
CatalogId: testCatalog.Id,
ConnectionKey: connectionConnectionKey,
DataAssetKey: connectionDataAssetKey,
Fields: connectionFields,
}, 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.DataCatalog.GetConnection.Invoke(new()
{
CatalogId = testCatalog.Id,
ConnectionKey = connectionConnectionKey,
DataAssetKey = connectionDataAssetKey,
Fields = connectionFields,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DataCatalog.DataCatalogFunctions;
import com.pulumi.oci.DataCatalog.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 = DataCatalogFunctions.getConnection(GetConnectionArgs.builder()
.catalogId(testCatalog.id())
.connectionKey(connectionConnectionKey)
.dataAssetKey(connectionDataAssetKey)
.fields(connectionFields)
.build());
}
}
variables:
testConnection:
fn::invoke:
Function: oci:DataCatalog:getConnection
Arguments:
catalogId: ${testCatalog.id}
connectionKey: ${connectionConnectionKey}
dataAssetKey: ${connectionDataAssetKey}
fields: ${connectionFields}
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(catalog_id: Optional[str] = None,
connection_key: Optional[str] = None,
data_asset_key: Optional[str] = None,
fields: Optional[Sequence[str]] = None,
opts: Optional[InvokeOptions] = None) -> GetConnectionResult
def get_connection_output(catalog_id: Optional[pulumi.Input[str]] = None,
connection_key: Optional[pulumi.Input[str]] = None,
data_asset_key: Optional[pulumi.Input[str]] = None,
fields: Optional[pulumi.Input[Sequence[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:DataCatalog/getConnection:getConnection
arguments:
# arguments dictionary
The following arguments are supported:
- Catalog
Id string - Unique catalog identifier.
- Connection
Key string - Unique connection key.
- Data
Asset stringKey - Unique data asset key.
- Fields List<string>
- Specifies the fields to return in a connection response.
- Catalog
Id string - Unique catalog identifier.
- Connection
Key string - Unique connection key.
- Data
Asset stringKey - Unique data asset key.
- Fields []string
- Specifies the fields to return in a connection response.
- catalog
Id String - Unique catalog identifier.
- connection
Key String - Unique connection key.
- data
Asset StringKey - Unique data asset key.
- fields List<String>
- Specifies the fields to return in a connection response.
- catalog
Id string - Unique catalog identifier.
- connection
Key string - Unique connection key.
- data
Asset stringKey - Unique data asset key.
- fields string[]
- Specifies the fields to return in a connection response.
- catalog_
id str - Unique catalog identifier.
- connection_
key str - Unique connection key.
- data_
asset_ strkey - Unique data asset key.
- fields Sequence[str]
- Specifies the fields to return in a connection response.
- catalog
Id String - Unique catalog identifier.
- connection
Key String - Unique connection key.
- data
Asset StringKey - Unique data asset key.
- fields List<String>
- Specifies the fields to return in a connection response.
getConnection Result
The following output properties are available:
- Catalog
Id string - Connection
Key string - Created
By stringId - OCID of the user who created the connection.
- Data
Asset stringKey - Unique key of the parent data asset.
- Description string
- A description of the connection.
- Display
Name string - A user-friendly display name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Enc
Properties Dictionary<string, string> - External
Key string - Unique external key of this object from the source system.
- Id string
- Is
Default bool - Indicates whether this connection is the default connection.
- Key string
- Unique connection key that is immutable.
- Properties Dictionary<string, string>
- A map of maps that contains the properties which are specific to the connection type. Each connection type definition defines it's set of required and optional properties. The map keys are category names and the values are maps of property name to property value. Every property is contained inside of a category. Most connections have required properties within the "default" category. Example:
{"properties": { "default": { "username": "user1"}}}
- State string
- The current state of the connection.
- Time
Created string - The date and time the connection was created, in the format defined by RFC3339. Example:
2019-03-25T21:10:29.600Z
- Time
Status stringUpdated - Time that the connections status was last updated. An RFC3339 formatted datetime string.
- Time
Updated string - The last time that any change was made to the connection. An RFC3339 formatted datetime string.
- Type
Key string - The key of the object type. Type key's can be found via the '/types' endpoint.
- Updated
By stringId - OCID of the user who modified the connection.
- Uri string
- URI to the connection instance in the API.
- Fields List<string>
- Catalog
Id string - Connection
Key string - Created
By stringId - OCID of the user who created the connection.
- Data
Asset stringKey - Unique key of the parent data asset.
- Description string
- A description of the connection.
- Display
Name string - A user-friendly display name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Enc
Properties map[string]string - External
Key string - Unique external key of this object from the source system.
- Id string
- Is
Default bool - Indicates whether this connection is the default connection.
- Key string
- Unique connection key that is immutable.
- Properties map[string]string
- A map of maps that contains the properties which are specific to the connection type. Each connection type definition defines it's set of required and optional properties. The map keys are category names and the values are maps of property name to property value. Every property is contained inside of a category. Most connections have required properties within the "default" category. Example:
{"properties": { "default": { "username": "user1"}}}
- State string
- The current state of the connection.
- Time
Created string - The date and time the connection was created, in the format defined by RFC3339. Example:
2019-03-25T21:10:29.600Z
- Time
Status stringUpdated - Time that the connections status was last updated. An RFC3339 formatted datetime string.
- Time
Updated string - The last time that any change was made to the connection. An RFC3339 formatted datetime string.
- Type
Key string - The key of the object type. Type key's can be found via the '/types' endpoint.
- Updated
By stringId - OCID of the user who modified the connection.
- Uri string
- URI to the connection instance in the API.
- Fields []string
- catalog
Id String - connection
Key String - created
By StringId - OCID of the user who created the connection.
- data
Asset StringKey - Unique key of the parent data asset.
- description String
- A description of the connection.
- display
Name String - A user-friendly display name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- enc
Properties Map<String,String> - external
Key String - Unique external key of this object from the source system.
- id String
- is
Default Boolean - Indicates whether this connection is the default connection.
- key String
- Unique connection key that is immutable.
- properties Map<String,String>
- A map of maps that contains the properties which are specific to the connection type. Each connection type definition defines it's set of required and optional properties. The map keys are category names and the values are maps of property name to property value. Every property is contained inside of a category. Most connections have required properties within the "default" category. Example:
{"properties": { "default": { "username": "user1"}}}
- state String
- The current state of the connection.
- time
Created String - The date and time the connection was created, in the format defined by RFC3339. Example:
2019-03-25T21:10:29.600Z
- time
Status StringUpdated - Time that the connections status was last updated. An RFC3339 formatted datetime string.
- time
Updated String - The last time that any change was made to the connection. An RFC3339 formatted datetime string.
- type
Key String - The key of the object type. Type key's can be found via the '/types' endpoint.
- updated
By StringId - OCID of the user who modified the connection.
- uri String
- URI to the connection instance in the API.
- fields List<String>
- catalog
Id string - connection
Key string - created
By stringId - OCID of the user who created the connection.
- data
Asset stringKey - Unique key of the parent data asset.
- description string
- A description of the connection.
- display
Name string - A user-friendly display name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- enc
Properties {[key: string]: string} - external
Key string - Unique external key of this object from the source system.
- id string
- is
Default boolean - Indicates whether this connection is the default connection.
- key string
- Unique connection key that is immutable.
- properties {[key: string]: string}
- A map of maps that contains the properties which are specific to the connection type. Each connection type definition defines it's set of required and optional properties. The map keys are category names and the values are maps of property name to property value. Every property is contained inside of a category. Most connections have required properties within the "default" category. Example:
{"properties": { "default": { "username": "user1"}}}
- state string
- The current state of the connection.
- time
Created string - The date and time the connection was created, in the format defined by RFC3339. Example:
2019-03-25T21:10:29.600Z
- time
Status stringUpdated - Time that the connections status was last updated. An RFC3339 formatted datetime string.
- time
Updated string - The last time that any change was made to the connection. An RFC3339 formatted datetime string.
- type
Key string - The key of the object type. Type key's can be found via the '/types' endpoint.
- updated
By stringId - OCID of the user who modified the connection.
- uri string
- URI to the connection instance in the API.
- fields string[]
- catalog_
id str - connection_
key str - created_
by_ strid - OCID of the user who created the connection.
- data_
asset_ strkey - Unique key of the parent data asset.
- description str
- A description of the connection.
- display_
name str - A user-friendly display name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- enc_
properties Mapping[str, str] - external_
key str - Unique external key of this object from the source system.
- id str
- is_
default bool - Indicates whether this connection is the default connection.
- key str
- Unique connection key that is immutable.
- properties Mapping[str, str]
- A map of maps that contains the properties which are specific to the connection type. Each connection type definition defines it's set of required and optional properties. The map keys are category names and the values are maps of property name to property value. Every property is contained inside of a category. Most connections have required properties within the "default" category. Example:
{"properties": { "default": { "username": "user1"}}}
- state str
- The current state of the connection.
- time_
created str - The date and time the connection was created, in the format defined by RFC3339. Example:
2019-03-25T21:10:29.600Z
- time_
status_ strupdated - Time that the connections status was last updated. An RFC3339 formatted datetime string.
- time_
updated str - The last time that any change was made to the connection. An RFC3339 formatted datetime string.
- type_
key str - The key of the object type. Type key's can be found via the '/types' endpoint.
- updated_
by_ strid - OCID of the user who modified the connection.
- uri str
- URI to the connection instance in the API.
- fields Sequence[str]
- catalog
Id String - connection
Key String - created
By StringId - OCID of the user who created the connection.
- data
Asset StringKey - Unique key of the parent data asset.
- description String
- A description of the connection.
- display
Name String - A user-friendly display name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- enc
Properties Map<String> - external
Key String - Unique external key of this object from the source system.
- id String
- is
Default Boolean - Indicates whether this connection is the default connection.
- key String
- Unique connection key that is immutable.
- properties Map<String>
- A map of maps that contains the properties which are specific to the connection type. Each connection type definition defines it's set of required and optional properties. The map keys are category names and the values are maps of property name to property value. Every property is contained inside of a category. Most connections have required properties within the "default" category. Example:
{"properties": { "default": { "username": "user1"}}}
- state String
- The current state of the connection.
- time
Created String - The date and time the connection was created, in the format defined by RFC3339. Example:
2019-03-25T21:10:29.600Z
- time
Status StringUpdated - Time that the connections status was last updated. An RFC3339 formatted datetime string.
- time
Updated String - The last time that any change was made to the connection. An RFC3339 formatted datetime string.
- type
Key String - The key of the object type. Type key's can be found via the '/types' endpoint.
- updated
By StringId - OCID of the user who modified the connection.
- uri String
- URI to the connection instance in the API.
- fields List<String>
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.