Oracle Cloud Infrastructure v3.9.0 published on Wednesday, Sep 24, 2025 by Pulumi
oci.LogAnalytics.getNamespaceFieldUsage
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 dictionaryThe following arguments are supported:
- field_name str
- The field name.
- namespace str
- The Logging Analytics namespace used for the request.
getNamespaceFieldUsage Result
The following output properties are available:
- DependentParsers List<GetNamespace Field Usage Dependent Parser> 
- Parsers that depend on or use the field.
- DependentSources List<GetNamespace Field Usage Dependent Source> 
- Sources that depend on or use the field.
- FieldName string
- Id string
- The provider-assigned unique ID for this managed resource.
- Namespace string
- DependentParsers []GetNamespace Field Usage Dependent Parser 
- Parsers that depend on or use the field.
- DependentSources []GetNamespace Field Usage Dependent Source 
- 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<GetNamespace Field Usage Dependent Parser> 
- Parsers that depend on or use the field.
- dependentSources List<GetNamespace Field Usage Dependent Source> 
- Sources that depend on or use the field.
- fieldName String
- id String
- The provider-assigned unique ID for this managed resource.
- namespace String
- dependentParsers GetNamespace Field Usage Dependent Parser[] 
- Parsers that depend on or use the field.
- dependentSources GetNamespace Field Usage Dependent Source[] 
- 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[GetNamespace Field Usage Dependent Parser] 
- Parsers that depend on or use the field.
- dependent_sources Sequence[GetNamespace Field Usage Dependent Source] 
- 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<GetNamespace Field Usage Dependent Parser Dependency> 
- 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.
- ParserDisplay stringName 
- The parser display name.
- ParserId string
- The parser unique identifier.
- ParserName string
- The parser name.
- ParserType string
- The parser type
- Dependencies
[]GetNamespace Field Usage Dependent Parser Dependency 
- 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.
- ParserDisplay stringName 
- The parser display name.
- ParserId string
- The parser unique identifier.
- ParserName string
- The parser name.
- ParserType string
- The parser type
- dependencies
List<GetNamespace Field Usage Dependent Parser Dependency> 
- 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.
- parserDisplay StringName 
- The parser display name.
- parserId String
- The parser unique identifier.
- parserName String
- The parser name.
- parserType String
- The parser type
- dependencies
GetNamespace Field Usage Dependent Parser Dependency[] 
- 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.
- parserDisplay stringName 
- The parser display name.
- parserId string
- The parser unique identifier.
- parserName string
- The parser name.
- parserType string
- The parser type
- dependencies
Sequence[GetNamespace Field Usage Dependent Parser Dependency] 
- 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_ strname 
- 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.
- parserDisplay StringName 
- The parser display name.
- parserId String
- The parser unique identifier.
- parserName String
- The parser name.
- parserType String
- The parser type
GetNamespaceFieldUsageDependentParserDependency      
- ReferenceDisplay stringName 
- 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.
- ReferenceDisplay stringName 
- 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.
- referenceDisplay StringName 
- 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.
- referenceDisplay stringName 
- 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_ strname 
- 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.
- referenceDisplay StringName 
- 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<GetNamespace Field Usage Dependent Source Dependency> 
- The list of dependencies defined by the source.
- EntityTypes List<GetNamespace Field Usage Dependent Source Entity Type> 
- The entity types.
- IsAuto boolAssociation Enabled 
- 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.
- SourceDisplay stringName 
- The source display name.
- SourceId string
- The source unique identifier.
- SourceName string
- The source name.
- SourceType string
- The source type.
- Dependencies
[]GetNamespace Field Usage Dependent Source Dependency 
- The list of dependencies defined by the source.
- EntityTypes []GetNamespace Field Usage Dependent Source Entity Type 
- The entity types.
- IsAuto boolAssociation Enabled 
- 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.
- SourceDisplay stringName 
- The source display name.
- SourceId string
- The source unique identifier.
- SourceName string
- The source name.
- SourceType string
- The source type.
- dependencies
List<GetNamespace Field Usage Dependent Source Dependency> 
- The list of dependencies defined by the source.
- entityTypes List<GetNamespace Field Usage Dependent Source Entity Type> 
- The entity types.
- isAuto BooleanAssociation Enabled 
- 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.
- sourceDisplay StringName 
- The source display name.
- sourceId String
- The source unique identifier.
- sourceName String
- The source name.
- sourceType String
- The source type.
- dependencies
GetNamespace Field Usage Dependent Source Dependency[] 
- The list of dependencies defined by the source.
- entityTypes GetNamespace Field Usage Dependent Source Entity Type[] 
- The entity types.
- isAuto booleanAssociation Enabled 
- 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.
- sourceDisplay stringName 
- The source display name.
- sourceId string
- The source unique identifier.
- sourceName string
- The source name.
- sourceType string
- The source type.
- dependencies
Sequence[GetNamespace Field Usage Dependent Source Dependency] 
- The list of dependencies defined by the source.
- entity_types Sequence[GetNamespace Field Usage Dependent Source Entity Type] 
- The entity types.
- is_auto_ boolassociation_ enabled 
- 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_ strname 
- 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.
- isAuto BooleanAssociation Enabled 
- 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.
- sourceDisplay StringName 
- The source display name.
- sourceId String
- The source unique identifier.
- sourceName String
- The source name.
- sourceType String
- The source type.
GetNamespaceFieldUsageDependentSourceDependency      
- ReferenceDisplay stringName 
- 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.
- ReferenceDisplay stringName 
- 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.
- referenceDisplay StringName 
- 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.
- referenceDisplay stringName 
- 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_ strname 
- 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.
- referenceDisplay StringName 
- 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.
- EntityType stringCategory 
- The type category.
- EntityType stringDisplay Name 
- The entity type display name.
- SourceId string
- The source unique identifier.
- EntityType string
- The entity type.
- EntityType stringCategory 
- The type category.
- EntityType stringDisplay Name 
- The entity type display name.
- SourceId string
- The source unique identifier.
- entityType String
- The entity type.
- entityType StringCategory 
- The type category.
- entityType StringDisplay Name 
- The entity type display name.
- sourceId String
- The source unique identifier.
- entityType string
- The entity type.
- entityType stringCategory 
- The type category.
- entityType stringDisplay Name 
- The entity type display name.
- sourceId string
- The source unique identifier.
- entity_type str
- The entity type.
- entity_type_ strcategory 
- The type category.
- entity_type_ strdisplay_ name 
- The entity type display name.
- source_id str
- The source unique identifier.
- entityType String
- The entity type.
- entityType StringCategory 
- The type category.
- entityType StringDisplay Name 
- 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 ociTerraform Provider.
