1. Packages
  2. Packages
  3. Ibm Provider
  4. API Docs
  5. LogsLogDataRetentionTags
Viewing docs for ibm 2.2.2
published on Wednesday, May 27, 2026 by ibm-cloud
Viewing docs for ibm 2.2.2
published on Wednesday, May 27, 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:

    InstanceId string
    Cloud Logs Instance GUID.
    Tags List<string>
    List of editable archive retention tags, excluding non-editable tags such as Default.

    • Constraints: The list must contain exactly 3 items. Each item must be between 1 and 256 characters. The value must match regular expression /^[a-zA-Z0-9_-]+$/.
    EndpointType string
    Cloud Logs Instance Endpoint type. Allowed values public and private.
    LogsLogDataRetentionTagsId string
    The unique identifier of the logs_data_retention_tags resource, in the format {region}/{instance_id}.
    Region string
    Cloud Logs Instance Region.
    InstanceId string
    Cloud Logs Instance GUID.
    Tags []string
    List of editable archive retention tags, excluding non-editable tags such as Default.

    • Constraints: The list must contain exactly 3 items. Each item must be between 1 and 256 characters. The value must match regular expression /^[a-zA-Z0-9_-]+$/.
    EndpointType string
    Cloud Logs Instance Endpoint type. Allowed values public and private.
    LogsLogDataRetentionTagsId 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.
    tags list(string)
    List of editable archive retention tags, excluding non-editable tags such as Default.

    • Constraints: The list must contain exactly 3 items. Each item must be between 1 and 256 characters. The value must match regular expression /^[a-zA-Z0-9_-]+$/.
    endpoint_type string
    Cloud Logs Instance Endpoint type. Allowed values public and private.
    logs_log_data_retention_tags_id string
    The unique identifier of the logs_data_retention_tags resource, in the format {region}/{instance_id}.
    region string
    Cloud Logs Instance Region.
    instanceId String
    Cloud Logs Instance GUID.
    tags List<String>
    List of editable archive retention tags, excluding non-editable tags such as Default.

    • Constraints: The list must contain exactly 3 items. Each item must be between 1 and 256 characters. The value must match regular expression /^[a-zA-Z0-9_-]+$/.
    endpointType String
    Cloud Logs Instance Endpoint type. Allowed values public and private.
    logsLogDataRetentionTagsId String
    The unique identifier of the logs_data_retention_tags resource, in the format {region}/{instance_id}.
    region String
    Cloud Logs Instance Region.
    instanceId string
    Cloud Logs Instance GUID.
    tags string[]
    List of editable archive retention tags, excluding non-editable tags such as Default.

    • Constraints: The list must contain exactly 3 items. Each item must be between 1 and 256 characters. The value must match regular expression /^[a-zA-Z0-9_-]+$/.
    endpointType string
    Cloud Logs Instance Endpoint type. Allowed values public and private.
    logsLogDataRetentionTagsId 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.
    tags Sequence[str]
    List of editable archive retention tags, excluding non-editable tags such as Default.

    • Constraints: The list must contain exactly 3 items. Each item must be between 1 and 256 characters. The value must match regular expression /^[a-zA-Z0-9_-]+$/.
    endpoint_type str
    Cloud Logs Instance Endpoint type. Allowed values public and private.
    logs_log_data_retention_tags_id str
    The unique identifier of the logs_data_retention_tags resource, in the format {region}/{instance_id}.
    region str
    Cloud Logs Instance Region.
    instanceId String
    Cloud Logs Instance GUID.
    tags List<String>
    List of editable archive retention tags, excluding non-editable tags such as Default.

    • Constraints: The list must contain exactly 3 items. Each item must be between 1 and 256 characters. The value must match regular expression /^[a-zA-Z0-9_-]+$/.
    endpointType String
    Cloud Logs Instance Endpoint type. Allowed values public and private.
    logsLogDataRetentionTagsId 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) -> LogsLogDataRetentionTags
    func 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.
    The following state arguments are supported:
    EndpointType string
    Cloud Logs Instance Endpoint type. Allowed values public and private.
    InstanceId string
    Cloud Logs Instance GUID.
    LogsLogDataRetentionTagsId string
    The unique identifier of the logs_data_retention_tags resource, in the format {region}/{instance_id}.
    Region string
    Cloud Logs Instance Region.
    Tags List<string>
    List of editable archive retention tags, excluding non-editable tags such as Default.

    • Constraints: The list must contain exactly 3 items. Each item must be between 1 and 256 characters. The value must match regular expression /^[a-zA-Z0-9_-]+$/.
    EndpointType string
    Cloud Logs Instance Endpoint type. Allowed values public and private.
    InstanceId string
    Cloud Logs Instance GUID.
    LogsLogDataRetentionTagsId string
    The unique identifier of the logs_data_retention_tags resource, in the format {region}/{instance_id}.
    Region string
    Cloud Logs Instance Region.
    Tags []string
    List of editable archive retention tags, excluding non-editable tags such as Default.

    • Constraints: The list must contain exactly 3 items. Each item must be between 1 and 256 characters. The value must match regular expression /^[a-zA-Z0-9_-]+$/.
    endpoint_type string
    Cloud Logs Instance Endpoint type. Allowed values public and private.
    instance_id string
    Cloud Logs Instance GUID.
    logs_log_data_retention_tags_id string
    The unique identifier of the logs_data_retention_tags resource, in the format {region}/{instance_id}.
    region string
    Cloud Logs Instance Region.
    tags list(string)
    List of editable archive retention tags, excluding non-editable tags such as Default.

    • Constraints: The list must contain exactly 3 items. Each item must be between 1 and 256 characters. The value must match regular expression /^[a-zA-Z0-9_-]+$/.
    endpointType String
    Cloud Logs Instance Endpoint type. Allowed values public and private.
    instanceId String
    Cloud Logs Instance GUID.
    logsLogDataRetentionTagsId String
    The unique identifier of the logs_data_retention_tags resource, in the format {region}/{instance_id}.
    region String
    Cloud Logs Instance Region.
    tags List<String>
    List of editable archive retention tags, excluding non-editable tags such as Default.

    • Constraints: The list must contain exactly 3 items. Each item must be between 1 and 256 characters. The value must match regular expression /^[a-zA-Z0-9_-]+$/.
    endpointType string
    Cloud Logs Instance Endpoint type. Allowed values public and private.
    instanceId string
    Cloud Logs Instance GUID.
    logsLogDataRetentionTagsId string
    The unique identifier of the logs_data_retention_tags resource, in the format {region}/{instance_id}.
    region string
    Cloud Logs Instance Region.
    tags string[]
    List of editable archive retention tags, excluding non-editable tags such as Default.

    • Constraints: The list must contain exactly 3 items. Each item must be between 1 and 256 characters. The value must match regular expression /^[a-zA-Z0-9_-]+$/.
    endpoint_type str
    Cloud Logs Instance Endpoint type. Allowed values public and private.
    instance_id str
    Cloud Logs Instance GUID.
    logs_log_data_retention_tags_id str
    The unique identifier of the logs_data_retention_tags resource, in the format {region}/{instance_id}.
    region str
    Cloud Logs Instance Region.
    tags Sequence[str]
    List of editable archive retention tags, excluding non-editable tags such as Default.

    • Constraints: The list must contain exactly 3 items. Each item must be between 1 and 256 characters. The value must match regular expression /^[a-zA-Z0-9_-]+$/.
    endpointType String
    Cloud Logs Instance Endpoint type. Allowed values public and private.
    instanceId String
    Cloud Logs Instance GUID.
    logsLogDataRetentionTagsId String
    The unique identifier of the logs_data_retention_tags resource, in the format {region}/{instance_id}.
    region String
    Cloud Logs Instance Region.
    tags List<String>
    List of editable archive retention tags, excluding non-editable tags such as Default.

    • Constraints: The list must contain exactly 3 items. Each item must be between 1 and 256 characters. The value must match regular expression /^[a-zA-Z0-9_-]+$/.

    Package Details

    Repository
    ibm ibm-cloud/terraform-provider-ibm
    License
    Notes
    This Pulumi package is based on the ibm Terraform Provider.
    Viewing docs for ibm 2.2.2
    published on Wednesday, May 27, 2026 by ibm-cloud

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial