1. Packages
  2. Ibm Provider
  3. API Docs
  4. LogsRouterTenant
ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud

ibm.LogsRouterTenant

Explore with Pulumi AI

Create LogsRouterTenant Resource

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

Constructor syntax

new LogsRouterTenant(name: string, args: LogsRouterTenantArgs, opts?: CustomResourceOptions);
@overload
def LogsRouterTenant(resource_name: str,
                     args: LogsRouterTenantArgs,
                     opts: Optional[ResourceOptions] = None)

@overload
def LogsRouterTenant(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     region: Optional[str] = None,
                     targets: Optional[Sequence[LogsRouterTenantTargetArgs]] = None,
                     logs_router_tenant_id: Optional[str] = None,
                     name: Optional[str] = None)
func NewLogsRouterTenant(ctx *Context, name string, args LogsRouterTenantArgs, opts ...ResourceOption) (*LogsRouterTenant, error)
public LogsRouterTenant(string name, LogsRouterTenantArgs args, CustomResourceOptions? opts = null)
public LogsRouterTenant(String name, LogsRouterTenantArgs args)
public LogsRouterTenant(String name, LogsRouterTenantArgs args, CustomResourceOptions options)
type: ibm:LogsRouterTenant
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. LogsRouterTenantArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. LogsRouterTenantArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. LogsRouterTenantArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. LogsRouterTenantArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. LogsRouterTenantArgs
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 logsRouterTenantResource = new Ibm.LogsRouterTenant("logsRouterTenantResource", new()
{
    Region = "string",
    Targets = new[]
    {
        new Ibm.Inputs.LogsRouterTenantTargetArgs
        {
            Parameters = new Ibm.Inputs.LogsRouterTenantTargetParametersArgs
            {
                Host = "string",
                Port = 0,
                AccessCredential = "string",
            },
            CreatedAt = "string",
            Etag = "string",
            Id = "string",
            LogSinkCrn = "string",
            Name = "string",
            Type = "string",
            UpdatedAt = "string",
        },
    },
    LogsRouterTenantId = "string",
    Name = "string",
});
Copy
example, err := ibm.NewLogsRouterTenant(ctx, "logsRouterTenantResource", &ibm.LogsRouterTenantArgs{
Region: pulumi.String("string"),
Targets: .LogsRouterTenantTargetArray{
&.LogsRouterTenantTargetArgs{
Parameters: &.LogsRouterTenantTargetParametersArgs{
Host: pulumi.String("string"),
Port: pulumi.Float64(0),
AccessCredential: pulumi.String("string"),
},
CreatedAt: pulumi.String("string"),
Etag: pulumi.String("string"),
Id: pulumi.String("string"),
LogSinkCrn: pulumi.String("string"),
Name: pulumi.String("string"),
Type: pulumi.String("string"),
UpdatedAt: pulumi.String("string"),
},
},
LogsRouterTenantId: pulumi.String("string"),
Name: pulumi.String("string"),
})
Copy
var logsRouterTenantResource = new LogsRouterTenant("logsRouterTenantResource", LogsRouterTenantArgs.builder()
    .region("string")
    .targets(LogsRouterTenantTargetArgs.builder()
        .parameters(LogsRouterTenantTargetParametersArgs.builder()
            .host("string")
            .port(0)
            .accessCredential("string")
            .build())
        .createdAt("string")
        .etag("string")
        .id("string")
        .logSinkCrn("string")
        .name("string")
        .type("string")
        .updatedAt("string")
        .build())
    .logsRouterTenantId("string")
    .name("string")
    .build());
Copy
logs_router_tenant_resource = ibm.LogsRouterTenant("logsRouterTenantResource",
    region="string",
    targets=[{
        "parameters": {
            "host": "string",
            "port": 0,
            "access_credential": "string",
        },
        "created_at": "string",
        "etag": "string",
        "id": "string",
        "log_sink_crn": "string",
        "name": "string",
        "type": "string",
        "updated_at": "string",
    }],
    logs_router_tenant_id="string",
    name="string")
