Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.LogAnalytics.getNamespaceIngestTimeRules
Explore with Pulumi AI
This data source provides the list of Namespace Ingest Time Rules in Oracle Cloud Infrastructure Log Analytics service.
Returns a list of ingest time rules in a compartment. You may limit the number of rules, provide sorting options, and filter the results.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testNamespaceIngestTimeRules = oci.LogAnalytics.getNamespaceIngestTimeRules({
    compartmentId: compartmentId,
    namespace: namespaceIngestTimeRuleNamespace,
    conditionKind: namespaceIngestTimeRuleConditionKind,
    displayName: namespaceIngestTimeRuleDisplayName,
    fieldName: namespaceIngestTimeRuleFieldName,
    fieldValue: namespaceIngestTimeRuleFieldValue,
    state: namespaceIngestTimeRuleState,
});
import pulumi
import pulumi_oci as oci
test_namespace_ingest_time_rules = oci.LogAnalytics.get_namespace_ingest_time_rules(compartment_id=compartment_id,
    namespace=namespace_ingest_time_rule_namespace,
    condition_kind=namespace_ingest_time_rule_condition_kind,
    display_name=namespace_ingest_time_rule_display_name,
    field_name=namespace_ingest_time_rule_field_name,
    field_value=namespace_ingest_time_rule_field_value,
    state=namespace_ingest_time_rule_state)
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.GetNamespaceIngestTimeRules(ctx, &loganalytics.GetNamespaceIngestTimeRulesArgs{
			CompartmentId: compartmentId,
			Namespace:     namespaceIngestTimeRuleNamespace,
			ConditionKind: pulumi.StringRef(namespaceIngestTimeRuleConditionKind),
			DisplayName:   pulumi.StringRef(namespaceIngestTimeRuleDisplayName),
			FieldName:     pulumi.StringRef(namespaceIngestTimeRuleFieldName),
			FieldValue:    pulumi.StringRef(namespaceIngestTimeRuleFieldValue),
			State:         pulumi.StringRef(namespaceIngestTimeRuleState),
		}, 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 testNamespaceIngestTimeRules = Oci.LogAnalytics.GetNamespaceIngestTimeRules.Invoke(new()
    {
        CompartmentId = compartmentId,
        Namespace = namespaceIngestTimeRuleNamespace,
        ConditionKind = namespaceIngestTimeRuleConditionKind,
        DisplayName = namespaceIngestTimeRuleDisplayName,
        FieldName = namespaceIngestTimeRuleFieldName,
        FieldValue = namespaceIngestTimeRuleFieldValue,
        State = namespaceIngestTimeRuleState,
    });
});
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.GetNamespaceIngestTimeRulesArgs;
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 testNamespaceIngestTimeRules = LogAnalyticsFunctions.getNamespaceIngestTimeRules(GetNamespaceIngestTimeRulesArgs.builder()
            .compartmentId(compartmentId)
            .namespace(namespaceIngestTimeRuleNamespace)
            .conditionKind(namespaceIngestTimeRuleConditionKind)
            .displayName(namespaceIngestTimeRuleDisplayName)
            .fieldName(namespaceIngestTimeRuleFieldName)
            .fieldValue(namespaceIngestTimeRuleFieldValue)
            .state(namespaceIngestTimeRuleState)
            .build());
    }
}
variables:
  testNamespaceIngestTimeRules:
    fn::invoke:
      function: oci:LogAnalytics:getNamespaceIngestTimeRules
      arguments:
        compartmentId: ${compartmentId}
        namespace: ${namespaceIngestTimeRuleNamespace}
        conditionKind: ${namespaceIngestTimeRuleConditionKind}
        displayName: ${namespaceIngestTimeRuleDisplayName}
        fieldName: ${namespaceIngestTimeRuleFieldName}
        fieldValue: ${namespaceIngestTimeRuleFieldValue}
        state: ${namespaceIngestTimeRuleState}
