Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.LogAnalytics.getLogAnalyticsLogGroup
Explore with Pulumi AI
This data source provides details about a specific Log Analytics Log Group resource in Oracle Cloud Infrastructure Log Analytics service.
Gets detailed information about the specified log group such as display name, description, defined tags, and free-form tags.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testLogAnalyticsLogGroup = oci.LogAnalytics.getLogAnalyticsLogGroup({
    logAnalyticsLogGroupId: testLogAnalyticsLogGroupOciLogAnalyticsLogAnalyticsLogGroup.id,
    namespace: logAnalyticsLogGroupNamespace,
});
import pulumi
import pulumi_oci as oci
test_log_analytics_log_group = oci.LogAnalytics.get_log_analytics_log_group(log_analytics_log_group_id=test_log_analytics_log_group_oci_log_analytics_log_analytics_log_group["id"],
    namespace=log_analytics_log_group_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.GetLogAnalyticsLogGroup(ctx, &loganalytics.GetLogAnalyticsLogGroupArgs{
			LogAnalyticsLogGroupId: testLogAnalyticsLogGroupOciLogAnalyticsLogAnalyticsLogGroup.Id,
			Namespace:              logAnalyticsLogGroupNamespace,
		}, 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 testLogAnalyticsLogGroup = Oci.LogAnalytics.GetLogAnalyticsLogGroup.Invoke(new()
    {
        LogAnalyticsLogGroupId = testLogAnalyticsLogGroupOciLogAnalyticsLogAnalyticsLogGroup.Id,
        Namespace = logAnalyticsLogGroupNamespace,
    });
});
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.GetLogAnalyticsLogGroupArgs;
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 testLogAnalyticsLogGroup = LogAnalyticsFunctions.getLogAnalyticsLogGroup(GetLogAnalyticsLogGroupArgs.builder()
            .logAnalyticsLogGroupId(testLogAnalyticsLogGroupOciLogAnalyticsLogAnalyticsLogGroup.id())
            .namespace(logAnalyticsLogGroupNamespace)
            .build());
    }
}
variables:
  testLogAnalyticsLogGroup:
    fn::invoke:
      function: oci:LogAnalytics:getLogAnalyticsLogGroup
      arguments:
        logAnalyticsLogGroupId: ${testLogAnalyticsLogGroupOciLogAnalyticsLogAnalyticsLogGroup.id}
        namespace: ${logAnalyticsLogGroupNamespace}