Copy
const logsRouterTenantResource = new ibm.LogsRouterTenant("logsRouterTenantResource", {
    region: "string",
    targets: [{
        parameters: {
            host: "string",
            port: 0,
            accessCredential: "string",
        },
        createdAt: "string",
        etag: "string",
        id: "string",
        logSinkCrn: "string",
        name: "string",
        type: "string",
        updatedAt: "string",
    }],
    logsRouterTenantId: "string",
    name: "string",
});
Copy
type: ibm:LogsRouterTenant
properties:
    logsRouterTenantId: string
    name: string
    region: string
    targets:
        - createdAt: string
          etag: string
          id: string
          logSinkCrn: string
          name: string
          parameters:
            accessCredential: string
            host: string
            port: 0
          type: string
          updatedAt: string
Copy

LogsRouterTenant 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 LogsRouterTenant resource accepts the following input properties:

Region This property is required. string
The region where this tenant exists.
Targets This property is required. List<LogsRouterTenantTarget>
List of targets
LogsRouterTenantId string
Name string
The name for this tenant. The name is regionally unique across all tenants in the account.
Region This property is required. string
The region where this tenant exists.
Targets This property is required. []LogsRouterTenantTargetArgs
List of targets
LogsRouterTenantId string
Name string
The name for this tenant. The name is regionally unique across all tenants in the account.
region This property is required. String
The region where this tenant exists.
targets This property is required. List<LogsRouterTenantTarget>
List of targets
logsRouterTenantId String
name String
The name for this tenant. The name is regionally unique across all tenants in the account.
region This property is required. string
The region where this tenant exists.
targets This property is required. LogsRouterTenantTarget[]
List of targets
logsRouterTenantId string
name string
The name for this tenant. The name is regionally unique across all tenants in the account.
region This property is required. str
The region where this tenant exists.
targets This property is required. Sequence[LogsRouterTenantTargetArgs]
List of targets
logs_router_tenant_id str
name str
The name for this tenant. The name is regionally unique across all tenants in the account.
region This property is required. String
The region where this tenant exists.
targets This property is required. List<Property Map>
List of targets
logsRouterTenantId String
name String
The name for this tenant. The name is regionally unique across all tenants in the account.

Outputs

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

CreatedAt string
Time stamp the tenant was originally created.
Crn string
Cloud resource name of the tenant.
Etag string
Resource version identifier.
Id string
The provider-assigned unique ID for this managed resource.
UpdatedAt string
Time stamp the tenant was last updated.
CreatedAt string
Time stamp the tenant was originally created.
Crn string
Cloud resource name of the tenant.
Etag string
Resource version identifier.
Id string
The provider-assigned unique ID for this managed resource.
UpdatedAt string
Time stamp the tenant was last updated.
createdAt String
Time stamp the tenant was originally created.
crn String
Cloud resource name of the tenant.
etag String
Resource version identifier.
id String
The provider-assigned unique ID for this managed resource.
updatedAt String
Time stamp the tenant was last updated.
createdAt string
Time stamp the tenant was originally created.
crn string
Cloud resource name of the tenant.
etag string
Resource version identifier.
id string
The provider-assigned unique ID for this managed resource.
updatedAt string
Time stamp the tenant was last updated.
created_at str
Time stamp the tenant was originally created.
crn str
Cloud resource name of the tenant.
etag str
Resource version identifier.
id str
The provider-assigned unique ID for this managed resource.
updated_at str
Time stamp the tenant was last updated.
createdAt String
Time stamp the tenant was originally created.
crn String
Cloud resource name of the tenant.
etag String
Resource version identifier.
id String
The provider-assigned unique ID for this managed resource.
updatedAt String
Time stamp the tenant was last updated.

Look up Existing LogsRouterTenant Resource

