Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.LogAnalytics.getNamespaceEffectiveProperties
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
This data source provides the list of Namespace Effective Properties in Oracle Cloud Infrastructure Log Analytics service.
Returns a list of effective properties for the specified resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testNamespaceEffectiveProperties = oci.LogAnalytics.getNamespaceEffectiveProperties({
namespace: namespaceEffectivePropertyNamespace,
agentId: testAgent.id,
entityId: testLogAnalyticsEntity.id,
isIncludePatterns: namespaceEffectivePropertyIsIncludePatterns,
name: namespaceEffectivePropertyName,
patternId: testPattern.id,
sourceName: namespaceEffectivePropertySourceName,
});
import pulumi
import pulumi_oci as oci
test_namespace_effective_properties = oci.LogAnalytics.get_namespace_effective_properties(namespace=namespace_effective_property_namespace,
agent_id=test_agent["id"],
entity_id=test_log_analytics_entity["id"],
is_include_patterns=namespace_effective_property_is_include_patterns,
name=namespace_effective_property_name,
pattern_id=test_pattern["id"],
source_name=namespace_effective_property_source_name)
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.GetNamespaceEffectiveProperties(ctx, &loganalytics.GetNamespaceEffectivePropertiesArgs{
Namespace: namespaceEffectivePropertyNamespace,
AgentId: pulumi.StringRef(testAgent.Id),
EntityId: pulumi.StringRef(testLogAnalyticsEntity.Id),
IsIncludePatterns: pulumi.BoolRef(namespaceEffectivePropertyIsIncludePatterns),
Name: pulumi.StringRef(namespaceEffectivePropertyName),
PatternId: pulumi.IntRef(testPattern.Id),
SourceName: pulumi.StringRef(namespaceEffectivePropertySourceName),
}, 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 testNamespaceEffectiveProperties = Oci.LogAnalytics.GetNamespaceEffectiveProperties.Invoke(new()
{
Namespace = namespaceEffectivePropertyNamespace,
AgentId = testAgent.Id,
EntityId = testLogAnalyticsEntity.Id,
IsIncludePatterns = namespaceEffectivePropertyIsIncludePatterns,
Name = namespaceEffectivePropertyName,
PatternId = testPattern.Id,
SourceName = namespaceEffectivePropertySourceName,
});
});
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.GetNamespaceEffectivePropertiesArgs;
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 testNamespaceEffectiveProperties = LogAnalyticsFunctions.getNamespaceEffectiveProperties(GetNamespaceEffectivePropertiesArgs.builder()
.namespace(namespaceEffectivePropertyNamespace)
.agentId(testAgent.id())
.entityId(testLogAnalyticsEntity.id())
.isIncludePatterns(namespaceEffectivePropertyIsIncludePatterns)
.name(namespaceEffectivePropertyName)
.patternId(testPattern.id())
.sourceName(namespaceEffectivePropertySourceName)
.build());
}
}
variables:
testNamespaceEffectiveProperties:
fn::invoke:
Function: oci:LogAnalytics:getNamespaceEffectiveProperties
Arguments:
namespace: ${namespaceEffectivePropertyNamespace}
agentId: ${testAgent.id}
entityId: ${testLogAnalyticsEntity.id}
isIncludePatterns: ${namespaceEffectivePropertyIsIncludePatterns}
name: ${namespaceEffectivePropertyName}
patternId: ${testPattern.id}
sourceName: ${namespaceEffectivePropertySourceName}
Using getNamespaceEffectiveProperties
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 getNamespaceEffectiveProperties(args: GetNamespaceEffectivePropertiesArgs, opts?: InvokeOptions): Promise<GetNamespaceEffectivePropertiesResult>
function getNamespaceEffectivePropertiesOutput(args: GetNamespaceEffectivePropertiesOutputArgs, opts?: InvokeOptions): Output<GetNamespaceEffectivePropertiesResult>
def get_namespace_effective_properties(agent_id: Optional[str] = None,
entity_id: Optional[str] = None,
filters: Optional[Sequence[_loganalytics.GetNamespaceEffectivePropertiesFilter]] = None,
is_include_patterns: Optional[bool] = None,
name: Optional[str] = None,
namespace: Optional[str] = None,
pattern_id: Optional[int] = None,
source_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNamespaceEffectivePropertiesResult
def get_namespace_effective_properties_output(agent_id: Optional[pulumi.Input[str]] = None,
entity_id: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_loganalytics.GetNamespaceEffectivePropertiesFilterArgs]]]] = None,
is_include_patterns: Optional[pulumi.Input[bool]] = None,
name: Optional[pulumi.Input[str]] = None,
namespace: Optional[pulumi.Input[str]] = None,
pattern_id: Optional[pulumi.Input[int]] = None,
source_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNamespaceEffectivePropertiesResult]
func GetNamespaceEffectiveProperties(ctx *Context, args *GetNamespaceEffectivePropertiesArgs, opts ...InvokeOption) (*GetNamespaceEffectivePropertiesResult, error)
func GetNamespaceEffectivePropertiesOutput(ctx *Context, args *GetNamespaceEffectivePropertiesOutputArgs, opts ...InvokeOption) GetNamespaceEffectivePropertiesResultOutput
> Note: This function is named GetNamespaceEffectiveProperties
in the Go SDK.
public static class GetNamespaceEffectiveProperties
{
public static Task<GetNamespaceEffectivePropertiesResult> InvokeAsync(GetNamespaceEffectivePropertiesArgs args, InvokeOptions? opts = null)
public static Output<GetNamespaceEffectivePropertiesResult> Invoke(GetNamespaceEffectivePropertiesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetNamespaceEffectivePropertiesResult> getNamespaceEffectiveProperties(GetNamespaceEffectivePropertiesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:LogAnalytics/getNamespaceEffectiveProperties:getNamespaceEffectiveProperties
arguments:
# arguments dictionary
The following arguments are supported:
- Namespace string
- The Logging Analytics namespace used for the request.
- Agent
Id string - The agent ocid.
- Entity
Id string - The entity ocid.
- Filters
List<Get
Namespace Effective Properties Filter> - Is
Include boolPatterns - The include pattern flag.
- Name string
- The property name used for filtering.
- Pattern
Id int - The pattern id.
- Source
Name string - The source name.
- Namespace string
- The Logging Analytics namespace used for the request.
- Agent
Id string - The agent ocid.
- Entity
Id string - The entity ocid.
- Filters
[]Get
Namespace Effective Properties Filter - Is
Include boolPatterns - The include pattern flag.
- Name string
- The property name used for filtering.
- Pattern
Id int - The pattern id.
- Source
Name string - The source name.
- namespace String
- The Logging Analytics namespace used for the request.
- agent
Id String - The agent ocid.
- entity
Id String - The entity ocid.
- filters
List<Get
Namespace Effective Properties Filter> - is
Include BooleanPatterns - The include pattern flag.
- name String
- The property name used for filtering.
- pattern
Id Integer - The pattern id.
- source
Name String - The source name.
- namespace string
- The Logging Analytics namespace used for the request.
- agent
Id string - The agent ocid.
- entity
Id string - The entity ocid.
- filters
Get
Namespace Effective Properties Filter[] - is
Include booleanPatterns - The include pattern flag.
- name string
- The property name used for filtering.
- pattern
Id number - The pattern id.
- source
Name string - The source name.
- namespace str
- The Logging Analytics namespace used for the request.
- agent_
id str - The agent ocid.
- entity_
id str - The entity ocid.
- filters
Sequence[loganalytics.
Get Namespace Effective Properties Filter] - is_
include_ boolpatterns - The include pattern flag.
- name str
- The property name used for filtering.
- pattern_
id int - The pattern id.
- source_
name str - The source name.
- namespace String
- The Logging Analytics namespace used for the request.
- agent
Id String - The agent ocid.
- entity
Id String - The entity ocid.
- filters List<Property Map>
- is
Include BooleanPatterns - The include pattern flag.
- name String
- The property name used for filtering.
- pattern
Id Number - The pattern id.
- source
Name String - The source name.
getNamespaceEffectiveProperties Result
The following output properties are available:
- Effective
Property List<GetCollections Namespace Effective Properties Effective Property Collection> - The list of effective_property_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Namespace string
- Agent
Id string - Entity
Id string - Filters
List<Get
Namespace Effective Properties Filter> - Is
Include boolPatterns - Name string
- The property name.
- Pattern
Id int - Source
Name string
- Effective
Property []GetCollections Namespace Effective Properties Effective Property Collection - The list of effective_property_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Namespace string
- Agent
Id string - Entity
Id string - Filters
[]Get
Namespace Effective Properties Filter - Is
Include boolPatterns - Name string
- The property name.
- Pattern
Id int - Source
Name string
- effective
Property List<GetCollections Namespace Effective Properties Effective Property Collection> - The list of effective_property_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- namespace String
- agent
Id String - entity
Id String - filters
List<Get
Namespace Effective Properties Filter> - is
Include BooleanPatterns - name String
- The property name.
- pattern
Id Integer - source
Name String
- effective
Property GetCollections Namespace Effective Properties Effective Property Collection[] - The list of effective_property_collection.
- id string
- The provider-assigned unique ID for this managed resource.
- namespace string
- agent
Id string - entity
Id string - filters
Get
Namespace Effective Properties Filter[] - is
Include booleanPatterns - name string
- The property name.
- pattern
Id number - source
Name string
- effective_
property_ Sequence[loganalytics.collections Get Namespace Effective Properties Effective Property Collection] - The list of effective_property_collection.
- id str
- The provider-assigned unique ID for this managed resource.
- namespace str
- agent_
id str - entity_
id str - filters
Sequence[loganalytics.
Get Namespace Effective Properties Filter] - is_
include_ boolpatterns - name str
- The property name.
- pattern_
id int - source_
name str
- effective
Property List<Property Map>Collections - The list of effective_property_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- namespace String
- agent
Id String - entity
Id String - filters List<Property Map>
- is
Include BooleanPatterns - name String
- The property name.
- pattern
Id Number - source
Name String
Supporting Types
GetNamespaceEffectivePropertiesEffectivePropertyCollection
- Items
List<Get
Namespace Effective Properties Effective Property Collection Item> - A list of properties and their effective values.
- Items
[]Get
Namespace Effective Properties Effective Property Collection Item - A list of properties and their effective values.
- items
List<Get
Namespace Effective Properties Effective Property Collection Item> - A list of properties and their effective values.
- items
Get
Namespace Effective Properties Effective Property Collection Item[] - A list of properties and their effective values.
- items
Sequence[loganalytics.
Get Namespace Effective Properties Effective Property Collection Item] - A list of properties and their effective values.
- items List<Property Map>
- A list of properties and their effective values.
GetNamespaceEffectivePropertiesEffectivePropertyCollectionItem
- Effective
Level string - The effective level of the property value.
- Name string
- The property name used for filtering.
- Patterns
List<Get
Namespace Effective Properties Effective Property Collection Item Pattern> - A list of pattern level override values for the property.
- Value string
- The effective value of the property. This is determined by considering the value set at the most effective level.
- Effective
Level string - The effective level of the property value.
- Name string
- The property name used for filtering.
- Patterns
[]Get
Namespace Effective Properties Effective Property Collection Item Pattern - A list of pattern level override values for the property.
- Value string
- The effective value of the property. This is determined by considering the value set at the most effective level.
- effective
Level String - The effective level of the property value.
- name String
- The property name used for filtering.
- patterns
List<Get
Namespace Effective Properties Effective Property Collection Item Pattern> - A list of pattern level override values for the property.
- value String
- The effective value of the property. This is determined by considering the value set at the most effective level.
- effective
Level string - The effective level of the property value.
- name string
- The property name used for filtering.
- patterns
Get
Namespace Effective Properties Effective Property Collection Item Pattern[] - A list of pattern level override values for the property.
- value string
- The effective value of the property. This is determined by considering the value set at the most effective level.
- effective_
level str - The effective level of the property value.
- name str
- The property name used for filtering.
- patterns
Sequence[loganalytics.
Get Namespace Effective Properties Effective Property Collection Item Pattern] - A list of pattern level override values for the property.
- value str
- The effective value of the property. This is determined by considering the value set at the most effective level.
- effective
Level String - The effective level of the property value.
- name String
- The property name used for filtering.
- patterns List<Property Map>
- A list of pattern level override values for the property.
- value String
- The effective value of the property. This is determined by considering the value set at the most effective level.
GetNamespaceEffectivePropertiesEffectivePropertyCollectionItemPattern
- Effective
Level string - The effective level of the property value.
- Id string
- The pattern id.
- Value string
- The effective value of the property. This is determined by considering the value set at the most effective level.
- Effective
Level string - The effective level of the property value.
- Id string
- The pattern id.
- Value string
- The effective value of the property. This is determined by considering the value set at the most effective level.
- effective
Level String - The effective level of the property value.
- id String
- The pattern id.
- value String
- The effective value of the property. This is determined by considering the value set at the most effective level.
- effective
Level string - The effective level of the property value.
- id string
- The pattern id.
- value string
- The effective value of the property. This is determined by considering the value set at the most effective level.
- effective_
level str - The effective level of the property value.
- id str
- The pattern id.
- value str
- The effective value of the property. This is determined by considering the value set at the most effective level.
- effective
Level String - The effective level of the property value.
- id String
- The pattern id.
- value String
- The effective value of the property. This is determined by considering the value set at the most effective level.
GetNamespaceEffectivePropertiesFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi