Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.Apm.getDataKeys
Explore with Pulumi AI
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: testApmDomain.id,
dataKeyType: dataKeyDataKeyType,
});
import pulumi
import pulumi_oci as oci
test_data_keys = oci.Apm.get_data_keys(apm_domain_id=test_apm_domain["id"],
data_key_type=data_key_data_key_type)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/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: testApmDomain.Id,
DataKeyType: pulumi.StringRef(dataKeyDataKeyType),
}, 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 = testApmDomain.Id,
DataKeyType = dataKeyDataKeyType,
});
});
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(testApmDomain.id())
.dataKeyType(dataKeyDataKeyType)
.build());
}
}
variables:
testDataKeys:
fn::invoke:
Function: oci:Apm:getDataKeys
Arguments:
apmDomainId: ${testApmDomain.id}
dataKeyType: ${dataKeyDataKeyType}
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:
- Apm
Domain stringId - The OCID of the APM domain
- Data
Key stringType - Data key type.
- Filters
List<Get
Data Keys Filter>
- Apm
Domain stringId - The OCID of the APM domain
- Data
Key stringType - Data key type.
- Filters
[]Get
Data Keys Filter
- apm
Domain StringId - The OCID of the APM domain
- data
Key StringType - Data key type.
- filters
List<Get
Data Keys Filter>
- apm
Domain stringId - The OCID of the APM domain
- data
Key stringType - Data key type.
- filters
Get
Data Keys Filter[]
- apm_
domain_ strid - The OCID of the APM domain
- data_
key_ strtype - Data key type.
- filters
Sequence[apm.
Get Data Keys Filter]
- apm
Domain StringId - The OCID of the APM domain
- data
Key StringType - Data key type.
- filters List<Property Map>
getDataKeys Result
The following output properties are available:
- Apm
Domain stringId - Data
Keys List<GetData Keys Data Key> - The list of data_keys.
- Id string
- The provider-assigned unique ID for this managed resource.
- Data
Key stringType - Filters
List<Get
Data Keys Filter>
- Apm
Domain stringId - Data
Keys []GetData Keys Data Key - The list of data_keys.
- Id string
- The provider-assigned unique ID for this managed resource.
- Data
Key stringType - Filters
[]Get
Data Keys Filter
- apm
Domain StringId - data
Keys List<GetData Keys Data Key> - The list of data_keys.
- id String
- The provider-assigned unique ID for this managed resource.
- data
Key StringType - filters
List<Get
Data Keys Filter>
- apm
Domain stringId - data
Keys GetData Keys Data Key[] - The list of data_keys.
- id string
- The provider-assigned unique ID for this managed resource.
- data
Key stringType - filters
Get
Data Keys Filter[]
- apm_
domain_ strid - data_
keys Sequence[apm.Get Data Keys Data Key] - The list of data_keys.
- id str
- The provider-assigned unique ID for this managed resource.
- data_
key_ strtype - filters
Sequence[apm.
Get Data Keys Filter]
- apm
Domain StringId - data
Keys List<Property Map> - The list of data_keys.
- id String
- The provider-assigned unique ID for this managed resource.
- data
Key StringType - filters List<Property Map>
Supporting Types
GetDataKeysDataKey
GetDataKeysFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.