1. Packages
  2. Ibm Provider
  3. API Docs
  4. LogsDataAccessRule
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.LogsDataAccessRule

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    Create, update, and delete logs_data_access_rules with this resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const logsDataAccessRuleInstance = new ibm.LogsDataAccessRule("logsDataAccessRuleInstance", {
        defaultExpression: "<v1>true",
        description: "Data Access Rule intended for testing",
        displayName: "Test Data Access Rule",
        filters: [{
            entityType: "logs",
            expression: "<v1> foo == 'bar'",
        }],
        instanceId: "9d392fb2-b01b-40d5-9aec-fe21d02ab6ed",
        region: "eu-de",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    logs_data_access_rule_instance = ibm.LogsDataAccessRule("logsDataAccessRuleInstance",
        default_expression="<v1>true",
        description="Data Access Rule intended for testing",
        display_name="Test Data Access Rule",
        filters=[{
            "entity_type": "logs",
            "expression": "<v1> foo == 'bar'",
        }],
        instance_id="9d392fb2-b01b-40d5-9aec-fe21d02ab6ed",
        region="eu-de")
    
    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.NewLogsDataAccessRule(ctx, "logsDataAccessRuleInstance", &ibm.LogsDataAccessRuleArgs{
    			DefaultExpression: pulumi.String("<v1>true"),
    			Description:       pulumi.String("Data Access Rule intended for testing"),
    			DisplayName:       pulumi.String("Test Data Access Rule"),
    			Filters: ibm.LogsDataAccessRuleFilterArray{
    				&ibm.LogsDataAccessRuleFilterArgs{
    					EntityType: pulumi.String("logs"),
    					Expression: pulumi.String("<v1> foo == 'bar'"),
    				},
    			},
    			InstanceId: pulumi.String("9d392fb2-b01b-40d5-9aec-fe21d02ab6ed"),
    			Region:     pulumi.String("eu-de"),
    		})
    		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 logsDataAccessRuleInstance = new Ibm.LogsDataAccessRule("logsDataAccessRuleInstance", new()
        {
            DefaultExpression = "<v1>true",
            Description = "Data Access Rule intended for testing",
            DisplayName = "Test Data Access Rule",
            Filters = new[]
            {
                new Ibm.Inputs.LogsDataAccessRuleFilterArgs
                {
                    EntityType = "logs",
                    Expression = "<v1> foo == 'bar'",
                },
            },
            InstanceId = "9d392fb2-b01b-40d5-9aec-fe21d02ab6ed",
            Region = "eu-de",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.LogsDataAccessRule;
    import com.pulumi.ibm.LogsDataAccessRuleArgs;
    import com.pulumi.ibm.inputs.LogsDataAccessRuleFilterArgs;
    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 logsDataAccessRuleInstance = new LogsDataAccessRule("logsDataAccessRuleInstance", LogsDataAccessRuleArgs.builder()
                .defaultExpression("<v1>true")
                .description("Data Access Rule intended for testing")
                .displayName("Test Data Access Rule")
                .filters(LogsDataAccessRuleFilterArgs.builder()
                    .entityType("logs")
                    .expression("<v1> foo == 'bar'")
                    .build())
                .instanceId("9d392fb2-b01b-40d5-9aec-fe21d02ab6ed")
                .region("eu-de")
                .build());
    
        }
    }
    
    resources:
      logsDataAccessRuleInstance:
        type: ibm:LogsDataAccessRule
        properties:
          defaultExpression: <v1>true
          description: Data Access Rule intended for testing
          displayName: Test Data Access Rule
          filters:
            - entityType: logs
              expression: <v1> foo == 'bar'
          instanceId: 9d392fb2-b01b-40d5-9aec-fe21d02ab6ed
          region: eu-de
    

    Create LogsDataAccessRule Resource

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

    Constructor syntax

    new LogsDataAccessRule(name: string, args: LogsDataAccessRuleArgs, opts?: CustomResourceOptions);
    @overload
    def LogsDataAccessRule(resource_name: str,
                           args: LogsDataAccessRuleArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def LogsDataAccessRule(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           default_expression: Optional[str] = None,
                           display_name: Optional[str] = None,
                           filters: Optional[Sequence[LogsDataAccessRuleFilterArgs]] = None,
                           instance_id: Optional[str] = None,
                           description: Optional[str] = None,
                           endpoint_type: Optional[str] = None,
                           logs_data_access_rule_id: Optional[str] = None,
                           region: Optional[str] = None)
    func NewLogsDataAccessRule(ctx *Context, name string, args LogsDataAccessRuleArgs, opts ...ResourceOption) (*LogsDataAccessRule, error)
    public LogsDataAccessRule(string name, LogsDataAccessRuleArgs args, CustomResourceOptions? opts = null)
    public LogsDataAccessRule(String name, LogsDataAccessRuleArgs args)
    public LogsDataAccessRule(String name, LogsDataAccessRuleArgs args, CustomResourceOptions options)
    
    type: ibm:LogsDataAccessRule
    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 LogsDataAccessRuleArgs
    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 LogsDataAccessRuleArgs
    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 LogsDataAccessRuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LogsDataAccessRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LogsDataAccessRuleArgs
    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 logsDataAccessRuleResource = new Ibm.LogsDataAccessRule("logsDataAccessRuleResource", new()
    {
        DefaultExpression = "string",
        DisplayName = "string",
        Filters = new[]
        {
            new Ibm.Inputs.LogsDataAccessRuleFilterArgs
            {
                EntityType = "string",
                Expression = "string",
            },
        },
        InstanceId = "string",
        Description = "string",
        EndpointType = "string",
        LogsDataAccessRuleId = "string",
        Region = "string",
    });
    
    example, err := ibm.NewLogsDataAccessRule(ctx, "logsDataAccessRuleResource", &ibm.LogsDataAccessRuleArgs{
    	DefaultExpression: pulumi.String("string"),
    	DisplayName:       pulumi.String("string"),
    	Filters: ibm.LogsDataAccessRuleFilterArray{
    		&ibm.LogsDataAccessRuleFilterArgs{
    			EntityType: pulumi.String("string"),
    			Expression: pulumi.String("string"),
    		},
    	},
    	InstanceId:           pulumi.String("string"),
    	Description:          pulumi.String("string"),
    	EndpointType:         pulumi.String("string"),
    	LogsDataAccessRuleId: pulumi.String("string"),
    	Region:               pulumi.String("string"),
    })
    
    var logsDataAccessRuleResource = new LogsDataAccessRule("logsDataAccessRuleResource", LogsDataAccessRuleArgs.builder()
        .defaultExpression("string")
        .displayName("string")
        .filters(LogsDataAccessRuleFilterArgs.builder()
            .entityType("string")
            .expression("string")
            .build())
        .instanceId("string")
        .description("string")
        .endpointType("string")
        .logsDataAccessRuleId("string")
        .region("string")
        .build());
    
    logs_data_access_rule_resource = ibm.LogsDataAccessRule("logsDataAccessRuleResource",
        default_expression="string",
        display_name="string",
        filters=[{
            "entity_type": "string",
            "expression": "string",
        }],
        instance_id="string",
        description="string",
        endpoint_type="string",
        logs_data_access_rule_id="string",
        region="string")
    
    const logsDataAccessRuleResource = new ibm.LogsDataAccessRule("logsDataAccessRuleResource", {
        defaultExpression: "string",
        displayName: "string",
        filters: [{
            entityType: "string",
            expression: "string",
        }],
        instanceId: "string",
        description: "string",
        endpointType: "string",
        logsDataAccessRuleId: "string",
        region: "string",
    });
    
    type: ibm:LogsDataAccessRule
    properties:
        defaultExpression: string
        description: string
        displayName: string
        endpointType: string
        filters:
            - entityType: string
              expression: string
        instanceId: string
        logsDataAccessRuleId: string
        region: string
    

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

    DefaultExpression string
    Default expression to use when no filter matches the query.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9_\\.,\\-"{}()\\[\\]=!:#\/$|'<> ]+$/.
    DisplayName string
    Data Access Rule Display Name.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression ^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$.
    Filters List<LogsDataAccessRuleFilter>
    List of filters that the Data Access Rule is composed of.

    • Constraints: The maximum length is 4096 items. The minimum length is 0 items. Nested schema for filters:
    InstanceId string
    Cloud Logs Instance GUID.
    Description string
    Optional Data Access Rule Description.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9_\\-\\s]+$/.
    EndpointType string
    Cloud Logs Instance Endpoint type. Allowed values public and private.
    LogsDataAccessRuleId string
    The unique identifier of the logs_data_access_rule.
    Region string
    Cloud Logs Instance Region.
    DefaultExpression string
    Default expression to use when no filter matches the query.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9_\\.,\\-"{}()\\[\\]=!:#\/$|'<> ]+$/.
    DisplayName string
    Data Access Rule Display Name.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression ^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$.
    Filters []LogsDataAccessRuleFilterArgs
    List of filters that the Data Access Rule is composed of.

    • Constraints: The maximum length is 4096 items. The minimum length is 0 items. Nested schema for filters:
    InstanceId string
    Cloud Logs Instance GUID.
    Description string
    Optional Data Access Rule Description.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9_\\-\\s]+$/.
    EndpointType string
    Cloud Logs Instance Endpoint type. Allowed values public and private.
    LogsDataAccessRuleId string
    The unique identifier of the logs_data_access_rule.
    Region string
    Cloud Logs Instance Region.
    defaultExpression String
    Default expression to use when no filter matches the query.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9_\\.,\\-"{}()\\[\\]=!:#\/$|'<> ]+$/.
    displayName String
    Data Access Rule Display Name.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression ^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$.
    filters List<LogsDataAccessRuleFilter>
    List of filters that the Data Access Rule is composed of.

    • Constraints: The maximum length is 4096 items. The minimum length is 0 items. Nested schema for filters:
    instanceId String
    Cloud Logs Instance GUID.
    description String
    Optional Data Access Rule Description.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9_\\-\\s]+$/.
    endpointType String
    Cloud Logs Instance Endpoint type. Allowed values public and private.
    logsDataAccessRuleId String
    The unique identifier of the logs_data_access_rule.
    region String
    Cloud Logs Instance Region.
    defaultExpression string
    Default expression to use when no filter matches the query.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9_\\.,\\-"{}()\\[\\]=!:#\/$|'<> ]+$/.
    displayName string
    Data Access Rule Display Name.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression ^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$.
    filters LogsDataAccessRuleFilter[]
    List of filters that the Data Access Rule is composed of.

    • Constraints: The maximum length is 4096 items. The minimum length is 0 items. Nested schema for filters:
    instanceId string
    Cloud Logs Instance GUID.
    description string
    Optional Data Access Rule Description.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9_\\-\\s]+$/.
    endpointType string
    Cloud Logs Instance Endpoint type. Allowed values public and private.
    logsDataAccessRuleId string
    The unique identifier of the logs_data_access_rule.
    region string
    Cloud Logs Instance Region.
    default_expression str
    Default expression to use when no filter matches the query.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9_\\.,\\-"{}()\\[\\]=!:#\/$|'<> ]+$/.
    display_name str
    Data Access Rule Display Name.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression ^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$.
    filters Sequence[LogsDataAccessRuleFilterArgs]
    List of filters that the Data Access Rule is composed of.

    • Constraints: The maximum length is 4096 items. The minimum length is 0 items. Nested schema for filters:
    instance_id str
    Cloud Logs Instance GUID.
    description str
    Optional Data Access Rule Description.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9_\\-\\s]+$/.
    endpoint_type str
    Cloud Logs Instance Endpoint type. Allowed values public and private.
    logs_data_access_rule_id str
    The unique identifier of the logs_data_access_rule.
    region str
    Cloud Logs Instance Region.
    defaultExpression String
    Default expression to use when no filter matches the query.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9_\\.,\\-"{}()\\[\\]=!:#\/$|'<> ]+$/.
    displayName String
    Data Access Rule Display Name.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression ^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$.
    filters List<Property Map>
    List of filters that the Data Access Rule is composed of.

    • Constraints: The maximum length is 4096 items. The minimum length is 0 items. Nested schema for filters:
    instanceId String
    Cloud Logs Instance GUID.
    description String
    Optional Data Access Rule Description.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9_\\-\\s]+$/.
    endpointType String
    Cloud Logs Instance Endpoint type. Allowed values public and private.
    logsDataAccessRuleId String
    The unique identifier of the logs_data_access_rule.
    region String
    Cloud Logs Instance Region.

    Outputs

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

    AccessRuleId string
    The unique identifier of the logs data access rule.
    Id string
    The provider-assigned unique ID for this managed resource.
    AccessRuleId string
    The unique identifier of the logs data access rule.
    Id string
    The provider-assigned unique ID for this managed resource.
    accessRuleId String
    The unique identifier of the logs data access rule.
    id String
    The provider-assigned unique ID for this managed resource.
    accessRuleId string
    The unique identifier of the logs data access rule.
    id string
    The provider-assigned unique ID for this managed resource.
    access_rule_id str
    The unique identifier of the logs data access rule.
    id str
    The provider-assigned unique ID for this managed resource.
    accessRuleId String
    The unique identifier of the logs data access rule.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing LogsDataAccessRule Resource

    Get an existing LogsDataAccessRule 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?: LogsDataAccessRuleState, opts?: CustomResourceOptions): LogsDataAccessRule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            access_rule_id: Optional[str] = None,
            default_expression: Optional[str] = None,
            description: Optional[str] = None,
            display_name: Optional[str] = None,
            endpoint_type: Optional[str] = None,
            filters: Optional[Sequence[LogsDataAccessRuleFilterArgs]] = None,
            instance_id: Optional[str] = None,
            logs_data_access_rule_id: Optional[str] = None,
            region: Optional[str] = None) -> LogsDataAccessRule
    func GetLogsDataAccessRule(ctx *Context, name string, id IDInput, state *LogsDataAccessRuleState, opts ...ResourceOption) (*LogsDataAccessRule, error)
    public static LogsDataAccessRule Get(string name, Input<string> id, LogsDataAccessRuleState? state, CustomResourceOptions? opts = null)
    public static LogsDataAccessRule get(String name, Output<String> id, LogsDataAccessRuleState state, CustomResourceOptions options)
    resources:  _:    type: ibm:LogsDataAccessRule    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.
    The following state arguments are supported:
    AccessRuleId string
    The unique identifier of the logs data access rule.
    DefaultExpression string
    Default expression to use when no filter matches the query.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9_\\.,\\-"{}()\\[\\]=!:#\/$|'<> ]+$/.
    Description string
    Optional Data Access Rule Description.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9_\\-\\s]+$/.
    DisplayName string
    Data Access Rule Display Name.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression ^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$.
    EndpointType string
    Cloud Logs Instance Endpoint type. Allowed values public and private.
    Filters List<LogsDataAccessRuleFilter>
    List of filters that the Data Access Rule is composed of.

    • Constraints: The maximum length is 4096 items. The minimum length is 0 items. Nested schema for filters:
    InstanceId string
    Cloud Logs Instance GUID.
    LogsDataAccessRuleId string
    The unique identifier of the logs_data_access_rule.
    Region string
    Cloud Logs Instance Region.
    AccessRuleId string
    The unique identifier of the logs data access rule.
    DefaultExpression string
    Default expression to use when no filter matches the query.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9_\\.,\\-"{}()\\[\\]=!:#\/$|'<> ]+$/.
    Description string
    Optional Data Access Rule Description.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9_\\-\\s]+$/.
    DisplayName string
    Data Access Rule Display Name.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression ^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$.
    EndpointType string
    Cloud Logs Instance Endpoint type. Allowed values public and private.
    Filters []LogsDataAccessRuleFilterArgs
    List of filters that the Data Access Rule is composed of.

    • Constraints: The maximum length is 4096 items. The minimum length is 0 items. Nested schema for filters:
    InstanceId string
    Cloud Logs Instance GUID.
    LogsDataAccessRuleId string
    The unique identifier of the logs_data_access_rule.
    Region string
    Cloud Logs Instance Region.
    accessRuleId String
    The unique identifier of the logs data access rule.
    defaultExpression String
    Default expression to use when no filter matches the query.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9_\\.,\\-"{}()\\[\\]=!:#\/$|'<> ]+$/.
    description String
    Optional Data Access Rule Description.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9_\\-\\s]+$/.
    displayName String
    Data Access Rule Display Name.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression ^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$.
    endpointType String
    Cloud Logs Instance Endpoint type. Allowed values public and private.
    filters List<LogsDataAccessRuleFilter>
    List of filters that the Data Access Rule is composed of.

    • Constraints: The maximum length is 4096 items. The minimum length is 0 items. Nested schema for filters:
    instanceId String
    Cloud Logs Instance GUID.
    logsDataAccessRuleId String
    The unique identifier of the logs_data_access_rule.
    region String
    Cloud Logs Instance Region.
    accessRuleId string
    The unique identifier of the logs data access rule.
    defaultExpression string
    Default expression to use when no filter matches the query.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9_\\.,\\-"{}()\\[\\]=!:#\/$|'<> ]+$/.
    description string
    Optional Data Access Rule Description.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9_\\-\\s]+$/.
    displayName string
    Data Access Rule Display Name.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression ^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$.
    endpointType string
    Cloud Logs Instance Endpoint type. Allowed values public and private.
    filters LogsDataAccessRuleFilter[]
    List of filters that the Data Access Rule is composed of.

    • Constraints: The maximum length is 4096 items. The minimum length is 0 items. Nested schema for filters:
    instanceId string
    Cloud Logs Instance GUID.
    logsDataAccessRuleId string
    The unique identifier of the logs_data_access_rule.
    region string
    Cloud Logs Instance Region.
    access_rule_id str
    The unique identifier of the logs data access rule.
    default_expression str
    Default expression to use when no filter matches the query.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9_\\.,\\-"{}()\\[\\]=!:#\/$|'<> ]+$/.
    description str
    Optional Data Access Rule Description.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9_\\-\\s]+$/.
    display_name str
    Data Access Rule Display Name.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression ^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$.
    endpoint_type str
    Cloud Logs Instance Endpoint type. Allowed values public and private.
    filters Sequence[LogsDataAccessRuleFilterArgs]
    List of filters that the Data Access Rule is composed of.

    • Constraints: The maximum length is 4096 items. The minimum length is 0 items. Nested schema for filters:
    instance_id str
    Cloud Logs Instance GUID.
    logs_data_access_rule_id str
    The unique identifier of the logs_data_access_rule.
    region str
    Cloud Logs Instance Region.
    accessRuleId String
    The unique identifier of the logs data access rule.
    defaultExpression String
    Default expression to use when no filter matches the query.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9_\\.,\\-"{}()\\[\\]=!:#\/$|'<> ]+$/.
    description String
    Optional Data Access Rule Description.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9_\\-\\s]+$/.
    displayName String
    Data Access Rule Display Name.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression ^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$.
    endpointType String
    Cloud Logs Instance Endpoint type. Allowed values public and private.
    filters List<Property Map>
    List of filters that the Data Access Rule is composed of.

    • Constraints: The maximum length is 4096 items. The minimum length is 0 items. Nested schema for filters:
    instanceId String
    Cloud Logs Instance GUID.
    logsDataAccessRuleId String
    The unique identifier of the logs_data_access_rule.
    region String
    Cloud Logs Instance Region.

    Supporting Types

    LogsDataAccessRuleFilter, LogsDataAccessRuleFilterArgs

    EntityType string
    Filter's Entity Type.

    • Constraints: Allowable values are: unspecified, logs.
    Expression string
    Filter's Expression.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9_\\.,\\-"{}()\\[\\]=!:#\/$|'<> ]+$/.
    EntityType string
    Filter's Entity Type.

    • Constraints: Allowable values are: unspecified, logs.
    Expression string
    Filter's Expression.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9_\\.,\\-"{}()\\[\\]=!:#\/$|'<> ]+$/.
    entityType String
    Filter's Entity Type.

    • Constraints: Allowable values are: unspecified, logs.
    expression String
    Filter's Expression.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9_\\.,\\-"{}()\\[\\]=!:#\/$|'<> ]+$/.
    entityType string
    Filter's Entity Type.

    • Constraints: Allowable values are: unspecified, logs.
    expression string
    Filter's Expression.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9_\\.,\\-"{}()\\[\\]=!:#\/$|'<> ]+$/.
    entity_type str
    Filter's Entity Type.

    • Constraints: Allowable values are: unspecified, logs.
    expression str
    Filter's Expression.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9_\\.,\\-"{}()\\[\\]=!:#\/$|'<> ]+$/.
    entityType String
    Filter's Entity Type.

    • Constraints: Allowable values are: unspecified, logs.
    expression String
    Filter's Expression.

    • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9_\\.,\\-"{}()\\[\\]=!:#\/$|'<> ]+$/.

    Import

    You can import the ibm_logs_data_access_rule resource by using id. id combination of region, instance_id and access_rule_id.

    Syntax

    
    ```sh
    $ pulumi import ibm:index/logsDataAccessRule:LogsDataAccessRule logs_dashboard_folder < region >/< instance_id >/< access_rule_id >;
    ```
    
    

    Example

    $ pulumi import ibm:index/logsDataAccessRule:LogsDataAccessRule logs_data_access_rule eu-gb/3dc02998-0b50-4ea8-b68a-4779d716fa1f/d6a3658e-78d2-47d0-9b81-b2c551f01b09
    

    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 ibm Terraform Provider.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud