1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. LogAnalytics
  5. NamespaceAssociation
Oracle Cloud Infrastructure v3.16.0 published on Wednesday, Jan 28, 2026 by Pulumi
oci logo
Oracle Cloud Infrastructure v3.16.0 published on Wednesday, Jan 28, 2026 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testNamespaceAssociation = new oci.loganalytics.NamespaceAssociation("test_namespace_association", {
        compartmentId: compartmentId,
        entityId: testLogAnalyticsEntity.id,
        logGroupId: testLogAnalyticsLogGroup.id,
        namespace: namespaceAssociationNamespace,
        sourceName: namespaceAssociationSourceName,
        isFromRepublish: namespaceAssociationIsFromRepublish,
        associationProperties: [{
            name: namespaceAssociationAssociationPropertiesName,
            patterns: [{
                id: namespaceAssociationAssociationPropertiesPatternsId,
                value: namespaceAssociationAssociationPropertiesPatternsValue,
            }],
            value: namespaceAssociationAssociationPropertiesValue,
        }],
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_namespace_association = oci.loganalytics.NamespaceAssociation("test_namespace_association",
        compartment_id=compartment_id,
        entity_id=test_log_analytics_entity["id"],
        log_group_id=test_log_analytics_log_group["id"],
        namespace=namespace_association_namespace,
        source_name=namespace_association_source_name,
        is_from_republish=namespace_association_is_from_republish,
        association_properties=[{
            "name": namespace_association_association_properties_name,
            "patterns": [{
                "id": namespace_association_association_properties_patterns_id,
                "value": namespace_association_association_properties_patterns_value,
            }],
            "value": namespace_association_association_properties_value,
        }])
    
    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.NewNamespaceAssociation(ctx, "test_namespace_association", &loganalytics.NamespaceAssociationArgs{
    			CompartmentId:   pulumi.Any(compartmentId),
    			EntityId:        pulumi.Any(testLogAnalyticsEntity.Id),
    			LogGroupId:      pulumi.Any(testLogAnalyticsLogGroup.Id),
    			Namespace:       pulumi.Any(namespaceAssociationNamespace),
    			SourceName:      pulumi.Any(namespaceAssociationSourceName),
    			IsFromRepublish: pulumi.Any(namespaceAssociationIsFromRepublish),
    			AssociationProperties: loganalytics.NamespaceAssociationAssociationPropertyArray{
    				&loganalytics.NamespaceAssociationAssociationPropertyArgs{
    					Name: pulumi.Any(namespaceAssociationAssociationPropertiesName),
    					Patterns: loganalytics.NamespaceAssociationAssociationPropertyPatternArray{
    						&loganalytics.NamespaceAssociationAssociationPropertyPatternArgs{
    							Id:    pulumi.Any(namespaceAssociationAssociationPropertiesPatternsId),
    							Value: pulumi.Any(namespaceAssociationAssociationPropertiesPatternsValue),
    						},
    					},
    					Value: pulumi.Any(namespaceAssociationAssociationPropertiesValue),
    				},
    			},
    		})
    		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 testNamespaceAssociation = new Oci.LogAnalytics.NamespaceAssociation("test_namespace_association", new()
        {
            CompartmentId = compartmentId,
            EntityId = testLogAnalyticsEntity.Id,
            LogGroupId = testLogAnalyticsLogGroup.Id,
            Namespace = namespaceAssociationNamespace,
            SourceName = namespaceAssociationSourceName,
            IsFromRepublish = namespaceAssociationIsFromRepublish,
            AssociationProperties = new[]
            {
                new Oci.LogAnalytics.Inputs.NamespaceAssociationAssociationPropertyArgs
                {
                    Name = namespaceAssociationAssociationPropertiesName,
                    Patterns = new[]
                    {
                        new Oci.LogAnalytics.Inputs.NamespaceAssociationAssociationPropertyPatternArgs
                        {
                            Id = namespaceAssociationAssociationPropertiesPatternsId,
                            Value = namespaceAssociationAssociationPropertiesPatternsValue,
                        },
                    },
                    Value = namespaceAssociationAssociationPropertiesValue,
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.LogAnalytics.NamespaceAssociation;
    import com.pulumi.oci.LogAnalytics.NamespaceAssociationArgs;
    import com.pulumi.oci.LogAnalytics.inputs.NamespaceAssociationAssociationPropertyArgs;
    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 testNamespaceAssociation = new NamespaceAssociation("testNamespaceAssociation", NamespaceAssociationArgs.builder()
                .compartmentId(compartmentId)
                .entityId(testLogAnalyticsEntity.id())
                .logGroupId(testLogAnalyticsLogGroup.id())
                .namespace(namespaceAssociationNamespace)
                .sourceName(namespaceAssociationSourceName)
                .isFromRepublish(namespaceAssociationIsFromRepublish)
                .associationProperties(NamespaceAssociationAssociationPropertyArgs.builder()
                    .name(namespaceAssociationAssociationPropertiesName)
                    .patterns(NamespaceAssociationAssociationPropertyPatternArgs.builder()
                        .id(namespaceAssociationAssociationPropertiesPatternsId)
                        .value(namespaceAssociationAssociationPropertiesPatternsValue)
                        .build())
                    .value(namespaceAssociationAssociationPropertiesValue)
                    .build())
                .build());
    
        }
    }
    
    resources:
      testNamespaceAssociation:
        type: oci:LogAnalytics:NamespaceAssociation
        name: test_namespace_association
        properties:
          compartmentId: ${compartmentId}
          entityId: ${testLogAnalyticsEntity.id}
          logGroupId: ${testLogAnalyticsLogGroup.id}
          namespace: ${namespaceAssociationNamespace}
          sourceName: ${namespaceAssociationSourceName}
          isFromRepublish: ${namespaceAssociationIsFromRepublish}
          associationProperties:
            - name: ${namespaceAssociationAssociationPropertiesName}
              patterns:
                - id: ${namespaceAssociationAssociationPropertiesPatternsId}
                  value: ${namespaceAssociationAssociationPropertiesPatternsValue}
              value: ${namespaceAssociationAssociationPropertiesValue}
    

    Create NamespaceAssociation Resource

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

    Constructor syntax

    new NamespaceAssociation(name: string, args: NamespaceAssociationArgs, opts?: CustomResourceOptions);
    @overload
    def NamespaceAssociation(resource_name: str,
                             args: NamespaceAssociationArgs,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def NamespaceAssociation(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             compartment_id: Optional[str] = None,
                             entity_id: Optional[str] = None,
                             log_group_id: Optional[str] = None,
                             namespace: Optional[str] = None,
                             source_name: Optional[str] = None,
                             association_properties: Optional[Sequence[NamespaceAssociationAssociationPropertyArgs]] = None,
                             is_from_republish: Optional[bool] = None)
    func NewNamespaceAssociation(ctx *Context, name string, args NamespaceAssociationArgs, opts ...ResourceOption) (*NamespaceAssociation, error)
    public NamespaceAssociation(string name, NamespaceAssociationArgs args, CustomResourceOptions? opts = null)
    public NamespaceAssociation(String name, NamespaceAssociationArgs args)
    public NamespaceAssociation(String name, NamespaceAssociationArgs args, CustomResourceOptions options)
    
    type: oci:LogAnalytics:NamespaceAssociation
    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 NamespaceAssociationArgs
    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 NamespaceAssociationArgs
    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 NamespaceAssociationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NamespaceAssociationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NamespaceAssociationArgs
    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 namespaceAssociationResource = new Oci.LogAnalytics.NamespaceAssociation("namespaceAssociationResource", new()
    {
        CompartmentId = "string",
        EntityId = "string",
        LogGroupId = "string",
        Namespace = "string",
        SourceName = "string",
        AssociationProperties = new[]
        {
            new Oci.LogAnalytics.Inputs.NamespaceAssociationAssociationPropertyArgs
            {
                Name = "string",
                Patterns = new[]
                {
                    new Oci.LogAnalytics.Inputs.NamespaceAssociationAssociationPropertyPatternArgs
                    {
                        Id = "string",
                        Value = "string",
                        EffectiveLevel = "string",
                    },
                },
                Value = "string",
            },
        },
        IsFromRepublish = false,
    });
    
    example, err := loganalytics.NewNamespaceAssociation(ctx, "namespaceAssociationResource", &loganalytics.NamespaceAssociationArgs{
    	CompartmentId: pulumi.String("string"),
    	EntityId:      pulumi.String("string"),
    	LogGroupId:    pulumi.String("string"),
    	Namespace:     pulumi.String("string"),
    	SourceName:    pulumi.String("string"),
    	AssociationProperties: loganalytics.NamespaceAssociationAssociationPropertyArray{
    		&loganalytics.NamespaceAssociationAssociationPropertyArgs{
    			Name: pulumi.String("string"),
    			Patterns: loganalytics.NamespaceAssociationAssociationPropertyPatternArray{
    				&loganalytics.NamespaceAssociationAssociationPropertyPatternArgs{
    					Id:             pulumi.String("string"),
    					Value:          pulumi.String("string"),
    					EffectiveLevel: pulumi.String("string"),
    				},
    			},
    			Value: pulumi.String("string"),
    		},
    	},
    	IsFromRepublish: pulumi.Bool(false),
    })
    
    var namespaceAssociationResource = new NamespaceAssociation("namespaceAssociationResource", NamespaceAssociationArgs.builder()
        .compartmentId("string")
        .entityId("string")
        .logGroupId("string")
        .namespace("string")
        .sourceName("string")
        .associationProperties(NamespaceAssociationAssociationPropertyArgs.builder()
            .name("string")
            .patterns(NamespaceAssociationAssociationPropertyPatternArgs.builder()
                .id("string")
                .value("string")
                .effectiveLevel("string")
                .build())
            .value("string")
            .build())
        .isFromRepublish(false)
        .build());
    
    namespace_association_resource = oci.loganalytics.NamespaceAssociation("namespaceAssociationResource",
        compartment_id="string",
        entity_id="string",
        log_group_id="string",
        namespace="string",
        source_name="string",
        association_properties=[{
            "name": "string",
            "patterns": [{
                "id": "string",
                "value": "string",
                "effective_level": "string",
            }],
            "value": "string",
        }],
        is_from_republish=False)
    
    const namespaceAssociationResource = new oci.loganalytics.NamespaceAssociation("namespaceAssociationResource", {
        compartmentId: "string",
        entityId: "string",
        logGroupId: "string",
        namespace: "string",
        sourceName: "string",
        associationProperties: [{
            name: "string",
            patterns: [{
                id: "string",
                value: "string",
                effectiveLevel: "string",
            }],
            value: "string",
        }],
        isFromRepublish: false,
    });
    
    type: oci:LogAnalytics:NamespaceAssociation
    properties:
        associationProperties:
            - name: string
              patterns:
                - effectiveLevel: string
                  id: string
                  value: string
              value: string
        compartmentId: string
        entityId: string
        isFromRepublish: false
        logGroupId: string
        namespace: string
        sourceName: string
    

    NamespaceAssociation 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 NamespaceAssociation resource accepts the following input properties:

    CompartmentId string
    The compartment ID
    EntityId string
    The entity unique identifier.
    LogGroupId string
    (Updatable) The log group unique identifier.
    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

    SourceName string
    The source name.
    AssociationProperties List<NamespaceAssociationAssociationProperty>
    A list of association properties.
    IsFromRepublish bool
    isFromRepublish
    CompartmentId string
    The compartment ID
    EntityId string
    The entity unique identifier.
    LogGroupId string
    (Updatable) The log group unique identifier.
    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

    SourceName string
    The source name.
    AssociationProperties []NamespaceAssociationAssociationPropertyArgs
    A list of association properties.
    IsFromRepublish bool
    isFromRepublish
    compartmentId String
    The compartment ID
    entityId String
    The entity unique identifier.
    logGroupId String
    (Updatable) The log group unique identifier.
    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

    sourceName String
    The source name.
    associationProperties List<NamespaceAssociationAssociationProperty>
    A list of association properties.
    isFromRepublish Boolean
    isFromRepublish
    compartmentId string
    The compartment ID
    entityId string
    The entity unique identifier.
    logGroupId string
    (Updatable) The log group unique identifier.
    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

    sourceName string
    The source name.
    associationProperties NamespaceAssociationAssociationProperty[]
    A list of association properties.
    isFromRepublish boolean
    isFromRepublish
    compartment_id str
    The compartment ID
    entity_id str
    The entity unique identifier.
    log_group_id str
    (Updatable) The log group unique identifier.
    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

    source_name str
    The source name.
    association_properties Sequence[NamespaceAssociationAssociationPropertyArgs]
    A list of association properties.
    is_from_republish bool
    isFromRepublish
    compartmentId String
    The compartment ID
    entityId String
    The entity unique identifier.
    logGroupId String
    (Updatable) The log group unique identifier.
    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

    sourceName String
    The source name.
    associationProperties List<Property Map>
    A list of association properties.
    isFromRepublish Boolean
    isFromRepublish

    Outputs

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

    AgentEntityName string
    The agent unique identifier.
    AgentId string
    The agent unique identifier.
    EntityName string
    The entity name.
    EntityTypeDisplayName string
    The entity type display name.
    EntityTypeName string
    The entity type internal name.
    FailureMessage string
    The failure message.
    Host string
    The host name.
    Id string
    The provider-assigned unique ID for this managed resource.
    LifecycleState string
    LogGroupCompartment string
    The log group compartment.
    LogGroupName string
    The log group name.
    RetryCount int
    The number of times the association will be attempted before failing.
    SourceDisplayName string
    The source display name.
    SourceTypeName string
    The source type internal name.
    TimeLastAttempted string
    The last attempt date.
    AgentEntityName string
    The agent unique identifier.
    AgentId string
    The agent unique identifier.
    EntityName string
    The entity name.
    EntityTypeDisplayName string
    The entity type display name.
    EntityTypeName string
    The entity type internal name.
    FailureMessage string
    The failure message.
    Host string
    The host name.
    Id string
    The provider-assigned unique ID for this managed resource.
    LifecycleState string
    LogGroupCompartment string
    The log group compartment.
    LogGroupName string
    The log group name.
    RetryCount int
    The number of times the association will be attempted before failing.
    SourceDisplayName string
    The source display name.
    SourceTypeName string
    The source type internal name.
    TimeLastAttempted string
    The last attempt date.
    agentEntityName String
    The agent unique identifier.
    agentId String
    The agent unique identifier.
    entityName String
    The entity name.
    entityTypeDisplayName String
    The entity type display name.
    entityTypeName String
    The entity type internal name.
    failureMessage String
    The failure message.
    host String
    The host name.
    id String
    The provider-assigned unique ID for this managed resource.
    lifecycleState String
    logGroupCompartment String
    The log group compartment.
    logGroupName String
    The log group name.
    retryCount Integer
    The number of times the association will be attempted before failing.
    sourceDisplayName String
    The source display name.
    sourceTypeName String
    The source type internal name.
    timeLastAttempted String
    The last attempt date.
    agentEntityName string
    The agent unique identifier.
    agentId string
    The agent unique identifier.
    entityName string
    The entity name.
    entityTypeDisplayName string
    The entity type display name.
    entityTypeName string
    The entity type internal name.
    failureMessage string
    The failure message.
    host string
    The host name.
    id string
    The provider-assigned unique ID for this managed resource.
    lifecycleState string
    logGroupCompartment string
    The log group compartment.
    logGroupName string
    The log group name.
    retryCount number
    The number of times the association will be attempted before failing.
    sourceDisplayName string
    The source display name.
    sourceTypeName string
    The source type internal name.
    timeLastAttempted string
    The last attempt date.
    agent_entity_name str
    The agent unique identifier.
    agent_id str
    The agent unique identifier.
    entity_name str
    The entity name.
    entity_type_display_name str
    The entity type display name.
    entity_type_name str
    The entity type internal name.
    failure_message str
    The failure message.
    host str
    The host name.
    id str
    The provider-assigned unique ID for this managed resource.
    lifecycle_state str
    log_group_compartment str
    The log group compartment.
    log_group_name str
    The log group name.
    retry_count int
    The number of times the association will be attempted before failing.
    source_display_name str
    The source display name.
    source_type_name str
    The source type internal name.
    time_last_attempted str
    The last attempt date.
    agentEntityName String
    The agent unique identifier.
    agentId String
    The agent unique identifier.
    entityName String
    The entity name.
    entityTypeDisplayName String
    The entity type display name.
    entityTypeName String
    The entity type internal name.
    failureMessage String
    The failure message.
    host String
    The host name.
    id String
    The provider-assigned unique ID for this managed resource.
    lifecycleState String
    logGroupCompartment String
    The log group compartment.
    logGroupName String
    The log group name.
    retryCount Number
    The number of times the association will be attempted before failing.
    sourceDisplayName String
    The source display name.
    sourceTypeName String
    The source type internal name.
    timeLastAttempted String
    The last attempt date.

    Look up Existing NamespaceAssociation Resource

    Get an existing NamespaceAssociation 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?: NamespaceAssociationState, opts?: CustomResourceOptions): NamespaceAssociation
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            agent_entity_name: Optional[str] = None,
            agent_id: Optional[str] = None,
            association_properties: Optional[Sequence[NamespaceAssociationAssociationPropertyArgs]] = None,
            compartment_id: Optional[str] = None,
            entity_id: Optional[str] = None,
            entity_name: Optional[str] = None,
            entity_type_display_name: Optional[str] = None,
            entity_type_name: Optional[str] = None,
            failure_message: Optional[str] = None,
            host: Optional[str] = None,
            is_from_republish: Optional[bool] = None,
            lifecycle_state: Optional[str] = None,
            log_group_compartment: Optional[str] = None,
            log_group_id: Optional[str] = None,
            log_group_name: Optional[str] = None,
            namespace: Optional[str] = None,
            retry_count: Optional[int] = None,
            source_display_name: Optional[str] = None,
            source_name: Optional[str] = None,
            source_type_name: Optional[str] = None,
            time_last_attempted: Optional[str] = None) -> NamespaceAssociation
    func GetNamespaceAssociation(ctx *Context, name string, id IDInput, state *NamespaceAssociationState, opts ...ResourceOption) (*NamespaceAssociation, error)
    public static NamespaceAssociation Get(string name, Input<string> id, NamespaceAssociationState? state, CustomResourceOptions? opts = null)
    public static NamespaceAssociation get(String name, Output<String> id, NamespaceAssociationState state, CustomResourceOptions options)
    resources:  _:    type: oci:LogAnalytics:NamespaceAssociation    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:
    AgentEntityName string
    The agent unique identifier.
    AgentId string
    The agent unique identifier.
    AssociationProperties List<NamespaceAssociationAssociationProperty>
    A list of association properties.
    CompartmentId string
    The compartment ID
    EntityId string
    The entity unique identifier.
    EntityName string
    The entity name.
    EntityTypeDisplayName string
    The entity type display name.
    EntityTypeName string
    The entity type internal name.
    FailureMessage string
    The failure message.
    Host string
    The host name.
    IsFromRepublish bool
    isFromRepublish
    LifecycleState string
    LogGroupCompartment string
    The log group compartment.
    LogGroupId string
    (Updatable) The log group unique identifier.
    LogGroupName string
    The log group name.
    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

    RetryCount int
    The number of times the association will be attempted before failing.
    SourceDisplayName string
    The source display name.
    SourceName string
    The source name.
    SourceTypeName string
    The source type internal name.
    TimeLastAttempted string
    The last attempt date.
    AgentEntityName string
    The agent unique identifier.
    AgentId string
    The agent unique identifier.
    AssociationProperties []NamespaceAssociationAssociationPropertyArgs
    A list of association properties.
    CompartmentId string
    The compartment ID
    EntityId string
    The entity unique identifier.
    EntityName string
    The entity name.
    EntityTypeDisplayName string
    The entity type display name.
    EntityTypeName string
    The entity type internal name.
    FailureMessage string
    The failure message.
    Host string
    The host name.
    IsFromRepublish bool
    isFromRepublish
    LifecycleState string
    LogGroupCompartment string
    The log group compartment.
    LogGroupId string
    (Updatable) The log group unique identifier.
    LogGroupName string
    The log group name.
    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

    RetryCount int
    The number of times the association will be attempted before failing.
    SourceDisplayName string
    The source display name.
    SourceName string
    The source name.
    SourceTypeName string
    The source type internal name.
    TimeLastAttempted string
    The last attempt date.
    agentEntityName String
    The agent unique identifier.
    agentId String
    The agent unique identifier.
    associationProperties List<NamespaceAssociationAssociationProperty>
    A list of association properties.
    compartmentId String
    The compartment ID
    entityId String
    The entity unique identifier.
    entityName String
    The entity name.
    entityTypeDisplayName String
    The entity type display name.
    entityTypeName String
    The entity type internal name.
    failureMessage String
    The failure message.
    host String
    The host name.
    isFromRepublish Boolean
    isFromRepublish
    lifecycleState String
    logGroupCompartment String
    The log group compartment.
    logGroupId String
    (Updatable) The log group unique identifier.
    logGroupName String
    The log group name.
    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

    retryCount Integer
    The number of times the association will be attempted before failing.
    sourceDisplayName String
    The source display name.
    sourceName String
    The source name.
    sourceTypeName String
    The source type internal name.
    timeLastAttempted String
    The last attempt date.
    agentEntityName string
    The agent unique identifier.
    agentId string
    The agent unique identifier.
    associationProperties NamespaceAssociationAssociationProperty[]
    A list of association properties.
    compartmentId string
    The compartment ID
    entityId string
    The entity unique identifier.
    entityName string
    The entity name.
    entityTypeDisplayName string
    The entity type display name.
    entityTypeName string
    The entity type internal name.
    failureMessage string
    The failure message.
    host string
    The host name.
    isFromRepublish boolean
    isFromRepublish
    lifecycleState string
    logGroupCompartment string
    The log group compartment.
    logGroupId string
    (Updatable) The log group unique identifier.
    logGroupName string
    The log group name.
    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

    retryCount number
    The number of times the association will be attempted before failing.
    sourceDisplayName string
    The source display name.
    sourceName string
    The source name.
    sourceTypeName string
    The source type internal name.
    timeLastAttempted string
    The last attempt date.
    agent_entity_name str
    The agent unique identifier.
    agent_id str
    The agent unique identifier.
    association_properties Sequence[NamespaceAssociationAssociationPropertyArgs]
    A list of association properties.
    compartment_id str
    The compartment ID
    entity_id str
    The entity unique identifier.
    entity_name str
    The entity name.
    entity_type_display_name str
    The entity type display name.
    entity_type_name str
    The entity type internal name.
    failure_message str
    The failure message.
    host str
    The host name.
    is_from_republish bool
    isFromRepublish
    lifecycle_state str
    log_group_compartment str
    The log group compartment.
    log_group_id str
    (Updatable) The log group unique identifier.
    log_group_name str
    The log group name.
    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

    retry_count int
    The number of times the association will be attempted before failing.
    source_display_name str
    The source display name.
    source_name str
    The source name.
    source_type_name str
    The source type internal name.
    time_last_attempted str
    The last attempt date.
    agentEntityName String
    The agent unique identifier.
    agentId String
    The agent unique identifier.
    associationProperties List<Property Map>
    A list of association properties.
    compartmentId String
    The compartment ID
    entityId String
    The entity unique identifier.
    entityName String
    The entity name.
    entityTypeDisplayName String
    The entity type display name.
    entityTypeName String
    The entity type internal name.
    failureMessage String
    The failure message.
    host String
    The host name.
    isFromRepublish Boolean
    isFromRepublish
    lifecycleState String
    logGroupCompartment String
    The log group compartment.
    logGroupId String
    (Updatable) The log group unique identifier.
    logGroupName String
    The log group name.
    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

    retryCount Number
    The number of times the association will be attempted before failing.
    sourceDisplayName String
    The source display name.
    sourceName String
    The source name.
    sourceTypeName String
    The source type internal name.
    timeLastAttempted String
    The last attempt date.

    Supporting Types

    NamespaceAssociationAssociationProperty, NamespaceAssociationAssociationPropertyArgs

    Name string
    The name of the association property.
    Patterns List<NamespaceAssociationAssociationPropertyPattern>
    A list of pattern level overrides for this property.
    Value string
    The value of the association property.
    Name string
    The name of the association property.
    Patterns []NamespaceAssociationAssociationPropertyPattern
    A list of pattern level overrides for this property.
    Value string
    The value of the association property.
    name String
    The name of the association property.
    patterns List<NamespaceAssociationAssociationPropertyPattern>
    A list of pattern level overrides for this property.
    value String
    The value of the association property.
    name string
    The name of the association property.
    patterns NamespaceAssociationAssociationPropertyPattern[]
    A list of pattern level overrides for this property.
    value string
    The value of the association property.
    name str
    The name of the association property.
    patterns Sequence[NamespaceAssociationAssociationPropertyPattern]
    A list of pattern level overrides for this property.
    value str
    The value of the association property.
    name String
    The name of the association property.
    patterns List<Property Map>
    A list of pattern level overrides for this property.
    value String
    The value of the association property.

    NamespaceAssociationAssociationPropertyPattern, NamespaceAssociationAssociationPropertyPatternArgs

    Id string
    The pattern id.
    Value string
    (Updatable) The value of the property.
    EffectiveLevel string
    Id string
    The pattern id.
    Value string
    (Updatable) The value of the property.
    EffectiveLevel string
    id String
    The pattern id.
    value String
    (Updatable) The value of the property.
    effectiveLevel String
    id string
    The pattern id.
    value string
    (Updatable) The value of the property.
    effectiveLevel string
    id str
    The pattern id.
    value str
    (Updatable) The value of the property.
    effective_level str
    id String
    The pattern id.
    value String
    (Updatable) The value of the property.
    effectiveLevel String

    Import

    NamespaceAssociations can be imported using the id, e.g.

    $ pulumi import oci:LogAnalytics/namespaceAssociation:NamespaceAssociation test_namespace_association "namespaces/{namespaceName}/associations/{compartmentId}/{entityId}/{sourceName}"
    

    To learn more about importing existing cloud resources, see Importing resources.

    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.16.0 published on Wednesday, Jan 28, 2026 by Pulumi
      Meet Neo: Your AI Platform Teammate