Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi
oci.LogAnalytics.getNamespaceEffectiveProperties
Explore with Pulumi AI
This data source provides the list of Namespace Effective Properties in Oracle Cloud Infrastructure Log Analytics service.
Returns a list of effective properties for the specified resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testNamespaceEffectiveProperties = oci.LogAnalytics.getNamespaceEffectiveProperties({
    namespace: namespaceEffectivePropertyNamespace,
    agentId: testAgent.id,
    entityId: testLogAnalyticsEntity.id,
    isIncludePatterns: namespaceEffectivePropertyIsIncludePatterns,
    name: namespaceEffectivePropertyName,
    patternId: testPattern.id,
    sourceName: namespaceEffectivePropertySourceName,
});
import pulumi
import pulumi_oci as oci
test_namespace_effective_properties = oci.LogAnalytics.get_namespace_effective_properties(namespace=namespace_effective_property_namespace,
    agent_id=test_agent["id"],
    entity_id=test_log_analytics_entity["id"],
    is_include_patterns=namespace_effective_property_is_include_patterns,
    name=namespace_effective_property_name,
    pattern_id=test_pattern["id"],
    source_name=namespace_effective_property_source_name)
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/loganalytics"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := loganalytics.GetNamespaceEffectiveProperties(ctx, &loganalytics.GetNamespaceEffectivePropertiesArgs{
			Namespace:         namespaceEffectivePropertyNamespace,
			AgentId:           pulumi.StringRef(testAgent.Id),
			EntityId:          pulumi.StringRef(testLogAnalyticsEntity.Id),
			IsIncludePatterns: pulumi.BoolRef(namespaceEffectivePropertyIsIncludePatterns),
			Name:              pulumi.StringRef(namespaceEffectivePropertyName),
			PatternId:         pulumi.IntRef(testPattern.Id),
			SourceName:        pulumi.StringRef(namespaceEffectivePropertySourceName),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() => 
{
    var testNamespaceEffectiveProperties = Oci.LogAnalytics.GetNamespaceEffectiveProperties.Invoke(new()
    {
        Namespace = namespaceEffectivePropertyNamespace,
        AgentId = testAgent.Id,
        EntityId = testLogAnalyticsEntity.Id,
        IsIncludePatterns = namespaceEffectivePropertyIsIncludePatterns,
        Name = namespaceEffectivePropertyName,
        PatternId = testPattern.Id,
        SourceName = namespaceEffectivePropertySourceName,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.LogAnalytics.LogAnalyticsFunctions;
import com.pulumi.oci.LogAnalytics.inputs.GetNamespaceEffectivePropertiesArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var testNamespaceEffectiveProperties = LogAnalyticsFunctions.getNamespaceEffectiveProperties(GetNamespaceEffectivePropertiesArgs.builder()
            .namespace(namespaceEffectivePropertyNamespace)
            .agentId(testAgent.id())
            .entityId(testLogAnalyticsEntity.id())
            .isIncludePatterns(namespaceEffectivePropertyIsIncludePatterns)
            .name(namespaceEffectivePropertyName)
            .patternId(testPattern.id())
            .sourceName(namespaceEffectivePropertySourceName)
            .build());
    }
}
variables:
  testNamespaceEffectiveProperties:
    fn::invoke:
      function: oci:LogAnalytics:getNamespaceEffectiveProperties
      arguments:
        namespace: ${namespaceEffectivePropertyNamespace}
        agentId: ${testAgent.id}
        entityId: ${testLogAnalyticsEntity.id}
        isIncludePatterns: ${namespaceEffectivePropertyIsIncludePatterns}
        name: ${namespaceEffectivePropertyName}
        patternId: ${testPattern.id}
        sourceName: ${namespaceEffectivePropertySourceName}
Using getNamespaceEffectiveProperties
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getNamespaceEffectiveProperties(args: GetNamespaceEffectivePropertiesArgs, opts?: InvokeOptions): Promise<GetNamespaceEffectivePropertiesResult>
function getNamespaceEffectivePropertiesOutput(args: GetNamespaceEffectivePropertiesOutputArgs, opts?: InvokeOptions): Output<GetNamespaceEffectivePropertiesResult>def get_namespace_effective_properties(agent_id: Optional[str] = None,
                                       entity_id: Optional[str] = None,
                                       filters: Optional[Sequence[_loganalytics.GetNamespaceEffectivePropertiesFilter]] = None,
                                       is_include_patterns: Optional[bool] = None,
                                       name: Optional[str] = None,
                                       namespace: Optional[str] = None,
                                       pattern_id: Optional[int] = None,
                                       source_name: Optional[str] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetNamespaceEffectivePropertiesResult
def get_namespace_effective_properties_output(agent_id: Optional[pulumi.Input[str]] = None,
                                       entity_id: Optional[pulumi.Input[str]] = None,
                                       filters: Optional[pulumi.Input[Sequence[pulumi.Input[_loganalytics.GetNamespaceEffectivePropertiesFilterArgs]]]] = None,
                                       is_include_patterns: Optional[pulumi.Input[bool]] = None,
                                       name: Optional[pulumi.Input[str]] = None,
                                       namespace: Optional[pulumi.Input[str]] = None,
                                       pattern_id: Optional[pulumi.Input[int]] = None,
                                       source_name: Optional[pulumi.Input[str]] = None,
                                       opts: Optional[InvokeOptions] = None) -> Output[GetNamespaceEffectivePropertiesResult]func GetNamespaceEffectiveProperties(ctx *Context, args *GetNamespaceEffectivePropertiesArgs, opts ...InvokeOption) (*GetNamespaceEffectivePropertiesResult, error)
func GetNamespaceEffectivePropertiesOutput(ctx *Context, args *GetNamespaceEffectivePropertiesOutputArgs, opts ...InvokeOption) GetNamespaceEffectivePropertiesResultOutput> Note: This function is named GetNamespaceEffectiveProperties in the Go SDK.
public static class GetNamespaceEffectiveProperties 
{
    public static Task<GetNamespaceEffectivePropertiesResult> InvokeAsync(GetNamespaceEffectivePropertiesArgs args, InvokeOptions? opts = null)
    public static Output<GetNamespaceEffectivePropertiesResult> Invoke(GetNamespaceEffectivePropertiesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetNamespaceEffectivePropertiesResult> getNamespaceEffectiveProperties(GetNamespaceEffectivePropertiesArgs args, InvokeOptions options)
public static Output<GetNamespaceEffectivePropertiesResult> getNamespaceEffectiveProperties(GetNamespaceEffectivePropertiesArgs args, InvokeOptions options)
fn::invoke:
  function: oci:LogAnalytics/getNamespaceEffectiveProperties:getNamespaceEffectiveProperties
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Namespace string
- The Logging Analytics namespace used for the request.
- AgentId string
- The agent ocid.
- EntityId string
- The entity ocid.
- Filters
List<GetNamespace Effective Properties Filter> 
- IsInclude boolPatterns 
- The include pattern flag.
- Name string
- The property name used for filtering.
- PatternId int
- The pattern id.
- SourceName string
- The source name.
- Namespace string
- The Logging Analytics namespace used for the request.
- AgentId string
- The agent ocid.
- EntityId string
- The entity ocid.
- Filters
[]GetNamespace Effective Properties Filter 
- IsInclude boolPatterns 
- The include pattern flag.
- Name string
- The property name used for filtering.
- PatternId int
- The pattern id.
- SourceName string
- The source name.
- namespace String
- The Logging Analytics namespace used for the request.
- agentId String
- The agent ocid.
- entityId String
- The entity ocid.
- filters
List<GetNamespace Effective Properties Filter> 
- isInclude BooleanPatterns 
- The include pattern flag.
- name String
- The property name used for filtering.
- patternId Integer
- The pattern id.
- sourceName String
- The source name.
- namespace string
- The Logging Analytics namespace used for the request.
- agentId string
- The agent ocid.
- entityId string
- The entity ocid.
- filters
GetNamespace Effective Properties Filter[] 
- isInclude booleanPatterns 
- The include pattern flag.
- name string
- The property name used for filtering.
- patternId number
- The pattern id.
- sourceName string
- The source name.
- namespace str
- The Logging Analytics namespace used for the request.
- agent_id str
- The agent ocid.
- entity_id str
- The entity ocid.
- filters
Sequence[loganalytics.Get Namespace Effective Properties Filter] 
- is_include_ boolpatterns 
- The include pattern flag.
- name str
- The property name used for filtering.
- pattern_id int
- The pattern id.
- source_name str
- The source name.
- namespace String
- The Logging Analytics namespace used for the request.
- agentId String
- The agent ocid.
- entityId String
- The entity ocid.
- filters List<Property Map>
- isInclude BooleanPatterns 
- The include pattern flag.
- name String
- The property name used for filtering.
- patternId Number
- The pattern id.
- sourceName String
- The source name.
getNamespaceEffectiveProperties Result
The following output properties are available:
- EffectiveProperty List<GetCollections Namespace Effective Properties Effective Property Collection> 
- The list of effective_property_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Namespace string
- AgentId string
- EntityId string
- Filters
List<GetNamespace Effective Properties Filter> 
- IsInclude boolPatterns 
- Name string
- The property name.
- PatternId int
- SourceName string
- EffectiveProperty []GetCollections Namespace Effective Properties Effective Property Collection 
- The list of effective_property_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Namespace string
- AgentId string
- EntityId string
- Filters
[]GetNamespace Effective Properties Filter 
- IsInclude boolPatterns 
- Name string
- The property name.
- PatternId int
- SourceName string
- effectiveProperty List<GetCollections Namespace Effective Properties Effective Property Collection> 
- The list of effective_property_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- namespace String
- agentId String
- entityId String
- filters
List<GetNamespace Effective Properties Filter> 
- isInclude BooleanPatterns 
- name String
- The property name.
- patternId Integer
- sourceName String
- effectiveProperty GetCollections Namespace Effective Properties Effective Property Collection[] 
- The list of effective_property_collection.
- id string
- The provider-assigned unique ID for this managed resource.
- namespace string
- agentId string
- entityId string
- filters
GetNamespace Effective Properties Filter[] 
- isInclude booleanPatterns 
- name string
- The property name.
- patternId number
- sourceName string
- effective_property_ Sequence[loganalytics.collections Get Namespace Effective Properties Effective Property Collection] 
- The list of effective_property_collection.
- id str
- The provider-assigned unique ID for this managed resource.
- namespace str
- agent_id str
- entity_id str
- filters
Sequence[loganalytics.Get Namespace Effective Properties Filter] 
- is_include_ boolpatterns 
- name str
- The property name.
- pattern_id int
- source_name str
- effectiveProperty List<Property Map>Collections 
- The list of effective_property_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- namespace String
- agentId String
- entityId String
- filters List<Property Map>
- isInclude BooleanPatterns 
- name String
- The property name.
- patternId Number
- sourceName String
Supporting Types
GetNamespaceEffectivePropertiesEffectivePropertyCollection      
- Items
List<GetNamespace Effective Properties Effective Property Collection Item> 
- A list of properties and their effective values.
- Items
[]GetNamespace Effective Properties Effective Property Collection Item 
- A list of properties and their effective values.
- items
List<GetNamespace Effective Properties Effective Property Collection Item> 
- A list of properties and their effective values.
- items
GetNamespace Effective Properties Effective Property Collection Item[] 
- A list of properties and their effective values.
- items
Sequence[loganalytics.Get Namespace Effective Properties Effective Property Collection Item] 
- A list of properties and their effective values.
- items List<Property Map>
- A list of properties and their effective values.
GetNamespaceEffectivePropertiesEffectivePropertyCollectionItem       
- EffectiveLevel string
- The effective level of the property value.
- Name string
- The property name used for filtering.
- Patterns
List<GetNamespace Effective Properties Effective Property Collection Item Pattern> 
- A list of pattern level override values for the property.
- Value string
- The effective value of the property. This is determined by considering the value set at the most effective level.
- EffectiveLevel string
- The effective level of the property value.
- Name string
- The property name used for filtering.
- Patterns
[]GetNamespace Effective Properties Effective Property Collection Item Pattern 
- A list of pattern level override values for the property.
- Value string
- The effective value of the property. This is determined by considering the value set at the most effective level.
- effectiveLevel String
- The effective level of the property value.
- name String
- The property name used for filtering.
- patterns
List<GetNamespace Effective Properties Effective Property Collection Item Pattern> 
- A list of pattern level override values for the property.
- value String
- The effective value of the property. This is determined by considering the value set at the most effective level.
- effectiveLevel string
- The effective level of the property value.
- name string
- The property name used for filtering.
- patterns
GetNamespace Effective Properties Effective Property Collection Item Pattern[] 
- A list of pattern level override values for the property.
- value string
- The effective value of the property. This is determined by considering the value set at the most effective level.
- effective_level str
- The effective level of the property value.
- name str
- The property name used for filtering.
- patterns
Sequence[loganalytics.Get Namespace Effective Properties Effective Property Collection Item Pattern] 
- A list of pattern level override values for the property.
- value str
- The effective value of the property. This is determined by considering the value set at the most effective level.
- effectiveLevel String
- The effective level of the property value.
- name String
- The property name used for filtering.
- patterns List<Property Map>
- A list of pattern level override values for the property.
- value String
- The effective value of the property. This is determined by considering the value set at the most effective level.
GetNamespaceEffectivePropertiesEffectivePropertyCollectionItemPattern        
- EffectiveLevel string
- The effective level of the property value.
- Id string
- The pattern id.
- Value string
- The effective value of the property. This is determined by considering the value set at the most effective level.
- EffectiveLevel string
- The effective level of the property value.
- Id string
- The pattern id.
- Value string
- The effective value of the property. This is determined by considering the value set at the most effective level.
- effectiveLevel String
- The effective level of the property value.
- id String
- The pattern id.
- value String
- The effective value of the property. This is determined by considering the value set at the most effective level.
- effectiveLevel string
- The effective level of the property value.
- id string
- The pattern id.
- value string
- The effective value of the property. This is determined by considering the value set at the most effective level.
- effective_level str
- The effective level of the property value.
- id str
- The pattern id.
- value str
- The effective value of the property. This is determined by considering the value set at the most effective level.
- effectiveLevel String
- The effective level of the property value.
- id String
- The pattern id.
- value String
- The effective value of the property. This is determined by considering the value set at the most effective level.
GetNamespaceEffectivePropertiesFilter    
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.