1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. LogAnalytics
  5. getNamespaceStorageEncryptionKeyInfo
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

oci.LogAnalytics.getNamespaceStorageEncryptionKeyInfo

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

    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

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testNamespaceStorageEncryptionKeyInfo = oci.LogAnalytics.getNamespaceStorageEncryptionKeyInfo({
        namespace: namespaceStorageEncryptionKeyInfoNamespace,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_namespace_storage_encryption_key_info = oci.LogAnalytics.get_namespace_storage_encryption_key_info(namespace=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: namespaceStorageEncryptionKeyInfoNamespace,
    		}, 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 testNamespaceStorageEncryptionKeyInfo = Oci.LogAnalytics.GetNamespaceStorageEncryptionKeyInfo.Invoke(new()
        {
            Namespace = namespaceStorageEncryptionKeyInfoNamespace,
        });
    
    });
    
    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(namespaceStorageEncryptionKeyInfoNamespace)
                .build());
    
        }
    }
    
    variables:
      testNamespaceStorageEncryptionKeyInfo:
        fn::invoke:
          Function: oci:LogAnalytics:getNamespaceStorageEncryptionKeyInfo
          Arguments:
            namespace: ${namespaceStorageEncryptionKeyInfoNamespace}
    

    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 Sequence[loganalytics.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.
    oci logo
    Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi