published on Monday, May 18, 2026 by ibm-cloud
published on Monday, May 18, 2026 by ibm-cloud
Import
You can import the ibm_logs_log_data_retention_tags resource by using id. The unique identifier of the logs_data_retention_tags resource.
Syntax
```sh $ pulumi import ibm:index/logsLogDataRetentionTags:LogsLogDataRetentionTags logs_data_retention_tags_instance/ ```
Example
$ pulumi import ibm:index/logsLogDataRetentionTags:LogsLogDataRetentionTags logs_data_retention_tags_instance eu-gb/3dc02998-0b50-4ea8-b68a-4779d716fa1f
Create LogsLogDataRetentionTags Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LogsLogDataRetentionTags(name: string, args: LogsLogDataRetentionTagsArgs, opts?: CustomResourceOptions);@overload
def LogsLogDataRetentionTags(resource_name: str,
args: LogsLogDataRetentionTagsArgs,
opts: Optional[ResourceOptions] = None)
@overload
def LogsLogDataRetentionTags(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_id: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
endpoint_type: Optional[str] = None,
logs_log_data_retention_tags_id: Optional[str] = None,
region: Optional[str] = None)func NewLogsLogDataRetentionTags(ctx *Context, name string, args LogsLogDataRetentionTagsArgs, opts ...ResourceOption) (*LogsLogDataRetentionTags, error)public LogsLogDataRetentionTags(string name, LogsLogDataRetentionTagsArgs args, CustomResourceOptions? opts = null)
public LogsLogDataRetentionTags(String name, LogsLogDataRetentionTagsArgs args)
public LogsLogDataRetentionTags(String name, LogsLogDataRetentionTagsArgs args, CustomResourceOptions options)
type: ibm:LogsLogDataRetentionTags
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "ibm_logslogdataretentiontags" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args LogsLogDataRetentionTagsArgs
- 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 LogsLogDataRetentionTagsArgs
- 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 LogsLogDataRetentionTagsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LogsLogDataRetentionTagsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LogsLogDataRetentionTagsArgs
- 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 logsLogDataRetentionTagsResource = new Ibm.LogsLogDataRetentionTags("logsLogDataRetentionTagsResource", new()
{
InstanceId = "string",
Tags = new[]
{
"string",
},
EndpointType = "string",
LogsLogDataRetentionTagsId = "string",
Region = "string",
});
example, err := ibm.NewLogsLogDataRetentionTags(ctx, "logsLogDataRetentionTagsResource", &ibm.LogsLogDataRetentionTagsArgs{
InstanceId: pulumi.String("string"),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
EndpointType: pulumi.String("string"),
LogsLogDataRetentionTagsId: pulumi.String("string"),
Region: pulumi.String("string"),
})
resource "ibm_logslogdataretentiontags" "logsLogDataRetentionTagsResource" {
instance_id = "string"
tags = ["string"]
endpoint_type = "string"
logs_log_data_retention_tags_id = "string"
region = "string"
}
var logsLogDataRetentionTagsResource = new LogsLogDataRetentionTags("logsLogDataRetentionTagsResource", LogsLogDataRetentionTagsArgs.builder()
.instanceId("string")
.tags("string")
.endpointType("string")
.logsLogDataRetentionTagsId("string")
.region("string")
.build());
logs_log_data_retention_tags_resource = ibm.LogsLogDataRetentionTags("logsLogDataRetentionTagsResource",
instance_id="string",
tags=["string"],
endpoint_type="string",
logs_log_data_retention_tags_id="string",
region="string")
const logsLogDataRetentionTagsResource = new ibm.LogsLogDataRetentionTags("logsLogDataRetentionTagsResource", {
instanceId: "string",
tags: ["string"],
endpointType: "string",
logsLogDataRetentionTagsId: "string",
region: "string",
});
type: ibm:LogsLogDataRetentionTags
properties:
endpointType: string
instanceId: string
logsLogDataRetentionTagsId: string
region: string
tags:
- string
LogsLogDataRetentionTags 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 LogsLogDataRetentionTags resource accepts the following input properties:
- Instance
Id string - Cloud Logs Instance GUID.
- List<string>
- List of editable archive retention tags, excluding non-editable tags such as Default.
- Constraints: The list must contain exactly
3items. Each item must be between1and256characters. The value must match regular expression/^[a-zA-Z0-9_-]+$/.
- Constraints: The list must contain exactly
- Endpoint
Type string - Cloud Logs Instance Endpoint type. Allowed values
publicandprivate. - string
- The unique identifier of the logs_data_retention_tags resource, in the format
{region}/{instance_id}. - Region string
- Cloud Logs Instance Region.
- Instance
Id string - Cloud Logs Instance GUID.
- []string
- List of editable archive retention tags, excluding non-editable tags such as Default.
- Constraints: The list must contain exactly
3items. Each item must be between1and256characters. The value must match regular expression/^[a-zA-Z0-9_-]+$/.
- Constraints: The list must contain exactly
- Endpoint
Type string - Cloud Logs Instance Endpoint type. Allowed values
publicandprivate. - string
- The unique identifier of the logs_data_retention_tags resource, in the format
{region}/{instance_id}. - Region string
- Cloud Logs Instance Region.
- instance_
id string - Cloud Logs Instance GUID.
- list(string)
- List of editable archive retention tags, excluding non-editable tags such as Default.
- Constraints: The list must contain exactly
3items. Each item must be between1and256characters. The value must match regular expression/^[a-zA-Z0-9_-]+$/.
- Constraints: The list must contain exactly
- endpoint_
type string - Cloud Logs Instance Endpoint type. Allowed values
publicandprivate. - string
- The unique identifier of the logs_data_retention_tags resource, in the format
{region}/{instance_id}. - region string
- Cloud Logs Instance Region.
- instance
Id String - Cloud Logs Instance GUID.
- List<String>
- List of editable archive retention tags, excluding non-editable tags such as Default.
- Constraints: The list must contain exactly
3items. Each item must be between1and256characters. The value must match regular expression/^[a-zA-Z0-9_-]+$/.
- Constraints: The list must contain exactly
- endpoint
Type String - Cloud Logs Instance Endpoint type. Allowed values
publicandprivate. - String
- The unique identifier of the logs_data_retention_tags resource, in the format
{region}/{instance_id}. - region String
- Cloud Logs Instance Region.
- instance
Id string - Cloud Logs Instance GUID.
- string[]
- List of editable archive retention tags, excluding non-editable tags such as Default.
- Constraints: The list must contain exactly
3items. Each item must be between1and256characters. The value must match regular expression/^[a-zA-Z0-9_-]+$/.
- Constraints: The list must contain exactly
- endpoint
Type string - Cloud Logs Instance Endpoint type. Allowed values
publicandprivate. - string
- The unique identifier of the logs_data_retention_tags resource, in the format
{region}/{instance_id}. - region string
- Cloud Logs Instance Region.
- instance_
id str - Cloud Logs Instance GUID.
- Sequence[str]
- List of editable archive retention tags, excluding non-editable tags such as Default.
- Constraints: The list must contain exactly
3items. Each item must be between1and256characters. The value must match regular expression/^[a-zA-Z0-9_-]+$/.
- Constraints: The list must contain exactly
- endpoint_
type str - Cloud Logs Instance Endpoint type. Allowed values
publicandprivate. - str
- The unique identifier of the logs_data_retention_tags resource, in the format
{region}/{instance_id}. - region str
- Cloud Logs Instance Region.
- instance
Id String - Cloud Logs Instance GUID.
- List<String>
- List of editable archive retention tags, excluding non-editable tags such as Default.
- Constraints: The list must contain exactly
3items. Each item must be between1and256characters. The value must match regular expression/^[a-zA-Z0-9_-]+$/.
- Constraints: The list must contain exactly
- endpoint
Type String - Cloud Logs Instance Endpoint type. Allowed values
publicandprivate. - String
- The unique identifier of the logs_data_retention_tags resource, in the format
{region}/{instance_id}. - region String
- Cloud Logs Instance Region.
Outputs
All input properties are implicitly available as output properties. Additionally, the LogsLogDataRetentionTags resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing LogsLogDataRetentionTags Resource
Get an existing LogsLogDataRetentionTags 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?: LogsLogDataRetentionTagsState, opts?: CustomResourceOptions): LogsLogDataRetentionTags@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
endpoint_type: Optional[str] = None,
instance_id: Optional[str] = None,
logs_log_data_retention_tags_id: Optional[str] = None,
region: Optional[str] = None,
tags: Optional[Sequence[str]] = None) -> LogsLogDataRetentionTagsfunc GetLogsLogDataRetentionTags(ctx *Context, name string, id IDInput, state *LogsLogDataRetentionTagsState, opts ...ResourceOption) (*LogsLogDataRetentionTags, error)public static LogsLogDataRetentionTags Get(string name, Input<string> id, LogsLogDataRetentionTagsState? state, CustomResourceOptions? opts = null)public static LogsLogDataRetentionTags get(String name, Output<String> id, LogsLogDataRetentionTagsState state, CustomResourceOptions options)resources: _: type: ibm:LogsLogDataRetentionTags get: id: ${id}import {
to = ibm_logslogdataretentiontags.example
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.
- Endpoint
Type string - Cloud Logs Instance Endpoint type. Allowed values
publicandprivate. - Instance
Id string - Cloud Logs Instance GUID.
- string
- The unique identifier of the logs_data_retention_tags resource, in the format
{region}/{instance_id}. - Region string
- Cloud Logs Instance Region.
- List<string>
- List of editable archive retention tags, excluding non-editable tags such as Default.
- Constraints: The list must contain exactly
3items. Each item must be between1and256characters. The value must match regular expression/^[a-zA-Z0-9_-]+$/.
- Constraints: The list must contain exactly
- Endpoint
Type string - Cloud Logs Instance Endpoint type. Allowed values
publicandprivate. - Instance
Id string - Cloud Logs Instance GUID.
- string
- The unique identifier of the logs_data_retention_tags resource, in the format
{region}/{instance_id}. - Region string
- Cloud Logs Instance Region.
- []string
- List of editable archive retention tags, excluding non-editable tags such as Default.
- Constraints: The list must contain exactly
3items. Each item must be between1and256characters. The value must match regular expression/^[a-zA-Z0-9_-]+$/.
- Constraints: The list must contain exactly
- endpoint_
type string - Cloud Logs Instance Endpoint type. Allowed values
publicandprivate. - instance_
id string - Cloud Logs Instance GUID.
- string
- The unique identifier of the logs_data_retention_tags resource, in the format
{region}/{instance_id}. - region string
- Cloud Logs Instance Region.
- list(string)
- List of editable archive retention tags, excluding non-editable tags such as Default.
- Constraints: The list must contain exactly
3items. Each item must be between1and256characters. The value must match regular expression/^[a-zA-Z0-9_-]+$/.
- Constraints: The list must contain exactly
- endpoint
Type String - Cloud Logs Instance Endpoint type. Allowed values
publicandprivate. - instance
Id String - Cloud Logs Instance GUID.
- String
- The unique identifier of the logs_data_retention_tags resource, in the format
{region}/{instance_id}. - region String
- Cloud Logs Instance Region.
- List<String>
- List of editable archive retention tags, excluding non-editable tags such as Default.
- Constraints: The list must contain exactly
3items. Each item must be between1and256characters. The value must match regular expression/^[a-zA-Z0-9_-]+$/.
- Constraints: The list must contain exactly
- endpoint
Type string - Cloud Logs Instance Endpoint type. Allowed values
publicandprivate. - instance
Id string - Cloud Logs Instance GUID.
- string
- The unique identifier of the logs_data_retention_tags resource, in the format
{region}/{instance_id}. - region string
- Cloud Logs Instance Region.
- string[]
- List of editable archive retention tags, excluding non-editable tags such as Default.
- Constraints: The list must contain exactly
3items. Each item must be between1and256characters. The value must match regular expression/^[a-zA-Z0-9_-]+$/.
- Constraints: The list must contain exactly
- endpoint_
type str - Cloud Logs Instance Endpoint type. Allowed values
publicandprivate. - instance_
id str - Cloud Logs Instance GUID.
- str
- The unique identifier of the logs_data_retention_tags resource, in the format
{region}/{instance_id}. - region str
- Cloud Logs Instance Region.
- Sequence[str]
- List of editable archive retention tags, excluding non-editable tags such as Default.
- Constraints: The list must contain exactly
3items. Each item must be between1and256characters. The value must match regular expression/^[a-zA-Z0-9_-]+$/.
- Constraints: The list must contain exactly
- endpoint
Type String - Cloud Logs Instance Endpoint type. Allowed values
publicandprivate. - instance
Id String - Cloud Logs Instance GUID.
- String
- The unique identifier of the logs_data_retention_tags resource, in the format
{region}/{instance_id}. - region String
- Cloud Logs Instance Region.
- List<String>
- List of editable archive retention tags, excluding non-editable tags such as Default.
- Constraints: The list must contain exactly
3items. Each item must be between1and256characters. The value must match regular expression/^[a-zA-Z0-9_-]+$/.
- Constraints: The list must contain exactly
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibmTerraform Provider.
published on Monday, May 18, 2026 by ibm-cloud