Using getLogAnalyticsLogGroup
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 getLogAnalyticsLogGroup(args: GetLogAnalyticsLogGroupArgs, opts?: InvokeOptions): Promise<GetLogAnalyticsLogGroupResult>
function getLogAnalyticsLogGroupOutput(args: GetLogAnalyticsLogGroupOutputArgs, opts?: InvokeOptions): Output<GetLogAnalyticsLogGroupResult>def get_log_analytics_log_group(log_analytics_log_group_id: Optional[str] = None,
                                namespace: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetLogAnalyticsLogGroupResult
def get_log_analytics_log_group_output(log_analytics_log_group_id: Optional[pulumi.Input[str]] = None,
                                namespace: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetLogAnalyticsLogGroupResult]func LookupLogAnalyticsLogGroup(ctx *Context, args *LookupLogAnalyticsLogGroupArgs, opts ...InvokeOption) (*LookupLogAnalyticsLogGroupResult, error)
func LookupLogAnalyticsLogGroupOutput(ctx *Context, args *LookupLogAnalyticsLogGroupOutputArgs, opts ...InvokeOption) LookupLogAnalyticsLogGroupResultOutput> Note: This function is named LookupLogAnalyticsLogGroup in the Go SDK.
public static class GetLogAnalyticsLogGroup 
{
    public static Task<GetLogAnalyticsLogGroupResult> InvokeAsync(GetLogAnalyticsLogGroupArgs args, InvokeOptions? opts = null)
    public static Output<GetLogAnalyticsLogGroupResult> Invoke(GetLogAnalyticsLogGroupInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetLogAnalyticsLogGroupResult> getLogAnalyticsLogGroup(GetLogAnalyticsLogGroupArgs args, InvokeOptions options)
public static Output<GetLogAnalyticsLogGroupResult> getLogAnalyticsLogGroup(GetLogAnalyticsLogGroupArgs args, InvokeOptions options)
fn::invoke:
  function: oci:LogAnalytics/getLogAnalyticsLogGroup:getLogAnalyticsLogGroup
  arguments:
    # arguments dictionaryThe following arguments are supported:
- LogAnalytics stringLog Group Id 
- unique logAnalytics log group identifier
- Namespace string
- The Logging Analytics namespace used for the request.
- LogAnalytics stringLog Group Id 
- unique logAnalytics log group identifier
- Namespace string
- The Logging Analytics namespace used for the request.
- logAnalytics StringLog Group Id 
- unique logAnalytics log group identifier
- namespace String
- The Logging Analytics namespace used for the request.
- logAnalytics stringLog Group Id 
- unique logAnalytics log group identifier
- namespace string
- The Logging Analytics namespace used for the request.
- log_analytics_ strlog_ group_ id 
- unique logAnalytics log group identifier
- namespace str
- The Logging Analytics namespace used for the request.
- logAnalytics StringLog Group Id 
- unique logAnalytics log group identifier
- namespace String
- The Logging Analytics namespace used for the request.
getLogAnalyticsLogGroup Result
The following output properties are available:
- CompartmentId 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"}
- Description string
- Description for this resource.
- DisplayName string
- A user-friendly name that is changeable and that does not have to be unique. Format: a leading alphanumeric, followed by zero or more alphanumerics, underscores, spaces, backslashes, or hyphens in any order). No trailing spaces allowed.
- 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.
- LogAnalytics stringLog Group Id 
- Namespace string
- TimeCreated string
- The date and time the resource was created, in the format defined by RFC3339.
- TimeUpdated string
- The date and time the resource was last updated, in the format defined by RFC3339.
- CompartmentId 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"}
- Description string
- Description for this resource.
- DisplayName string
- A user-friendly name that is changeable and that does not have to be unique. Format: a leading alphanumeric, followed by zero or more alphanumerics, underscores, spaces, backslashes, or hyphens in any order). No trailing spaces allowed.
- 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.
- LogAnalytics stringLog Group Id 
- Namespace string
- TimeCreated string
- The date and time the resource was created, in the format defined by RFC3339.
- TimeUpdated string
- The date and time the resource was last updated, in the format defined by RFC3339.
- compartmentId 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"}
- description String
- Description for this resource.
- displayName String
- A user-friendly name that is changeable and that does not have to be unique. Format: a leading alphanumeric, followed by zero or more alphanumerics, underscores, spaces, backslashes, or hyphens in any order). No trailing spaces allowed.
- 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.
- logAnalytics StringLog Group Id 
- namespace String
- timeCreated String
- The date and time the resource was created, in the format defined by RFC3339.
- timeUpdated String
- The date and time the resource was last updated, in the format defined by RFC3339.
- compartmentId 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"}
- description string
- Description for this resource.
- displayName string
- A user-friendly name that is changeable and that does not have to be unique. Format: a leading alphanumeric, followed by zero or more alphanumerics, underscores, spaces, backslashes, or hyphens in any order). No trailing spaces allowed.
- {[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.
- logAnalytics stringLog Group Id 
- namespace string
- timeCreated string
- The date and time the resource was created, in the format defined by RFC3339.
- timeUpdated string
- The date and time the resource was last updated, in the format defined by RFC3339.
- 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"}
- description str
- Description for this resource.
- display_name str
- A user-friendly name that is changeable and that does not have to be unique. Format: a leading alphanumeric, followed by zero or more alphanumerics, underscores, spaces, backslashes, or hyphens in any order). No trailing spaces allowed.
- 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.
- log_analytics_ strlog_ group_ id 
- namespace str
- 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.
- compartmentId 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"}
- description String
- Description for this resource.
- displayName String
- A user-friendly name that is changeable and that does not have to be unique. Format: a leading alphanumeric, followed by zero or more alphanumerics, underscores, spaces, backslashes, or hyphens in any order). No trailing spaces allowed.
- 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.
- logAnalytics StringLog Group Id 
- namespace String
- timeCreated String
- The date and time the resource was created, in the format defined by RFC3339.
- timeUpdated 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 ociTerraform Provider.