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:
- Destination
Crn 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
- Logs
Router stringTarget Id - The unique identifier of the logs_router_target.
- Managed
By 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
- 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
256characters. The minimum length is3characters.
- Constraints: The maximum length is
- Destination
Crn 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
- Logs
Router stringTarget Id - The unique identifier of the logs_router_target.
- Managed
By 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
- 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
256characters. The minimum length is3characters.
- Constraints: The maximum length is
- destination
Crn 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
- logs
Router StringTarget Id - The unique identifier of the logs_router_target.
- managed
By 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
- 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
256characters. The minimum length is3characters.
- Constraints: The maximum length is
- destination
Crn 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
- logs
Router stringTarget Id - The unique identifier of the logs_router_target.
- managed
By 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
- 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
256characters. The minimum length is3characters.
- Constraints: The maximum length is
- 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
1000characters. The minimum length is3characters. The value must match regular expression/^[a-zA-Z0-9 \\-._:\/]+$/.
- Constraints: The maximum length is
- logs_
router_ strtarget_ id - 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.
- 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
- 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
256characters. The minimum length is3characters.
- Constraints: The maximum length is
- destination
Crn 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
- logs
Router StringTarget Id - The unique identifier of the logs_router_target.
- managed
By 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
- 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
256characters. The minimum length is3characters.
- Constraints: The maximum length is
Outputs
All input properties are implicitly available as output properties. Additionally, the LogsRouterTarget resource produces the following output properties:
- 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
- Id string
- The provider-assigned unique ID for this managed resource.
- Target
Type string - (String) The type of the target.
- Constraints: Allowable values are:
cloud_logs.
- Constraints: Allowable values are:
- Updated
At string - (String) The timestamp of the target last updated time.
- Write
Statuses List<LogsRouter 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
- Id string
- The provider-assigned unique ID for this managed resource.
- Target
Type string - (String) The type of the target.
- Constraints: Allowable values are:
cloud_logs.
- Constraints: Allowable values are:
- Updated
At string - (String) The timestamp of the target last updated time.
- Write
Statuses []LogsRouter 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
- id String
- The provider-assigned unique ID for this managed resource.
- target
Type String - (String) The type of the target.
- Constraints: Allowable values are:
cloud_logs.
- Constraints: Allowable values are:
- updated
At String - (String) The timestamp of the target last updated time.
- write
Statuses List<LogsRouter 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
- id string
- The provider-assigned unique ID for this managed resource.
- target
Type string - (String) The type of the target.
- Constraints: Allowable values are:
cloud_logs.
- Constraints: Allowable values are:
- updated
At string - (String) The timestamp of the target last updated time.
- write
Statuses LogsRouter 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
- 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.
- Constraints: Allowable values are:
- updated_
at str - (String) The timestamp of the target last updated time.
- write_
statuses Sequence[LogsRouter 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
- id String
- The provider-assigned unique ID for this managed resource.
- target
Type String - (String) The type of the target.
- Constraints: Allowable values are:
cloud_logs.
- Constraints: Allowable values are:
- 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:
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) -> LogsRouterTargetfunc 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.
- 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 - 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
- Logs
Router stringTarget Id - The unique identifier of the logs_router_target.
- Managed
By 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
- 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
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:
- Updated
At string - (String) The timestamp of the target last updated time.
- Write
Statuses List<LogsRouter 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 - 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
- Logs
Router stringTarget Id - The unique identifier of the logs_router_target.
- Managed
By 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
- 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
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:
- Updated
At string - (String) The timestamp of the target last updated time.
- Write
Statuses []LogsRouter Target Write Status Args - (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 - 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
- logs
Router StringTarget Id - The unique identifier of the logs_router_target.
- managed
By 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
- 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
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:
- updated
At String - (String) The timestamp of the target last updated time.
- write
Statuses List<LogsRouter 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 - 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
- logs
Router stringTarget Id - The unique identifier of the logs_router_target.
- managed
By 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
- 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
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:
- updated
At string - (String) The timestamp of the target last updated time.
- write
Statuses LogsRouter 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 - 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
- logs_
router_ strtarget_ id - 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.
- 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
- 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
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:
- updated_
at str - (String) The timestamp of the target last updated time.
- write_
statuses Sequence[LogsRouter Target Write Status Args] - (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 - 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
- logs
Router StringTarget Id - The unique identifier of the logs_router_target.
- managed
By 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
- 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
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:
- 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:
Supporting Types
LogsRouterTargetWriteStatus, LogsRouterTargetWriteStatusArgs
- 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:
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
ibmTerraform Provider.
