Oracle Cloud Infrastructure
getLogGroup
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
using Pulumi;
using Oci = Pulumi.Oci;
class MyStack : Stack
{
public MyStack()
{
var testLogGroup = Output.Create(Oci.Logging.GetLogGroup.InvokeAsync(new Oci.Logging.GetLogGroupArgs
{
LogGroupId = oci_logging_log_group.Test_log_group.Id,
}));
}
}
package main
import (
"github.com/pulumi/pulumi-oci/sdk/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: oci_logging_log_group.Test_log_group.Id,
}, nil)
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_oci as oci
test_log_group = oci.Logging.get_log_group(log_group_id=oci_logging_log_group["test_log_group"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testLogGroup = oci.Logging.getLogGroup({
logGroupId: oci_logging_log_group.test_log_group.id,
});
Coming soon!
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 GetLogGroup(ctx *Context, args *GetLogGroupArgs, opts ...InvokeOption) (*GetLogGroupResult, error)
func GetLogGroupOutput(ctx *Context, args *GetLogGroupOutputArgs, opts ...InvokeOption) GetLogGroupResultOutput
> Note: This function is named GetLogGroup
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)
// Output-based functions aren't available in Java yet
Fn::Invoke:
Function: oci:Logging/getLogGroup:getLogGroup
Arguments:
# Arguments dictionary
The following arguments are supported:
- Log
Group stringId OCID of a log group to work with.
- Log
Group stringId OCID of a log group to work with.
- log
Group StringId OCID of a log group to work with.
- log
Group stringId OCID of a log group to work with.
- log_
group_ strid OCID of a log group to work with.
- log
Group StringId OCID of a log group to work with.
getLogGroup Result
The following output properties are available:
- Compartment
Id string The OCID of the compartment that the resource belongs to.
- Dictionary<string, object>
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.
- Display
Name string The user-friendly display name. This must be unique within the enclosing resource, and it's changeable. Avoid entering confidential information.
- Dictionary<string, object>
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.
- Log
Group stringId - State string
The log group object state.
- Time
Created string Time the resource was created.
- Time
Last stringModified Time the resource was last modified.
- Compartment
Id string The OCID of the compartment that the resource belongs to.
- map[string]interface{}
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.
- Display
Name string The user-friendly display name. This must be unique within the enclosing resource, and it's changeable. Avoid entering confidential information.
- map[string]interface{}
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.
- Log
Group stringId - State string
The log group object state.
- Time
Created string Time the resource was created.
- Time
Last stringModified Time the resource was last modified.
- compartment
Id String The OCID of the compartment that the resource belongs to.
- Map<String,Object>
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.
- display
Name String The user-friendly display name. This must be unique within the enclosing resource, and it's changeable. Avoid entering confidential information.
- Map<String,Object>
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.
- log
Group StringId - state String
The log group object state.
- time
Created String Time the resource was created.
- time
Last StringModified Time the resource was last modified.
- compartment
Id string The OCID of the compartment that the resource belongs to.
- {[key: string]: any}
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.
- display
Name string The user-friendly display name. This must be unique within the enclosing resource, and it's changeable. Avoid entering confidential information.
- {[key: string]: any}
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.
- log
Group stringId - state string
The log group object state.
- time
Created string Time the resource was created.
- time
Last stringModified Time the resource was last modified.
- compartment_
id str The OCID of the compartment that the resource belongs to.
- Mapping[str, Any]
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, Any]
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.
- compartment
Id String The OCID of the compartment that the resource belongs to.
- Map<Any>
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.
- display
Name String The user-friendly display name. This must be unique within the enclosing resource, and it's changeable. Avoid entering confidential information.
- Map<Any>
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.
- log
Group StringId - state String
The log group object state.
- time
Created String Time the resource was created.
- time
Last StringModified Time the resource was last modified.
Package Details
- Repository
- https://github.com/pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.