1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. LogAnalytics
  5. NamespaceStorageArchivalConfig
Oracle Cloud Infrastructure v3.0.0 published on Thursday, Jun 5, 2025 by Pulumi

oci.LogAnalytics.NamespaceStorageArchivalConfig

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v3.0.0 published on Thursday, Jun 5, 2025 by Pulumi

    This resource provides the Namespace Storage Archival Config resource in Oracle Cloud Infrastructure Log Analytics service.

    This API updates the archiving configuration

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testNamespaceStorageArchivalConfig = new oci.loganalytics.NamespaceStorageArchivalConfig("test_namespace_storage_archival_config", {
        archivingConfiguration: {
            activeStorageDuration: namespaceStorageArchivalConfigArchivingConfigurationActiveStorageDuration,
            archivalStorageDuration: namespaceStorageArchivalConfigArchivingConfigurationArchivalStorageDuration,
        },
        namespace: namespaceStorageArchivalConfigNamespace,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_namespace_storage_archival_config = oci.log_analytics.NamespaceStorageArchivalConfig("test_namespace_storage_archival_config",
        archiving_configuration={
            "active_storage_duration": namespace_storage_archival_config_archiving_configuration_active_storage_duration,
            "archival_storage_duration": namespace_storage_archival_config_archiving_configuration_archival_storage_duration,
        },
        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.NewNamespaceStorageArchivalConfig(ctx, "test_namespace_storage_archival_config", &loganalytics.NamespaceStorageArchivalConfigArgs{
    			ArchivingConfiguration: &loganalytics.NamespaceStorageArchivalConfigArchivingConfigurationArgs{
    				ActiveStorageDuration:   pulumi.Any(namespaceStorageArchivalConfigArchivingConfigurationActiveStorageDuration),
    				ArchivalStorageDuration: pulumi.Any(namespaceStorageArchivalConfigArchivingConfigurationArchivalStorageDuration),
    			},
    			Namespace: pulumi.Any(namespaceStorageArchivalConfigNamespace),
    		})
    		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 = new Oci.LogAnalytics.NamespaceStorageArchivalConfig("test_namespace_storage_archival_config", new()
        {
            ArchivingConfiguration = new Oci.LogAnalytics.Inputs.NamespaceStorageArchivalConfigArchivingConfigurationArgs
            {
                ActiveStorageDuration = namespaceStorageArchivalConfigArchivingConfigurationActiveStorageDuration,
                ArchivalStorageDuration = namespaceStorageArchivalConfigArchivingConfigurationArchivalStorageDuration,
            },
            Namespace = namespaceStorageArchivalConfigNamespace,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.LogAnalytics.NamespaceStorageArchivalConfig;
    import com.pulumi.oci.LogAnalytics.NamespaceStorageArchivalConfigArgs;
    import com.pulumi.oci.LogAnalytics.inputs.NamespaceStorageArchivalConfigArchivingConfigurationArgs;
    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) {
            var testNamespaceStorageArchivalConfig = new NamespaceStorageArchivalConfig("testNamespaceStorageArchivalConfig", NamespaceStorageArchivalConfigArgs.builder()
                .archivingConfiguration(NamespaceStorageArchivalConfigArchivingConfigurationArgs.builder()
                    .activeStorageDuration(namespaceStorageArchivalConfigArchivingConfigurationActiveStorageDuration)
                    .archivalStorageDuration(namespaceStorageArchivalConfigArchivingConfigurationArchivalStorageDuration)
                    .build())
                .namespace(namespaceStorageArchivalConfigNamespace)
                .build());
    
        }
    }
    
    resources:
      testNamespaceStorageArchivalConfig:
        type: oci:LogAnalytics:NamespaceStorageArchivalConfig
        name: test_namespace_storage_archival_config
        properties:
          archivingConfiguration:
            activeStorageDuration: ${namespaceStorageArchivalConfigArchivingConfigurationActiveStorageDuration}
            archivalStorageDuration: ${namespaceStorageArchivalConfigArchivingConfigurationArchivalStorageDuration}
          namespace: ${namespaceStorageArchivalConfigNamespace}
    

    Create NamespaceStorageArchivalConfig Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new NamespaceStorageArchivalConfig(name: string, args: NamespaceStorageArchivalConfigArgs, opts?: CustomResourceOptions);
    @overload
    def NamespaceStorageArchivalConfig(resource_name: str,
                                       args: NamespaceStorageArchivalConfigArgs,
                                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def NamespaceStorageArchivalConfig(resource_name: str,
                                       opts: Optional[ResourceOptions] = None,
                                       archiving_configuration: Optional[NamespaceStorageArchivalConfigArchivingConfigurationArgs] = None,
                                       namespace: Optional[str] = None)
    func NewNamespaceStorageArchivalConfig(ctx *Context, name string, args NamespaceStorageArchivalConfigArgs, opts ...ResourceOption) (*NamespaceStorageArchivalConfig, error)
    public NamespaceStorageArchivalConfig(string name, NamespaceStorageArchivalConfigArgs args, CustomResourceOptions? opts = null)
    public NamespaceStorageArchivalConfig(String name, NamespaceStorageArchivalConfigArgs args)
    public NamespaceStorageArchivalConfig(String name, NamespaceStorageArchivalConfigArgs args, CustomResourceOptions options)
    
    type: oci:LogAnalytics:NamespaceStorageArchivalConfig
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args NamespaceStorageArchivalConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args NamespaceStorageArchivalConfigArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args NamespaceStorageArchivalConfigArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NamespaceStorageArchivalConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NamespaceStorageArchivalConfigArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var namespaceStorageArchivalConfigResource = new Oci.LogAnalytics.NamespaceStorageArchivalConfig("namespaceStorageArchivalConfigResource", new()
    {
        ArchivingConfiguration = new Oci.LogAnalytics.Inputs.NamespaceStorageArchivalConfigArchivingConfigurationArgs
        {
            ActiveStorageDuration = "string",
            ArchivalStorageDuration = "string",
        },
        Namespace = "string",
    });
    
    example, err := loganalytics.NewNamespaceStorageArchivalConfig(ctx, "namespaceStorageArchivalConfigResource", &loganalytics.NamespaceStorageArchivalConfigArgs{
    	ArchivingConfiguration: &loganalytics.NamespaceStorageArchivalConfigArchivingConfigurationArgs{
    		ActiveStorageDuration:   pulumi.String("string"),
    		ArchivalStorageDuration: pulumi.String("string"),
    	},
    	Namespace: pulumi.String("string"),
    })
    
    var namespaceStorageArchivalConfigResource = new NamespaceStorageArchivalConfig("namespaceStorageArchivalConfigResource", NamespaceStorageArchivalConfigArgs.builder()
        .archivingConfiguration(NamespaceStorageArchivalConfigArchivingConfigurationArgs.builder()
            .activeStorageDuration("string")
            .archivalStorageDuration("string")
            .build())
        .namespace("string")
        .build());
    
    namespace_storage_archival_config_resource = oci.log_analytics.NamespaceStorageArchivalConfig("namespaceStorageArchivalConfigResource",
        archiving_configuration={
            "active_storage_duration": "string",
            "archival_storage_duration": "string",
        },
        namespace="string")
    
    const namespaceStorageArchivalConfigResource = new oci.loganalytics.NamespaceStorageArchivalConfig("namespaceStorageArchivalConfigResource", {
        archivingConfiguration: {
            activeStorageDuration: "string",
            archivalStorageDuration: "string",
        },
        namespace: "string",
    });
    
    type: oci:LogAnalytics:NamespaceStorageArchivalConfig
    properties:
        archivingConfiguration:
            activeStorageDuration: string
            archivalStorageDuration: string
        namespace: string
    

    NamespaceStorageArchivalConfig Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The NamespaceStorageArchivalConfig resource accepts the following input properties:

    ArchivingConfiguration NamespaceStorageArchivalConfigArchivingConfiguration
    (Updatable) This is the configuration for data archiving in object storage
    Namespace string

    The Logging Analytics namespace used for the request.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    ArchivingConfiguration NamespaceStorageArchivalConfigArchivingConfigurationArgs
    (Updatable) This is the configuration for data archiving in object storage
    Namespace string

    The Logging Analytics namespace used for the request.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    archivingConfiguration NamespaceStorageArchivalConfigArchivingConfiguration
    (Updatable) This is the configuration for data archiving in object storage
    namespace String

    The Logging Analytics namespace used for the request.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    archivingConfiguration NamespaceStorageArchivalConfigArchivingConfiguration
    (Updatable) This is the configuration for data archiving in object storage
    namespace string

    The Logging Analytics namespace used for the request.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    archiving_configuration NamespaceStorageArchivalConfigArchivingConfigurationArgs
    (Updatable) This is the configuration for data archiving in object storage
    namespace str

    The Logging Analytics namespace used for the request.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    archivingConfiguration Property Map
    (Updatable) This is the configuration for data archiving in object storage
    namespace String

    The Logging Analytics namespace used for the request.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    Outputs

    All input properties are implicitly available as output properties. Additionally, the NamespaceStorageArchivalConfig resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    IsArchivingEnabled bool
    This indicates if old data can be archived for a tenancy
    Id string
    The provider-assigned unique ID for this managed resource.
    IsArchivingEnabled bool
    This indicates if old data can be archived for a tenancy
    id String
    The provider-assigned unique ID for this managed resource.
    isArchivingEnabled Boolean
    This indicates if old data can be archived for a tenancy
    id string
    The provider-assigned unique ID for this managed resource.
    isArchivingEnabled boolean
    This indicates if old data can be archived for a tenancy
    id str
    The provider-assigned unique ID for this managed resource.
    is_archiving_enabled bool
    This indicates if old data can be archived for a tenancy
    id String
    The provider-assigned unique ID for this managed resource.
    isArchivingEnabled Boolean
    This indicates if old data can be archived for a tenancy

    Look up Existing NamespaceStorageArchivalConfig Resource

    Get an existing NamespaceStorageArchivalConfig resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: NamespaceStorageArchivalConfigState, opts?: CustomResourceOptions): NamespaceStorageArchivalConfig
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            archiving_configuration: Optional[NamespaceStorageArchivalConfigArchivingConfigurationArgs] = None,
            is_archiving_enabled: Optional[bool] = None,
            namespace: Optional[str] = None) -> NamespaceStorageArchivalConfig
    func GetNamespaceStorageArchivalConfig(ctx *Context, name string, id IDInput, state *NamespaceStorageArchivalConfigState, opts ...ResourceOption) (*NamespaceStorageArchivalConfig, error)
    public static NamespaceStorageArchivalConfig Get(string name, Input<string> id, NamespaceStorageArchivalConfigState? state, CustomResourceOptions? opts = null)
    public static NamespaceStorageArchivalConfig get(String name, Output<String> id, NamespaceStorageArchivalConfigState state, CustomResourceOptions options)
    resources:  _:    type: oci:LogAnalytics:NamespaceStorageArchivalConfig    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    ArchivingConfiguration NamespaceStorageArchivalConfigArchivingConfiguration
    (Updatable) This is the configuration for data archiving in object storage
    IsArchivingEnabled bool
    This indicates if old data can be archived for a tenancy
    Namespace string

    The Logging Analytics namespace used for the request.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    ArchivingConfiguration NamespaceStorageArchivalConfigArchivingConfigurationArgs
    (Updatable) This is the configuration for data archiving in object storage
    IsArchivingEnabled bool
    This indicates if old data can be archived for a tenancy
    Namespace string

    The Logging Analytics namespace used for the request.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    archivingConfiguration NamespaceStorageArchivalConfigArchivingConfiguration
    (Updatable) This is the configuration for data archiving in object storage
    isArchivingEnabled Boolean
    This indicates if old data can be archived for a tenancy
    namespace String

    The Logging Analytics namespace used for the request.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    archivingConfiguration NamespaceStorageArchivalConfigArchivingConfiguration
    (Updatable) This is the configuration for data archiving in object storage
    isArchivingEnabled boolean
    This indicates if old data can be archived for a tenancy
    namespace string

    The Logging Analytics namespace used for the request.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    archiving_configuration NamespaceStorageArchivalConfigArchivingConfigurationArgs
    (Updatable) This is the configuration for data archiving in object storage
    is_archiving_enabled bool
    This indicates if old data can be archived for a tenancy
    namespace str

    The Logging Analytics namespace used for the request.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    archivingConfiguration Property Map
    (Updatable) This is the configuration for data archiving in object storage
    isArchivingEnabled Boolean
    This indicates if old data can be archived for a tenancy
    namespace String

    The Logging Analytics namespace used for the request.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    Supporting Types

    NamespaceStorageArchivalConfigArchivingConfiguration, NamespaceStorageArchivalConfigArchivingConfigurationArgs

    ActiveStorageDuration string
    (Updatable) 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).
    ArchivalStorageDuration string
    (Updatable) 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).
    ActiveStorageDuration string
    (Updatable) 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).
    ArchivalStorageDuration string
    (Updatable) 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).
    activeStorageDuration String
    (Updatable) 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).
    archivalStorageDuration String
    (Updatable) 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).
    activeStorageDuration string
    (Updatable) 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).
    archivalStorageDuration string
    (Updatable) 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_duration str
    (Updatable) 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_duration str
    (Updatable) 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).
    activeStorageDuration String
    (Updatable) 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).
    archivalStorageDuration String
    (Updatable) 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.
    oci logo
    Oracle Cloud Infrastructure v3.0.0 published on Thursday, Jun 5, 2025 by Pulumi