ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getLogsStreams
Explore with Pulumi AI
Provides a read-only data source to retrieve information about logs_streams. 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 logsStreams = ibm.getLogsStreams({
instanceId: ibm_resource_instance.logs_instance.guid,
region: ibm_resource_instance.logs_instance.location,
});
import pulumi
import pulumi_ibm as ibm
logs_streams = ibm.get_logs_streams(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.GetLogsStreams(ctx, &ibm.GetLogsStreamsArgs{
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 logsStreams = Ibm.GetLogsStreams.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.GetLogsStreamsArgs;
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 logsStreams = IbmFunctions.getLogsStreams(GetLogsStreamsArgs.builder()
.instanceId(ibm_resource_instance.logs_instance().guid())
.region(ibm_resource_instance.logs_instance().location())
.build());
}
}
variables:
logsStreams:
fn::invoke:
function: ibm:getLogsStreams
arguments:
instanceId: ${ibm_resource_instance.logs_instance.guid}
region: ${ibm_resource_instance.logs_instance.location}
Using getLogsStreams
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 getLogsStreams(args: GetLogsStreamsArgs, opts?: InvokeOptions): Promise<GetLogsStreamsResult>
function getLogsStreamsOutput(args: GetLogsStreamsOutputArgs, opts?: InvokeOptions): Output<GetLogsStreamsResult>
def get_logs_streams(endpoint_type: Optional[str] = None,
id: Optional[str] = None,
instance_id: Optional[str] = None,
region: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetLogsStreamsResult
def get_logs_streams_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[GetLogsStreamsResult]
func GetLogsStreams(ctx *Context, args *GetLogsStreamsArgs, opts ...InvokeOption) (*GetLogsStreamsResult, error)
func GetLogsStreamsOutput(ctx *Context, args *GetLogsStreamsOutputArgs, opts ...InvokeOption) GetLogsStreamsResultOutput
> Note: This function is named GetLogsStreams
in the Go SDK.
public static class GetLogsStreams
{
public static Task<GetLogsStreamsResult> InvokeAsync(GetLogsStreamsArgs args, InvokeOptions? opts = null)
public static Output<GetLogsStreamsResult> Invoke(GetLogsStreamsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetLogsStreamsResult> getLogsStreams(GetLogsStreamsArgs args, InvokeOptions options)
public static Output<GetLogsStreamsResult> getLogsStreams(GetLogsStreamsArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getLogsStreams:getLogsStreams
arguments:
# arguments dictionary
The following arguments are supported:
- Instance
Id string - Cloud Logs Instance GUID.
- Endpoint
Type string - Id string
- (Integer) The ID of the Event stream.
- 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 ID of the Event stream.
- 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 ID of the Event stream.
- 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 ID of the Event stream.
- 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 ID of the Event stream.
- 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 ID of the Event stream.
- Constraints: The maximum value is
4294967295
. The minimum value is0
.
- Constraints: The maximum value is
- region String
- Cloud Logs Instance Region.
getLogsStreams Result
The following output properties are available:
- Id string
- (Integer) The ID of the Event stream.
- Constraints: The maximum value is
4294967295
. The minimum value is0
.
- Constraints: The maximum value is
- Instance
Id string - Region string
- Streams
List<Get
Logs Streams Stream> - (List) Collection of Event Streams.
- Constraints: The maximum length is
4096
items. The minimum length is0
items. Nested schema for streams:
- Constraints: The maximum length is
- Endpoint
Type string
- Id string
- (Integer) The ID of the Event stream.
- Constraints: The maximum value is
4294967295
. The minimum value is0
.
- Constraints: The maximum value is
- Instance
Id string - Region string
- Streams
[]Get
Logs Streams Stream - (List) Collection of Event Streams.
- Constraints: The maximum length is
4096
items. The minimum length is0
items. Nested schema for streams:
- Constraints: The maximum length is
- Endpoint
Type string
- id String
- (Integer) The ID of the Event stream.
- Constraints: The maximum value is
4294967295
. The minimum value is0
.
- Constraints: The maximum value is
- instance
Id String - region String
- streams
List<Get
Logs Streams Stream> - (List) Collection of Event Streams.
- Constraints: The maximum length is
4096
items. The minimum length is0
items. Nested schema for streams:
- Constraints: The maximum length is
- endpoint
Type String
- id string
- (Integer) The ID of the Event stream.
- Constraints: The maximum value is
4294967295
. The minimum value is0
.
- Constraints: The maximum value is
- instance
Id string - region string
- streams
Get
Logs Streams Stream[] - (List) Collection of Event Streams.
- Constraints: The maximum length is
4096
items. The minimum length is0
items. Nested schema for streams:
- Constraints: The maximum length is
- endpoint
Type string
- id str
- (Integer) The ID of the Event stream.
- Constraints: The maximum value is
4294967295
. The minimum value is0
.
- Constraints: The maximum value is
- instance_
id str - region str
- streams
Sequence[Get
Logs Streams Stream] - (List) Collection of Event Streams.
- Constraints: The maximum length is
4096
items. The minimum length is0
items. Nested schema for streams:
- Constraints: The maximum length is
- endpoint_
type str
- id String
- (Integer) The ID of the Event stream.
- Constraints: The maximum value is
4294967295
. The minimum value is0
.
- Constraints: The maximum value is
- instance
Id String - region String
- streams List<Property Map>
- (List) Collection of Event Streams.
- Constraints: The maximum length is
4096
items. The minimum length is0
items. Nested schema for streams:
- Constraints: The maximum length is
- endpoint
Type String
Supporting Types
GetLogsStreamsStream
- Compression
Type string - (String) The compression type of the stream.
- Constraints: Allowable values are:
unspecified
,gzip
.
- Constraints: Allowable values are:
- Created
At string - (String) The creation time of the Event stream.
- Dpxl
Expression string - (String) The DPXL expression of the Event stream.
- 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
- Ibm
Event List<GetStreams Logs Streams Stream Ibm Event Stream> - (List) Configuration for IBM Event Streams. Nested schema for ibm_event_streams:
- Id double
- (Integer) The ID of the Event stream.
- Constraints: The maximum value is
4294967295
. The minimum value is0
.
- Constraints: The maximum value is
- Is
Active bool - (Boolean) Whether the Event stream is active.
- Name string
- (String) The name of the Event stream.
- 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
- Updated
At string - (String) The update time of the Event stream.
- Compression
Type string - (String) The compression type of the stream.
- Constraints: Allowable values are:
unspecified
,gzip
.
- Constraints: Allowable values are:
- Created
At string - (String) The creation time of the Event stream.
- Dpxl
Expression string - (String) The DPXL expression of the Event stream.
- 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
- Ibm
Event []GetStreams Logs Streams Stream Ibm Event Stream - (List) Configuration for IBM Event Streams. Nested schema for ibm_event_streams:
- Id float64
- (Integer) The ID of the Event stream.
- Constraints: The maximum value is
4294967295
. The minimum value is0
.
- Constraints: The maximum value is
- Is
Active bool - (Boolean) Whether the Event stream is active.
- Name string
- (String) The name of the Event stream.
- 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
- Updated
At string - (String) The update time of the Event stream.
- compression
Type String - (String) The compression type of the stream.
- Constraints: Allowable values are:
unspecified
,gzip
.
- Constraints: Allowable values are:
- created
At String - (String) The creation time of the Event stream.
- dpxl
Expression String - (String) The DPXL expression of the Event stream.
- 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
- ibm
Event List<GetStreams Logs Streams Stream Ibm Event Stream> - (List) Configuration for IBM Event Streams. Nested schema for ibm_event_streams:
- id Double
- (Integer) The ID of the Event stream.
- Constraints: The maximum value is
4294967295
. The minimum value is0
.
- Constraints: The maximum value is
- is
Active Boolean - (Boolean) Whether the Event stream is active.
- name String
- (String) The name of the Event stream.
- 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
- updated
At String - (String) The update time of the Event stream.
- compression
Type string - (String) The compression type of the stream.
- Constraints: Allowable values are:
unspecified
,gzip
.
- Constraints: Allowable values are:
- created
At string - (String) The creation time of the Event stream.
- dpxl
Expression string - (String) The DPXL expression of the Event stream.
- 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
- ibm
Event GetStreams Logs Streams Stream Ibm Event Stream[] - (List) Configuration for IBM Event Streams. Nested schema for ibm_event_streams:
- id number
- (Integer) The ID of the Event stream.
- Constraints: The maximum value is
4294967295
. The minimum value is0
.
- Constraints: The maximum value is
- is
Active boolean - (Boolean) Whether the Event stream is active.
- name string
- (String) The name of the Event stream.
- 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
- updated
At string - (String) The update time of the Event stream.
- compression_
type str - (String) The compression type of the stream.
- Constraints: Allowable values are:
unspecified
,gzip
.
- Constraints: Allowable values are:
- created_
at str - (String) The creation time of the Event stream.
- dpxl_
expression str - (String) The DPXL expression of the Event stream.
- 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
- ibm_
event_ Sequence[Getstreams Logs Streams Stream Ibm Event Stream] - (List) Configuration for IBM Event Streams. Nested schema for ibm_event_streams:
- id float
- (Integer) The ID of the Event stream.
- Constraints: The maximum value is
4294967295
. The minimum value is0
.
- Constraints: The maximum value is
- is_
active bool - (Boolean) Whether the Event stream is active.
- name str
- (String) The name of the Event stream.
- 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
- updated_
at str - (String) The update time of the Event stream.
- compression
Type String - (String) The compression type of the stream.
- Constraints: Allowable values are:
unspecified
,gzip
.
- Constraints: Allowable values are:
- created
At String - (String) The creation time of the Event stream.
- dpxl
Expression String - (String) The DPXL expression of the Event stream.
- 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
- ibm
Event List<Property Map>Streams - (List) Configuration for IBM Event Streams. Nested schema for ibm_event_streams:
- id Number
- (Integer) The ID of the Event stream.
- Constraints: The maximum value is
4294967295
. The minimum value is0
.
- Constraints: The maximum value is
- is
Active Boolean - (Boolean) Whether the Event stream is active.
- name String
- (String) The name of the Event stream.
- 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
- updated
At String - (String) The update time of the Event stream.
GetLogsStreamsStreamIbmEventStream
- Brokers string
- (String) The brokers of the IBM Event Streams.
- 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
- Topic string
- (String) The topic of the IBM Event Streams.
- 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
- Brokers string
- (String) The brokers of the IBM Event Streams.
- 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
- Topic string
- (String) The topic of the IBM Event Streams.
- 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
- brokers String
- (String) The brokers of the IBM Event Streams.
- 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
- topic String
- (String) The topic of the IBM Event Streams.
- 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
- brokers string
- (String) The brokers of the IBM Event Streams.
- 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
- topic string
- (String) The topic of the IBM Event Streams.
- 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
- brokers str
- (String) The brokers of the IBM Event Streams.
- 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
- topic str
- (String) The topic of the IBM Event Streams.
- 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
- brokers String
- (String) The brokers of the IBM Event Streams.
- 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
- topic String
- (String) The topic of the IBM Event Streams.
- 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
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.