1. Packages
  2. Ibm Provider
  3. API Docs
  4. LogsRouterTarget
ibm 1.88.0 published on Friday, Feb 6, 2026 by ibm-cloud
ibm logo
ibm 1.88.0 published on Friday, Feb 6, 2026 by ibm-cloud

    Create, update, and delete logs_router_targets with this resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const logsRouterTargetInstance = new ibm.LogsRouterTarget("logs_router_target_instance", {
        destinationCrn: "crn:v1:bluemix:public:logs:us-south:a/0be5ad401ae913d8ff665d92680664ed:22222222-2222-2222-2222-222222222222::",
        managedBy: "enterprise",
        name: "my-lr-target",
        region: "us-south",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    logs_router_target_instance = ibm.LogsRouterTarget("logs_router_target_instance",
        destination_crn="crn:v1:bluemix:public:logs:us-south:a/0be5ad401ae913d8ff665d92680664ed:22222222-2222-2222-2222-222222222222::",
        managed_by="enterprise",
        name="my-lr-target",
        region="us-south")
    
    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.NewLogsRouterTarget(ctx, "logs_router_target_instance", &ibm.LogsRouterTargetArgs{
    			DestinationCrn: pulumi.String("crn:v1:bluemix:public:logs:us-south:a/0be5ad401ae913d8ff665d92680664ed:22222222-2222-2222-2222-222222222222::"),
    			ManagedBy:      pulumi.String("enterprise"),
    			Name:           pulumi.String("my-lr-target"),
    			Region:         pulumi.String("us-south"),
    		})
    		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 logsRouterTargetInstance = new Ibm.LogsRouterTarget("logs_router_target_instance", new()
        {
            DestinationCrn = "crn:v1:bluemix:public:logs:us-south:a/0be5ad401ae913d8ff665d92680664ed:22222222-2222-2222-2222-222222222222::",
            ManagedBy = "enterprise",
            Name = "my-lr-target",
            Region = "us-south",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.LogsRouterTarget;
    import com.pulumi.ibm.LogsRouterTargetArgs;
    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) {
            var logsRouterTargetInstance = new LogsRouterTarget("logsRouterTargetInstance", LogsRouterTargetArgs.builder()
                .destinationCrn("crn:v1:bluemix:public:logs:us-south:a/0be5ad401ae913d8ff665d92680664ed:22222222-2222-2222-2222-222222222222::")
                .managedBy("enterprise")
                .name("my-lr-target")
                .region("us-south")
                .build());
    
        }
    }
    
    resources:
      logsRouterTargetInstance:
        type: ibm:LogsRouterTarget
        name: logs_router_target_instance
        properties:
          destinationCrn: 'crn:v1:bluemix:public:logs:us-south:a/0be5ad401ae913d8ff665d92680664ed:22222222-2222-2222-2222-222222222222::'
          managedBy: enterprise
          name: my-lr-target
          region: us-south
    

    Create LogsRouterTarget Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new LogsRouterTarget(name: string, args: LogsRouterTargetArgs, opts?: CustomResourceOptions);
    @overload
    def LogsRouterTarget(resource_name: str,
                         args: LogsRouterTargetArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def LogsRouterTarget(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         destination_crn: Optional[str] = None,
                         logs_router_target_id: Optional[str] = None,
                         managed_by: Optional[str] = None,
                         name: Optional[str] = None,
                         region: Optional[str] = None)
    func NewLogsRouterTarget(ctx *Context, name string, args LogsRouterTargetArgs, opts ...ResourceOption) (*LogsRouterTarget, error)
    public LogsRouterTarget(string name, LogsRouterTargetArgs args, CustomResourceOptions? opts = null)
    public LogsRouterTarget(String name, LogsRouterTargetArgs args)
    public LogsRouterTarget(String name, LogsRouterTargetArgs args, CustomResourceOptions options)
    
    type: ibm:LogsRouterTarget
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args LogsRouterTargetArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args LogsRouterTargetArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args LogsRouterTargetArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LogsRouterTargetArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LogsRouterTargetArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var logsRouterTargetResource = new Ibm.LogsRouterTarget("logsRouterTargetResource", new()
    {
        DestinationCrn = "string",
        LogsRouterTargetId = "string",
        ManagedBy = "string",
        Name = "string",
        Region = "string",
    });
    
    example, err := ibm.NewLogsRouterTarget(ctx, "logsRouterTargetResource", &ibm.LogsRouterTargetArgs{
    	DestinationCrn:     pulumi.String("string"),
    	LogsRouterTargetId: pulumi.String("string"),
    	ManagedBy:          pulumi.String("string"),
    	Name:               pulumi.String("string"),
    	Region:             pulumi.String("string"),
    })
    
    var logsRouterTargetResource = new LogsRouterTarget("logsRouterTargetResource", LogsRouterTargetArgs.builder()
        .destinationCrn("string")
        .logsRouterTargetId("string")
        .managedBy("string")
        .name("string")
        .region("string")
        .build());
    
    logs_router_target_resource = ibm.LogsRouterTarget("logsRouterTargetResource",
        destination_crn="string",
        logs_router_target_id="string",
        managed_by="string",
        name="string",
        region="string")
    
    const logsRouterTargetResource = new ibm.LogsRouterTarget("logsRouterTargetResource", {
        destinationCrn: "string",
        logsRouterTargetId: "string",
        managedBy: "string",
        name: "string",
        region: "string",
    });
    
    type: ibm:LogsRouterTarget
    properties:
        destinationCrn: string
        logsRouterTargetId: string
        managedBy: string
        name: string
        region: string
    

    LogsRouterTarget Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The LogsRouterTarget resource accepts the following input properties:

    DestinationCrn 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 1000 characters. The minimum length is 3 characters. The value must match regular expression /^[a-zA-Z0-9 \\-._:\/]+$/.
    LogsRouterTargetId string
    The unique identifier of the logs_router_target.
    ManagedBy 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.
    Name string
    The name of the target resource.

    • Constraints: The maximum length is 1000 characters. The minimum length is 1 character.
    Region 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 256 characters. The minimum length is 3 characters.
    DestinationCrn 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 1000 characters. The minimum length is 3 characters. The value must match regular expression /^[a-zA-Z0-9 \\-._:\/]+$/.
    LogsRouterTargetId string
    The unique identifier of the logs_router_target.
    ManagedBy 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.
    Name string
    The name of the target resource.

    • Constraints: The maximum length is 1000 characters. The minimum length is 1 character.
    Region 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 256 characters. The minimum length is 3 characters.
    destinationCrn 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 1000 characters. The minimum length is 3 characters. The value must match regular expression /^[a-zA-Z0-9 \\-._:\/]+$/.
    logsRouterTargetId String
    The unique identifier of the logs_router_target.
    managedBy 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.
    name String
    The name of the target resource.

    • Constraints: The maximum length is 1000 characters. The minimum length is 1 character.
    region 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 256 characters. The minimum length is 3 characters.
    destinationCrn 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 1000 characters. The minimum length is 3 characters. The value must match regular expression /^[a-zA-Z0-9 \\-._:\/]+$/.
    logsRouterTargetId string
    The unique identifier of the logs_router_target.
    managedBy 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.
    name string
    The name of the target resource.

    • Constraints: The maximum length is 1000 characters. The minimum length is 1 character.
    region 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 256 characters. The minimum length is 3 characters.
    destination_crn str
    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 1000 characters. The minimum length is 3 characters. The value must match regular expression /^[a-zA-Z0-9 \\-._:\/]+$/.
    logs_router_target_id str
    The unique identifier of the logs_router_target.
    managed_by str
    Present when the target is enterprise-managed (managed_by: enterprise). For account-managed targets this field is omitted.

    • Constraints: Allowable values are: enterprise, account.
    name str
    The name of the target resource.

    • Constraints: The maximum length is 1000 characters. The minimum length is 1 character.
    region str
    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 256 characters. The minimum length is 3 characters.
    destinationCrn 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 1000 characters. The minimum length is 3 characters. The value must match regular expression /^[a-zA-Z0-9 \\-._:\/]+$/.
    logsRouterTargetId String
    The unique identifier of the logs_router_target.
    managedBy 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.
    name String
    The name of the target resource.

    • Constraints: The maximum length is 1000 characters. The minimum length is 1 character.
    region 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 256 characters. The minimum length is 3 characters.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the LogsRouterTarget resource produces the following output properties:

    CreatedAt string
    (String) The timestamp of the target creation time.
    Crn string
    (String) The crn of the target resource.

    • Constraints: The maximum length is 1000 characters. The minimum length is 3 characters.
    Id string
    The provider-assigned unique ID for this managed resource.
    TargetType string
    (String) The type of the target.

    • Constraints: Allowable values are: cloud_logs.
    UpdatedAt string
    (String) The timestamp of the target last updated time.
    WriteStatuses List<LogsRouterTargetWriteStatus>
    (List) The status of the write attempt to the target with the provided endpoint parameters. Nested schema for write_status:
    CreatedAt string
    (String) The timestamp of the target creation time.
    Crn string
    (String) The crn of the target resource.

    • Constraints: The maximum length is 1000 characters. The minimum length is 3 characters.
    Id string
    The provider-assigned unique ID for this managed resource.
    TargetType string
    (String) The type of the target.

    • Constraints: Allowable values are: cloud_logs.
    UpdatedAt string
    (String) The timestamp of the target last updated time.
    WriteStatuses []LogsRouterTargetWriteStatus
    (List) The status of the write attempt to the target with the provided endpoint parameters. Nested schema for write_status:
    createdAt String
    (String) The timestamp of the target creation time.
    crn String
    (String) The crn of the target resource.

    • Constraints: The maximum length is 1000 characters. The minimum length is 3 characters.
    id String
    The provider-assigned unique ID for this managed resource.
    targetType String
    (String) The type of the target.

    • Constraints: Allowable values are: cloud_logs.
    updatedAt String
    (String) The timestamp of the target last updated time.
    writeStatuses List<LogsRouterTargetWriteStatus>
    (List) The status of the write attempt to the target with the provided endpoint parameters. Nested schema for write_status:
    createdAt string
    (String) The timestamp of the target creation time.
    crn string
    (String) The crn of the target resource.

    • Constraints: The maximum length is 1000 characters. The minimum length is 3 characters.
    id string
    The provider-assigned unique ID for this managed resource.
    targetType string
    (String) The type of the target.

    • Constraints: Allowable values are: cloud_logs.
    updatedAt string
    (String) The timestamp of the target last updated time.
    writeStatuses LogsRouterTargetWriteStatus[]
    (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 1000 characters. The minimum length is 3 characters.
    id str
    The provider-assigned unique ID for this managed resource.
    target_type str
    (String) The type of the target.

    • Constraints: Allowable values are: cloud_logs.
    updated_at str
    (String) The timestamp of the target last updated time.
    write_statuses Sequence[LogsRouterTargetWriteStatus]
    (List) The status of the write attempt to the target with the provided endpoint parameters. Nested schema for write_status:
    createdAt String
    (String) The timestamp of the target creation time.
    crn String
    (String) The crn of the target resource.

    • Constraints: The maximum length is 1000 characters. The minimum length is 3 characters.
    id String
    The provider-assigned unique ID for this managed resource.
    targetType String
    (String) The type of the target.

    • Constraints: Allowable values are: cloud_logs.
    updatedAt String
    (String) The timestamp of the target last updated time.
    writeStatuses List<Property Map>
    (List) The status of the write attempt to the target with the provided endpoint parameters. Nested schema for write_status:

    Look up Existing LogsRouterTarget Resource

    Get an existing LogsRouterTarget resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: LogsRouterTargetState, opts?: CustomResourceOptions): LogsRouterTarget
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            created_at: Optional[str] = None,
            crn: Optional[str] = None,
            destination_crn: Optional[str] = None,
            logs_router_target_id: Optional[str] = None,
            managed_by: Optional[str] = None,
            name: Optional[str] = None,
            region: Optional[str] = None,
            target_type: Optional[str] = None,
            updated_at: Optional[str] = None,
            write_statuses: Optional[Sequence[LogsRouterTargetWriteStatusArgs]] = None) -> LogsRouterTarget
    func GetLogsRouterTarget(ctx *Context, name string, id IDInput, state *LogsRouterTargetState, opts ...ResourceOption) (*LogsRouterTarget, error)
    public static LogsRouterTarget Get(string name, Input<string> id, LogsRouterTargetState? state, CustomResourceOptions? opts = null)
    public static LogsRouterTarget get(String name, Output<String> id, LogsRouterTargetState state, CustomResourceOptions options)
    resources:  _:    type: ibm:LogsRouterTarget    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CreatedAt string
    (String) The timestamp of the target creation time.
    Crn string
    (String) The crn of the target resource.

    • Constraints: The maximum length is 1000 characters. The minimum length is 3 characters.
    DestinationCrn 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 1000 characters. The minimum length is 3 characters. The value must match regular expression /^[a-zA-Z0-9 \\-._:\/]+$/.
    LogsRouterTargetId string
    The unique identifier of the logs_router_target.
    ManagedBy 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.
    Name string
    The name of the target resource.

    • Constraints: The maximum length is 1000 characters. The minimum length is 1 character.
    Region 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 256 characters. The minimum length is 3 characters.
    TargetType string
    (String) The type of the target.

    • Constraints: Allowable values are: cloud_logs.
    UpdatedAt string
    (String) The timestamp of the target last updated time.
    WriteStatuses List<LogsRouterTargetWriteStatus>
    (List) The status of the write attempt to the target with the provided endpoint parameters. Nested schema for write_status:
    CreatedAt string
    (String) The timestamp of the target creation time.
    Crn string
    (String) The crn of the target resource.

    • Constraints: The maximum length is 1000 characters. The minimum length is 3 characters.
    DestinationCrn 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 1000 characters. The minimum length is 3 characters. The value must match regular expression /^[a-zA-Z0-9 \\-._:\/]+$/.
    LogsRouterTargetId string
    The unique identifier of the logs_router_target.
    ManagedBy 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.
    Name string
    The name of the target resource.

    • Constraints: The maximum length is 1000 characters. The minimum length is 1 character.
    Region 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 256 characters. The minimum length is 3 characters.
    TargetType string
    (String) The type of the target.

    • Constraints: Allowable values are: cloud_logs.
    UpdatedAt string
    (String) The timestamp of the target last updated time.
    WriteStatuses []LogsRouterTargetWriteStatusArgs
    (List) The status of the write attempt to the target with the provided endpoint parameters. Nested schema for write_status:
    createdAt String
    (String) The timestamp of the target creation time.
    crn String
    (String) The crn of the target resource.

    • Constraints: The maximum length is 1000 characters. The minimum length is 3 characters.
    destinationCrn 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 1000 characters. The minimum length is 3 characters. The value must match regular expression /^[a-zA-Z0-9 \\-._:\/]+$/.
    logsRouterTargetId String
    The unique identifier of the logs_router_target.
    managedBy 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.
    name String
    The name of the target resource.

    • Constraints: The maximum length is 1000 characters. The minimum length is 1 character.
    region 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 256 characters. The minimum length is 3 characters.
    targetType String
    (String) The type of the target.

    • Constraints: Allowable values are: cloud_logs.
    updatedAt String
    (String) The timestamp of the target last updated time.
    writeStatuses List<LogsRouterTargetWriteStatus>
    (List) The status of the write attempt to the target with the provided endpoint parameters. Nested schema for write_status:
    createdAt string
    (String) The timestamp of the target creation time.
    crn string
    (String) The crn of the target resource.

    • Constraints: The maximum length is 1000 characters. The minimum length is 3 characters.
    destinationCrn 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 1000 characters. The minimum length is 3 characters. The value must match regular expression /^[a-zA-Z0-9 \\-._:\/]+$/.
    logsRouterTargetId string
    The unique identifier of the logs_router_target.
    managedBy 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.
    name string
    The name of the target resource.

    • Constraints: The maximum length is 1000 characters. The minimum length is 1 character.
    region 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 256 characters. The minimum length is 3 characters.
    targetType string
    (String) The type of the target.

    • Constraints: Allowable values are: cloud_logs.
    updatedAt string
    (String) The timestamp of the target last updated time.
    writeStatuses LogsRouterTargetWriteStatus[]
    (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 1000 characters. The minimum length is 3 characters.
    destination_crn str
    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 1000 characters. The minimum length is 3 characters. The value must match regular expression /^[a-zA-Z0-9 \\-._:\/]+$/.
    logs_router_target_id str
    The unique identifier of the logs_router_target.
    managed_by str
    Present when the target is enterprise-managed (managed_by: enterprise). For account-managed targets this field is omitted.

    • Constraints: Allowable values are: enterprise, account.
    name str
    The name of the target resource.

    • Constraints: The maximum length is 1000 characters. The minimum length is 1 character.
    region str
    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 256 characters. The minimum length is 3 characters.
    target_type str
    (String) The type of the target.

    • Constraints: Allowable values are: cloud_logs.
    updated_at str
    (String) The timestamp of the target last updated time.
    write_statuses Sequence[LogsRouterTargetWriteStatusArgs]
    (List) The status of the write attempt to the target with the provided endpoint parameters. Nested schema for write_status:
    createdAt String
    (String) The timestamp of the target creation time.
    crn String
    (String) The crn of the target resource.

    • Constraints: The maximum length is 1000 characters. The minimum length is 3 characters.
    destinationCrn 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 1000 characters. The minimum length is 3 characters. The value must match regular expression /^[a-zA-Z0-9 \\-._:\/]+$/.
    logsRouterTargetId String
    The unique identifier of the logs_router_target.
    managedBy 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.
    name String
    The name of the target resource.

    • Constraints: The maximum length is 1000 characters. The minimum length is 1 character.
    region 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 256 characters. The minimum length is 3 characters.
    targetType String
    (String) The type of the target.

    • Constraints: Allowable values are: cloud_logs.
    updatedAt String
    (String) The timestamp of the target last updated time.
    writeStatuses List<Property Map>
    (List) The status of the write attempt to the target with the provided endpoint parameters. Nested schema for write_status:

    Supporting Types

    LogsRouterTargetWriteStatus, LogsRouterTargetWriteStatusArgs

    LastFailure string
    (String) The timestamp of the failure.
    ReasonForLastFailure string
    (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.
    LastFailure string
    (String) The timestamp of the failure.
    ReasonForLastFailure string
    (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.
    lastFailure String
    (String) The timestamp of the failure.
    reasonForLastFailure String
    (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.
    lastFailure string
    (String) The timestamp of the failure.
    reasonForLastFailure string
    (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.
    last_failure str
    (String) The timestamp of the failure.
    reason_for_last_failure str
    (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.
    lastFailure String
    (String) The timestamp of the failure.
    reasonForLastFailure String
    (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.

    Import

    You can import the ibm_logs_router_target resource by using id. The UUID of the target resource.

    Syntax

    
    ```sh
    $ pulumi import ibm:index/logsRouterTarget:LogsRouterTarget logs_router_target <id>
    ```
    
    

    Example

    $ pulumi import ibm:index/logsRouterTarget:LogsRouterTarget logs_router_target f7dcfae6-e7c5-08ca-451b-fdfa696c9bb6
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    ibm ibm-cloud/terraform-provider-ibm
    License
    Notes
    This Pulumi package is based on the ibm Terraform Provider.
    ibm logo
    ibm 1.88.0 published on Friday, Feb 6, 2026 by ibm-cloud
      Meet Neo: Your AI Platform Teammate