oci logo
Oracle Cloud Infrastructure v0.12.0, Mar 17 23

oci.LogAnalytics.getNamespaceStorageEncryptionKeyInfo

This data source provides details about a specific Namespace Storage Encryption Key Info resource in Oracle Cloud Infrastructure Log Analytics service.

This API returns the list of customer owned encryption key info.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testNamespaceStorageEncryptionKeyInfo = Oci.LogAnalytics.GetNamespaceStorageEncryptionKeyInfo.Invoke(new()
    {
        Namespace = @var.Namespace_storage_encryption_key_info_namespace,
    });

});
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := LogAnalytics.GetNamespaceStorageEncryptionKeyInfo(ctx, &loganalytics.GetNamespaceStorageEncryptionKeyInfoArgs{
			Namespace: _var.Namespace_storage_encryption_key_info_namespace,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.LogAnalytics.LogAnalyticsFunctions;
import com.pulumi.oci.LogAnalytics.inputs.GetNamespaceStorageEncryptionKeyInfoArgs;
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 testNamespaceStorageEncryptionKeyInfo = LogAnalyticsFunctions.getNamespaceStorageEncryptionKeyInfo(GetNamespaceStorageEncryptionKeyInfoArgs.builder()
            .namespace(var_.namespace_storage_encryption_key_info_namespace())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_namespace_storage_encryption_key_info = oci.LogAnalytics.get_namespace_storage_encryption_key_info(namespace=var["namespace_storage_encryption_key_info_namespace"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testNamespaceStorageEncryptionKeyInfo = oci.LogAnalytics.getNamespaceStorageEncryptionKeyInfo({
    namespace: _var.namespace_storage_encryption_key_info_namespace,
});
variables:
  testNamespaceStorageEncryptionKeyInfo:
    fn::invoke:
      Function: oci:LogAnalytics:getNamespaceStorageEncryptionKeyInfo
      Arguments:
        namespace: ${var.namespace_storage_encryption_key_info_namespace}

Using getNamespaceStorageEncryptionKeyInfo

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 getNamespaceStorageEncryptionKeyInfo(args: GetNamespaceStorageEncryptionKeyInfoArgs, opts?: InvokeOptions): Promise<GetNamespaceStorageEncryptionKeyInfoResult>
function getNamespaceStorageEncryptionKeyInfoOutput(args: GetNamespaceStorageEncryptionKeyInfoOutputArgs, opts?: InvokeOptions): Output<GetNamespaceStorageEncryptionKeyInfoResult>
def get_namespace_storage_encryption_key_info(namespace: Optional[str] = None,
                                              opts: Optional[InvokeOptions] = None) -> GetNamespaceStorageEncryptionKeyInfoResult
def get_namespace_storage_encryption_key_info_output(namespace: Optional[pulumi.Input[str]] = None,
                                              opts: Optional[InvokeOptions] = None) -> Output[GetNamespaceStorageEncryptionKeyInfoResult]
func GetNamespaceStorageEncryptionKeyInfo(ctx *Context, args *GetNamespaceStorageEncryptionKeyInfoArgs, opts ...InvokeOption) (*GetNamespaceStorageEncryptionKeyInfoResult, error)
func GetNamespaceStorageEncryptionKeyInfoOutput(ctx *Context, args *GetNamespaceStorageEncryptionKeyInfoOutputArgs, opts ...InvokeOption) GetNamespaceStorageEncryptionKeyInfoResultOutput

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

public static class GetNamespaceStorageEncryptionKeyInfo 
{
    public static Task<GetNamespaceStorageEncryptionKeyInfoResult> InvokeAsync(GetNamespaceStorageEncryptionKeyInfoArgs args, InvokeOptions? opts = null)
    public static Output<GetNamespaceStorageEncryptionKeyInfoResult> Invoke(GetNamespaceStorageEncryptionKeyInfoInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetNamespaceStorageEncryptionKeyInfoResult> getNamespaceStorageEncryptionKeyInfo(GetNamespaceStorageEncryptionKeyInfoArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: oci:LogAnalytics/getNamespaceStorageEncryptionKeyInfo:getNamespaceStorageEncryptionKeyInfo
  arguments:
    # arguments dictionary

The following arguments are supported:

Namespace string

The Logging Analytics namespace used for the request.

Namespace string

The Logging Analytics namespace used for the request.

namespace String

The Logging Analytics namespace used for the request.

namespace string

The Logging Analytics namespace used for the request.

namespace str

The Logging Analytics namespace used for the request.

namespace String

The Logging Analytics namespace used for the request.

getNamespaceStorageEncryptionKeyInfo Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Items List<GetNamespaceStorageEncryptionKeyInfoItem>

This is an array of encryption key info. There are at most 2 items in the list.

Namespace string
Id string

The provider-assigned unique ID for this managed resource.

Items []GetNamespaceStorageEncryptionKeyInfoItem

This is an array of encryption key info. There are at most 2 items in the list.

Namespace string
id String

The provider-assigned unique ID for this managed resource.

items List<GetNamespaceStorageEncryptionKeyInfoItem>

This is an array of encryption key info. There are at most 2 items in the list.

namespace String
id string

The provider-assigned unique ID for this managed resource.

items GetNamespaceStorageEncryptionKeyInfoItem[]

This is an array of encryption key info. There are at most 2 items in the list.

namespace string
id str

The provider-assigned unique ID for this managed resource.

items GetNamespaceStorageEncryptionKeyInfoItem]

This is an array of encryption key info. There are at most 2 items in the list.

namespace str
id String

The provider-assigned unique ID for this managed resource.

items List<Property Map>

This is an array of encryption key info. There are at most 2 items in the list.

namespace String

Supporting Types

GetNamespaceStorageEncryptionKeyInfoItem

KeyId string

This is the key OCID of the encryption key (null if Oracle-managed).

KeySource string

This is the source of the encryption key.

KeyType string

This is the type of data to be encrypted. It can be either active or archival.

KeyId string

This is the key OCID of the encryption key (null if Oracle-managed).

KeySource string

This is the source of the encryption key.

KeyType string

This is the type of data to be encrypted. It can be either active or archival.

keyId String

This is the key OCID of the encryption key (null if Oracle-managed).

keySource String

This is the source of the encryption key.

keyType String

This is the type of data to be encrypted. It can be either active or archival.

keyId string

This is the key OCID of the encryption key (null if Oracle-managed).

keySource string

This is the source of the encryption key.

keyType string

This is the type of data to be encrypted. It can be either active or archival.

key_id str

This is the key OCID of the encryption key (null if Oracle-managed).

key_source str

This is the source of the encryption key.

key_type str

This is the type of data to be encrypted. It can be either active or archival.

keyId String

This is the key OCID of the encryption key (null if Oracle-managed).

keySource String

This is the source of the encryption key.

keyType String

This is the type of data to be encrypted. It can be either active or archival.

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.