Get an existing LogsRouterTenant 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?: LogsRouterTenantState, opts?: CustomResourceOptions): LogsRouterTenant
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        created_at: Optional[str] = None,
        crn: Optional[str] = None,
        etag: Optional[str] = None,
        logs_router_tenant_id: Optional[str] = None,
        name: Optional[str] = None,
        region: Optional[str] = None,
        targets: Optional[Sequence[LogsRouterTenantTargetArgs]] = None,
        updated_at: Optional[str] = None) -> LogsRouterTenant
func GetLogsRouterTenant(ctx *Context, name string, id IDInput, state *LogsRouterTenantState, opts ...ResourceOption) (*LogsRouterTenant, error)
public static LogsRouterTenant Get(string name, Input<string> id, LogsRouterTenantState? state, CustomResourceOptions? opts = null)
public static LogsRouterTenant get(String name, Output<String> id, LogsRouterTenantState state, CustomResourceOptions options)
resources:  _:    type: ibm:LogsRouterTenant    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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
Time stamp the tenant was originally created.
Crn string
Cloud resource name of the tenant.
Etag string
Resource version identifier.
LogsRouterTenantId string
Name string
The name for this tenant. The name is regionally unique across all tenants in the account.
Region string
The region where this tenant exists.
Targets List<LogsRouterTenantTarget>
List of targets
UpdatedAt string
Time stamp the tenant was last updated.
CreatedAt string
Time stamp the tenant was originally created.
Crn string
Cloud resource name of the tenant.
Etag string
Resource version identifier.
LogsRouterTenantId string
Name string
The name for this tenant. The name is regionally unique across all tenants in the account.
Region string
The region where this tenant exists.
Targets []LogsRouterTenantTargetArgs
List of targets
UpdatedAt string
Time stamp the tenant was last updated.
createdAt String
Time stamp the tenant was originally created.
crn String
Cloud resource name of the tenant.
etag String
Resource version identifier.
logsRouterTenantId String
name String
The name for this tenant. The name is regionally unique across all tenants in the account.
region String
The region where this tenant exists.
targets List<LogsRouterTenantTarget>
List of targets
updatedAt String
Time stamp the tenant was last updated.
createdAt string
Time stamp the tenant was originally created.
crn string
Cloud resource name of the tenant.
etag string
Resource version identifier.
logsRouterTenantId string
name string
The name for this tenant. The name is regionally unique across all tenants in the account.
region string
The region where this tenant exists.
targets LogsRouterTenantTarget[]
List of targets
updatedAt string
Time stamp the tenant was last updated.
created_at str
Time stamp the tenant was originally created.
crn str
Cloud resource name of the tenant.
etag str
Resource version identifier.
logs_router_tenant_id str
name str
The name for this tenant. The name is regionally unique across all tenants in the account.
region str
The region where this tenant exists.
targets Sequence[LogsRouterTenantTargetArgs]
List of targets
updated_at str
Time stamp the tenant was last updated.
createdAt String
Time stamp the tenant was originally created.
crn String
Cloud resource name of the tenant.
etag String
Resource version identifier.
logsRouterTenantId String
name String
The name for this tenant. The name is regionally unique across all tenants in the account.
region String
The region where this tenant exists.
targets List<Property Map>
List of targets
updatedAt String
Time stamp the tenant was last updated.

Supporting Types

LogsRouterTenantTarget
, LogsRouterTenantTargetArgs

