1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. LogAnalytics
  5. getNamespaceEffectiveProperties
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

oci.LogAnalytics.getNamespaceEffectiveProperties

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

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,
});
Copy
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)
Copy
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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
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}
Copy

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>
Copy
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]
Copy
func GetNamespaceEffectiveProperties(ctx *Context, args *GetNamespaceEffectivePropertiesArgs, opts ...InvokeOption) (*GetNamespaceEffectivePropertiesResult, error)
func GetNamespaceEffectivePropertiesOutput(ctx *Context, args *GetNamespaceEffectivePropertiesOutputArgs, opts ...InvokeOption) GetNamespaceEffectivePropertiesResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetNamespaceEffectivePropertiesResult> getNamespaceEffectiveProperties(GetNamespaceEffectivePropertiesArgs args, InvokeOptions options)
public static Output<GetNamespaceEffectivePropertiesResult> getNamespaceEffectiveProperties(GetNamespaceEffectivePropertiesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:LogAnalytics/getNamespaceEffectiveProperties:getNamespaceEffectiveProperties
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Namespace This property is required. string
The Logging Analytics namespace used for the request.
AgentId string
The agent ocid.
EntityId string
The entity ocid.
Filters Changes to this property will trigger replacement. List<GetNamespaceEffectivePropertiesFilter>
IsIncludePatterns bool
The include pattern flag.
Name string
The property name used for filtering.
PatternId int
The pattern id.
SourceName string
The source name.
Namespace This property is required. string
The Logging Analytics namespace used for the request.
AgentId string
The agent ocid.
EntityId string
The entity ocid.
Filters Changes to this property will trigger replacement. []GetNamespaceEffectivePropertiesFilter
IsIncludePatterns bool
The include pattern flag.
Name string
The property name used for filtering.
PatternId int
The pattern id.
SourceName string
The source name.
namespace This property is required. String
The Logging Analytics namespace used for the request.
agentId String
The agent ocid.
entityId String
The entity ocid.
filters Changes to this property will trigger replacement. List<GetNamespaceEffectivePropertiesFilter>
isIncludePatterns Boolean
The include pattern flag.
name String
The property name used for filtering.
patternId Integer
The pattern id.
sourceName String
The source name.
namespace This property is required. string
The Logging Analytics namespace used for the request.
agentId string
The agent ocid.
entityId string
The entity ocid.
filters Changes to this property will trigger replacement. GetNamespaceEffectivePropertiesFilter[]
isIncludePatterns boolean
The include pattern flag.
name string
The property name used for filtering.
patternId number
The pattern id.
sourceName string
The source name.
namespace This property is required. str
The Logging Analytics namespace used for the request.
agent_id str
The agent ocid.
entity_id str
The entity ocid.
filters Changes to this property will trigger replacement. Sequence[loganalytics.GetNamespaceEffectivePropertiesFilter]
is_include_patterns bool
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 This property is required. String
The Logging Analytics namespace used for the request.
agentId String
The agent ocid.
entityId String
The entity ocid.
filters Changes to this property will trigger replacement. List<Property Map>
isIncludePatterns Boolean
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:

EffectivePropertyCollections List<GetNamespaceEffectivePropertiesEffectivePropertyCollection>
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<GetNamespaceEffectivePropertiesFilter>
IsIncludePatterns bool
Name string
The property name.
PatternId int
SourceName string
EffectivePropertyCollections []GetNamespaceEffectivePropertiesEffectivePropertyCollection
The list of effective_property_collection.
Id string
The provider-assigned unique ID for this managed resource.
Namespace string
AgentId string
EntityId string
Filters []GetNamespaceEffectivePropertiesFilter
IsIncludePatterns bool
Name string
The property name.
PatternId int
SourceName string
effectivePropertyCollections List<GetNamespaceEffectivePropertiesEffectivePropertyCollection>
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<GetNamespaceEffectivePropertiesFilter>
isIncludePatterns Boolean
name String
The property name.
patternId Integer
sourceName String
effectivePropertyCollections GetNamespaceEffectivePropertiesEffectivePropertyCollection[]
The list of effective_property_collection.
id string
The provider-assigned unique ID for this managed resource.
namespace string
agentId string
entityId string
filters GetNamespaceEffectivePropertiesFilter[]
isIncludePatterns boolean
name string
The property name.
patternId number
sourceName string
effectivePropertyCollections List<Property Map>
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>
isIncludePatterns Boolean
name String
The property name.
patternId Number
sourceName String

Supporting Types

GetNamespaceEffectivePropertiesEffectivePropertyCollection

Items This property is required. List<GetNamespaceEffectivePropertiesEffectivePropertyCollectionItem>
A list of properties and their effective values.
Items This property is required. []GetNamespaceEffectivePropertiesEffectivePropertyCollectionItem
A list of properties and their effective values.
items This property is required. List<GetNamespaceEffectivePropertiesEffectivePropertyCollectionItem>
A list of properties and their effective values.
items This property is required. GetNamespaceEffectivePropertiesEffectivePropertyCollectionItem[]
A list of properties and their effective values.
items This property is required. Sequence[loganalytics.GetNamespaceEffectivePropertiesEffectivePropertyCollectionItem]
A list of properties and their effective values.
items This property is required. List<Property Map>
A list of properties and their effective values.

GetNamespaceEffectivePropertiesEffectivePropertyCollectionItem

EffectiveLevel This property is required. string
The effective level of the property value.
Name This property is required. string
The property name used for filtering.
Patterns This property is required. List<GetNamespaceEffectivePropertiesEffectivePropertyCollectionItemPattern>
A list of pattern level override values for the property.
Value This property is required. string
The effective value of the property. This is determined by considering the value set at the most effective level.
EffectiveLevel This property is required. string
The effective level of the property value.
Name This property is required. string
The property name used for filtering.
Patterns This property is required. []GetNamespaceEffectivePropertiesEffectivePropertyCollectionItemPattern
A list of pattern level override values for the property.
Value This property is required. string
The effective value of the property. This is determined by considering the value set at the most effective level.
effectiveLevel This property is required. String
The effective level of the property value.
name This property is required. String
The property name used for filtering.
patterns This property is required. List<GetNamespaceEffectivePropertiesEffectivePropertyCollectionItemPattern>
A list of pattern level override values for the property.
value This property is required. String
The effective value of the property. This is determined by considering the value set at the most effective level.
effectiveLevel This property is required. string
The effective level of the property value.
name This property is required. string
The property name used for filtering.
patterns This property is required. GetNamespaceEffectivePropertiesEffectivePropertyCollectionItemPattern[]
A list of pattern level override values for the property.
value This property is required. string
The effective value of the property. This is determined by considering the value set at the most effective level.
effective_level This property is required. str
The effective level of the property value.
name This property is required. str
The property name used for filtering.
patterns This property is required. Sequence[loganalytics.GetNamespaceEffectivePropertiesEffectivePropertyCollectionItemPattern]
A list of pattern level override values for the property.
value This property is required. str
The effective value of the property. This is determined by considering the value set at the most effective level.
effectiveLevel This property is required. String
The effective level of the property value.
name This property is required. String
The property name used for filtering.
patterns This property is required. List<Property Map>
A list of pattern level override values for the property.
value This property is required. String
The effective value of the property. This is determined by considering the value set at the most effective level.

GetNamespaceEffectivePropertiesEffectivePropertyCollectionItemPattern

EffectiveLevel This property is required. string
The effective level of the property value.
Id This property is required. string
The pattern id.
Value This property is required. string
The effective value of the property. This is determined by considering the value set at the most effective level.
EffectiveLevel This property is required. string
The effective level of the property value.
Id This property is required. string
The pattern id.
Value This property is required. string
The effective value of the property. This is determined by considering the value set at the most effective level.
effectiveLevel This property is required. String
The effective level of the property value.
id This property is required. String
The pattern id.
value This property is required. String
The effective value of the property. This is determined by considering the value set at the most effective level.
effectiveLevel This property is required. string
The effective level of the property value.
id This property is required. string
The pattern id.
value This property is required. string
The effective value of the property. This is determined by considering the value set at the most effective level.
effective_level This property is required. str
The effective level of the property value.
id This property is required. str
The pattern id.
value This property is required. str
The effective value of the property. This is determined by considering the value set at the most effective level.
effectiveLevel This property is required. String
The effective level of the property value.
id This property is required. String
The pattern id.
value This property is required. String
The effective value of the property. This is determined by considering the value set at the most effective level.

GetNamespaceEffectivePropertiesFilter

Name This property is required. string
The property name used for filtering.
Values This property is required. List<string>
Regex bool
Name This property is required. string
The property name used for filtering.
Values This property is required. []string
Regex bool
name This property is required. String
The property name used for filtering.
values This property is required. List<String>
regex Boolean
name This property is required. string
The property name used for filtering.
values This property is required. string[]
regex boolean
name This property is required. str
The property name used for filtering.
values This property is required. Sequence[str]
regex bool
name This property is required. String
The property name used for filtering.
values This property is required. List<String>
regex Boolean

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi