Oracle Cloud Infrastructure v3.0.0 published on Thursday, Jun 5, 2025 by Pulumi
oci.LogAnalytics.getNamespaceStorageArchivalConfig
Explore with Pulumi AI
This data source provides details about a specific Namespace Storage Archival Config resource in Oracle Cloud Infrastructure Log Analytics service.
This API gets the storage configuration of a tenancy
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testNamespaceStorageArchivalConfig = oci.LogAnalytics.getNamespaceStorageArchivalConfig({
namespace: namespaceStorageArchivalConfigNamespace,
});
import pulumi
import pulumi_oci as oci
test_namespace_storage_archival_config = oci.LogAnalytics.get_namespace_storage_archival_config(namespace=namespace_storage_archival_config_namespace)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/loganalytics"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := loganalytics.GetNamespaceStorageArchivalConfig(ctx, &loganalytics.GetNamespaceStorageArchivalConfigArgs{
Namespace: namespaceStorageArchivalConfigNamespace,
}, 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 testNamespaceStorageArchivalConfig = Oci.LogAnalytics.GetNamespaceStorageArchivalConfig.Invoke(new()
{
Namespace = namespaceStorageArchivalConfigNamespace,
});
});
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.GetNamespaceStorageArchivalConfigArgs;
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 testNamespaceStorageArchivalConfig = LogAnalyticsFunctions.getNamespaceStorageArchivalConfig(GetNamespaceStorageArchivalConfigArgs.builder()
.namespace(namespaceStorageArchivalConfigNamespace)
.build());
}
}
variables:
testNamespaceStorageArchivalConfig:
fn::invoke:
function: oci:LogAnalytics:getNamespaceStorageArchivalConfig
arguments:
namespace: ${namespaceStorageArchivalConfigNamespace}
Using getNamespaceStorageArchivalConfig
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 getNamespaceStorageArchivalConfig(args: GetNamespaceStorageArchivalConfigArgs, opts?: InvokeOptions): Promise<GetNamespaceStorageArchivalConfigResult>
function getNamespaceStorageArchivalConfigOutput(args: GetNamespaceStorageArchivalConfigOutputArgs, opts?: InvokeOptions): Output<GetNamespaceStorageArchivalConfigResult>
def get_namespace_storage_archival_config(namespace: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNamespaceStorageArchivalConfigResult
def get_namespace_storage_archival_config_output(namespace: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNamespaceStorageArchivalConfigResult]
func LookupNamespaceStorageArchivalConfig(ctx *Context, args *LookupNamespaceStorageArchivalConfigArgs, opts ...InvokeOption) (*LookupNamespaceStorageArchivalConfigResult, error)
func LookupNamespaceStorageArchivalConfigOutput(ctx *Context, args *LookupNamespaceStorageArchivalConfigOutputArgs, opts ...InvokeOption) LookupNamespaceStorageArchivalConfigResultOutput
> Note: This function is named LookupNamespaceStorageArchivalConfig
in the Go SDK.
public static class GetNamespaceStorageArchivalConfig
{
public static Task<GetNamespaceStorageArchivalConfigResult> InvokeAsync(GetNamespaceStorageArchivalConfigArgs args, InvokeOptions? opts = null)
public static Output<GetNamespaceStorageArchivalConfigResult> Invoke(GetNamespaceStorageArchivalConfigInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetNamespaceStorageArchivalConfigResult> getNamespaceStorageArchivalConfig(GetNamespaceStorageArchivalConfigArgs args, InvokeOptions options)
public static Output<GetNamespaceStorageArchivalConfigResult> getNamespaceStorageArchivalConfig(GetNamespaceStorageArchivalConfigArgs args, InvokeOptions options)
fn::invoke:
function: oci:LogAnalytics/getNamespaceStorageArchivalConfig:getNamespaceStorageArchivalConfig
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.
getNamespaceStorageArchivalConfig Result
The following output properties are available:
- Archiving
Configurations List<GetNamespace Storage Archival Config Archiving Configuration> - This is the configuration for data archiving in object storage
- Id string
- Is
Archiving boolEnabled - This indicates if old data can be archived for a tenancy
- Namespace string
- Archiving
Configurations []GetNamespace Storage Archival Config Archiving Configuration - This is the configuration for data archiving in object storage
- Id string
- Is
Archiving boolEnabled - This indicates if old data can be archived for a tenancy
- Namespace string
- archiving
Configurations List<GetNamespace Storage Archival Config Archiving Configuration> - This is the configuration for data archiving in object storage
- id String
- is
Archiving BooleanEnabled - This indicates if old data can be archived for a tenancy
- namespace String
- archiving
Configurations GetNamespace Storage Archival Config Archiving Configuration[] - This is the configuration for data archiving in object storage
- id string
- is
Archiving booleanEnabled - This indicates if old data can be archived for a tenancy
- namespace string
- archiving_
configurations Sequence[GetNamespace Storage Archival Config Archiving Configuration] - This is the configuration for data archiving in object storage
- id str
- is_
archiving_ boolenabled - This indicates if old data can be archived for a tenancy
- namespace str
- archiving
Configurations List<Property Map> - This is the configuration for data archiving in object storage
- id String
- is
Archiving BooleanEnabled - This indicates if old data can be archived for a tenancy
- namespace String
Supporting Types
GetNamespaceStorageArchivalConfigArchivingConfiguration
- Active
Storage stringDuration - This is the duration data in active storage before data is archived, as described in https://en.wikipedia.org/wiki/ISO_8601#Durations. The largest supported unit is D, e.g. P365D (not P1Y) or P14D (not P2W).
- Archival
Storage stringDuration - This is the duration before archived data is deleted from object storage, as described in https://en.wikipedia.org/wiki/ISO_8601#Durations The largest supported unit is D, e.g. P365D (not P1Y) or P14D (not P2W).
- Active
Storage stringDuration - This is the duration data in active storage before data is archived, as described in https://en.wikipedia.org/wiki/ISO_8601#Durations. The largest supported unit is D, e.g. P365D (not P1Y) or P14D (not P2W).
- Archival
Storage stringDuration - This is the duration before archived data is deleted from object storage, as described in https://en.wikipedia.org/wiki/ISO_8601#Durations The largest supported unit is D, e.g. P365D (not P1Y) or P14D (not P2W).
- active
Storage StringDuration - This is the duration data in active storage before data is archived, as described in https://en.wikipedia.org/wiki/ISO_8601#Durations. The largest supported unit is D, e.g. P365D (not P1Y) or P14D (not P2W).
- archival
Storage StringDuration - This is the duration before archived data is deleted from object storage, as described in https://en.wikipedia.org/wiki/ISO_8601#Durations The largest supported unit is D, e.g. P365D (not P1Y) or P14D (not P2W).
- active
Storage stringDuration - This is the duration data in active storage before data is archived, as described in https://en.wikipedia.org/wiki/ISO_8601#Durations. The largest supported unit is D, e.g. P365D (not P1Y) or P14D (not P2W).
- archival
Storage stringDuration - This is the duration before archived data is deleted from object storage, as described in https://en.wikipedia.org/wiki/ISO_8601#Durations The largest supported unit is D, e.g. P365D (not P1Y) or P14D (not P2W).
- active_
storage_ strduration - This is the duration data in active storage before data is archived, as described in https://en.wikipedia.org/wiki/ISO_8601#Durations. The largest supported unit is D, e.g. P365D (not P1Y) or P14D (not P2W).
- archival_
storage_ strduration - This is the duration before archived data is deleted from object storage, as described in https://en.wikipedia.org/wiki/ISO_8601#Durations The largest supported unit is D, e.g. P365D (not P1Y) or P14D (not P2W).
- active
Storage StringDuration - This is the duration data in active storage before data is archived, as described in https://en.wikipedia.org/wiki/ISO_8601#Durations. The largest supported unit is D, e.g. P365D (not P1Y) or P14D (not P2W).
- archival
Storage StringDuration - This is the duration before archived data is deleted from object storage, as described in https://en.wikipedia.org/wiki/ISO_8601#Durations The largest supported unit is D, e.g. P365D (not P1Y) or P14D (not P2W).
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.