Parameters This property is required. LogsRouterTenantTargetParameters
List of properties returned from a successful list operation for a log-sink of type IBM Log Analysis (logdna).
CreatedAt string
Time stamp the target was originally created.
Etag string
Resource version identifier.
Id string
Unique ID of the target.
LogSinkCrn string
Cloud resource name of the log-sink target instance.
Name string
The name for this tenant target. The name is unique across all targets for this tenant.
Type string
Type of log-sink. Identical to the service-name segment of log_sink_crn.
UpdatedAt string
Time stamp the target was last updated.
Parameters This property is required. LogsRouterTenantTargetParameters
List of properties returned from a successful list operation for a log-sink of type IBM Log Analysis (logdna).
CreatedAt string
Time stamp the target was originally created.
Etag string
Resource version identifier.
Id string
Unique ID of the target.
LogSinkCrn string
Cloud resource name of the log-sink target instance.
Name string
The name for this tenant target. The name is unique across all targets for this tenant.
Type string
Type of log-sink. Identical to the service-name segment of log_sink_crn.
UpdatedAt string
Time stamp the target was last updated.
parameters This property is required. LogsRouterTenantTargetParameters
List of properties returned from a successful list operation for a log-sink of type IBM Log Analysis (logdna).
createdAt String
Time stamp the target was originally created.
etag String
Resource version identifier.
id String
Unique ID of the target.
logSinkCrn String
Cloud resource name of the log-sink target instance.
name String
The name for this tenant target. The name is unique across all targets for this tenant.
type String
Type of log-sink. Identical to the service-name segment of log_sink_crn.
updatedAt String
Time stamp the target was last updated.
parameters This property is required. LogsRouterTenantTargetParameters
List of properties returned from a successful list operation for a log-sink of type IBM Log Analysis (logdna).
createdAt string
Time stamp the target was originally created.
etag string
Resource version identifier.
id string
Unique ID of the target.
logSinkCrn string
Cloud resource name of the log-sink target instance.
name string
The name for this tenant target. The name is unique across all targets for this tenant.
type string
Type of log-sink. Identical to the service-name segment of log_sink_crn.
updatedAt string
Time stamp the target was last updated.
parameters This property is required. LogsRouterTenantTargetParameters
List of properties returned from a successful list operation for a log-sink of type IBM Log Analysis (logdna).
created_at str
Time stamp the target was originally created.
etag str
Resource version identifier.
id str
Unique ID of the target.
log_sink_crn str
Cloud resource name of the log-sink target instance.
name str
The name for this tenant target. The name is unique across all targets for this tenant.
type str
Type of log-sink. Identical to the service-name segment of log_sink_crn.
updated_at str
Time stamp the target was last updated.
parameters This property is required. Property Map
List of properties returned from a successful list operation for a log-sink of type IBM Log Analysis (logdna).
createdAt String
Time stamp the target was originally created.
etag String
Resource version identifier.
id String
Unique ID of the target.
logSinkCrn String
Cloud resource name of the log-sink target instance.
name String
The name for this tenant target. The name is unique across all targets for this tenant.
type String
Type of log-sink. Identical to the service-name segment of log_sink_crn.
updatedAt String
Time stamp the target was last updated.

LogsRouterTenantTargetParameters
, LogsRouterTenantTargetParametersArgs

Host This property is required. string
Host name of the log-sink.
Port This property is required. double
Network port of the log-sink.
AccessCredential string
Secret to connect to the log-sink
Host This property is required. string
Host name of the log-sink.
Port This property is required. float64
Network port of the log-sink.
AccessCredential string
Secret to connect to the log-sink
host This property is required. String
Host name of the log-sink.
port This property is required. Double
Network port of the log-sink.
accessCredential String
Secret to connect to the log-sink
host This property is required. string
Host name of the log-sink.
port This property is required. number
Network port of the log-sink.
accessCredential string
Secret to connect to the log-sink
host This property is required. str
Host name of the log-sink.
port This property is required. float
Network port of the log-sink.
access_credential str
Secret to connect to the log-sink
host This property is required. String
Host name of the log-sink.
port This property is required. Number
Network port of the log-sink.
accessCredential String
Secret to connect to the log-sink

Package Details

Repository
ibm ibm-cloud/terraform-provider-ibm
License
Notes
This Pulumi package is based on the ibm Terraform Provider.