ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getLogsStream
Explore with Pulumi AI
Provides a read-only data source to retrieve information about a logs_stream. 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 logsStream = ibm.getLogsStream({
instanceId: ibm_logs_stream.logs_stream_instance.instance_id,
region: ibm_logs_stream.logs_stream_instance.region,
logsStreamsId: ibm_logs_stream.logs_stream_instance.streams_id,
});
import pulumi
import pulumi_ibm as ibm
logs_stream = ibm.get_logs_stream(instance_id=ibm_logs_stream["logs_stream_instance"]["instance_id"],
region=ibm_logs_stream["logs_stream_instance"]["region"],
logs_streams_id=ibm_logs_stream["logs_stream_instance"]["streams_id"])
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.LookupLogsStream(ctx, &ibm.LookupLogsStreamArgs{
InstanceId: ibm_logs_stream.Logs_stream_instance.Instance_id,
Region: pulumi.StringRef(ibm_logs_stream.Logs_stream_instance.Region),
LogsStreamsId: ibm_logs_stream.Logs_stream_instance.Streams_id,
}, 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 logsStream = Ibm.GetLogsStream.Invoke(new()
{
InstanceId = ibm_logs_stream.Logs_stream_instance.Instance_id,
Region = ibm_logs_stream.Logs_stream_instance.Region,
LogsStreamsId = ibm_logs_stream.Logs_stream_instance.Streams_id,
});
});
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.GetLogsStreamArgs;
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 logsStream = IbmFunctions.getLogsStream(GetLogsStreamArgs.builder()
.instanceId(ibm_logs_stream.logs_stream_instance().instance_id())
.region(ibm_logs_stream.logs_stream_instance().region())
.logsStreamsId(ibm_logs_stream.logs_stream_instance().streams_id())
.build());
}
}
variables:
logsStream:
fn::invoke:
function: ibm:getLogsStream
arguments:
instanceId: ${ibm_logs_stream.logs_stream_instance.instance_id}
region: ${ibm_logs_stream.logs_stream_instance.region}
logsStreamsId: ${ibm_logs_stream.logs_stream_instance.streams_id}
Using getLogsStream
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 getLogsStream(args: GetLogsStreamArgs, opts?: InvokeOptions): Promise<GetLogsStreamResult>
function getLogsStreamOutput(args: GetLogsStreamOutputArgs, opts?: InvokeOptions): Output<GetLogsStreamResult>
def get_logs_stream(endpoint_type: Optional[str] = None,
id: Optional[str] = None,
instance_id: Optional[str] = None,
logs_streams_id: Optional[str] = None,
region: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetLogsStreamResult
def get_logs_stream_output(endpoint_type: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
instance_id: Optional[pulumi.Input[str]] = None,
logs_streams_id: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetLogsStreamResult]
func LookupLogsStream(ctx *Context, args *LookupLogsStreamArgs, opts ...InvokeOption) (*LookupLogsStreamResult, error)
func LookupLogsStreamOutput(ctx *Context, args *LookupLogsStreamOutputArgs, opts ...InvokeOption) LookupLogsStreamResultOutput
> Note: This function is named LookupLogsStream
in the Go SDK.
public static class GetLogsStream
{
public static Task<GetLogsStreamResult> InvokeAsync(GetLogsStreamArgs args, InvokeOptions? opts = null)
public static Output<GetLogsStreamResult> Invoke(GetLogsStreamInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetLogsStreamResult> getLogsStream(GetLogsStreamArgs args, InvokeOptions options)
public static Output<GetLogsStreamResult> getLogsStream(GetLogsStreamArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getLogsStream:getLogsStream
arguments:
# arguments dictionary
The following arguments are supported:
- Instance
Id string - Cloud Logs Instance GUID.
- Logs
Streams stringId - Streams ID.
- Endpoint
Type string - Id string
- The unique identifier of the logs_stream.
- Region string
- Cloud Logs Instance Region.
- Instance
Id string - Cloud Logs Instance GUID.
- Logs
Streams stringId - Streams ID.
- Endpoint
Type string - Id string
- The unique identifier of the logs_stream.
- Region string
- Cloud Logs Instance Region.
- instance
Id String - Cloud Logs Instance GUID.
- logs
Streams StringId - Streams ID.
- endpoint
Type String - id String
- The unique identifier of the logs_stream.
- region String
- Cloud Logs Instance Region.
- instance
Id string - Cloud Logs Instance GUID.
- logs
Streams stringId - Streams ID.
- endpoint
Type string - id string
- The unique identifier of the logs_stream.
- region string
- Cloud Logs Instance Region.
- instance_
id str - Cloud Logs Instance GUID.
- logs_
streams_ strid - Streams ID.
- endpoint_
type str - id str
- The unique identifier of the logs_stream.
- region str
- Cloud Logs Instance Region.
- instance
Id String - Cloud Logs Instance GUID.
- logs
Streams StringId - Streams ID.
- endpoint
Type String - id String
- The unique identifier of the logs_stream.
- region String
- Cloud Logs Instance Region.
getLogsStream Result
The following output properties are available:
- 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 Stream Ibm Event Stream> - (List) Configuration for IBM Event Streams. Nested schema for ibm_event_streams:
- Id string
- The unique identifier of the logs_stream.
- Instance
Id string - Is
Active bool - (Boolean) Whether the Event stream is active.
- Logs
Streams stringId - 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
- Region string
- Updated
At string - (String) The update time of the Event stream.
- Endpoint
Type string
- 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 Stream Ibm Event Stream - (List) Configuration for IBM Event Streams. Nested schema for ibm_event_streams:
- Id string
- The unique identifier of the logs_stream.
- Instance
Id string - Is
Active bool - (Boolean) Whether the Event stream is active.
- Logs
Streams stringId - 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
- Region string
- Updated
At string - (String) The update time of the Event stream.
- Endpoint
Type string
- 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 Stream Ibm Event Stream> - (List) Configuration for IBM Event Streams. Nested schema for ibm_event_streams:
- id String
- The unique identifier of the logs_stream.
- instance
Id String - is
Active Boolean - (Boolean) Whether the Event stream is active.
- logs
Streams StringId - 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
- region String
- updated
At String - (String) The update time of the Event stream.
- endpoint
Type String
- 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 Stream Ibm Event Stream[] - (List) Configuration for IBM Event Streams. Nested schema for ibm_event_streams:
- id string
- The unique identifier of the logs_stream.
- instance
Id string - is
Active boolean - (Boolean) Whether the Event stream is active.
- logs
Streams stringId - 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
- region string
- updated
At string - (String) The update time of the Event stream.
- endpoint
Type string
- 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 Stream Ibm Event Stream] - (List) Configuration for IBM Event Streams. Nested schema for ibm_event_streams:
- id str
- The unique identifier of the logs_stream.
- instance_
id str - is_
active bool - (Boolean) Whether the Event stream is active.
- logs_
streams_ strid - 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
- region str
- updated_
at str - (String) The update time of the Event stream.
- endpoint_
type str
- 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 String
- The unique identifier of the logs_stream.
- instance
Id String - is
Active Boolean - (Boolean) Whether the Event stream is active.
- logs
Streams StringId - 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
- region String
- updated
At String - (String) The update time of the Event stream.
- endpoint
Type String
Supporting Types
GetLogsStreamIbmEventStream
- 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.