Viewing docs for ibm 1.89.0
published on Monday, Mar 2, 2026 by ibm-cloud
published on Monday, Mar 2, 2026 by ibm-cloud
Viewing docs for ibm 1.89.0
published on Monday, Mar 2, 2026 by ibm-cloud
published on Monday, Mar 2, 2026 by ibm-cloud
Provides a read-only data source to retrieve information about logs_router_targets. 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 logsRouterTargets = ibm.getLogsRouterTargets({
name: logsRouterTargetInstance.name,
});
import pulumi
import pulumi_ibm as ibm
logs_router_targets = ibm.get_logs_router_targets(name=logs_router_target_instance["name"])
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.GetLogsRouterTargets(ctx, &ibm.GetLogsRouterTargetsArgs{
Name: pulumi.StringRef(logsRouterTargetInstance.Name),
}, 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 logsRouterTargets = Ibm.GetLogsRouterTargets.Invoke(new()
{
Name = logsRouterTargetInstance.Name,
});
});
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.GetLogsRouterTargetsArgs;
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 logsRouterTargets = IbmFunctions.getLogsRouterTargets(GetLogsRouterTargetsArgs.builder()
.name(logsRouterTargetInstance.name())
.build());
}
}
variables:
logsRouterTargets:
fn::invoke:
function: ibm:getLogsRouterTargets
arguments:
name: ${logsRouterTargetInstance.name}
Using getLogsRouterTargets
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 getLogsRouterTargets(args: GetLogsRouterTargetsArgs, opts?: InvokeOptions): Promise<GetLogsRouterTargetsResult>
function getLogsRouterTargetsOutput(args: GetLogsRouterTargetsOutputArgs, opts?: InvokeOptions): Output<GetLogsRouterTargetsResult>def get_logs_router_targets(id: Optional[str] = None,
name: Optional[str] = None,
region: Optional[str] = None,
tenant_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetLogsRouterTargetsResult
def get_logs_router_targets_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
tenant_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetLogsRouterTargetsResult]func GetLogsRouterTargets(ctx *Context, args *GetLogsRouterTargetsArgs, opts ...InvokeOption) (*GetLogsRouterTargetsResult, error)
func GetLogsRouterTargetsOutput(ctx *Context, args *GetLogsRouterTargetsOutputArgs, opts ...InvokeOption) GetLogsRouterTargetsResultOutput> Note: This function is named GetLogsRouterTargets in the Go SDK.
public static class GetLogsRouterTargets
{
public static Task<GetLogsRouterTargetsResult> InvokeAsync(GetLogsRouterTargetsArgs args, InvokeOptions? opts = null)
public static Output<GetLogsRouterTargetsResult> Invoke(GetLogsRouterTargetsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetLogsRouterTargetsResult> getLogsRouterTargets(GetLogsRouterTargetsArgs args, InvokeOptions options)
public static Output<GetLogsRouterTargetsResult> getLogsRouterTargets(GetLogsRouterTargetsArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getLogsRouterTargets:getLogsRouterTargets
arguments:
# arguments dictionaryThe following arguments are supported:
- Id string
- (String) The UUID of the target resource.
- Constraints: The maximum length is
1028characters. The minimum length is24characters.
- Constraints: The maximum length is
- Name string
- The name of the target resource.
- Constraints: The maximum length is
1000characters. The minimum length is1character.
- Constraints: The maximum length is
- Region string
- (String) Include this optional field if you used it to create a target in a different region other than the one you are connected.
- Constraints: The maximum length is
256characters. The minimum length is3characters.
- Constraints: The maximum length is
- Tenant
Id string
- Id string
- (String) The UUID of the target resource.
- Constraints: The maximum length is
1028characters. The minimum length is24characters.
- Constraints: The maximum length is
- Name string
- The name of the target resource.
- Constraints: The maximum length is
1000characters. The minimum length is1character.
- Constraints: The maximum length is
- Region string
- (String) Include this optional field if you used it to create a target in a different region other than the one you are connected.
- Constraints: The maximum length is
256characters. The minimum length is3characters.
- Constraints: The maximum length is
- Tenant
Id string
- id String
- (String) The UUID of the target resource.
- Constraints: The maximum length is
1028characters. The minimum length is24characters.
- Constraints: The maximum length is
- name String
- The name of the target resource.
- Constraints: The maximum length is
1000characters. The minimum length is1character.
- Constraints: The maximum length is
- region String
- (String) Include this optional field if you used it to create a target in a different region other than the one you are connected.
- Constraints: The maximum length is
256characters. The minimum length is3characters.
- Constraints: The maximum length is
- tenant
Id String
- id string
- (String) The UUID of the target resource.
- Constraints: The maximum length is
1028characters. The minimum length is24characters.
- Constraints: The maximum length is
- name string
- The name of the target resource.
- Constraints: The maximum length is
1000characters. The minimum length is1character.
- Constraints: The maximum length is
- region string
- (String) Include this optional field if you used it to create a target in a different region other than the one you are connected.
- Constraints: The maximum length is
256characters. The minimum length is3characters.
- Constraints: The maximum length is
- tenant
Id string
- id str
- (String) The UUID of the target resource.
- Constraints: The maximum length is
1028characters. The minimum length is24characters.
- Constraints: The maximum length is
- name str
- The name of the target resource.
- Constraints: The maximum length is
1000characters. The minimum length is1character.
- Constraints: The maximum length is
- region str
- (String) Include this optional field if you used it to create a target in a different region other than the one you are connected.
- Constraints: The maximum length is
256characters. The minimum length is3characters.
- Constraints: The maximum length is
- tenant_
id str
- id String
- (String) The UUID of the target resource.
- Constraints: The maximum length is
1028characters. The minimum length is24characters.
- Constraints: The maximum length is
- name String
- The name of the target resource.
- Constraints: The maximum length is
1000characters. The minimum length is1character.
- Constraints: The maximum length is
- region String
- (String) Include this optional field if you used it to create a target in a different region other than the one you are connected.
- Constraints: The maximum length is
256characters. The minimum length is3characters.
- Constraints: The maximum length is
- tenant
Id String
getLogsRouterTargets Result
The following output properties are available:
- Id string
- (String) The UUID of the target resource.
- Constraints: The maximum length is
1028characters. The minimum length is24characters.
- Constraints: The maximum length is
- Targets
List<Get
Logs Router Targets Target> - (List) A list of target resources.
- Constraints: The maximum length is
32items. The minimum length is0items. Nested schema for targets:
- Constraints: The maximum length is
- Name string
- (String) The name of the target resource.
- Constraints: The maximum length is
1000characters. The minimum length is1character.
- Constraints: The maximum length is
- Region string
- (String) Include this optional field if you used it to create a target in a different region other than the one you are connected.
- Constraints: The maximum length is
256characters. The minimum length is3characters.
- Constraints: The maximum length is
- Tenant
Id string
- Id string
- (String) The UUID of the target resource.
- Constraints: The maximum length is
1028characters. The minimum length is24characters.
- Constraints: The maximum length is
- Targets
[]Get
Logs Router Targets Target - (List) A list of target resources.
- Constraints: The maximum length is
32items. The minimum length is0items. Nested schema for targets:
- Constraints: The maximum length is
- Name string
- (String) The name of the target resource.
- Constraints: The maximum length is
1000characters. The minimum length is1character.
- Constraints: The maximum length is
- Region string
- (String) Include this optional field if you used it to create a target in a different region other than the one you are connected.
- Constraints: The maximum length is
256characters. The minimum length is3characters.
- Constraints: The maximum length is
- Tenant
Id string
- id String
- (String) The UUID of the target resource.
- Constraints: The maximum length is
1028characters. The minimum length is24characters.
- Constraints: The maximum length is
- targets
List<Get
Logs Router Targets Target> - (List) A list of target resources.
- Constraints: The maximum length is
32items. The minimum length is0items. Nested schema for targets:
- Constraints: The maximum length is
- name String
- (String) The name of the target resource.
- Constraints: The maximum length is
1000characters. The minimum length is1character.
- Constraints: The maximum length is
- region String
- (String) Include this optional field if you used it to create a target in a different region other than the one you are connected.
- Constraints: The maximum length is
256characters. The minimum length is3characters.
- Constraints: The maximum length is
- tenant
Id String
- id string
- (String) The UUID of the target resource.
- Constraints: The maximum length is
1028characters. The minimum length is24characters.
- Constraints: The maximum length is
- targets
Get
Logs Router Targets Target[] - (List) A list of target resources.
- Constraints: The maximum length is
32items. The minimum length is0items. Nested schema for targets:
- Constraints: The maximum length is
- name string
- (String) The name of the target resource.
- Constraints: The maximum length is
1000characters. The minimum length is1character.
- Constraints: The maximum length is
- region string
- (String) Include this optional field if you used it to create a target in a different region other than the one you are connected.
- Constraints: The maximum length is
256characters. The minimum length is3characters.
- Constraints: The maximum length is
- tenant
Id string
- id str
- (String) The UUID of the target resource.
- Constraints: The maximum length is
1028characters. The minimum length is24characters.
- Constraints: The maximum length is
- targets
Sequence[Get
Logs Router Targets Target] - (List) A list of target resources.
- Constraints: The maximum length is
32items. The minimum length is0items. Nested schema for targets:
- Constraints: The maximum length is
- name str
- (String) The name of the target resource.
- Constraints: The maximum length is
1000characters. The minimum length is1character.
- Constraints: The maximum length is
- region str
- (String) Include this optional field if you used it to create a target in a different region other than the one you are connected.
- Constraints: The maximum length is
256characters. The minimum length is3characters.
- Constraints: The maximum length is
- tenant_
id str
- id String
- (String) The UUID of the target resource.
- Constraints: The maximum length is
1028characters. The minimum length is24characters.
- Constraints: The maximum length is
- targets List<Property Map>
- (List) A list of target resources.
- Constraints: The maximum length is
32items. The minimum length is0items. Nested schema for targets:
- Constraints: The maximum length is
- name String
- (String) The name of the target resource.
- Constraints: The maximum length is
1000characters. The minimum length is1character.
- Constraints: The maximum length is
- region String
- (String) Include this optional field if you used it to create a target in a different region other than the one you are connected.
- Constraints: The maximum length is
256characters. The minimum length is3characters.
- Constraints: The maximum length is
- tenant
Id String
Supporting Types
GetLogsRouterTargetsTarget
- Created
At string - (String) The timestamp of the target creation time.
- Crn string
- (String) The crn of the target resource.
- Constraints: The maximum length is
1000characters. The minimum length is3characters.
- Constraints: The maximum length is
- Destination
Crn string - (String) Cloud Resource Name (CRN) of the destination resource. Ensure you have a service authorization between IBM Cloud Logs Routing and your Cloud resource. See service-to-service authorization for details.
- Constraints: The maximum length is
1000characters. The minimum length is3characters. The value must match regular expression/^[a-zA-Z0-9 \\-._:\/]+$/.
- Constraints: The maximum length is
- Etag string
- Id string
- (String) The UUID of the target resource.
- Constraints: The maximum length is
1028characters. The minimum length is24characters.
- Constraints: The maximum length is
- Log
Sink stringCrn - Managed
By string - (String) Present when the target is enterprise-managed (
managed_by: enterprise). For account-managed targets this field is omitted.- Constraints: Allowable values are:
enterprise,account.
- Constraints: Allowable values are:
- Name string
- The name of the target resource.
- Constraints: The maximum length is
1000characters. The minimum length is1character.
- Constraints: The maximum length is
- Parameters
List<Get
Logs Router Targets Target Parameter> - Region string
- (String) Include this optional field if you used it to create a target in a different region other than the one you are connected.
- Constraints: The maximum length is
256characters. The minimum length is3characters.
- Constraints: The maximum length is
- Target
Type string - (String) The type of the target.
- Constraints: Allowable values are:
cloud_logs.
- Constraints: Allowable values are:
- Type string
- Updated
At string - (String) The timestamp of the target last updated time.
- Write
Statuses List<GetLogs Router Targets Target Write Status> - (List) The status of the write attempt to the target with the provided endpoint parameters. Nested schema for write_status:
- Created
At string - (String) The timestamp of the target creation time.
- Crn string
- (String) The crn of the target resource.
- Constraints: The maximum length is
1000characters. The minimum length is3characters.
- Constraints: The maximum length is
- Destination
Crn string - (String) Cloud Resource Name (CRN) of the destination resource. Ensure you have a service authorization between IBM Cloud Logs Routing and your Cloud resource. See service-to-service authorization for details.
- Constraints: The maximum length is
1000characters. The minimum length is3characters. The value must match regular expression/^[a-zA-Z0-9 \\-._:\/]+$/.
- Constraints: The maximum length is
- Etag string
- Id string
- (String) The UUID of the target resource.
- Constraints: The maximum length is
1028characters. The minimum length is24characters.
- Constraints: The maximum length is
- Log
Sink stringCrn - Managed
By string - (String) Present when the target is enterprise-managed (
managed_by: enterprise). For account-managed targets this field is omitted.- Constraints: Allowable values are:
enterprise,account.
- Constraints: Allowable values are:
- Name string
- The name of the target resource.
- Constraints: The maximum length is
1000characters. The minimum length is1character.
- Constraints: The maximum length is
- Parameters
[]Get
Logs Router Targets Target Parameter - Region string
- (String) Include this optional field if you used it to create a target in a different region other than the one you are connected.
- Constraints: The maximum length is
256characters. The minimum length is3characters.
- Constraints: The maximum length is
- Target
Type string - (String) The type of the target.
- Constraints: Allowable values are:
cloud_logs.
- Constraints: Allowable values are:
- Type string
- Updated
At string - (String) The timestamp of the target last updated time.
- Write
Statuses []GetLogs Router Targets Target Write Status - (List) The status of the write attempt to the target with the provided endpoint parameters. Nested schema for write_status:
- created
At String - (String) The timestamp of the target creation time.
- crn String
- (String) The crn of the target resource.
- Constraints: The maximum length is
1000characters. The minimum length is3characters.
- Constraints: The maximum length is
- destination
Crn String - (String) Cloud Resource Name (CRN) of the destination resource. Ensure you have a service authorization between IBM Cloud Logs Routing and your Cloud resource. See service-to-service authorization for details.
- Constraints: The maximum length is
1000characters. The minimum length is3characters. The value must match regular expression/^[a-zA-Z0-9 \\-._:\/]+$/.
- Constraints: The maximum length is
- etag String
- id String
- (String) The UUID of the target resource.
- Constraints: The maximum length is
1028characters. The minimum length is24characters.
- Constraints: The maximum length is
- log
Sink StringCrn - managed
By String - (String) Present when the target is enterprise-managed (
managed_by: enterprise). For account-managed targets this field is omitted.- Constraints: Allowable values are:
enterprise,account.
- Constraints: Allowable values are:
- name String
- The name of the target resource.
- Constraints: The maximum length is
1000characters. The minimum length is1character.
- Constraints: The maximum length is
- parameters
List<Get
Logs Router Targets Target Parameter> - region String
- (String) Include this optional field if you used it to create a target in a different region other than the one you are connected.
- Constraints: The maximum length is
256characters. The minimum length is3characters.
- Constraints: The maximum length is
- target
Type String - (String) The type of the target.
- Constraints: Allowable values are:
cloud_logs.
- Constraints: Allowable values are:
- type String
- updated
At String - (String) The timestamp of the target last updated time.
- write
Statuses List<GetLogs Router Targets Target Write Status> - (List) The status of the write attempt to the target with the provided endpoint parameters. Nested schema for write_status:
- created
At string - (String) The timestamp of the target creation time.
- crn string
- (String) The crn of the target resource.
- Constraints: The maximum length is
1000characters. The minimum length is3characters.
- Constraints: The maximum length is
- destination
Crn string - (String) Cloud Resource Name (CRN) of the destination resource. Ensure you have a service authorization between IBM Cloud Logs Routing and your Cloud resource. See service-to-service authorization for details.
- Constraints: The maximum length is
1000characters. The minimum length is3characters. The value must match regular expression/^[a-zA-Z0-9 \\-._:\/]+$/.
- Constraints: The maximum length is
- etag string
- id string
- (String) The UUID of the target resource.
- Constraints: The maximum length is
1028characters. The minimum length is24characters.
- Constraints: The maximum length is
- log
Sink stringCrn - managed
By string - (String) Present when the target is enterprise-managed (
managed_by: enterprise). For account-managed targets this field is omitted.- Constraints: Allowable values are:
enterprise,account.
- Constraints: Allowable values are:
- name string
- The name of the target resource.
- Constraints: The maximum length is
1000characters. The minimum length is1character.
- Constraints: The maximum length is
- parameters
Get
Logs Router Targets Target Parameter[] - region string
- (String) Include this optional field if you used it to create a target in a different region other than the one you are connected.
- Constraints: The maximum length is
256characters. The minimum length is3characters.
- Constraints: The maximum length is
- target
Type string - (String) The type of the target.
- Constraints: Allowable values are:
cloud_logs.
- Constraints: Allowable values are:
- type string
- updated
At string - (String) The timestamp of the target last updated time.
- write
Statuses GetLogs Router Targets Target Write Status[] - (List) The status of the write attempt to the target with the provided endpoint parameters. Nested schema for write_status:
- created_
at str - (String) The timestamp of the target creation time.
- crn str
- (String) The crn of the target resource.
- Constraints: The maximum length is
1000characters. The minimum length is3characters.
- Constraints: The maximum length is
- destination_
crn str - (String) Cloud Resource Name (CRN) of the destination resource. Ensure you have a service authorization between IBM Cloud Logs Routing and your Cloud resource. See service-to-service authorization for details.
- Constraints: The maximum length is
1000characters. The minimum length is3characters. The value must match regular expression/^[a-zA-Z0-9 \\-._:\/]+$/.
- Constraints: The maximum length is
- etag str
- id str
- (String) The UUID of the target resource.
- Constraints: The maximum length is
1028characters. The minimum length is24characters.
- Constraints: The maximum length is
- log_
sink_ strcrn - managed_
by str - (String) Present when the target is enterprise-managed (
managed_by: enterprise). For account-managed targets this field is omitted.- Constraints: Allowable values are:
enterprise,account.
- Constraints: Allowable values are:
- name str
- The name of the target resource.
- Constraints: The maximum length is
1000characters. The minimum length is1character.
- Constraints: The maximum length is
- parameters
Sequence[Get
Logs Router Targets Target Parameter] - region str
- (String) Include this optional field if you used it to create a target in a different region other than the one you are connected.
- Constraints: The maximum length is
256characters. The minimum length is3characters.
- Constraints: The maximum length is
- target_
type str - (String) The type of the target.
- Constraints: Allowable values are:
cloud_logs.
- Constraints: Allowable values are:
- type str
- updated_
at str - (String) The timestamp of the target last updated time.
- write_
statuses Sequence[GetLogs Router Targets Target Write Status] - (List) The status of the write attempt to the target with the provided endpoint parameters. Nested schema for write_status:
- created
At String - (String) The timestamp of the target creation time.
- crn String
- (String) The crn of the target resource.
- Constraints: The maximum length is
1000characters. The minimum length is3characters.
- Constraints: The maximum length is
- destination
Crn String - (String) Cloud Resource Name (CRN) of the destination resource. Ensure you have a service authorization between IBM Cloud Logs Routing and your Cloud resource. See service-to-service authorization for details.
- Constraints: The maximum length is
1000characters. The minimum length is3characters. The value must match regular expression/^[a-zA-Z0-9 \\-._:\/]+$/.
- Constraints: The maximum length is
- etag String
- id String
- (String) The UUID of the target resource.
- Constraints: The maximum length is
1028characters. The minimum length is24characters.
- Constraints: The maximum length is
- log
Sink StringCrn - managed
By String - (String) Present when the target is enterprise-managed (
managed_by: enterprise). For account-managed targets this field is omitted.- Constraints: Allowable values are:
enterprise,account.
- Constraints: Allowable values are:
- name String
- The name of the target resource.
- Constraints: The maximum length is
1000characters. The minimum length is1character.
- Constraints: The maximum length is
- parameters List<Property Map>
- region String
- (String) Include this optional field if you used it to create a target in a different region other than the one you are connected.
- Constraints: The maximum length is
256characters. The minimum length is3characters.
- Constraints: The maximum length is
- target
Type String - (String) The type of the target.
- Constraints: Allowable values are:
cloud_logs.
- Constraints: Allowable values are:
- type String
- updated
At String - (String) The timestamp of the target last updated time.
- write
Statuses List<Property Map> - (List) The status of the write attempt to the target with the provided endpoint parameters. Nested schema for write_status:
GetLogsRouterTargetsTargetParameter
GetLogsRouterTargetsTargetWriteStatus
- Last
Failure string - (String) The timestamp of the failure.
- Reason
For stringLast Failure - (String) Detailed description of the cause of the failure.
- Status string
- (String) The status such as failed or success.
- Constraints: Allowable values are:
success,failed.
- Constraints: Allowable values are:
- Last
Failure string - (String) The timestamp of the failure.
- Reason
For stringLast Failure - (String) Detailed description of the cause of the failure.
- Status string
- (String) The status such as failed or success.
- Constraints: Allowable values are:
success,failed.
- Constraints: Allowable values are:
- last
Failure String - (String) The timestamp of the failure.
- reason
For StringLast Failure - (String) Detailed description of the cause of the failure.
- status String
- (String) The status such as failed or success.
- Constraints: Allowable values are:
success,failed.
- Constraints: Allowable values are:
- last
Failure string - (String) The timestamp of the failure.
- reason
For stringLast Failure - (String) Detailed description of the cause of the failure.
- status string
- (String) The status such as failed or success.
- Constraints: Allowable values are:
success,failed.
- Constraints: Allowable values are:
- last_
failure str - (String) The timestamp of the failure.
- reason_
for_ strlast_ failure - (String) Detailed description of the cause of the failure.
- status str
- (String) The status such as failed or success.
- Constraints: Allowable values are:
success,failed.
- Constraints: Allowable values are:
- last
Failure String - (String) The timestamp of the failure.
- reason
For StringLast Failure - (String) Detailed description of the cause of the failure.
- status String
- (String) The status such as failed or success.
- Constraints: Allowable values are:
success,failed.
- Constraints: Allowable values are:
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibmTerraform Provider.
Viewing docs for ibm 1.89.0
published on Monday, Mar 2, 2026 by ibm-cloud
published on Monday, Mar 2, 2026 by ibm-cloud