Using getNamespaceIngestTimeRules
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 getNamespaceIngestTimeRules(args: GetNamespaceIngestTimeRulesArgs, opts?: InvokeOptions): Promise<GetNamespaceIngestTimeRulesResult>
function getNamespaceIngestTimeRulesOutput(args: GetNamespaceIngestTimeRulesOutputArgs, opts?: InvokeOptions): Output<GetNamespaceIngestTimeRulesResult>def get_namespace_ingest_time_rules(compartment_id: Optional[str] = None,
                                    condition_kind: Optional[str] = None,
                                    display_name: Optional[str] = None,
                                    field_name: Optional[str] = None,
                                    field_value: Optional[str] = None,
                                    filters: Optional[Sequence[GetNamespaceIngestTimeRulesFilter]] = None,
                                    namespace: Optional[str] = None,
                                    state: Optional[str] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetNamespaceIngestTimeRulesResult
def get_namespace_ingest_time_rules_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                    condition_kind: Optional[pulumi.Input[str]] = None,
                                    display_name: Optional[pulumi.Input[str]] = None,
                                    field_name: Optional[pulumi.Input[str]] = None,
                                    field_value: Optional[pulumi.Input[str]] = None,
                                    filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetNamespaceIngestTimeRulesFilterArgs]]]] = None,
                                    namespace: Optional[pulumi.Input[str]] = None,
                                    state: Optional[pulumi.Input[str]] = None,
                                    opts: Optional[InvokeOptions] = None) -> Output[GetNamespaceIngestTimeRulesResult]func GetNamespaceIngestTimeRules(ctx *Context, args *GetNamespaceIngestTimeRulesArgs, opts ...InvokeOption) (*GetNamespaceIngestTimeRulesResult, error)
