oci.LogAnalytics.getNamespaceIngestTimeRules
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
using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testNamespaceIngestTimeRules = Oci.LogAnalytics.GetNamespaceIngestTimeRules.Invoke(new()
{
CompartmentId = @var.Compartment_id,
Namespace = @var.Namespace_ingest_time_rule_namespace,
ConditionKind = @var.Namespace_ingest_time_rule_condition_kind,
DisplayName = @var.Namespace_ingest_time_rule_display_name,
FieldName = @var.Namespace_ingest_time_rule_field_name,
FieldValue = @var.Namespace_ingest_time_rule_field_value,
State = @var.Namespace_ingest_time_rule_state,
});
});
package main
import (
"github.com/pulumi/pulumi-oci/sdk/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: _var.Compartment_id,
Namespace: _var.Namespace_ingest_time_rule_namespace,
ConditionKind: pulumi.StringRef(_var.Namespace_ingest_time_rule_condition_kind),
DisplayName: pulumi.StringRef(_var.Namespace_ingest_time_rule_display_name),
FieldName: pulumi.StringRef(_var.Namespace_ingest_time_rule_field_name),
FieldValue: pulumi.StringRef(_var.Namespace_ingest_time_rule_field_value),
State: pulumi.StringRef(_var.Namespace_ingest_time_rule_state),
}, nil)
if err != nil {
return err
}
return nil
})
}
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(var_.compartment_id())
.namespace(var_.namespace_ingest_time_rule_namespace())
.conditionKind(var_.namespace_ingest_time_rule_condition_kind())
.displayName(var_.namespace_ingest_time_rule_display_name())
.fieldName(var_.namespace_ingest_time_rule_field_name())
.fieldValue(var_.namespace_ingest_time_rule_field_value())
.state(var_.namespace_ingest_time_rule_state())
.build());
}
}
import pulumi
import pulumi_oci as oci
test_namespace_ingest_time_rules = oci.LogAnalytics.get_namespace_ingest_time_rules(compartment_id=var["compartment_id"],
namespace=var["namespace_ingest_time_rule_namespace"],
condition_kind=var["namespace_ingest_time_rule_condition_kind"],
display_name=var["namespace_ingest_time_rule_display_name"],
field_name=var["namespace_ingest_time_rule_field_name"],
field_value=var["namespace_ingest_time_rule_field_value"],
state=var["namespace_ingest_time_rule_state"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testNamespaceIngestTimeRules = oci.LogAnalytics.getNamespaceIngestTimeRules({
compartmentId: _var.compartment_id,
namespace: _var.namespace_ingest_time_rule_namespace,
conditionKind: _var.namespace_ingest_time_rule_condition_kind,
displayName: _var.namespace_ingest_time_rule_display_name,
fieldName: _var.namespace_ingest_time_rule_field_name,
fieldValue: _var.namespace_ingest_time_rule_field_value,
state: _var.namespace_ingest_time_rule_state,
});
variables:
testNamespaceIngestTimeRules:
fn::invoke:
Function: oci:LogAnalytics:getNamespaceIngestTimeRules
Arguments:
compartmentId: ${var.compartment_id}
namespace: ${var.namespace_ingest_time_rule_namespace}
conditionKind: ${var.namespace_ingest_time_rule_condition_kind}
displayName: ${var.namespace_ingest_time_rule_display_name}
fieldName: ${var.namespace_ingest_time_rule_field_name}
fieldValue: ${var.namespace_ingest_time_rule_field_value}
state: ${var.namespace_ingest_time_rule_state}
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[_loganalytics.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[_loganalytics.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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:LogAnalytics/getNamespaceIngestTimeRules:getNamespaceIngestTimeRules
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string The ID of the compartment in which to list resources.
- Namespace string
The Logging Analytics namespace used for the request.
- Condition
Kind string The ingest time rule condition kind used for filtering. Only rules with conditions of the specified kind will be returned.
- Display
Name string A filter to return rules whose displayName matches in whole or in part the specified value. The match is case-insensitive.
- Field
Name string The field name used for filtering. Only rules using the specified field name will be returned.
- Field
Value string The field value used for filtering. Only rules using the specified field value will be returned.
- Filters
List<Get
Namespace Ingest Time Rules Filter> - State string
The rule lifecycle state used for filtering. Currently supported values are ACTIVE and DELETED.
- Compartment
Id string The ID of the compartment in which to list resources.
- Namespace string
The Logging Analytics namespace used for the request.
- Condition
Kind string The ingest time rule condition kind used for filtering. Only rules with conditions of the specified kind will be returned.
- Display
Name string A filter to return rules whose displayName matches in whole or in part the specified value. The match is case-insensitive.
- Field
Name string The field name used for filtering. Only rules using the specified field name will be returned.
- Field
Value string The field value used for filtering. Only rules using the specified field value will be returned.
- Filters
[]Get
Namespace Ingest Time Rules Filter - State string
The rule lifecycle state used for filtering. Currently supported values are ACTIVE and DELETED.
- compartment
Id String The ID of the compartment in which to list resources.
- namespace String
The Logging Analytics namespace used for the request.
- condition
Kind String The ingest time rule condition kind used for filtering. Only rules with conditions of the specified kind will be returned.
- display
Name String A filter to return rules whose displayName matches in whole or in part the specified value. The match is case-insensitive.
- field
Name String The field name used for filtering. Only rules using the specified field name will be returned.
- field
Value String The field value used for filtering. Only rules using the specified field value will be returned.
- filters
List<Get
Namespace Ingest Time Rules Filter> - state String
The rule lifecycle state used for filtering. Currently supported values are ACTIVE and DELETED.
- compartment
Id string The ID of the compartment in which to list resources.
- namespace string
The Logging Analytics namespace used for the request.
- condition
Kind string The ingest time rule condition kind used for filtering. Only rules with conditions of the specified kind will be returned.
- display
Name string A filter to return rules whose displayName matches in whole or in part the specified value. The match is case-insensitive.
- field
Name string The field name used for filtering. Only rules using the specified field name will be returned.
- field
Value string The field value used for filtering. Only rules using the specified field value will be returned.
- filters
Get
Namespace 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
Get
Namespace Ingest Time Rules Filter] - state str
The rule lifecycle state used for filtering. Currently supported values are ACTIVE and DELETED.
- compartment
Id String The ID of the compartment in which to list resources.
- namespace String
The Logging Analytics namespace used for the request.
- condition
Kind String The ingest time rule condition kind used for filtering. Only rules with conditions of the specified kind will be returned.
- display
Name String A filter to return rules whose displayName matches in whole or in part the specified value. The match is case-insensitive.
- field
Name String The field name used for filtering. Only rules using the specified field name will be returned.
- field
Value 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:
- Compartment
Id 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.
- Ingest
Time 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 (_).
- Condition
Kind string - Display
Name string The ingest time rule display name.
- Field
Name string The field name to be evaluated.
- Field
Value string The field value to be evaluated.
- Filters
List<Get
Namespace Ingest Time Rules Filter> - State string
The current state of the ingest time rule.
- Compartment
Id 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.
- Ingest
Time []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 (_).
- Condition
Kind string - Display
Name string The ingest time rule display name.
- Field
Name string The field name to be evaluated.
- Field
Value string The field value to be evaluated.
- Filters
[]Get
Namespace Ingest Time Rules Filter - State string
The current state of the ingest time rule.
- compartment
Id 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.
- ingest
Time 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 (_).
- condition
Kind String - display
Name String The ingest time rule display name.
- field
Name String The field name to be evaluated.
- field
Value String The field value to be evaluated.
- filters
List<Get
Namespace Ingest Time Rules Filter> - state String
The current state of the ingest time rule.
- compartment
Id 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.
- ingest
Time 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 (_).
- condition
Kind string - display
Name string The ingest time rule display name.
- field
Name string The field name to be evaluated.
- field
Value string The field value to be evaluated.
- filters
Get
Namespace 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_ 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
Get
Namespace Ingest Time Rules Filter] - state str
The current state of the ingest time rule.
- compartment
Id 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.
- ingest
Time 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 (_).
- condition
Kind String - display
Name String The ingest time rule display name.
- field
Name String The field name to be evaluated.
- field
Value 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
- Compartment
Id string The ID of the compartment in which to list resources.
- Condition
Kind string The ingest time rule condition kind used for filtering. Only rules with conditions of the specified kind will be returned.
- Dictionary<string, object>
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.
- Display
Name string A filter to return rules whose displayName matches in whole or in part the specified value. The match is case-insensitive.
- Field
Name string The field name used for filtering. Only rules using the specified field name will be returned.
- Field
Value string The field value used for filtering. Only rules using the specified field value will be returned.
- Dictionary<string, object>
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.
- Is
Enabled 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.
- Time
Created string The date and time the resource was created, in the format defined by RFC3339.
- Time
Updated string The date and time the resource was last updated, in the format defined by RFC3339.
- Compartment
Id string The ID of the compartment in which to list resources.
- Condition
Kind string The ingest time rule condition kind used for filtering. Only rules with conditions of the specified kind will be returned.
- map[string]interface{}
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.
- Display
Name string A filter to return rules whose displayName matches in whole or in part the specified value. The match is case-insensitive.
- Field
Name string The field name used for filtering. Only rules using the specified field name will be returned.
- Field
Value string The field value used for filtering. Only rules using the specified field value will be returned.
- map[string]interface{}
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.
- Is
Enabled 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.
- Time
Created string The date and time the resource was created, in the format defined by RFC3339.
- Time
Updated string The date and time the resource was last updated, in the format defined by RFC3339.
- compartment
Id String The ID of the compartment in which to list resources.
- condition
Kind String The ingest time rule condition kind used for filtering. Only rules with conditions of the specified kind will be returned.
- Map<String,Object>
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.
- display
Name String A filter to return rules whose displayName matches in whole or in part the specified value. The match is case-insensitive.
- field
Name String The field name used for filtering. Only rules using the specified field name will be returned.
- field
Value String The field value used for filtering. Only rules using the specified field value will be returned.
- Map<String,Object>
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.
- is
Enabled 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.
- time
Created String The date and time the resource was created, in the format defined by RFC3339.
- time
Updated String The date and time the resource was last updated, in the format defined by RFC3339.
- compartment
Id string The ID of the compartment in which to list resources.
- condition
Kind string The ingest time rule condition kind used for filtering. Only rules with conditions of the specified kind will be returned.
- {[key: string]: any}
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.
- display
Name string A filter to return rules whose displayName matches in whole or in part the specified value. The match is case-insensitive.
- field
Name string The field name used for filtering. Only rules using the specified field name will be returned.
- field
Value string The field value used for filtering. Only rules using the specified field value will be returned.
- {[key: string]: any}
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.
- is
Enabled 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.
- time
Created string The date and time the resource was created, in the format defined by RFC3339.
- time
Updated 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, Any]
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, Any]
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.
- compartment
Id String The ID of the compartment in which to list resources.
- condition
Kind String The ingest time rule condition kind used for filtering. Only rules with conditions of the specified kind will be returned.
- Map<Any>
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.
- display
Name String A filter to return rules whose displayName matches in whole or in part the specified value. The match is case-insensitive.
- field
Name String The field name used for filtering. Only rules using the specified field name will be returned.
- field
Value String The field value used for filtering. Only rules using the specified field value will be returned.
- Map<Any>
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.
- is
Enabled 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.
- time
Created String The date and time the resource was created, in the format defined by RFC3339.
- time
Updated 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
oci
Terraform Provider.