1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. LogAnalytics
  5. getNamespaceStorageRecalledDataSize
Oracle Cloud Infrastructure v1.36.0 published on Thursday, May 16, 2024 by Pulumi

oci.LogAnalytics.getNamespaceStorageRecalledDataSize

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.36.0 published on Thursday, May 16, 2024 by Pulumi

    This data source provides details about a specific Namespace Storage Recalled Data Size resource in Oracle Cloud Infrastructure Log Analytics service.

    This API gets the datasize of recalls for a given timeframe

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testNamespaceStorageRecalledDataSize = oci.LogAnalytics.getNamespaceStorageRecalledDataSize({
        namespace: namespaceStorageRecalledDataSizeNamespace,
        timeDataEnded: namespaceStorageRecalledDataSizeTimeDataEnded,
        timeDataStarted: namespaceStorageRecalledDataSizeTimeDataStarted,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_namespace_storage_recalled_data_size = oci.LogAnalytics.get_namespace_storage_recalled_data_size(namespace=namespace_storage_recalled_data_size_namespace,
        time_data_ended=namespace_storage_recalled_data_size_time_data_ended,
        time_data_started=namespace_storage_recalled_data_size_time_data_started)
    
    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.GetNamespaceStorageRecalledDataSize(ctx, &loganalytics.GetNamespaceStorageRecalledDataSizeArgs{
    			Namespace:       namespaceStorageRecalledDataSizeNamespace,
    			TimeDataEnded:   pulumi.StringRef(namespaceStorageRecalledDataSizeTimeDataEnded),
    			TimeDataStarted: pulumi.StringRef(namespaceStorageRecalledDataSizeTimeDataStarted),
    		}, 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 testNamespaceStorageRecalledDataSize = Oci.LogAnalytics.GetNamespaceStorageRecalledDataSize.Invoke(new()
        {
            Namespace = namespaceStorageRecalledDataSizeNamespace,
            TimeDataEnded = namespaceStorageRecalledDataSizeTimeDataEnded,
            TimeDataStarted = namespaceStorageRecalledDataSizeTimeDataStarted,
        });
    
    });
    
    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.GetNamespaceStorageRecalledDataSizeArgs;
    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 testNamespaceStorageRecalledDataSize = LogAnalyticsFunctions.getNamespaceStorageRecalledDataSize(GetNamespaceStorageRecalledDataSizeArgs.builder()
                .namespace(namespaceStorageRecalledDataSizeNamespace)
                .timeDataEnded(namespaceStorageRecalledDataSizeTimeDataEnded)
                .timeDataStarted(namespaceStorageRecalledDataSizeTimeDataStarted)
                .build());
    
        }
    }
    
    variables:
      testNamespaceStorageRecalledDataSize:
        fn::invoke:
          Function: oci:LogAnalytics:getNamespaceStorageRecalledDataSize
          Arguments:
            namespace: ${namespaceStorageRecalledDataSizeNamespace}
            timeDataEnded: ${namespaceStorageRecalledDataSizeTimeDataEnded}
            timeDataStarted: ${namespaceStorageRecalledDataSizeTimeDataStarted}
    

    Using getNamespaceStorageRecalledDataSize

    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 getNamespaceStorageRecalledDataSize(args: GetNamespaceStorageRecalledDataSizeArgs, opts?: InvokeOptions): Promise<GetNamespaceStorageRecalledDataSizeResult>
    function getNamespaceStorageRecalledDataSizeOutput(args: GetNamespaceStorageRecalledDataSizeOutputArgs, opts?: InvokeOptions): Output<GetNamespaceStorageRecalledDataSizeResult>
    def get_namespace_storage_recalled_data_size(namespace: Optional[str] = None,
                                                 time_data_ended: Optional[str] = None,
                                                 time_data_started: Optional[str] = None,
                                                 opts: Optional[InvokeOptions] = None) -> GetNamespaceStorageRecalledDataSizeResult
    def get_namespace_storage_recalled_data_size_output(namespace: Optional[pulumi.Input[str]] = None,
                                                 time_data_ended: Optional[pulumi.Input[str]] = None,
                                                 time_data_started: Optional[pulumi.Input[str]] = None,
                                                 opts: Optional[InvokeOptions] = None) -> Output[GetNamespaceStorageRecalledDataSizeResult]
    func GetNamespaceStorageRecalledDataSize(ctx *Context, args *GetNamespaceStorageRecalledDataSizeArgs, opts ...InvokeOption) (*GetNamespaceStorageRecalledDataSizeResult, error)
    func GetNamespaceStorageRecalledDataSizeOutput(ctx *Context, args *GetNamespaceStorageRecalledDataSizeOutputArgs, opts ...InvokeOption) GetNamespaceStorageRecalledDataSizeResultOutput

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

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

    The following arguments are supported:

    Namespace string
    The Logging Analytics namespace used for the request.
    TimeDataEnded string
    This is the end of the time range for recalled data
    TimeDataStarted string
    This is the start of the time range for recalled data
    Namespace string
    The Logging Analytics namespace used for the request.
    TimeDataEnded string
    This is the end of the time range for recalled data
    TimeDataStarted string
    This is the start of the time range for recalled data
    namespace String
    The Logging Analytics namespace used for the request.
    timeDataEnded String
    This is the end of the time range for recalled data
    timeDataStarted String
    This is the start of the time range for recalled data
    namespace string
    The Logging Analytics namespace used for the request.
    timeDataEnded string
    This is the end of the time range for recalled data
    timeDataStarted string
    This is the start of the time range for recalled data
    namespace str
    The Logging Analytics namespace used for the request.
    time_data_ended str
    This is the end of the time range for recalled data
    time_data_started str
    This is the start of the time range for recalled data
    namespace String
    The Logging Analytics namespace used for the request.
    timeDataEnded String
    This is the end of the time range for recalled data
    timeDataStarted String
    This is the start of the time range for recalled data

    getNamespaceStorageRecalledDataSize Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Namespace string
    NotRecalledDataInBytes string
    This is the size of the archival data not recalled yet
    RecalledDataInBytes string
    This is the size of the recalled data
    TimeDataEnded string
    This is the end of the time range of the archival data
    TimeDataStarted string
    This is the start of the time range of the archival data
    Id string
    The provider-assigned unique ID for this managed resource.
    Namespace string
    NotRecalledDataInBytes string
    This is the size of the archival data not recalled yet
    RecalledDataInBytes string
    This is the size of the recalled data
    TimeDataEnded string
    This is the end of the time range of the archival data
    TimeDataStarted string
    This is the start of the time range of the archival data
    id String
    The provider-assigned unique ID for this managed resource.
    namespace String
    notRecalledDataInBytes String
    This is the size of the archival data not recalled yet
    recalledDataInBytes String
    This is the size of the recalled data
    timeDataEnded String
    This is the end of the time range of the archival data
    timeDataStarted String
    This is the start of the time range of the archival data
    id string
    The provider-assigned unique ID for this managed resource.
    namespace string
    notRecalledDataInBytes string
    This is the size of the archival data not recalled yet
    recalledDataInBytes string
    This is the size of the recalled data
    timeDataEnded string
    This is the end of the time range of the archival data
    timeDataStarted string
    This is the start of the time range of the archival data
    id str
    The provider-assigned unique ID for this managed resource.
    namespace str
    not_recalled_data_in_bytes str
    This is the size of the archival data not recalled yet
    recalled_data_in_bytes str
    This is the size of the recalled data
    time_data_ended str
    This is the end of the time range of the archival data
    time_data_started str
    This is the start of the time range of the archival data
    id String
    The provider-assigned unique ID for this managed resource.
    namespace String
    notRecalledDataInBytes String
    This is the size of the archival data not recalled yet
    recalledDataInBytes String
    This is the size of the recalled data
    timeDataEnded String
    This is the end of the time range of the archival data
    timeDataStarted String
    This is the start of the time range of the archival data

    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.36.0 published on Thursday, May 16, 2024 by Pulumi