ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getLogsEnrichments
Explore with Pulumi AI
Provides a read-only data source to retrieve information about logs_enrichments. You can then reference the fields of the data source in other resources within the same configuration by using interpolation syntax.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const logsEnrichments = ibm.getLogsEnrichments({
instanceId: ibm_resource_instance.logs_instance.guid,
region: ibm_resource_instance.logs_instance.location,
});
import pulumi
import pulumi_ibm as ibm
logs_enrichments = ibm.get_logs_enrichments(instance_id=ibm_resource_instance["logs_instance"]["guid"],
region=ibm_resource_instance["logs_instance"]["location"])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ibm.GetLogsEnrichments(ctx, &ibm.GetLogsEnrichmentsArgs{
InstanceId: ibm_resource_instance.Logs_instance.Guid,
Region: pulumi.StringRef(ibm_resource_instance.Logs_instance.Location),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var logsEnrichments = Ibm.GetLogsEnrichments.Invoke(new()
{
InstanceId = ibm_resource_instance.Logs_instance.Guid,
Region = ibm_resource_instance.Logs_instance.Location,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IbmFunctions;
import com.pulumi.ibm.inputs.GetLogsEnrichmentsArgs;
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 logsEnrichments = IbmFunctions.getLogsEnrichments(GetLogsEnrichmentsArgs.builder()
.instanceId(ibm_resource_instance.logs_instance().guid())
.region(ibm_resource_instance.logs_instance().location())
.build());
}
}
variables:
logsEnrichments:
fn::invoke:
function: ibm:getLogsEnrichments
arguments:
instanceId: ${ibm_resource_instance.logs_instance.guid}
region: ${ibm_resource_instance.logs_instance.location}
Using getLogsEnrichments
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 getLogsEnrichments(args: GetLogsEnrichmentsArgs, opts?: InvokeOptions): Promise<GetLogsEnrichmentsResult>
function getLogsEnrichmentsOutput(args: GetLogsEnrichmentsOutputArgs, opts?: InvokeOptions): Output<GetLogsEnrichmentsResult>
def get_logs_enrichments(endpoint_type: Optional[str] = None,
id: Optional[str] = None,
instance_id: Optional[str] = None,
region: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetLogsEnrichmentsResult
def get_logs_enrichments_output(endpoint_type: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
instance_id: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetLogsEnrichmentsResult]
func GetLogsEnrichments(ctx *Context, args *GetLogsEnrichmentsArgs, opts ...InvokeOption) (*GetLogsEnrichmentsResult, error)
func GetLogsEnrichmentsOutput(ctx *Context, args *GetLogsEnrichmentsOutputArgs, opts ...InvokeOption) GetLogsEnrichmentsResultOutput
> Note: This function is named GetLogsEnrichments
in the Go SDK.
public static class GetLogsEnrichments
{
public static Task<GetLogsEnrichmentsResult> InvokeAsync(GetLogsEnrichmentsArgs args, InvokeOptions? opts = null)
public static Output<GetLogsEnrichmentsResult> Invoke(GetLogsEnrichmentsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetLogsEnrichmentsResult> getLogsEnrichments(GetLogsEnrichmentsArgs args, InvokeOptions options)
public static Output<GetLogsEnrichmentsResult> getLogsEnrichments(GetLogsEnrichmentsArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getLogsEnrichments:getLogsEnrichments
arguments:
# arguments dictionary
The following arguments are supported:
- Instance
Id string - Cloud Logs Instance GUID.
- Endpoint
Type string - Id string
- (Integer) The enrichment ID.
- Constraints: The maximum value is
4294967295
. The minimum value is0
.
- Constraints: The maximum value is
- Region string
- Cloud Logs Instance Region.
- Instance
Id string - Cloud Logs Instance GUID.
- Endpoint
Type string - Id string
- (Integer) The enrichment ID.
- Constraints: The maximum value is
4294967295
. The minimum value is0
.
- Constraints: The maximum value is
- Region string
- Cloud Logs Instance Region.
- instance
Id String - Cloud Logs Instance GUID.
- endpoint
Type String - id String
- (Integer) The enrichment ID.
- Constraints: The maximum value is
4294967295
. The minimum value is0
.
- Constraints: The maximum value is
- region String
- Cloud Logs Instance Region.
- instance
Id string - Cloud Logs Instance GUID.
- endpoint
Type string - id string
- (Integer) The enrichment ID.
- Constraints: The maximum value is
4294967295
. The minimum value is0
.
- Constraints: The maximum value is
- region string
- Cloud Logs Instance Region.
- instance_
id str - Cloud Logs Instance GUID.
- endpoint_
type str - id str
- (Integer) The enrichment ID.
- Constraints: The maximum value is
4294967295
. The minimum value is0
.
- Constraints: The maximum value is
- region str
- Cloud Logs Instance Region.
- instance
Id String - Cloud Logs Instance GUID.
- endpoint
Type String - id String
- (Integer) The enrichment ID.
- Constraints: The maximum value is
4294967295
. The minimum value is0
.
- Constraints: The maximum value is
- region String
- Cloud Logs Instance Region.
getLogsEnrichments Result
The following output properties are available:
- Enrichments
List<Get
Logs Enrichments Enrichment> - (List) The enrichments.
- Constraints: The maximum length is
4096
items. The minimum length is0
items. Nested schema for enrichments:
- Constraints: The maximum length is
- Id string
- (Integer) The enrichment ID.
- Constraints: The maximum value is
4294967295
. The minimum value is0
.
- Constraints: The maximum value is
- Instance
Id string - Region string
- Endpoint
Type string
- Enrichments
[]Get
Logs Enrichments Enrichment - (List) The enrichments.
- Constraints: The maximum length is
4096
items. The minimum length is0
items. Nested schema for enrichments:
- Constraints: The maximum length is
- Id string
- (Integer) The enrichment ID.
- Constraints: The maximum value is
4294967295
. The minimum value is0
.
- Constraints: The maximum value is
- Instance
Id string - Region string
- Endpoint
Type string
- enrichments
List<Get
Logs Enrichments Enrichment> - (List) The enrichments.
- Constraints: The maximum length is
4096
items. The minimum length is0
items. Nested schema for enrichments:
- Constraints: The maximum length is
- id String
- (Integer) The enrichment ID.
- Constraints: The maximum value is
4294967295
. The minimum value is0
.
- Constraints: The maximum value is
- instance
Id String - region String
- endpoint
Type String
- enrichments
Get
Logs Enrichments Enrichment[] - (List) The enrichments.
- Constraints: The maximum length is
4096
items. The minimum length is0
items. Nested schema for enrichments:
- Constraints: The maximum length is
- id string
- (Integer) The enrichment ID.
- Constraints: The maximum value is
4294967295
. The minimum value is0
.
- Constraints: The maximum value is
- instance
Id string - region string
- endpoint
Type string
- enrichments
Sequence[Get
Logs Enrichments Enrichment] - (List) The enrichments.
- Constraints: The maximum length is
4096
items. The minimum length is0
items. Nested schema for enrichments:
- Constraints: The maximum length is
- id str
- (Integer) The enrichment ID.
- Constraints: The maximum value is
4294967295
. The minimum value is0
.
- Constraints: The maximum value is
- instance_
id str - region str
- endpoint_
type str
- enrichments List<Property Map>
- (List) The enrichments.
- Constraints: The maximum length is
4096
items. The minimum length is0
items. Nested schema for enrichments:
- Constraints: The maximum length is
- id String
- (Integer) The enrichment ID.
- Constraints: The maximum value is
4294967295
. The minimum value is0
.
- Constraints: The maximum value is
- instance
Id String - region String
- endpoint
Type String
Supporting Types
GetLogsEnrichmentsEnrichment
- Enrichment
Types List<GetLogs Enrichments Enrichment Enrichment Type> - (List) The enrichment type. Nested schema for enrichment_type:
- Field
Name string - (String) The enrichment field name.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$
.
- Constraints: The maximum length is
- Id double
- (Integer) The enrichment ID.
- Constraints: The maximum value is
4294967295
. The minimum value is0
.
- Constraints: The maximum value is
- Enrichment
Types []GetLogs Enrichments Enrichment Enrichment Type - (List) The enrichment type. Nested schema for enrichment_type:
- Field
Name string - (String) The enrichment field name.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$
.
- Constraints: The maximum length is
- Id float64
- (Integer) The enrichment ID.
- Constraints: The maximum value is
4294967295
. The minimum value is0
.
- Constraints: The maximum value is
- enrichment
Types List<GetLogs Enrichments Enrichment Enrichment Type> - (List) The enrichment type. Nested schema for enrichment_type:
- field
Name String - (String) The enrichment field name.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$
.
- Constraints: The maximum length is
- id Double
- (Integer) The enrichment ID.
- Constraints: The maximum value is
4294967295
. The minimum value is0
.
- Constraints: The maximum value is
- enrichment
Types GetLogs Enrichments Enrichment Enrichment Type[] - (List) The enrichment type. Nested schema for enrichment_type:
- field
Name string - (String) The enrichment field name.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$
.
- Constraints: The maximum length is
- id number
- (Integer) The enrichment ID.
- Constraints: The maximum value is
4294967295
. The minimum value is0
.
- Constraints: The maximum value is
- enrichment_
types Sequence[GetLogs Enrichments Enrichment Enrichment Type] - (List) The enrichment type. Nested schema for enrichment_type:
- field_
name str - (String) The enrichment field name.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$
.
- Constraints: The maximum length is
- id float
- (Integer) The enrichment ID.
- Constraints: The maximum value is
4294967295
. The minimum value is0
.
- Constraints: The maximum value is
- enrichment
Types List<Property Map> - (List) The enrichment type. Nested schema for enrichment_type:
- field
Name String - (String) The enrichment field name.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$
.
- Constraints: The maximum length is
- id Number
- (Integer) The enrichment ID.
- Constraints: The maximum value is
4294967295
. The minimum value is0
.
- Constraints: The maximum value is
GetLogsEnrichmentsEnrichmentEnrichmentType
- Custom
Enrichments List<GetLogs Enrichments Enrichment Enrichment Type Custom Enrichment> - (List) The custom enrichment. Nested schema for custom_enrichment:
- Geo
Ips List<GetLogs Enrichments Enrichment Enrichment Type Geo Ip> - (List) The geo ip enrichment. Nested schema for geo_ip:
- Suspicious
Ips List<GetLogs Enrichments Enrichment Enrichment Type Suspicious Ip> - (List) The suspicious ip enrichment. Nested schema for suspicious_ip:
- Custom
Enrichments []GetLogs Enrichments Enrichment Enrichment Type Custom Enrichment - (List) The custom enrichment. Nested schema for custom_enrichment:
- Geo
Ips []GetLogs Enrichments Enrichment Enrichment Type Geo Ip - (List) The geo ip enrichment. Nested schema for geo_ip:
- Suspicious
Ips []GetLogs Enrichments Enrichment Enrichment Type Suspicious Ip - (List) The suspicious ip enrichment. Nested schema for suspicious_ip:
- custom
Enrichments List<GetLogs Enrichments Enrichment Enrichment Type Custom Enrichment> - (List) The custom enrichment. Nested schema for custom_enrichment:
- geo
Ips List<GetLogs Enrichments Enrichment Enrichment Type Geo Ip> - (List) The geo ip enrichment. Nested schema for geo_ip:
- suspicious
Ips List<GetLogs Enrichments Enrichment Enrichment Type Suspicious Ip> - (List) The suspicious ip enrichment. Nested schema for suspicious_ip:
- custom
Enrichments GetLogs Enrichments Enrichment Enrichment Type Custom Enrichment[] - (List) The custom enrichment. Nested schema for custom_enrichment:
- geo
Ips GetLogs Enrichments Enrichment Enrichment Type Geo Ip[] - (List) The geo ip enrichment. Nested schema for geo_ip:
- suspicious
Ips GetLogs Enrichments Enrichment Enrichment Type Suspicious Ip[] - (List) The suspicious ip enrichment. Nested schema for suspicious_ip:
- custom_
enrichments Sequence[GetLogs Enrichments Enrichment Enrichment Type Custom Enrichment] - (List) The custom enrichment. Nested schema for custom_enrichment:
- geo_
ips Sequence[GetLogs Enrichments Enrichment Enrichment Type Geo Ip] - (List) The geo ip enrichment. Nested schema for geo_ip:
- suspicious_
ips Sequence[GetLogs Enrichments Enrichment Enrichment Type Suspicious Ip] - (List) The suspicious ip enrichment. Nested schema for suspicious_ip:
- custom
Enrichments List<Property Map> - (List) The custom enrichment. Nested schema for custom_enrichment:
- geo
Ips List<Property Map> - (List) The geo ip enrichment. Nested schema for geo_ip:
- suspicious
Ips List<Property Map> - (List) The suspicious ip enrichment. Nested schema for suspicious_ip:
GetLogsEnrichmentsEnrichmentEnrichmentTypeCustomEnrichment
- Id double
- (Integer) The enrichment ID.
- Constraints: The maximum value is
4294967295
. The minimum value is0
.
- Constraints: The maximum value is
- Id float64
- (Integer) The enrichment ID.
- Constraints: The maximum value is
4294967295
. The minimum value is0
.
- Constraints: The maximum value is
- id Double
- (Integer) The enrichment ID.
- Constraints: The maximum value is
4294967295
. The minimum value is0
.
- Constraints: The maximum value is
- id number
- (Integer) The enrichment ID.
- Constraints: The maximum value is
4294967295
. The minimum value is0
.
- Constraints: The maximum value is
- id float
- (Integer) The enrichment ID.
- Constraints: The maximum value is
4294967295
. The minimum value is0
.
- Constraints: The maximum value is
- id Number
- (Integer) The enrichment ID.
- Constraints: The maximum value is
4294967295
. The minimum value is0
.
- Constraints: The maximum value is
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.