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:
- Compartment
Id string - The compartment ID
- Entity
Id string - The entity unique identifier.
- Log
Group stringId - (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
- Source
Name string - The source name.
- Association
Properties List<NamespaceAssociation Association Property> - A list of association properties.
- Is
From boolRepublish - isFromRepublish
- Compartment
Id string - The compartment ID
- Entity
Id string - The entity unique identifier.
- Log
Group stringId - (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
- Source
Name string - The source name.
- Association
Properties []NamespaceAssociation Association Property Args - A list of association properties.
- Is
From boolRepublish - isFromRepublish
- compartment
Id String - The compartment ID
- entity
Id String - The entity unique identifier.
- log
Group StringId - (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
- source
Name String - The source name.
- association
Properties List<NamespaceAssociation Association Property> - A list of association properties.
- is
From BooleanRepublish - isFromRepublish
- compartment
Id string - The compartment ID
- entity
Id string - The entity unique identifier.
- log
Group stringId - (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
- source
Name string - The source name.
- association
Properties NamespaceAssociation Association Property[] - A list of association properties.
- is
From booleanRepublish - isFromRepublish
- compartment_
id str - The compartment ID
- entity_
id str - The entity unique identifier.
- log_
group_ strid - (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[NamespaceAssociation Association Property Args] - A list of association properties.
- is_
from_ boolrepublish - isFromRepublish
- compartment
Id String - The compartment ID
- entity
Id String - The entity unique identifier.
- log
Group StringId - (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
- source
Name String - The source name.
- association
Properties List<Property Map> - A list of association properties.
- is
From BooleanRepublish - isFromRepublish
Outputs
All input properties are implicitly available as output properties. Additionally, the NamespaceAssociation resource produces the following output properties:
- Agent
Entity stringName - The agent unique identifier.
- Agent
Id string - The agent unique identifier.
- Entity
Name string - The entity name.
- Entity
Type stringDisplay Name - The entity type display name.
- Entity
Type stringName - The entity type internal name.
- Failure
Message string - The failure message.
- Host string
- The host name.
- Id string
- The provider-assigned unique ID for this managed resource.
- Lifecycle
State string - Log
Group stringCompartment - The log group compartment.
- Log
Group stringName - The log group name.
- Retry
Count int - The number of times the association will be attempted before failing.
- Source
Display stringName - The source display name.
- Source
Type stringName - The source type internal name.
- Time
Last stringAttempted - The last attempt date.
- Agent
Entity stringName - The agent unique identifier.
- Agent
Id string - The agent unique identifier.
- Entity
Name string - The entity name.
- Entity
Type stringDisplay Name - The entity type display name.
- Entity
Type stringName - The entity type internal name.
- Failure
Message string - The failure message.
- Host string
- The host name.
- Id string
- The provider-assigned unique ID for this managed resource.
- Lifecycle
State string - Log
Group stringCompartment - The log group compartment.
- Log
Group stringName - The log group name.
- Retry
Count int - The number of times the association will be attempted before failing.
- Source
Display stringName - The source display name.
- Source
Type stringName - The source type internal name.
- Time
Last stringAttempted - The last attempt date.
- agent
Entity StringName - The agent unique identifier.
- agent
Id String - The agent unique identifier.
- entity
Name String - The entity name.
- entity
Type StringDisplay Name - The entity type display name.
- entity
Type StringName - The entity type internal name.
- failure
Message String - The failure message.
- host String
- The host name.
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycle
State String - log
Group StringCompartment - The log group compartment.
- log
Group StringName - The log group name.
- retry
Count Integer - The number of times the association will be attempted before failing.
- source
Display StringName - The source display name.
- source
Type StringName - The source type internal name.
- time
Last StringAttempted - The last attempt date.
- agent
Entity stringName - The agent unique identifier.
- agent
Id string - The agent unique identifier.
- entity
Name string - The entity name.
- entity
Type stringDisplay Name - The entity type display name.
- entity
Type stringName - The entity type internal name.
- failure
Message string - The failure message.
- host string
- The host name.
- id string
- The provider-assigned unique ID for this managed resource.
- lifecycle
State string - log
Group stringCompartment - The log group compartment.
- log
Group stringName - The log group name.
- retry
Count number - The number of times the association will be attempted before failing.
- source
Display stringName - The source display name.
- source
Type stringName - The source type internal name.
- time
Last stringAttempted - The last attempt date.
- agent_
entity_ strname - The agent unique identifier.
- agent_
id str - The agent unique identifier.
- entity_
name str - The entity name.
- entity_
type_ strdisplay_ name - The entity type display name.
- entity_
type_ strname - 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_ strcompartment - The log group compartment.
- log_
group_ strname - The log group name.
- retry_
count int - The number of times the association will be attempted before failing.
- source_
display_ strname - The source display name.
- source_
type_ strname - The source type internal name.
- time_
last_ strattempted - The last attempt date.
- agent
Entity StringName - The agent unique identifier.
- agent
Id String - The agent unique identifier.
- entity
Name String - The entity name.
- entity
Type StringDisplay Name - The entity type display name.
- entity
Type StringName - The entity type internal name.
- failure
Message String - The failure message.
- host String
- The host name.
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycle
State String - log
Group StringCompartment - The log group compartment.
- log
Group StringName - The log group name.
- retry
Count Number - The number of times the association will be attempted before failing.
- source
Display StringName - The source display name.
- source
Type StringName - The source type internal name.
- time
Last StringAttempted - 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) -> NamespaceAssociationfunc 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.
- Agent
Entity stringName - The agent unique identifier.
- Agent
Id string - The agent unique identifier.
- Association
Properties List<NamespaceAssociation Association Property> - A list of association properties.
- Compartment
Id string - The compartment ID
- Entity
Id string - The entity unique identifier.
- Entity
Name string - The entity name.
- Entity
Type stringDisplay Name - The entity type display name.
- Entity
Type stringName - The entity type internal name.
- Failure
Message string - The failure message.
- Host string
- The host name.
- Is
From boolRepublish - isFromRepublish
- Lifecycle
State string - Log
Group stringCompartment - The log group compartment.
- Log
Group stringId - (Updatable) The log group unique identifier.
- Log
Group stringName - 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
- Retry
Count int - The number of times the association will be attempted before failing.
- Source
Display stringName - The source display name.
- Source
Name string - The source name.
- Source
Type stringName - The source type internal name.
- Time
Last stringAttempted - The last attempt date.
- Agent
Entity stringName - The agent unique identifier.
- Agent
Id string - The agent unique identifier.
- Association
Properties []NamespaceAssociation Association Property Args - A list of association properties.
- Compartment
Id string - The compartment ID
- Entity
Id string - The entity unique identifier.
- Entity
Name string - The entity name.
- Entity
Type stringDisplay Name - The entity type display name.
- Entity
Type stringName - The entity type internal name.
- Failure
Message string - The failure message.
- Host string
- The host name.
- Is
From boolRepublish - isFromRepublish
- Lifecycle
State string - Log
Group stringCompartment - The log group compartment.
- Log
Group stringId - (Updatable) The log group unique identifier.
- Log
Group stringName - 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
- Retry
Count int - The number of times the association will be attempted before failing.
- Source
Display stringName - The source display name.
- Source
Name string - The source name.
- Source
Type stringName - The source type internal name.
- Time
Last stringAttempted - The last attempt date.
- agent
Entity StringName - The agent unique identifier.
- agent
Id String - The agent unique identifier.
- association
Properties List<NamespaceAssociation Association Property> - A list of association properties.
- compartment
Id String - The compartment ID
- entity
Id String - The entity unique identifier.
- entity
Name String - The entity name.
- entity
Type StringDisplay Name - The entity type display name.
- entity
Type StringName - The entity type internal name.
- failure
Message String - The failure message.
- host String
- The host name.
- is
From BooleanRepublish - isFromRepublish
- lifecycle
State String - log
Group StringCompartment - The log group compartment.
- log
Group StringId - (Updatable) The log group unique identifier.
- log
Group StringName - 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
- retry
Count Integer - The number of times the association will be attempted before failing.
- source
Display StringName - The source display name.
- source
Name String - The source name.
- source
Type StringName - The source type internal name.
- time
Last StringAttempted - The last attempt date.
- agent
Entity stringName - The agent unique identifier.
- agent
Id string - The agent unique identifier.
- association
Properties NamespaceAssociation Association Property[] - A list of association properties.
- compartment
Id string - The compartment ID
- entity
Id string - The entity unique identifier.
- entity
Name string - The entity name.
- entity
Type stringDisplay Name - The entity type display name.
- entity
Type stringName - The entity type internal name.
- failure
Message string - The failure message.
- host string
- The host name.
- is
From booleanRepublish - isFromRepublish
- lifecycle
State string - log
Group stringCompartment - The log group compartment.
- log
Group stringId - (Updatable) The log group unique identifier.
- log
Group stringName - 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
- retry
Count number - The number of times the association will be attempted before failing.
- source
Display stringName - The source display name.
- source
Name string - The source name.
- source
Type stringName - The source type internal name.
- time
Last stringAttempted - The last attempt date.
- agent_
entity_ strname - The agent unique identifier.
- agent_
id str - The agent unique identifier.
- association_
properties Sequence[NamespaceAssociation Association Property Args] - 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_ strdisplay_ name - The entity type display name.
- entity_
type_ strname - The entity type internal name.
- failure_
message str - The failure message.
- host str
- The host name.
- is_
from_ boolrepublish - isFromRepublish
- lifecycle_
state str - log_
group_ strcompartment - The log group compartment.
- log_
group_ strid - (Updatable) The log group unique identifier.
- log_
group_ strname - 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_ strname - The source display name.
- source_
name str - The source name.
- source_
type_ strname - The source type internal name.
- time_
last_ strattempted - The last attempt date.
- agent
Entity StringName - The agent unique identifier.
- agent
Id String - The agent unique identifier.
- association
Properties List<Property Map> - A list of association properties.
- compartment
Id String - The compartment ID
- entity
Id String - The entity unique identifier.
- entity
Name String - The entity name.
- entity
Type StringDisplay Name - The entity type display name.
- entity
Type StringName - The entity type internal name.
- failure
Message String - The failure message.
- host String
- The host name.
- is
From BooleanRepublish - isFromRepublish
- lifecycle
State String - log
Group StringCompartment - The log group compartment.
- log
Group StringId - (Updatable) The log group unique identifier.
- log
Group StringName - 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
- retry
Count Number - The number of times the association will be attempted before failing.
- source
Display StringName - The source display name.
- source
Name String - The source name.
- source
Type StringName - The source type internal name.
- time
Last StringAttempted - The last attempt date.
Supporting Types
NamespaceAssociationAssociationProperty, NamespaceAssociationAssociationPropertyArgs
- Name string
- The name of the association property.
- Patterns
List<Namespace
Association Association Property Pattern> - 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
[]Namespace
Association Association Property Pattern - 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<Namespace
Association Association Property Pattern> - 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
Namespace
Association Association Property Pattern[] - 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[Namespace
Association Association Property Pattern] - 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.
- Effective
Level string
- Id string
- The pattern id.
- Value string
- (Updatable) The value of the property.
- Effective
Level string
- id String
- The pattern id.
- value String
- (Updatable) The value of the property.
- effective
Level String
- id string
- The pattern id.
- value string
- (Updatable) The value of the property.
- effective
Level 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.
- effective
Level 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
ociTerraform Provider.
