1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Apm
  5. getDataKeys
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

oci.Apm.getDataKeys

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

    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

    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,
    });
    
    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"])
    
    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
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testDataKeys = Oci.Apm.GetDataKeys.Invoke(new()
        {
            ApmDomainId = oci_apm_apm_domain.Test_apm_domain.Id,
            DataKeyType = @var.Data_key_data_key_type,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Apm.ApmFunctions;
    import com.pulumi.oci.Apm.inputs.GetDataKeysArgs;
    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 testDataKeys = ApmFunctions.getDataKeys(GetDataKeysArgs.builder()
                .apmDomainId(oci_apm_apm_domain.test_apm_domain().id())
                .dataKeyType(var_.data_key_data_key_type())
                .build());
    
        }
    }
    
    variables:
      testDataKeys:
        fn::invoke:
          Function: oci:Apm:getDataKeys
          Arguments:
            apmDomainId: ${oci_apm_apm_domain.test_apm_domain.id}
            dataKeyType: ${var.data_key_data_key_type}
    

    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 Sequence[apm.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 Sequence[apm.GetDataKeysDataKey]
    The list of data_keys.
    id str
    The provider-assigned unique ID for this managed resource.
    data_key_type str
    filters Sequence[apm.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
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi