Oracle Cloud Infrastructure

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

getDataKeys

This data source provides the list of Data Keys in Oracle Cloud Infrastructure Apm service.

Lists all Data Keys for the specified APM domain. The caller may filter the list by specifying the ‘dataKeyType’ query parameter.

Example Usage

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testDataKeys = Output.Create(Oci.Apm.GetDataKeys.InvokeAsync(new Oci.Apm.GetDataKeysArgs
        {
            ApmDomainId = oci_apm_apm_domain.Test_apm_domain.Id,
            DataKeyType = @var.Data_key_data_key_type,
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/go/oci/Apm"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Apm.GetDataKeys(ctx, &apm.GetDataKeysArgs{
			ApmDomainId: oci_apm_apm_domain.Test_apm_domain.Id,
			DataKeyType: pulumi.StringRef(_var.Data_key_data_key_type),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_data_keys = oci.Apm.get_data_keys(apm_domain_id=oci_apm_apm_domain["test_apm_domain"]["id"],
    data_key_type=var["data_key_data_key_type"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testDataKeys = oci.Apm.getDataKeys({
    apmDomainId: oci_apm_apm_domain.test_apm_domain.id,
    dataKeyType: _var.data_key_data_key_type,
});

Coming soon!

Using getDataKeys

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 getDataKeys(args: GetDataKeysArgs, opts?: InvokeOptions): Promise<GetDataKeysResult>
function getDataKeysOutput(args: GetDataKeysOutputArgs, opts?: InvokeOptions): Output<GetDataKeysResult>
def get_data_keys(apm_domain_id: Optional[str] = None,
                  data_key_type: Optional[str] = None,
                  filters: Optional[Sequence[_apm.GetDataKeysFilter]] = None,
                  opts: Optional[InvokeOptions] = None) -> GetDataKeysResult
def get_data_keys_output(apm_domain_id: Optional[pulumi.Input[str]] = None,
                  data_key_type: Optional[pulumi.Input[str]] = None,
                  filters: Optional[pulumi.Input[Sequence[pulumi.Input[_apm.GetDataKeysFilterArgs]]]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[GetDataKeysResult]
func GetDataKeys(ctx *Context, args *GetDataKeysArgs, opts ...InvokeOption) (*GetDataKeysResult, error)
func GetDataKeysOutput(ctx *Context, args *GetDataKeysOutputArgs, opts ...InvokeOption) GetDataKeysResultOutput

> Note: This function is named GetDataKeys in the Go SDK.

public static class GetDataKeys 
{
    public static Task<GetDataKeysResult> InvokeAsync(GetDataKeysArgs args, InvokeOptions? opts = null)
    public static Output<GetDataKeysResult> Invoke(GetDataKeysInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDataKeysResult> getDataKeys(GetDataKeysArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: oci:Apm/getDataKeys:getDataKeys
  Arguments:
    # Arguments dictionary

The following arguments are supported:

ApmDomainId string

The OCID of the APM domain

DataKeyType string

Data key type.

Filters List<GetDataKeysFilter>
ApmDomainId string

The OCID of the APM domain

DataKeyType string

Data key type.

Filters []GetDataKeysFilter
apmDomainId String

The OCID of the APM domain

dataKeyType String

Data key type.

filters List<GetDataKeysFilter>
apmDomainId string

The OCID of the APM domain

dataKeyType string

Data key type.

filters GetDataKeysFilter[]
apm_domain_id str

The OCID of the APM domain

data_key_type str

Data key type.

filters GetDataKeysFilter]
apmDomainId String

The OCID of the APM domain

dataKeyType String

Data key type.

filters List<Property Map>

getDataKeys Result

The following output properties are available:

ApmDomainId string
DataKeys List<GetDataKeysDataKey>

The list of data_keys.

Id string

The provider-assigned unique ID for this managed resource.

DataKeyType string
Filters List<GetDataKeysFilter>
ApmDomainId string
DataKeys []GetDataKeysDataKey

The list of data_keys.

Id string

The provider-assigned unique ID for this managed resource.

DataKeyType string
Filters []GetDataKeysFilter
apmDomainId String
dataKeys List<GetDataKeysDataKey>

The list of data_keys.

id String

The provider-assigned unique ID for this managed resource.

dataKeyType String
filters List<GetDataKeysFilter>
apmDomainId string
dataKeys GetDataKeysDataKey[]

The list of data_keys.

id string

The provider-assigned unique ID for this managed resource.

dataKeyType string
filters GetDataKeysFilter[]
apm_domain_id str
data_keys GetDataKeysDataKey]

The list of data_keys.

id str

The provider-assigned unique ID for this managed resource.

data_key_type str
filters GetDataKeysFilter]
apmDomainId String
dataKeys List<Property Map>

The list of data_keys.

id String

The provider-assigned unique ID for this managed resource.

dataKeyType String
filters List<Property Map>

Supporting Types

GetDataKeysDataKey

Name string

Name of the Data Key. The name uniquely identifies a Data Key within an APM domain.

Type string

Type of the Data Key.

Value string

Value of the Data Key.

Name string

Name of the Data Key. The name uniquely identifies a Data Key within an APM domain.

Type string

Type of the Data Key.

Value string

Value of the Data Key.

name String

Name of the Data Key. The name uniquely identifies a Data Key within an APM domain.

type String

Type of the Data Key.

value String

Value of the Data Key.

name string

Name of the Data Key. The name uniquely identifies a Data Key within an APM domain.

type string

Type of the Data Key.

value string

Value of the Data Key.

name str

Name of the Data Key. The name uniquely identifies a Data Key within an APM domain.

type str

Type of the Data Key.

value str

Value of the Data Key.

name String

Name of the Data Key. The name uniquely identifies a Data Key within an APM domain.

type String

Type of the Data Key.

value String

Value of the Data Key.

GetDataKeysFilter

Name string

Name of the Data Key. The name uniquely identifies a Data Key within an APM domain.

Values List<string>
Regex bool
Name string

Name of the Data Key. The name uniquely identifies a Data Key within an APM domain.

Values []string
Regex bool
name String

Name of the Data Key. The name uniquely identifies a Data Key within an APM domain.

values List<String>
regex Boolean
name string

Name of the Data Key. The name uniquely identifies a Data Key within an APM domain.

values string[]
regex boolean
name str

Name of the Data Key. The name uniquely identifies a Data Key within an APM domain.

values Sequence[str]
regex bool
name String

Name of the Data Key. The name uniquely identifies a Data Key within an APM domain.

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.