1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. LogAnalytics
  5. getNamespaceEffectiveProperties
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.LogAnalytics.getNamespaceEffectiveProperties

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 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,
    });
    
    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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:LogAnalytics/getNamespaceEffectiveProperties:getNamespaceEffectiveProperties
      arguments:
        # arguments dictionary

    The 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<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 string
    The Logging Analytics namespace used for the request.
    AgentId string
    The agent ocid.
    EntityId string
    The entity ocid.
    Filters []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 String
    The Logging Analytics namespace used for the request.
    agentId String
    The agent ocid.
    entityId String
    The entity ocid.
    filters 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 string
    The Logging Analytics namespace used for the request.
    agentId string
    The agent ocid.
    entityId string
    The entity ocid.
    filters 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 str
    The Logging Analytics namespace used for the request.
    agent_id str
    The agent ocid.
    entity_id str
    The entity ocid.
    filters 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 String
    The Logging Analytics namespace used for the request.
    agentId String
    The agent ocid.
    entityId String
    The entity ocid.
    filters 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 List<GetNamespaceEffectivePropertiesEffectivePropertyCollectionItem>
    A list of properties and their effective values.
    Items []GetNamespaceEffectivePropertiesEffectivePropertyCollectionItem
    A list of properties and their effective values.
    items List<GetNamespaceEffectivePropertiesEffectivePropertyCollectionItem>
    A list of properties and their effective values.
    items GetNamespaceEffectivePropertiesEffectivePropertyCollectionItem[]
    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<GetNamespaceEffectivePropertiesEffectivePropertyCollectionItemPattern>
    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 []GetNamespaceEffectivePropertiesEffectivePropertyCollectionItemPattern
    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<GetNamespaceEffectivePropertiesEffectivePropertyCollectionItemPattern>
    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 GetNamespaceEffectivePropertiesEffectivePropertyCollectionItemPattern[]
    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.GetNamespaceEffectivePropertiesEffectivePropertyCollectionItemPattern]
    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

    Name string
    The property name used for filtering.
    Values List<string>
    Regex bool
    Name string
    The property name used for filtering.
    Values []string
    Regex bool
    name String
    The property name used for filtering.
    values List<String>
    regex Boolean
    name string
    The property name used for filtering.
    values string[]
    regex boolean
    name str
    The property name used for filtering.
    values Sequence[str]
    regex bool
    name String
    The property name used for filtering.
    values 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.
    oci logo
    Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi