Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 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[_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
Sequence[loganalytics.
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_ Sequence[loganalytics.rule_ summary_ collections Get 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[loganalytics.
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, 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.
- 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, 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.
- 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]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.
- 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]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.
- 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,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.
- 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,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.
- 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]: 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.
- 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]: 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.
- 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, 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.
- 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>
- 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>
- 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.