oci.LogAnalytics.NamespaceStorageEnableDisableArchiving
Explore with Pulumi AI
This resource provides the Namespace Storage Enable Disable Archiving resource in Oracle Cloud Infrastructure Log Analytics service.
THis API enables archiving.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testNamespaceStorageEnableDisableArchiving = new oci.loganalytics.NamespaceStorageEnableDisableArchiving("test_namespace_storage_enable_disable_archiving", {
namespace: namespaceStorageEnableDisableArchivingNamespace,
enableArchivingTenant: enableArchivingTenant,
});
import pulumi
import pulumi_oci as oci
test_namespace_storage_enable_disable_archiving = oci.log_analytics.NamespaceStorageEnableDisableArchiving("test_namespace_storage_enable_disable_archiving",
namespace=namespace_storage_enable_disable_archiving_namespace,
enable_archiving_tenant=enable_archiving_tenant)
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.NewNamespaceStorageEnableDisableArchiving(ctx, "test_namespace_storage_enable_disable_archiving", &loganalytics.NamespaceStorageEnableDisableArchivingArgs{
Namespace: pulumi.Any(namespaceStorageEnableDisableArchivingNamespace),
EnableArchivingTenant: pulumi.Any(enableArchivingTenant),
})
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 testNamespaceStorageEnableDisableArchiving = new Oci.LogAnalytics.NamespaceStorageEnableDisableArchiving("test_namespace_storage_enable_disable_archiving", new()
{
Namespace = namespaceStorageEnableDisableArchivingNamespace,
EnableArchivingTenant = enableArchivingTenant,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.LogAnalytics.NamespaceStorageEnableDisableArchiving;
import com.pulumi.oci.LogAnalytics.NamespaceStorageEnableDisableArchivingArgs;
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 testNamespaceStorageEnableDisableArchiving = new NamespaceStorageEnableDisableArchiving("testNamespaceStorageEnableDisableArchiving", NamespaceStorageEnableDisableArchivingArgs.builder()
.namespace(namespaceStorageEnableDisableArchivingNamespace)
.enableArchivingTenant(enableArchivingTenant)
.build());
}
}
resources:
testNamespaceStorageEnableDisableArchiving:
type: oci:LogAnalytics:NamespaceStorageEnableDisableArchiving
name: test_namespace_storage_enable_disable_archiving
properties:
namespace: ${namespaceStorageEnableDisableArchivingNamespace}
enableArchivingTenant: ${enableArchivingTenant}
Create NamespaceStorageEnableDisableArchiving Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NamespaceStorageEnableDisableArchiving(name: string, args: NamespaceStorageEnableDisableArchivingArgs, opts?: CustomResourceOptions);
@overload
def NamespaceStorageEnableDisableArchiving(resource_name: str,
args: NamespaceStorageEnableDisableArchivingArgs,
opts: Optional[ResourceOptions] = None)
@overload
def NamespaceStorageEnableDisableArchiving(resource_name: str,
opts: Optional[ResourceOptions] = None,
enable_archiving_tenant: Optional[bool] = None,
namespace: Optional[str] = None)
func NewNamespaceStorageEnableDisableArchiving(ctx *Context, name string, args NamespaceStorageEnableDisableArchivingArgs, opts ...ResourceOption) (*NamespaceStorageEnableDisableArchiving, error)
public NamespaceStorageEnableDisableArchiving(string name, NamespaceStorageEnableDisableArchivingArgs args, CustomResourceOptions? opts = null)
public NamespaceStorageEnableDisableArchiving(String name, NamespaceStorageEnableDisableArchivingArgs args)
public NamespaceStorageEnableDisableArchiving(String name, NamespaceStorageEnableDisableArchivingArgs args, CustomResourceOptions options)
type: oci:LogAnalytics:NamespaceStorageEnableDisableArchiving
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 NamespaceStorageEnableDisableArchivingArgs
- 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 NamespaceStorageEnableDisableArchivingArgs
- 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 NamespaceStorageEnableDisableArchivingArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NamespaceStorageEnableDisableArchivingArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NamespaceStorageEnableDisableArchivingArgs
- 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 namespaceStorageEnableDisableArchivingResource = new Oci.LogAnalytics.NamespaceStorageEnableDisableArchiving("namespaceStorageEnableDisableArchivingResource", new()
{
EnableArchivingTenant = false,
Namespace = "string",
});
example, err := loganalytics.NewNamespaceStorageEnableDisableArchiving(ctx, "namespaceStorageEnableDisableArchivingResource", &loganalytics.NamespaceStorageEnableDisableArchivingArgs{
EnableArchivingTenant: pulumi.Bool(false),
Namespace: pulumi.String("string"),
})
var namespaceStorageEnableDisableArchivingResource = new NamespaceStorageEnableDisableArchiving("namespaceStorageEnableDisableArchivingResource", NamespaceStorageEnableDisableArchivingArgs.builder()
.enableArchivingTenant(false)
.namespace("string")
.build());
namespace_storage_enable_disable_archiving_resource = oci.log_analytics.NamespaceStorageEnableDisableArchiving("namespaceStorageEnableDisableArchivingResource",
enable_archiving_tenant=False,
namespace="string")
const namespaceStorageEnableDisableArchivingResource = new oci.loganalytics.NamespaceStorageEnableDisableArchiving("namespaceStorageEnableDisableArchivingResource", {
enableArchivingTenant: false,
namespace: "string",
});
type: oci:LogAnalytics:NamespaceStorageEnableDisableArchiving
properties:
enableArchivingTenant: false
namespace: string
NamespaceStorageEnableDisableArchiving 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 NamespaceStorageEnableDisableArchiving resource accepts the following input properties:
- Enable
Archiving boolTenant (Updatable) A required field when set to
true
calls enable action and when set tofalse
calls disable action.** 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
- Namespace string
- The Logging Analytics namespace used for the request.
- Enable
Archiving boolTenant (Updatable) A required field when set to
true
calls enable action and when set tofalse
calls disable action.** 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
- Namespace string
- The Logging Analytics namespace used for the request.
- enable
Archiving BooleanTenant (Updatable) A required field when set to
true
calls enable action and when set tofalse
calls disable action.** 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
- namespace String
- The Logging Analytics namespace used for the request.
- enable
Archiving booleanTenant (Updatable) A required field when set to
true
calls enable action and when set tofalse
calls disable action.** 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
- namespace string
- The Logging Analytics namespace used for the request.
- enable_
archiving_ booltenant (Updatable) A required field when set to
true
calls enable action and when set tofalse
calls disable action.** 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
- namespace str
- The Logging Analytics namespace used for the request.
- enable
Archiving BooleanTenant (Updatable) A required field when set to
true
calls enable action and when set tofalse
calls disable action.** 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
- namespace String
- The Logging Analytics namespace used for the request.
Outputs
All input properties are implicitly available as output properties. Additionally, the NamespaceStorageEnableDisableArchiving resource produces the following output properties:
Look up Existing NamespaceStorageEnableDisableArchiving Resource
Get an existing NamespaceStorageEnableDisableArchiving 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?: NamespaceStorageEnableDisableArchivingState, opts?: CustomResourceOptions): NamespaceStorageEnableDisableArchiving
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
enable_archiving_tenant: Optional[bool] = None,
message: Optional[str] = None,
namespace: Optional[str] = None) -> NamespaceStorageEnableDisableArchiving
func GetNamespaceStorageEnableDisableArchiving(ctx *Context, name string, id IDInput, state *NamespaceStorageEnableDisableArchivingState, opts ...ResourceOption) (*NamespaceStorageEnableDisableArchiving, error)
public static NamespaceStorageEnableDisableArchiving Get(string name, Input<string> id, NamespaceStorageEnableDisableArchivingState? state, CustomResourceOptions? opts = null)
public static NamespaceStorageEnableDisableArchiving get(String name, Output<String> id, NamespaceStorageEnableDisableArchivingState state, CustomResourceOptions options)
resources: _: type: oci:LogAnalytics:NamespaceStorageEnableDisableArchiving 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.
- Enable
Archiving boolTenant (Updatable) A required field when set to
true
calls enable action and when set tofalse
calls disable action.** 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
- Message string
- A human-readable success string.
- Namespace string
- The Logging Analytics namespace used for the request.
- Enable
Archiving boolTenant (Updatable) A required field when set to
true
calls enable action and when set tofalse
calls disable action.** 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
- Message string
- A human-readable success string.
- Namespace string
- The Logging Analytics namespace used for the request.
- enable
Archiving BooleanTenant (Updatable) A required field when set to
true
calls enable action and when set tofalse
calls disable action.** 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
- message String
- A human-readable success string.
- namespace String
- The Logging Analytics namespace used for the request.
- enable
Archiving booleanTenant (Updatable) A required field when set to
true
calls enable action and when set tofalse
calls disable action.** 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
- message string
- A human-readable success string.
- namespace string
- The Logging Analytics namespace used for the request.
- enable_
archiving_ booltenant (Updatable) A required field when set to
true
calls enable action and when set tofalse
calls disable action.** 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
- message str
- A human-readable success string.
- namespace str
- The Logging Analytics namespace used for the request.
- enable
Archiving BooleanTenant (Updatable) A required field when set to
true
calls enable action and when set tofalse
calls disable action.** 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
- message String
- A human-readable success string.
- namespace String
- The Logging Analytics namespace used for the request.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.