oci.LogAnalytics.getLogAnalyticsEntity
This data source provides details about a specific Log Analytics Entity resource in Oracle Cloud Infrastructure Log Analytics service.
Retrieve the log analytics entity with the given id.
Example Usage
using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testLogAnalyticsEntity = Oci.LogAnalytics.GetLogAnalyticsEntity.Invoke(new()
{
LogAnalyticsEntityId = oci_log_analytics_log_analytics_entity.Test_log_analytics_entity.Id,
Namespace = @var.Log_analytics_entity_namespace,
});
});
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.GetLogAnalyticsEntity(ctx, &loganalytics.GetLogAnalyticsEntityArgs{
LogAnalyticsEntityId: oci_log_analytics_log_analytics_entity.Test_log_analytics_entity.Id,
Namespace: _var.Log_analytics_entity_namespace,
}, 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.GetLogAnalyticsEntityArgs;
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 testLogAnalyticsEntity = LogAnalyticsFunctions.getLogAnalyticsEntity(GetLogAnalyticsEntityArgs.builder()
.logAnalyticsEntityId(oci_log_analytics_log_analytics_entity.test_log_analytics_entity().id())
.namespace(var_.log_analytics_entity_namespace())
.build());
}
}
import pulumi
import pulumi_oci as oci
test_log_analytics_entity = oci.LogAnalytics.get_log_analytics_entity(log_analytics_entity_id=oci_log_analytics_log_analytics_entity["test_log_analytics_entity"]["id"],
namespace=var["log_analytics_entity_namespace"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testLogAnalyticsEntity = oci.LogAnalytics.getLogAnalyticsEntity({
logAnalyticsEntityId: oci_log_analytics_log_analytics_entity.test_log_analytics_entity.id,
namespace: _var.log_analytics_entity_namespace,
});
variables:
testLogAnalyticsEntity:
fn::invoke:
Function: oci:LogAnalytics:getLogAnalyticsEntity
Arguments:
logAnalyticsEntityId: ${oci_log_analytics_log_analytics_entity.test_log_analytics_entity.id}
namespace: ${var.log_analytics_entity_namespace}
Using getLogAnalyticsEntity
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 getLogAnalyticsEntity(args: GetLogAnalyticsEntityArgs, opts?: InvokeOptions): Promise<GetLogAnalyticsEntityResult>
function getLogAnalyticsEntityOutput(args: GetLogAnalyticsEntityOutputArgs, opts?: InvokeOptions): Output<GetLogAnalyticsEntityResult>
def get_log_analytics_entity(log_analytics_entity_id: Optional[str] = None,
namespace: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetLogAnalyticsEntityResult
def get_log_analytics_entity_output(log_analytics_entity_id: Optional[pulumi.Input[str]] = None,
namespace: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetLogAnalyticsEntityResult]
func GetLogAnalyticsEntity(ctx *Context, args *GetLogAnalyticsEntityArgs, opts ...InvokeOption) (*GetLogAnalyticsEntityResult, error)
func GetLogAnalyticsEntityOutput(ctx *Context, args *GetLogAnalyticsEntityOutputArgs, opts ...InvokeOption) GetLogAnalyticsEntityResultOutput
> Note: This function is named GetLogAnalyticsEntity
in the Go SDK.
public static class GetLogAnalyticsEntity
{
public static Task<GetLogAnalyticsEntityResult> InvokeAsync(GetLogAnalyticsEntityArgs args, InvokeOptions? opts = null)
public static Output<GetLogAnalyticsEntityResult> Invoke(GetLogAnalyticsEntityInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetLogAnalyticsEntityResult> getLogAnalyticsEntity(GetLogAnalyticsEntityArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:LogAnalytics/getLogAnalyticsEntity:getLogAnalyticsEntity
arguments:
# arguments dictionary
The following arguments are supported:
- Log
Analytics stringEntity Id The log analytics entity OCID.
- Namespace string
The Logging Analytics namespace used for the request.
- Log
Analytics stringEntity Id The log analytics entity OCID.
- Namespace string
The Logging Analytics namespace used for the request.
- log
Analytics StringEntity Id The log analytics entity OCID.
- namespace String
The Logging Analytics namespace used for the request.
- log
Analytics stringEntity Id The log analytics entity OCID.
- namespace string
The Logging Analytics namespace used for the request.
- log_
analytics_ strentity_ id The log analytics entity OCID.
- namespace str
The Logging Analytics namespace used for the request.
- log
Analytics StringEntity Id The log analytics entity OCID.
- namespace String
The Logging Analytics namespace used for the request.
getLogAnalyticsEntity Result
The following output properties are available:
- Are
Logs boolCollected The Boolean flag to indicate if logs are collected for an entity for log analytics usage.
- Cloud
Resource stringId The OCID of the Cloud resource which this entity is a representation of. This may be blank when the entity represents a non-cloud resource that the customer may have on their premises.
- Compartment
Id string Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
- Dictionary<string, object>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Entity
Type stringInternal Name Internal name for the log analytics entity type.
- Entity
Type stringName Log analytics entity type name.
- 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"}
- Hostname string
The hostname where the entity represented here is actually present. This would be the output one would get if they run
echo $HOSTNAME
on Linux or an equivalent OS command. This may be different from management agents host since logs may be collected remotely.- 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.
- Lifecycle
Details string lifecycleDetails has additional information regarding substeps such as management agent plugin deployment.
- Log
Analytics stringEntity Id - Management
Agent stringCompartment Id Management agent (management-agents resource kind) compartment OCID
- Management
Agent stringDisplay Name Management agent (management-agents resource kind) display name
- Management
Agent stringId The OCID of the Management Agent.
- Name string
Log analytics entity name.
- Namespace string
- Properties Dictionary<string, object>
The name/value pairs for parameter values to be used in file patterns specified in log sources.
- Source
Id string This indicates the type of source. It is primarily for Enterprise Manager Repository ID.
- State string
The current state of the log analytics entity.
- 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.
- Timezone
Region string The timezone region of the log analytics entity.
- Are
Logs boolCollected The Boolean flag to indicate if logs are collected for an entity for log analytics usage.
- Cloud
Resource stringId The OCID of the Cloud resource which this entity is a representation of. This may be blank when the entity represents a non-cloud resource that the customer may have on their premises.
- Compartment
Id string Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
- map[string]interface{}
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Entity
Type stringInternal Name Internal name for the log analytics entity type.
- Entity
Type stringName Log analytics entity type name.
- 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"}
- Hostname string
The hostname where the entity represented here is actually present. This would be the output one would get if they run
echo $HOSTNAME
on Linux or an equivalent OS command. This may be different from management agents host since logs may be collected remotely.- 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.
- Lifecycle
Details string lifecycleDetails has additional information regarding substeps such as management agent plugin deployment.
- Log
Analytics stringEntity Id - Management
Agent stringCompartment Id Management agent (management-agents resource kind) compartment OCID
- Management
Agent stringDisplay Name Management agent (management-agents resource kind) display name
- Management
Agent stringId The OCID of the Management Agent.
- Name string
Log analytics entity name.
- Namespace string
- Properties map[string]interface{}
The name/value pairs for parameter values to be used in file patterns specified in log sources.
- Source
Id string This indicates the type of source. It is primarily for Enterprise Manager Repository ID.
- State string
The current state of the log analytics entity.
- 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.
- Timezone
Region string The timezone region of the log analytics entity.
- are
Logs BooleanCollected The Boolean flag to indicate if logs are collected for an entity for log analytics usage.
- cloud
Resource StringId The OCID of the Cloud resource which this entity is a representation of. This may be blank when the entity represents a non-cloud resource that the customer may have on their premises.
- compartment
Id String Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
- Map<String,Object>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- entity
Type StringInternal Name Internal name for the log analytics entity type.
- entity
Type StringName Log analytics entity type name.
- 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"}
- hostname String
The hostname where the entity represented here is actually present. This would be the output one would get if they run
echo $HOSTNAME
on Linux or an equivalent OS command. This may be different from management agents host since logs may be collected remotely.- 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.
- lifecycle
Details String lifecycleDetails has additional information regarding substeps such as management agent plugin deployment.
- log
Analytics StringEntity Id - management
Agent StringCompartment Id Management agent (management-agents resource kind) compartment OCID
- management
Agent StringDisplay Name Management agent (management-agents resource kind) display name
- management
Agent StringId The OCID of the Management Agent.
- name String
Log analytics entity name.
- namespace String
- properties Map<String,Object>
The name/value pairs for parameter values to be used in file patterns specified in log sources.
- source
Id String This indicates the type of source. It is primarily for Enterprise Manager Repository ID.
- state String
The current state of the log analytics entity.
- 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.
- timezone
Region String The timezone region of the log analytics entity.
- are
Logs booleanCollected The Boolean flag to indicate if logs are collected for an entity for log analytics usage.
- cloud
Resource stringId The OCID of the Cloud resource which this entity is a representation of. This may be blank when the entity represents a non-cloud resource that the customer may have on their premises.
- compartment
Id string Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
- {[key: string]: any}
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- entity
Type stringInternal Name Internal name for the log analytics entity type.
- entity
Type stringName Log analytics entity type name.
- {[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"}
- hostname string
The hostname where the entity represented here is actually present. This would be the output one would get if they run
echo $HOSTNAME
on Linux or an equivalent OS command. This may be different from management agents host since logs may be collected remotely.- 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.
- lifecycle
Details string lifecycleDetails has additional information regarding substeps such as management agent plugin deployment.
- log
Analytics stringEntity Id - management
Agent stringCompartment Id Management agent (management-agents resource kind) compartment OCID
- management
Agent stringDisplay Name Management agent (management-agents resource kind) display name
- management
Agent stringId The OCID of the Management Agent.
- name string
Log analytics entity name.
- namespace string
- properties {[key: string]: any}
The name/value pairs for parameter values to be used in file patterns specified in log sources.
- source
Id string This indicates the type of source. It is primarily for Enterprise Manager Repository ID.
- state string
The current state of the log analytics entity.
- 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.
- timezone
Region string The timezone region of the log analytics entity.
- are_
logs_ boolcollected The Boolean flag to indicate if logs are collected for an entity for log analytics usage.
- cloud_
resource_ strid The OCID of the Cloud resource which this entity is a representation of. This may be blank when the entity represents a non-cloud resource that the customer may have on their premises.
- compartment_
id str Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
- Mapping[str, Any]
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- entity_
type_ strinternal_ name Internal name for the log analytics entity type.
- entity_
type_ strname Log analytics entity type name.
- 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"}
- hostname str
The hostname where the entity represented here is actually present. This would be the output one would get if they run
echo $HOSTNAME
on Linux or an equivalent OS command. This may be different from management agents host since logs may be collected remotely.- 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.
- lifecycle_
details str lifecycleDetails has additional information regarding substeps such as management agent plugin deployment.
- log_
analytics_ strentity_ id - management_
agent_ strcompartment_ id Management agent (management-agents resource kind) compartment OCID
- management_
agent_ strdisplay_ name Management agent (management-agents resource kind) display name
- management_
agent_ strid The OCID of the Management Agent.
- name str
Log analytics entity name.
- namespace str
- properties Mapping[str, Any]
The name/value pairs for parameter values to be used in file patterns specified in log sources.
- source_
id str This indicates the type of source. It is primarily for Enterprise Manager Repository ID.
- state str
The current state of the log analytics entity.
- 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.
- timezone_
region str The timezone region of the log analytics entity.
- are
Logs BooleanCollected The Boolean flag to indicate if logs are collected for an entity for log analytics usage.
- cloud
Resource StringId The OCID of the Cloud resource which this entity is a representation of. This may be blank when the entity represents a non-cloud resource that the customer may have on their premises.
- compartment
Id String Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
- Map<Any>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- entity
Type StringInternal Name Internal name for the log analytics entity type.
- entity
Type StringName Log analytics entity type name.
- 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"}
- hostname String
The hostname where the entity represented here is actually present. This would be the output one would get if they run
echo $HOSTNAME
on Linux or an equivalent OS command. This may be different from management agents host since logs may be collected remotely.- 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.
- lifecycle
Details String lifecycleDetails has additional information regarding substeps such as management agent plugin deployment.
- log
Analytics StringEntity Id - management
Agent StringCompartment Id Management agent (management-agents resource kind) compartment OCID
- management
Agent StringDisplay Name Management agent (management-agents resource kind) display name
- management
Agent StringId The OCID of the Management Agent.
- name String
Log analytics entity name.
- namespace String
- properties Map<Any>
The name/value pairs for parameter values to be used in file patterns specified in log sources.
- source
Id String This indicates the type of source. It is primarily for Enterprise Manager Repository ID.
- state String
The current state of the log analytics entity.
- 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.
- timezone
Region String The timezone region of the log analytics entity.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.