func GetNamespaceIngestTimeRulesOutput(ctx *Context, args *GetNamespaceIngestTimeRulesOutputArgs, opts ...InvokeOption) GetNamespaceIngestTimeRulesResultOutput> Note: This function is named GetNamespaceIngestTimeRules in the Go SDK.
public static class GetNamespaceIngestTimeRules 
{
    public static Task<GetNamespaceIngestTimeRulesResult> InvokeAsync(GetNamespaceIngestTimeRulesArgs args, InvokeOptions? opts = null)
    public static Output<GetNamespaceIngestTimeRulesResult> Invoke(GetNamespaceIngestTimeRulesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetNamespaceIngestTimeRulesResult> getNamespaceIngestTimeRules(GetNamespaceIngestTimeRulesArgs args, InvokeOptions options)
public static Output<GetNamespaceIngestTimeRulesResult> getNamespaceIngestTimeRules(GetNamespaceIngestTimeRulesArgs args, InvokeOptions options)
fn::invoke:
  function: oci:LogAnalytics/getNamespaceIngestTimeRules:getNamespaceIngestTimeRules
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CompartmentId string
- The ID of the compartment in which to list resources.
- Namespace string
- The Logging Analytics namespace used for the request.
- ConditionKind string
- The ingest time rule condition kind used for filtering. Only rules with conditions of the specified kind will be returned.
- DisplayName string
- A filter to return rules whose displayName matches in whole or in part the specified value. The match is case-insensitive.
- FieldName string
- The field name used for filtering. Only rules using the specified field name will be returned.
- FieldValue string
- The field value used for filtering. Only rules using the specified field value will be returned.
- Filters
List<GetNamespace Ingest Time Rules Filter> 
- State string
- The rule lifecycle state used for filtering. Currently supported values are ACTIVE and DELETED.
- CompartmentId string
- The ID of the compartment in which to list resources.
- Namespace string
- The Logging Analytics namespace used for the request.
- ConditionKind string
- The ingest time rule condition kind used for filtering. Only rules with conditions of the specified kind will be returned.
- DisplayName string
- A filter to return rules whose displayName matches in whole or in part the specified value. The match is case-insensitive.
- FieldName string
- The field name used for filtering. Only rules using the specified field name will be returned.
- FieldValue string
- The field value used for filtering. Only rules using the specified field value will be returned.
- Filters
[]GetNamespace Ingest Time Rules Filter 
- State string
- The rule lifecycle state used for filtering. Currently supported values are ACTIVE and DELETED.
- compartmentId String
- The ID of the compartment in which to list resources.
- namespace String
- The Logging Analytics namespace used for the request.
- conditionKind String
- The ingest time rule condition kind used for filtering. Only rules with conditions of the specified kind will be returned.
- displayName String
- A filter to return rules whose displayName matches in whole or in part the specified value. The match is case-insensitive.
- fieldName String
- The field name used for filtering. Only rules using the specified field name will be returned.
- fieldValue String
- The field value used for filtering. Only rules using the specified field value will be returned.
- filters
List<GetNamespace Ingest Time Rules Filter> 
- state String
- The rule lifecycle state used for filtering. Currently supported values are ACTIVE and DELETED.
- compartmentId string
- The ID of the compartment in which to list resources.
- namespace string
- The Logging Analytics namespace used for the request.
- conditionKind string
- The ingest time rule condition kind used for filtering. Only rules with conditions of the specified kind will be returned.
- displayName string
- A filter to return rules whose displayName matches in whole or in part the specified value. The match is case-insensitive.
- fieldName string
- The field name used for filtering. Only rules using the specified field name will be returned.
- fieldValue string
- The field value used for filtering. Only rules using the specified field value will be returned.
- filters
GetNamespace Ingest Time Rules Filter[] 
- state string
- The rule lifecycle state used for filtering. Currently supported values are ACTIVE and DELETED.
- compartment_id str
- The ID of the compartment in which to list resources.
- namespace str
- The Logging Analytics namespace used for the request.
- condition_kind str
- The ingest time rule condition kind used for filtering. Only rules with conditions of the specified kind will be returned.
- display_name str
- A filter to return rules whose displayName matches in whole or in part the specified value. The match is case-insensitive.
- field_name str
- The field name used for filtering. Only rules using the specified field name will be returned.
- field_value str
- The field value used for filtering. Only rules using the specified field value will be returned.
- filters
Sequence[GetNamespace Ingest Time Rules Filter] 
- state str
- The rule lifecycle state used for filtering. Currently supported values are ACTIVE and DELETED.
- compartmentId String
- The ID of the compartment in which to list resources.
- namespace String
- The Logging Analytics namespace used for the request.
- conditionKind String
- The ingest time rule condition kind used for filtering. Only rules with conditions of the specified kind will be returned.
- displayName String
- A filter to return rules whose displayName matches in whole or in part the specified value. The match is case-insensitive.
- fieldName String
- The field name used for filtering. Only rules using the specified field name will be returned.
- fieldValue String
- The field value used for filtering. Only rules using the specified field value will be returned.
- filters List<Property Map>
- state String
- The rule lifecycle state used for filtering. Currently supported values are ACTIVE and DELETED.
getNamespaceIngestTimeRules Result
The following output properties are available:
- CompartmentId string
- Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
- Id string
- The provider-assigned unique ID for this managed resource.
- IngestTime List<GetRule Summary Collections Namespace Ingest Time Rules Ingest Time Rule Summary Collection> 
- The list of ingest_time_rule_summary_collection.
- Namespace string
- The namespace of the extracted metric. A valid value starts with an alphabetical character and includes only alphanumeric characters and underscores (_).
- ConditionKind string
- DisplayName string
- The ingest time rule display name.
- FieldName string
- The field name to be evaluated.
- FieldValue string
- The field value to be evaluated.
- Filters
List<GetNamespace Ingest Time Rules Filter> 
- State string
- The current state of the ingest time rule.
- CompartmentId string
- Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
- Id string
- The provider-assigned unique ID for this managed resource.
- IngestTime []GetRule Summary Collections Namespace Ingest Time Rules Ingest Time Rule Summary Collection 
- The list of ingest_time_rule_summary_collection.
- Namespace string
- The namespace of the extracted metric. A valid value starts with an alphabetical character and includes only alphanumeric characters and underscores (_).
- ConditionKind string
- DisplayName string
- The ingest time rule display name.
- FieldName string
- The field name to be evaluated.
- FieldValue string
- The field value to be evaluated.
- Filters
[]GetNamespace Ingest Time Rules Filter 
- State string
- The current state of the ingest time rule.
- compartmentId String
- Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
- id String
- The provider-assigned unique ID for this managed resource.
- ingestTime List<GetRule Summary Collections Namespace Ingest Time Rules Ingest Time Rule Summary Collection> 
- The list of ingest_time_rule_summary_collection.
- namespace String
- The namespace of the extracted metric. A valid value starts with an alphabetical character and includes only alphanumeric characters and underscores (_).
- conditionKind String
- displayName String
- The ingest time rule display name.
- fieldName String
- The field name to be evaluated.
- fieldValue String
- The field value to be evaluated.
- filters
List<GetNamespace Ingest Time Rules Filter> 
- state String
- The current state of the ingest time rule.
- compartmentId string
- Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
- id string
- The provider-assigned unique ID for this managed resource.
- ingestTime GetRule Summary Collections Namespace Ingest Time Rules Ingest Time Rule Summary Collection[] 
- The list of ingest_time_rule_summary_collection.
- namespace string
- The namespace of the extracted metric. A valid value starts with an alphabetical character and includes only alphanumeric characters and underscores (_).
- conditionKind string
- displayName string
- The ingest time rule display name.
- fieldName string
- The field name to be evaluated.
- fieldValue string
- The field value to be evaluated.
- filters
GetNamespace Ingest Time Rules Filter[] 
- state string
- The current state of the ingest time rule.
- compartment_id str
- Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
- id str
- The provider-assigned unique ID for this managed resource.
- ingest_time_ Sequence[Getrule_ summary_ collections Namespace Ingest Time Rules Ingest Time Rule Summary Collection] 
- The list of ingest_time_rule_summary_collection.
- namespace str
- The namespace of the extracted metric. A valid value starts with an alphabetical character and includes only alphanumeric characters and underscores (_).
- condition_kind str
- display_name str
- The ingest time rule display name.
- field_name str
- The field name to be evaluated.
- field_value str
- The field value to be evaluated.
- filters
Sequence[GetNamespace Ingest Time Rules Filter] 
- state str
- The current state of the ingest time rule.
- compartmentId String
- Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
- id String
- The provider-assigned unique ID for this managed resource.
- ingestTime List<Property Map>Rule Summary Collections 
- The list of ingest_time_rule_summary_collection.
- namespace String
- The namespace of the extracted metric. A valid value starts with an alphabetical character and includes only alphanumeric characters and underscores (_).
- conditionKind String
- displayName String
- The ingest time rule display name.
- fieldName String
- The field name to be evaluated.
- fieldValue String
- The field value to be evaluated.
- filters List<Property Map>
- state String
- The current state of the ingest time rule.
Supporting Types
GetNamespaceIngestTimeRulesFilter     
GetNamespaceIngestTimeRulesIngestTimeRuleSummaryCollection         
GetNamespaceIngestTimeRulesIngestTimeRuleSummaryCollectionItem          
- CompartmentId string
- The ID of the compartment in which to list resources.
- ConditionKind string
- The ingest time rule condition kind used for filtering. Only rules with conditions of the specified kind will be returned.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- Description string
- Description for this resource.
- DisplayName string
- A filter to return rules whose displayName matches in whole or in part the specified value. The match is case-insensitive.
- FieldName string
- The field name used for filtering. Only rules using the specified field name will be returned.
- FieldValue string
- The field value used for filtering. Only rules using the specified field value will be returned.
- Dictionary<string, string>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- Id string
- The log analytics entity OCID. This ID is a reference used by log analytics features and it represents a resource that is provisioned and managed by the customer on their premises or on the cloud.
- IsEnabled bool
- A flag indicating whether or not the ingest time rule is enabled.
- State string
- The rule lifecycle state used for filtering. Currently supported values are ACTIVE and DELETED.
- TimeCreated string
- The date and time the resource was created, in the format defined by RFC3339.
- TimeUpdated string
- The date and time the resource was last updated, in the format defined by RFC3339.
- CompartmentId string
- The ID of the compartment in which to list resources.
- ConditionKind string
- The ingest time rule condition kind used for filtering. Only rules with conditions of the specified kind will be returned.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- Description string
- Description for this resource.
- DisplayName string
- A filter to return rules whose displayName matches in whole or in part the specified value. The match is case-insensitive.
- FieldName string
- The field name used for filtering. Only rules using the specified field name will be returned.
- FieldValue string
- The field value used for filtering. Only rules using the specified field value will be returned.
- map[string]string
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- Id string
- The log analytics entity OCID. This ID is a reference used by log analytics features and it represents a resource that is provisioned and managed by the customer on their premises or on the cloud.
- IsEnabled bool
- A flag indicating whether or not the ingest time rule is enabled.
- State string
- The rule lifecycle state used for filtering. Currently supported values are ACTIVE and DELETED.
- TimeCreated string
- The date and time the resource was created, in the format defined by RFC3339.
- TimeUpdated string
- The date and time the resource was last updated, in the format defined by RFC3339.
- compartmentId String
- The ID of the compartment in which to list resources.
- conditionKind String
- The ingest time rule condition kind used for filtering. Only rules with conditions of the specified kind will be returned.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- description String
- Description for this resource.
- displayName String
- A filter to return rules whose displayName matches in whole or in part the specified value. The match is case-insensitive.
- fieldName String
- The field name used for filtering. Only rules using the specified field name will be returned.
- fieldValue String
- The field value used for filtering. Only rules using the specified field value will be returned.
- Map<String,String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- id String
- The log analytics entity OCID. This ID is a reference used by log analytics features and it represents a resource that is provisioned and managed by the customer on their premises or on the cloud.
- isEnabled Boolean
- A flag indicating whether or not the ingest time rule is enabled.
- state String
- The rule lifecycle state used for filtering. Currently supported values are ACTIVE and DELETED.
- timeCreated String
- The date and time the resource was created, in the format defined by RFC3339.
- timeUpdated String
- The date and time the resource was last updated, in the format defined by RFC3339.
- compartmentId string
- The ID of the compartment in which to list resources.
- conditionKind string
- The ingest time rule condition kind used for filtering. Only rules with conditions of the specified kind will be returned.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- description string
- Description for this resource.
- displayName string
- A filter to return rules whose displayName matches in whole or in part the specified value. The match is case-insensitive.
- fieldName string
- The field name used for filtering. Only rules using the specified field name will be returned.
- fieldValue string
- The field value used for filtering. Only rules using the specified field value will be returned.
- {[key: string]: string}
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- id string
- The log analytics entity OCID. This ID is a reference used by log analytics features and it represents a resource that is provisioned and managed by the customer on their premises or on the cloud.
- isEnabled boolean
- A flag indicating whether or not the ingest time rule is enabled.
- state string
- The rule lifecycle state used for filtering. Currently supported values are ACTIVE and DELETED.
- timeCreated string
- The date and time the resource was created, in the format defined by RFC3339.
- timeUpdated string
- The date and time the resource was last updated, in the format defined by RFC3339.
- compartment_id str
- The ID of the compartment in which to list resources.
- condition_kind str
- The ingest time rule condition kind used for filtering. Only rules with conditions of the specified kind will be returned.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- description str
- Description for this resource.
- display_name str
- A filter to return rules whose displayName matches in whole or in part the specified value. The match is case-insensitive.
- field_name str
- The field name used for filtering. Only rules using the specified field name will be returned.
- field_value str
- The field value used for filtering. Only rules using the specified field value will be returned.
- Mapping[str, str]
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- id str
- The log analytics entity OCID. This ID is a reference used by log analytics features and it represents a resource that is provisioned and managed by the customer on their premises or on the cloud.
- is_enabled bool
- A flag indicating whether or not the ingest time rule is enabled.
- state str
- The rule lifecycle state used for filtering. Currently supported values are ACTIVE and DELETED.
- time_created str
- The date and time the resource was created, in the format defined by RFC3339.
- time_updated str
- The date and time the resource was last updated, in the format defined by RFC3339.
- compartmentId String
- The ID of the compartment in which to list resources.
- conditionKind String
- The ingest time rule condition kind used for filtering. Only rules with conditions of the specified kind will be returned.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- description String
- Description for this resource.
- displayName String
- A filter to return rules whose displayName matches in whole or in part the specified value. The match is case-insensitive.
- fieldName String
- The field name used for filtering. Only rules using the specified field name will be returned.
- fieldValue String
- The field value used for filtering. Only rules using the specified field value will be returned.
- Map<String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- id String
- The log analytics entity OCID. This ID is a reference used by log analytics features and it represents a resource that is provisioned and managed by the customer on their premises or on the cloud.
- isEnabled Boolean
- A flag indicating whether or not the ingest time rule is enabled.
- state String
- The rule lifecycle state used for filtering. Currently supported values are ACTIVE and DELETED.
- timeCreated String
- The date and time the resource was created, in the format defined by RFC3339.
- timeUpdated String
- The date and time the resource was last updated, in the format defined by RFC3339.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.