Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Logging.getLogGroup
Explore with Pulumi AI
This data source provides details about a specific Log Group resource in Oracle Cloud Infrastructure Logging service.
Get the specified log group’s information.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testLogGroup = oci.Logging.getLogGroup({
    logGroupId: testLogGroupOciLoggingLogGroup.id,
});
import pulumi
import pulumi_oci as oci
test_log_group = oci.Logging.get_log_group(log_group_id=test_log_group_oci_logging_log_group["id"])
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/logging"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := logging.GetLogGroup(ctx, &logging.GetLogGroupArgs{
			LogGroupId: testLogGroupOciLoggingLogGroup.Id,
		}, 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 testLogGroup = Oci.Logging.GetLogGroup.Invoke(new()
    {
        LogGroupId = testLogGroupOciLoggingLogGroup.Id,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Logging.LoggingFunctions;
import com.pulumi.oci.Logging.inputs.GetLogGroupArgs;
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 testLogGroup = LoggingFunctions.getLogGroup(GetLogGroupArgs.builder()
            .logGroupId(testLogGroupOciLoggingLogGroup.id())
            .build());
    }
}
variables:
  testLogGroup:
    fn::invoke:
      function: oci:Logging:getLogGroup
      arguments:
        logGroupId: ${testLogGroupOciLoggingLogGroup.id}
Using getLogGroup
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 getLogGroup(args: GetLogGroupArgs, opts?: InvokeOptions): Promise<GetLogGroupResult>
function getLogGroupOutput(args: GetLogGroupOutputArgs, opts?: InvokeOptions): Output<GetLogGroupResult>def get_log_group(log_group_id: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetLogGroupResult
def get_log_group_output(log_group_id: Optional[pulumi.Input[str]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[GetLogGroupResult]func LookupLogGroup(ctx *Context, args *LookupLogGroupArgs, opts ...InvokeOption) (*LookupLogGroupResult, error)
func LookupLogGroupOutput(ctx *Context, args *LookupLogGroupOutputArgs, opts ...InvokeOption) LookupLogGroupResultOutput> Note: This function is named LookupLogGroup in the Go SDK.
public static class GetLogGroup 
{
    public static Task<GetLogGroupResult> InvokeAsync(GetLogGroupArgs args, InvokeOptions? opts = null)
    public static Output<GetLogGroupResult> Invoke(GetLogGroupInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetLogGroupResult> getLogGroup(GetLogGroupArgs args, InvokeOptions options)
public static Output<GetLogGroupResult> getLogGroup(GetLogGroupArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Logging/getLogGroup:getLogGroup
  arguments:
    # arguments dictionaryThe following arguments are supported:
- LogGroup stringId 
- OCID of a log group to work with.
- LogGroup stringId 
- OCID of a log group to work with.
- logGroup StringId 
- OCID of a log group to work with.
- logGroup stringId 
- OCID of a log group to work with.
- log_group_ strid 
- OCID of a log group to work with.
- logGroup StringId 
- OCID of a log group to work with.
getLogGroup Result
The following output properties are available:
- CompartmentId string
- The OCID of the compartment that the resource belongs to.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- Description string
- Description for this resource.
- DisplayName string
- The user-friendly display name. This must be unique within the enclosing resource, and it's changeable. Avoid entering confidential information.
- Dictionary<string, string>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- Id string
- The OCID of the resource.
- LogGroup stringId 
- State string
- The log group object state.
- TimeCreated string
- Time the resource was created.
- TimeLast stringModified 
- Time the resource was last modified.
- CompartmentId string
- The OCID of the compartment that the resource belongs to.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- Description string
- Description for this resource.
- DisplayName string
- The user-friendly display name. This must be unique within the enclosing resource, and it's changeable. Avoid entering confidential information.
- map[string]string
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- Id string
- The OCID of the resource.
- LogGroup stringId 
- State string
- The log group object state.
- TimeCreated string
- Time the resource was created.
- TimeLast stringModified 
- Time the resource was last modified.
- compartmentId String
- The OCID of the compartment that the resource belongs to.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- description String
- Description for this resource.
- displayName String
- The user-friendly display name. This must be unique within the enclosing resource, and it's changeable. Avoid entering confidential information.
- Map<String,String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- id String
- The OCID of the resource.
- logGroup StringId 
- state String
- The log group object state.
- timeCreated String
- Time the resource was created.
- timeLast StringModified 
- Time the resource was last modified.
- compartmentId string
- The OCID of the compartment that the resource belongs to.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- description string
- Description for this resource.
- displayName string
- The user-friendly display name. This must be unique within the enclosing resource, and it's changeable. Avoid entering confidential information.
- {[key: string]: string}
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- id string
- The OCID of the resource.
- logGroup stringId 
- state string
- The log group object state.
- timeCreated string
- Time the resource was created.
- timeLast stringModified 
- Time the resource was last modified.
- compartment_id str
- The OCID of the compartment that the resource belongs to.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- description str
- Description for this resource.
- display_name str
- The user-friendly display name. This must be unique within the enclosing resource, and it's changeable. Avoid entering confidential information.
- Mapping[str, str]
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- id str
- The OCID of the resource.
- log_group_ strid 
- state str
- The log group object state.
- time_created str
- Time the resource was created.
- time_last_ strmodified 
- Time the resource was last modified.
- compartmentId String
- The OCID of the compartment that the resource belongs to.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- description String
- Description for this resource.
- displayName String
- The user-friendly display name. This must be unique within the enclosing resource, and it's changeable. Avoid entering confidential information.
- Map<String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- id String
- The OCID of the resource.
- logGroup StringId 
- state String
- The log group object state.
- timeCreated String
- Time the resource was created.
- timeLast StringModified 
- Time the resource was last modified.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.