1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. LogAnalytics
  5. getNamespaceFieldUsage
Oracle Cloud Infrastructure v3.0.0 published on Thursday, Jun 5, 2025 by Pulumi

oci.LogAnalytics.getNamespaceFieldUsage

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v3.0.0 published on Thursday, Jun 5, 2025 by Pulumi

    This data source provides details about a specific Namespace Field Usage resource in Oracle Cloud Infrastructure Log Analytics service.

    Gets usage information about the field with the specified name.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testNamespaceFieldUsage = oci.LogAnalytics.getNamespaceFieldUsage({
        fieldName: namespaceFieldUsageFieldName,
        namespace: namespaceFieldUsageNamespace,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_namespace_field_usage = oci.LogAnalytics.get_namespace_field_usage(field_name=namespace_field_usage_field_name,
        namespace=namespace_field_usage_namespace)
    
    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.GetNamespaceFieldUsage(ctx, &loganalytics.GetNamespaceFieldUsageArgs{
    			FieldName: namespaceFieldUsageFieldName,
    			Namespace: namespaceFieldUsageNamespace,
    		}, 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 testNamespaceFieldUsage = Oci.LogAnalytics.GetNamespaceFieldUsage.Invoke(new()
        {
            FieldName = namespaceFieldUsageFieldName,
            Namespace = namespaceFieldUsageNamespace,
        });
    
    });
    
    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.GetNamespaceFieldUsageArgs;
    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 testNamespaceFieldUsage = LogAnalyticsFunctions.getNamespaceFieldUsage(GetNamespaceFieldUsageArgs.builder()
                .fieldName(namespaceFieldUsageFieldName)
                .namespace(namespaceFieldUsageNamespace)
                .build());
    
        }
    }
    
    variables:
      testNamespaceFieldUsage:
        fn::invoke:
          function: oci:LogAnalytics:getNamespaceFieldUsage
          arguments:
            fieldName: ${namespaceFieldUsageFieldName}
            namespace: ${namespaceFieldUsageNamespace}
    

    Using getNamespaceFieldUsage

    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 getNamespaceFieldUsage(args: GetNamespaceFieldUsageArgs, opts?: InvokeOptions): Promise<GetNamespaceFieldUsageResult>
    function getNamespaceFieldUsageOutput(args: GetNamespaceFieldUsageOutputArgs, opts?: InvokeOptions): Output<GetNamespaceFieldUsageResult>
    def get_namespace_field_usage(field_name: Optional[str] = None,
                                  namespace: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetNamespaceFieldUsageResult
    def get_namespace_field_usage_output(field_name: Optional[pulumi.Input[str]] = None,
                                  namespace: Optional[pulumi.Input[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetNamespaceFieldUsageResult]
    func GetNamespaceFieldUsage(ctx *Context, args *GetNamespaceFieldUsageArgs, opts ...InvokeOption) (*GetNamespaceFieldUsageResult, error)
    func GetNamespaceFieldUsageOutput(ctx *Context, args *GetNamespaceFieldUsageOutputArgs, opts ...InvokeOption) GetNamespaceFieldUsageResultOutput

    > Note: This function is named GetNamespaceFieldUsage in the Go SDK.

    public static class GetNamespaceFieldUsage 
    {
        public static Task<GetNamespaceFieldUsageResult> InvokeAsync(GetNamespaceFieldUsageArgs args, InvokeOptions? opts = null)
        public static Output<GetNamespaceFieldUsageResult> Invoke(GetNamespaceFieldUsageInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetNamespaceFieldUsageResult> getNamespaceFieldUsage(GetNamespaceFieldUsageArgs args, InvokeOptions options)
    public static Output<GetNamespaceFieldUsageResult> getNamespaceFieldUsage(GetNamespaceFieldUsageArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:LogAnalytics/getNamespaceFieldUsage:getNamespaceFieldUsage
      arguments:
        # arguments dictionary

    The following arguments are supported:

    FieldName string
    The field name.
    Namespace string
    The Logging Analytics namespace used for the request.
    FieldName string
    The field name.
    Namespace string
    The Logging Analytics namespace used for the request.
    fieldName String
    The field name.
    namespace String
    The Logging Analytics namespace used for the request.
    fieldName string
    The field name.
    namespace string
    The Logging Analytics namespace used for the request.
    field_name str
    The field name.
    namespace str
    The Logging Analytics namespace used for the request.
    fieldName String
    The field name.
    namespace String
    The Logging Analytics namespace used for the request.

    getNamespaceFieldUsage Result

    The following output properties are available:

    DependentParsers List<GetNamespaceFieldUsageDependentParser>
    Parsers that depend on or use the field.
    DependentSources List<GetNamespaceFieldUsageDependentSource>
    Sources that depend on or use the field.
    FieldName string
    Id string
    The provider-assigned unique ID for this managed resource.
    Namespace string
    DependentParsers []GetNamespaceFieldUsageDependentParser
    Parsers that depend on or use the field.
    DependentSources []GetNamespaceFieldUsageDependentSource
    Sources that depend on or use the field.
    FieldName string
    Id string
    The provider-assigned unique ID for this managed resource.
    Namespace string
    dependentParsers List<GetNamespaceFieldUsageDependentParser>
    Parsers that depend on or use the field.
    dependentSources List<GetNamespaceFieldUsageDependentSource>
    Sources that depend on or use the field.
    fieldName String
    id String
    The provider-assigned unique ID for this managed resource.
    namespace String
    dependentParsers GetNamespaceFieldUsageDependentParser[]
    Parsers that depend on or use the field.
    dependentSources GetNamespaceFieldUsageDependentSource[]
    Sources that depend on or use the field.
    fieldName string
    id string
    The provider-assigned unique ID for this managed resource.
    namespace string
    dependent_parsers Sequence[GetNamespaceFieldUsageDependentParser]
    Parsers that depend on or use the field.
    dependent_sources Sequence[GetNamespaceFieldUsageDependentSource]
    Sources that depend on or use the field.
    field_name str
    id str
    The provider-assigned unique ID for this managed resource.
    namespace str
    dependentParsers List<Property Map>
    Parsers that depend on or use the field.
    dependentSources List<Property Map>
    Sources that depend on or use the field.
    fieldName String
    id String
    The provider-assigned unique ID for this managed resource.
    namespace String

    Supporting Types

    GetNamespaceFieldUsageDependentParser

    Dependencies List<GetNamespaceFieldUsageDependentParserDependency>
    The list of dependencies defined by the source.
    IsSystem bool
    The system flag. A value of false denotes a custom, or user defined object. A value of true denotes a built in object.
    ParserDisplayName string
    The parser display name.
    ParserId string
    The parser unique identifier.
    ParserName string
    The parser name.
    ParserType string
    The parser type
    Dependencies []GetNamespaceFieldUsageDependentParserDependency
    The list of dependencies defined by the source.
    IsSystem bool
    The system flag. A value of false denotes a custom, or user defined object. A value of true denotes a built in object.
    ParserDisplayName string
    The parser display name.
    ParserId string
    The parser unique identifier.
    ParserName string
    The parser name.
    ParserType string
    The parser type
    dependencies List<GetNamespaceFieldUsageDependentParserDependency>
    The list of dependencies defined by the source.
    isSystem Boolean
    The system flag. A value of false denotes a custom, or user defined object. A value of true denotes a built in object.
    parserDisplayName String
    The parser display name.
    parserId String
    The parser unique identifier.
    parserName String
    The parser name.
    parserType String
    The parser type
    dependencies GetNamespaceFieldUsageDependentParserDependency[]
    The list of dependencies defined by the source.
    isSystem boolean
    The system flag. A value of false denotes a custom, or user defined object. A value of true denotes a built in object.
    parserDisplayName string
    The parser display name.
    parserId string
    The parser unique identifier.
    parserName string
    The parser name.
    parserType string
    The parser type
    dependencies Sequence[GetNamespaceFieldUsageDependentParserDependency]
    The list of dependencies defined by the source.
    is_system bool
    The system flag. A value of false denotes a custom, or user defined object. A value of true denotes a built in object.
    parser_display_name str
    The parser display name.
    parser_id str
    The parser unique identifier.
    parser_name str
    The parser name.
    parser_type str
    The parser type
    dependencies List<Property Map>
    The list of dependencies defined by the source.
    isSystem Boolean
    The system flag. A value of false denotes a custom, or user defined object. A value of true denotes a built in object.
    parserDisplayName String
    The parser display name.
    parserId String
    The parser unique identifier.
    parserName String
    The parser name.
    parserType String
    The parser type

    GetNamespaceFieldUsageDependentParserDependency

    ReferenceDisplayName string
    The display name of the dependency object
    ReferenceId string
    The unique identifier of the reference, if available.
    ReferenceName string
    The name of the dependency object
    ReferenceType string
    The type of reference that defines the dependency.
    Type string
    The dependency type.
    ReferenceDisplayName string
    The display name of the dependency object
    ReferenceId string
    The unique identifier of the reference, if available.
    ReferenceName string
    The name of the dependency object
    ReferenceType string
    The type of reference that defines the dependency.
    Type string
    The dependency type.
    referenceDisplayName String
    The display name of the dependency object
    referenceId String
    The unique identifier of the reference, if available.
    referenceName String
    The name of the dependency object
    referenceType String
    The type of reference that defines the dependency.
    type String
    The dependency type.
    referenceDisplayName string
    The display name of the dependency object
    referenceId string
    The unique identifier of the reference, if available.
    referenceName string
    The name of the dependency object
    referenceType string
    The type of reference that defines the dependency.
    type string
    The dependency type.
    reference_display_name str
    The display name of the dependency object
    reference_id str
    The unique identifier of the reference, if available.
    reference_name str
    The name of the dependency object
    reference_type str
    The type of reference that defines the dependency.
    type str
    The dependency type.
    referenceDisplayName String
    The display name of the dependency object
    referenceId String
    The unique identifier of the reference, if available.
    referenceName String
    The name of the dependency object
    referenceType String
    The type of reference that defines the dependency.
    type String
    The dependency type.

    GetNamespaceFieldUsageDependentSource

    Dependencies List<GetNamespaceFieldUsageDependentSourceDependency>
    The list of dependencies defined by the source.
    EntityTypes List<GetNamespaceFieldUsageDependentSourceEntityType>
    The entity types.
    IsAutoAssociationEnabled bool
    A flag indicating whether or not the source is marked for auto association.
    IsSystem bool
    The system flag. A value of false denotes a custom, or user defined object. A value of true denotes a built in object.
    SourceDisplayName string
    The source display name.
    SourceId string
    The source unique identifier.
    SourceName string
    The source name.
    SourceType string
    The source type.
    Dependencies []GetNamespaceFieldUsageDependentSourceDependency
    The list of dependencies defined by the source.
    EntityTypes []GetNamespaceFieldUsageDependentSourceEntityType
    The entity types.
    IsAutoAssociationEnabled bool
    A flag indicating whether or not the source is marked for auto association.
    IsSystem bool
    The system flag. A value of false denotes a custom, or user defined object. A value of true denotes a built in object.
    SourceDisplayName string
    The source display name.
    SourceId string
    The source unique identifier.
    SourceName string
    The source name.
    SourceType string
    The source type.
    dependencies List<GetNamespaceFieldUsageDependentSourceDependency>
    The list of dependencies defined by the source.
    entityTypes List<GetNamespaceFieldUsageDependentSourceEntityType>
    The entity types.
    isAutoAssociationEnabled Boolean
    A flag indicating whether or not the source is marked for auto association.
    isSystem Boolean
    The system flag. A value of false denotes a custom, or user defined object. A value of true denotes a built in object.
    sourceDisplayName String
    The source display name.
    sourceId String
    The source unique identifier.
    sourceName String
    The source name.
    sourceType String
    The source type.
    dependencies GetNamespaceFieldUsageDependentSourceDependency[]
    The list of dependencies defined by the source.
    entityTypes GetNamespaceFieldUsageDependentSourceEntityType[]
    The entity types.
    isAutoAssociationEnabled boolean
    A flag indicating whether or not the source is marked for auto association.
    isSystem boolean
    The system flag. A value of false denotes a custom, or user defined object. A value of true denotes a built in object.
    sourceDisplayName string
    The source display name.
    sourceId string
    The source unique identifier.
    sourceName string
    The source name.
    sourceType string
    The source type.
    dependencies Sequence[GetNamespaceFieldUsageDependentSourceDependency]
    The list of dependencies defined by the source.
    entity_types Sequence[GetNamespaceFieldUsageDependentSourceEntityType]
    The entity types.
    is_auto_association_enabled bool
    A flag indicating whether or not the source is marked for auto association.
    is_system bool
    The system flag. A value of false denotes a custom, or user defined object. A value of true denotes a built in object.
    source_display_name str
    The source display name.
    source_id str
    The source unique identifier.
    source_name str
    The source name.
    source_type str
    The source type.
    dependencies List<Property Map>
    The list of dependencies defined by the source.
    entityTypes List<Property Map>
    The entity types.
    isAutoAssociationEnabled Boolean
    A flag indicating whether or not the source is marked for auto association.
    isSystem Boolean
    The system flag. A value of false denotes a custom, or user defined object. A value of true denotes a built in object.
    sourceDisplayName String
    The source display name.
    sourceId String
    The source unique identifier.
    sourceName String
    The source name.
    sourceType String
    The source type.

    GetNamespaceFieldUsageDependentSourceDependency

    ReferenceDisplayName string
    The display name of the dependency object
    ReferenceId string
    The unique identifier of the reference, if available.
    ReferenceName string
    The name of the dependency object
    ReferenceType string
    The type of reference that defines the dependency.
    Type string
    The dependency type.
    ReferenceDisplayName string
    The display name of the dependency object
    ReferenceId string
    The unique identifier of the reference, if available.
    ReferenceName string
    The name of the dependency object
    ReferenceType string
    The type of reference that defines the dependency.
    Type string
    The dependency type.
    referenceDisplayName String
    The display name of the dependency object
    referenceId String
    The unique identifier of the reference, if available.
    referenceName String
    The name of the dependency object
    referenceType String
    The type of reference that defines the dependency.
    type String
    The dependency type.
    referenceDisplayName string
    The display name of the dependency object
    referenceId string
    The unique identifier of the reference, if available.
    referenceName string
    The name of the dependency object
    referenceType string
    The type of reference that defines the dependency.
    type string
    The dependency type.
    reference_display_name str
    The display name of the dependency object
    reference_id str
    The unique identifier of the reference, if available.
    reference_name str
    The name of the dependency object
    reference_type str
    The type of reference that defines the dependency.
    type str
    The dependency type.
    referenceDisplayName String
    The display name of the dependency object
    referenceId String
    The unique identifier of the reference, if available.
    referenceName String
    The name of the dependency object
    referenceType String
    The type of reference that defines the dependency.
    type String
    The dependency type.

    GetNamespaceFieldUsageDependentSourceEntityType

    EntityType string
    The entity type.
    EntityTypeCategory string
    The type category.
    EntityTypeDisplayName string
    The entity type display name.
    SourceId string
    The source unique identifier.
    EntityType string
    The entity type.
    EntityTypeCategory string
    The type category.
    EntityTypeDisplayName string
    The entity type display name.
    SourceId string
    The source unique identifier.
    entityType String
    The entity type.
    entityTypeCategory String
    The type category.
    entityTypeDisplayName String
    The entity type display name.
    sourceId String
    The source unique identifier.
    entityType string
    The entity type.
    entityTypeCategory string
    The type category.
    entityTypeDisplayName string
    The entity type display name.
    sourceId string
    The source unique identifier.
    entity_type str
    The entity type.
    entity_type_category str
    The type category.
    entity_type_display_name str
    The entity type display name.
    source_id str
    The source unique identifier.
    entityType String
    The entity type.
    entityTypeCategory String
    The type category.
    entityTypeDisplayName String
    The entity type display name.
    sourceId String
    The source unique identifier.

    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.0.0 published on Thursday, Jun 5, 2025 by Pulumi