1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. LogAnalytics
  5. getLogAnalyticsLogGroup
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.LogAnalytics.getLogAnalyticsLogGroup

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

    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 GetLogAnalyticsLogGroup(ctx *Context, args *GetLogAnalyticsLogGroupArgs, opts ...InvokeOption) (*GetLogAnalyticsLogGroupResult, error)
    func GetLogAnalyticsLogGroupOutput(ctx *Context, args *GetLogAnalyticsLogGroupOutputArgs, opts ...InvokeOption) GetLogAnalyticsLogGroupResultOutput

    > Note: This function is named GetLogAnalyticsLogGroup 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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:LogAnalytics/getLogAnalyticsLogGroup:getLogAnalyticsLogGroup
      arguments:
        # arguments dictionary

    The following arguments are supported:

    LogAnalyticsLogGroupId string
    unique logAnalytics log group identifier
    Namespace string
    The Logging Analytics namespace used for the request.
    LogAnalyticsLogGroupId string
    unique logAnalytics log group identifier
    Namespace string
    The Logging Analytics namespace used for the request.
    logAnalyticsLogGroupId String
    unique logAnalytics log group identifier
    namespace String
    The Logging Analytics namespace used for the request.
    logAnalyticsLogGroupId string
    unique logAnalytics log group identifier
    namespace string
    The Logging Analytics namespace used for the request.
    log_analytics_log_group_id str
    unique logAnalytics log group identifier
    namespace str
    The Logging Analytics namespace used for the request.
    logAnalyticsLogGroupId String
    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).
    DefinedTags 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.
    FreeformTags 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.
    LogAnalyticsLogGroupId string
    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).
    DefinedTags 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.
    FreeformTags 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.
    LogAnalyticsLogGroupId string
    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).
    definedTags 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.
    freeformTags 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.
    logAnalyticsLogGroupId String
    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).
    definedTags {[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.
    freeformTags {[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.
    logAnalyticsLogGroupId string
    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).
    defined_tags 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.
    freeform_tags 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_log_group_id str
    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).
    definedTags 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.
    freeformTags 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.
    logAnalyticsLogGroupId String
    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 oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi