Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.LogAnalytics.getLogAnalyticsEntity
Explore with Pulumi AI
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
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testLogAnalyticsEntity = oci.LogAnalytics.getLogAnalyticsEntity({
logAnalyticsEntityId: testLogAnalyticsEntityOciLogAnalyticsLogAnalyticsEntity.id,
namespace: logAnalyticsEntityNamespace,
});
import pulumi
import pulumi_oci as oci
test_log_analytics_entity = oci.LogAnalytics.get_log_analytics_entity(log_analytics_entity_id=test_log_analytics_entity_oci_log_analytics_log_analytics_entity["id"],
namespace=log_analytics_entity_namespace)
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.GetLogAnalyticsEntity(ctx, &loganalytics.GetLogAnalyticsEntityArgs{
LogAnalyticsEntityId: testLogAnalyticsEntityOciLogAnalyticsLogAnalyticsEntity.Id,
Namespace: logAnalyticsEntityNamespace,
}, 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 testLogAnalyticsEntity = Oci.LogAnalytics.GetLogAnalyticsEntity.Invoke(new()
{
LogAnalyticsEntityId = testLogAnalyticsEntityOciLogAnalyticsLogAnalyticsEntity.Id,
Namespace = logAnalyticsEntityNamespace,
});
});
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(testLogAnalyticsEntityOciLogAnalyticsLogAnalyticsEntity.id())
.namespace(logAnalyticsEntityNamespace)
.build());
}
}
variables:
testLogAnalyticsEntity:
fn::invoke:
Function: oci:LogAnalytics:getLogAnalyticsEntity
Arguments:
logAnalyticsEntityId: ${testLogAnalyticsEntityOciLogAnalyticsLogAnalyticsEntity.id}
namespace: ${logAnalyticsEntityNamespace}
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, string>
- 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, string>
- 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.
- Metadatas
List<Get
Log Analytics Entity Metadata> - Details of entity metadata information.
- Name string
- Log analytics entity name.
- Namespace string
- Properties Dictionary<string, string>
- 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
Last stringDiscovered - The date and time the resource was last discovered, 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]string
- 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]string
- 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.
- Metadatas
[]Get
Log Analytics Entity Metadata - Details of entity metadata information.
- Name string
- Log analytics entity name.
- Namespace string
- Properties map[string]string
- 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
Last stringDiscovered - The date and time the resource was last discovered, 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,String>
- 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,String>
- 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.
- metadatas
List<Get
Entity Metadata> - Details of entity metadata information.
- name String
- Log analytics entity name.
- namespace String
- properties Map<String,String>
- 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
Last StringDiscovered - The date and time the resource was last discovered, 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]: string}
- 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]: string}
- 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.
- metadatas
Get
Log Analytics Entity Metadata[] - Details of entity metadata information.
- name string
- Log analytics entity name.
- namespace string
- properties {[key: string]: string}
- 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
Last stringDiscovered - The date and time the resource was last discovered, 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, str]
- 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, str]
- 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.
- metadatas
Sequence[loganalytics.
Get Log Analytics Entity Metadata] - Details of entity metadata information.
- name str
- Log analytics entity name.
- namespace str
- properties Mapping[str, str]
- 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_
last_ strdiscovered - The date and time the resource was last discovered, 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<String>
- 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>
- 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.
- metadatas List<Property Map>
- Details of entity metadata information.
- name String
- Log analytics entity name.
- namespace String
- properties Map<String>
- 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
Last StringDiscovered - The date and time the resource was last discovered, 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.
Supporting Types
GetLogAnalyticsEntityMetadata
- Items
List<Get
Log Analytics Entity Metadata Item> - An array of entity metadata.
- Items
[]Get
Log Analytics Entity Metadata Item - An array of entity metadata.
- items
List<Get
Entity Metadata Item> - An array of entity metadata.
- items
Get
Log Analytics Entity Metadata Item[] - An array of entity metadata.
- items
Sequence[loganalytics.
Get Log Analytics Entity Metadata Item] - An array of entity metadata.
- items List<Property Map>
- An array of entity metadata.
GetLogAnalyticsEntityMetadataItem
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.