Oracle Cloud Infrastructure
getLog
This data source provides details about a specific Log resource in Oracle Cloud Infrastructure Logging service.
Gets the log object configuration for the log object OCID.
Example Usage
using Pulumi;
using Oci = Pulumi.Oci;
class MyStack : Stack
{
public MyStack()
{
var testLog = Output.Create(Oci.Logging.GetLog.InvokeAsync(new Oci.Logging.GetLogArgs
{
LogGroupId = oci_logging_log_group.Test_log_group.Id,
LogId = oci_logging_log.Test_log.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.GetLog(ctx, &logging.GetLogArgs{
LogGroupId: oci_logging_log_group.Test_log_group.Id,
LogId: oci_logging_log.Test_log.Id,
}, nil)
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_oci as oci
test_log = oci.Logging.get_log(log_group_id=oci_logging_log_group["test_log_group"]["id"],
log_id=oci_logging_log["test_log"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testLog = oci.Logging.getLog({
logGroupId: oci_logging_log_group.test_log_group.id,
logId: oci_logging_log.test_log.id,
});
Coming soon!
Using getLog
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 getLog(args: GetLogArgs, opts?: InvokeOptions): Promise<GetLogResult>
function getLogOutput(args: GetLogOutputArgs, opts?: InvokeOptions): Output<GetLogResult>
def get_log(log_group_id: Optional[str] = None,
log_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetLogResult
def get_log_output(log_group_id: Optional[pulumi.Input[str]] = None,
log_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetLogResult]
func GetLog(ctx *Context, args *GetLogArgs, opts ...InvokeOption) (*GetLogResult, error)
func GetLogOutput(ctx *Context, args *GetLogOutputArgs, opts ...InvokeOption) GetLogResultOutput
> Note: This function is named GetLog
in the Go SDK.
public static class GetLog
{
public static Task<GetLogResult> InvokeAsync(GetLogArgs args, InvokeOptions? opts = null)
public static Output<GetLogResult> Invoke(GetLogInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetLogResult> getLog(GetLogArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
Function: oci:Logging/getLog:getLog
Arguments:
# Arguments dictionary
The following arguments are supported:
- Log
Group stringId OCID of a log group to work with.
- Log
Id string OCID of a log to work with.
- Log
Group stringId OCID of a log group to work with.
- Log
Id string OCID of a log to work with.
- log
Group StringId OCID of a log group to work with.
- log
Id String OCID of a log to work with.
- log
Group stringId OCID of a log group to work with.
- log
Id string OCID of a log to work with.
- log_
group_ strid OCID of a log group to work with.
- log_
id str OCID of a log to work with.
- log
Group StringId OCID of a log group to work with.
- log
Id String OCID of a log to work with.
getLog Result
The following output properties are available:
- Compartment
Id string The OCID of the compartment that the resource belongs to.
- Configurations
List<Get
Log Configuration> Log object configuration.
- 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"}
- 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.
- Is
Enabled bool Whether or not this resource is currently enabled.
- Log
Group stringId Log group OCID.
- Log
Id string - Log
Type string The logType that the log object is for, whether custom or service.
- Retention
Duration int Log retention duration in 30-day increments (30, 60, 90 and so on).
- State string
The pipeline state.
- Tenancy
Id string The OCID of the tenancy.
- 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.
- Configurations
[]Get
Log Configuration Log object configuration.
- 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"}
- 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.
- Is
Enabled bool Whether or not this resource is currently enabled.
- Log
Group stringId Log group OCID.
- Log
Id string - Log
Type string The logType that the log object is for, whether custom or service.
- Retention
Duration int Log retention duration in 30-day increments (30, 60, 90 and so on).
- State string
The pipeline state.
- Tenancy
Id string The OCID of the tenancy.
- 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.
- configurations
List<Get
Log Configuration> Log object configuration.
- 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"}
- 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.
- is
Enabled Boolean Whether or not this resource is currently enabled.
- log
Group StringId Log group OCID.
- log
Id String - log
Type String The logType that the log object is for, whether custom or service.
- retention
Duration Integer Log retention duration in 30-day increments (30, 60, 90 and so on).
- state String
The pipeline state.
- tenancy
Id String The OCID of the tenancy.
- 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.
- configurations
Get
Log Configuration[] Log object configuration.
- {[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"}
- 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.
- is
Enabled boolean Whether or not this resource is currently enabled.
- log
Group stringId Log group OCID.
- log
Id string - log
Type string The logType that the log object is for, whether custom or service.
- retention
Duration number Log retention duration in 30-day increments (30, 60, 90 and so on).
- state string
The pipeline state.
- tenancy
Id string The OCID of the tenancy.
- 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.
- configurations
Get
Log Configuration] Log object configuration.
- 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"}
- 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.
- is_
enabled bool Whether or not this resource is currently enabled.
- log_
group_ strid Log group OCID.
- log_
id str - log_
type str The logType that the log object is for, whether custom or service.
- retention_
duration int Log retention duration in 30-day increments (30, 60, 90 and so on).
- state str
The pipeline state.
- tenancy_
id str The OCID of the tenancy.
- 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.
- configurations List<Property Map>
Log object configuration.
- 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"}
- 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.
- is
Enabled Boolean Whether or not this resource is currently enabled.
- log
Group StringId Log group OCID.
- log
Id String - log
Type String The logType that the log object is for, whether custom or service.
- retention
Duration Number Log retention duration in 30-day increments (30, 60, 90 and so on).
- state String
The pipeline state.
- tenancy
Id String The OCID of the tenancy.
- time
Created String Time the resource was created.
- time
Last StringModified Time the resource was last modified.
Supporting Types
GetLogConfiguration
- Compartment
Id string The OCID of the compartment that the resource belongs to.
- Sources
List<Get
Log Configuration Source> The source the log object comes from.
- Compartment
Id string The OCID of the compartment that the resource belongs to.
- Sources
[]Get
Log Configuration Source The source the log object comes from.
- compartment
Id String The OCID of the compartment that the resource belongs to.
- sources
List<Get
Log Configuration Source> The source the log object comes from.
- compartment
Id string The OCID of the compartment that the resource belongs to.
- sources
Get
Log Configuration Source[] The source the log object comes from.
- compartment_
id str The OCID of the compartment that the resource belongs to.
- sources
Get
Log Configuration Source] The source the log object comes from.
- compartment
Id String The OCID of the compartment that the resource belongs to.
- sources List<Property Map>
The source the log object comes from.
GetLogConfigurationSource
- Category string
Log object category.
- Resource string
The unique identifier of the resource emitting the log.
- Service string
Service generating log.
- Source
Type string The log source.
- OCISERVICE: Oracle Service.
- Category string
Log object category.
- Resource string
The unique identifier of the resource emitting the log.
- Service string
Service generating log.
- Source
Type string The log source.
- OCISERVICE: Oracle Service.
- category String
Log object category.
- resource String
The unique identifier of the resource emitting the log.
- service String
Service generating log.
- source
Type String The log source.
- OCISERVICE: Oracle Service.
- category string
Log object category.
- resource string
The unique identifier of the resource emitting the log.
- service string
Service generating log.
- source
Type string The log source.
- OCISERVICE: Oracle Service.
- category str
Log object category.
- resource str
The unique identifier of the resource emitting the log.
- service str
Service generating log.
- source_
type str The log source.
- OCISERVICE: Oracle Service.
- category String
Log object category.
- resource String
The unique identifier of the resource emitting the log.
- service String
Service generating log.
- source
Type String The log source.
- OCISERVICE: Oracle Service.
Package Details
- Repository
- https://github.com/pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.