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 string
- The unique name of the resource.
- args LogsRouterTenantArgs
- 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 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 string
- The unique name of the resource.
- args LogsRouterTenantArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LogsRouterTenantArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
example, err := ibm.NewLogsRouterTenant(ctx, "logsRouterTenantResource", &ibm.LogsRouterTenantArgs{
Region: pulumi.String("string"),
Targets: ibm.LogsRouterTenantTargetArray{
&ibm.LogsRouterTenantTargetArgs{
Parameters: &ibm.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"),
})
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());
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")
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",
});
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
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 string
- The region where this tenant exists.
- Targets
List<Logs
Router Tenant Target> - List of targets
- Logs
Router stringTenant Id - 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
[]Logs
Router Tenant Target Args - List of targets
- Logs
Router stringTenant Id - 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<Logs
Router Tenant Target> - List of targets
- logs
Router StringTenant Id - 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
Logs
Router Tenant Target[] - List of targets
- logs
Router stringTenant Id - name string
- 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[Logs
Router Tenant Target Args] - List of targets
- logs_
router_ strtenant_ id - name str
- 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
- logs
Router StringTenant Id - 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:
- 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.
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
- 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 - Time stamp the tenant was originally created.
- Crn string
- Cloud resource name of the tenant.
- Etag string
- Resource version identifier.
- Logs
Router stringTenant Id - 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<Logs
Router Tenant Target> - List of targets
- Updated
At string - Time stamp the tenant was last updated.
- Created
At string - Time stamp the tenant was originally created.
- Crn string
- Cloud resource name of the tenant.
- Etag string
- Resource version identifier.
- Logs
Router stringTenant Id - 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
[]Logs
Router Tenant Target Args - List of targets
- Updated
At string - Time stamp the tenant was last updated.
- created
At String - Time stamp the tenant was originally created.
- crn String
- Cloud resource name of the tenant.
- etag String
- Resource version identifier.
- logs
Router StringTenant Id - 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<Logs
Router Tenant Target> - List of targets
- updated
At String - Time stamp the tenant was last updated.
- created
At string - Time stamp the tenant was originally created.
- crn string
- Cloud resource name of the tenant.
- etag string
- Resource version identifier.
- logs
Router stringTenant Id - 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
Logs
Router Tenant Target[] - List of targets
- updated
At 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_ strtenant_ id - 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[Logs
Router Tenant Target Args] - List of targets
- updated_
at str - Time stamp the tenant was last updated.
- created
At String - Time stamp the tenant was originally created.
- crn String
- Cloud resource name of the tenant.
- etag String
- Resource version identifier.
- logs
Router StringTenant Id - 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
- updated
At String - Time stamp the tenant was last updated.
Supporting Types
LogsRouterTenantTarget, LogsRouterTenantTargetArgs
- Parameters
Logs
Router Tenant Target Parameters - List of properties returned from a successful list operation for a log-sink of type IBM Log Analysis (logdna).
- Created
At string - Time stamp the target was originally created.
- Etag string
- Resource version identifier.
- Id string
- Unique ID of the target.
- Log
Sink stringCrn - 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.
- Updated
At string - Time stamp the target was last updated.
- Parameters
Logs
Router Tenant Target Parameters - List of properties returned from a successful list operation for a log-sink of type IBM Log Analysis (logdna).
- Created
At string - Time stamp the target was originally created.
- Etag string
- Resource version identifier.
- Id string
- Unique ID of the target.
- Log
Sink stringCrn - 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.
- Updated
At string - Time stamp the target was last updated.
- parameters
Logs
Router Tenant Target Parameters - List of properties returned from a successful list operation for a log-sink of type IBM Log Analysis (logdna).
- created
At String - Time stamp the target was originally created.
- etag String
- Resource version identifier.
- id String
- Unique ID of the target.
- log
Sink StringCrn - 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.
- updated
At String - Time stamp the target was last updated.
- parameters
Logs
Router Tenant Target Parameters - List of properties returned from a successful list operation for a log-sink of type IBM Log Analysis (logdna).
- created
At string - Time stamp the target was originally created.
- etag string
- Resource version identifier.
- id string
- Unique ID of the target.
- log
Sink stringCrn - 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.
- updated
At string - Time stamp the target was last updated.
- parameters
Logs
Router Tenant Target Parameters - 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_ strcrn - 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 Property Map
- List of properties returned from a successful list operation for a log-sink of type IBM Log Analysis (logdna).
- created
At String - Time stamp the target was originally created.
- etag String
- Resource version identifier.
- id String
- Unique ID of the target.
- log
Sink StringCrn - 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.
- updated
At String - Time stamp the target was last updated.
LogsRouterTenantTargetParameters, LogsRouterTenantTargetParametersArgs
- Host string
- Host name of the log-sink.
- Port double
- Network port of the log-sink.
- Access
Credential string - Secret to connect to the log-sink
- Host string
- Host name of the log-sink.
- Port float64
- Network port of the log-sink.
- Access
Credential string - Secret to connect to the log-sink
- host String
- Host name of the log-sink.
- port Double
- Network port of the log-sink.
- access
Credential String - Secret to connect to the log-sink
- host string
- Host name of the log-sink.
- port number
- Network port of the log-sink.
- access
Credential string - Secret to connect to the log-sink
- host str
- Host name of the log-sink.
- port float
- Network port of the log-sink.
- access_
credential str - Secret to connect to the log-sink
- host String
- Host name of the log-sink.
- port Number
- Network port of the log-sink.
- access
Credential 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.