ibm.LogsDataAccessRule
Explore with Pulumi AI
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:
- Default
Expression string - Default expression to use when no filter matches the query.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9_\\.,\\-"{}()\\[\\]=!:#\/$|'<> ]+$/
.
- Constraints: The maximum length is
- Display
Name string - Data Access Rule Display Name.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$
.
- Constraints: The maximum length is
- Filters
List<Logs
Data Access Rule Filter> - List of filters that the Data Access Rule is composed of.
- Constraints: The maximum length is
4096
items. The minimum length is0
items. Nested schema for filters:
- Constraints: The maximum length is
- Instance
Id string - Cloud Logs Instance GUID.
- Description string
- Optional Data Access Rule Description.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9_\\-\\s]+$/
.
- Constraints: The maximum length is
- Endpoint
Type string - Cloud Logs Instance Endpoint type. Allowed values
public
andprivate
. - Logs
Data stringAccess Rule Id - The unique identifier of the logs_data_access_rule.
- Region string
- Cloud Logs Instance Region.
- Default
Expression string - Default expression to use when no filter matches the query.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9_\\.,\\-"{}()\\[\\]=!:#\/$|'<> ]+$/
.
- Constraints: The maximum length is
- Display
Name string - Data Access Rule Display Name.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$
.
- Constraints: The maximum length is
- Filters
[]Logs
Data Access Rule Filter Args - List of filters that the Data Access Rule is composed of.
- Constraints: The maximum length is
4096
items. The minimum length is0
items. Nested schema for filters:
- Constraints: The maximum length is
- Instance
Id string - Cloud Logs Instance GUID.
- Description string
- Optional Data Access Rule Description.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9_\\-\\s]+$/
.
- Constraints: The maximum length is
- Endpoint
Type string - Cloud Logs Instance Endpoint type. Allowed values
public
andprivate
. - Logs
Data stringAccess Rule Id - The unique identifier of the logs_data_access_rule.
- Region string
- Cloud Logs Instance Region.
- default
Expression String - Default expression to use when no filter matches the query.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9_\\.,\\-"{}()\\[\\]=!:#\/$|'<> ]+$/
.
- Constraints: The maximum length is
- display
Name String - Data Access Rule Display Name.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$
.
- Constraints: The maximum length is
- filters
List<Logs
Data Access Rule Filter> - List of filters that the Data Access Rule is composed of.
- Constraints: The maximum length is
4096
items. The minimum length is0
items. Nested schema for filters:
- Constraints: The maximum length is
- instance
Id String - Cloud Logs Instance GUID.
- description String
- Optional Data Access Rule Description.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9_\\-\\s]+$/
.
- Constraints: The maximum length is
- endpoint
Type String - Cloud Logs Instance Endpoint type. Allowed values
public
andprivate
. - logs
Data StringAccess Rule Id - The unique identifier of the logs_data_access_rule.
- region String
- Cloud Logs Instance Region.
- default
Expression string - Default expression to use when no filter matches the query.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9_\\.,\\-"{}()\\[\\]=!:#\/$|'<> ]+$/
.
- Constraints: The maximum length is
- display
Name string - Data Access Rule Display Name.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$
.
- Constraints: The maximum length is
- filters
Logs
Data Access Rule Filter[] - List of filters that the Data Access Rule is composed of.
- Constraints: The maximum length is
4096
items. The minimum length is0
items. Nested schema for filters:
- Constraints: The maximum length is
- instance
Id string - Cloud Logs Instance GUID.
- description string
- Optional Data Access Rule Description.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9_\\-\\s]+$/
.
- Constraints: The maximum length is
- endpoint
Type string - Cloud Logs Instance Endpoint type. Allowed values
public
andprivate
. - logs
Data stringAccess Rule Id - 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 is1
character. The value must match regular expression/^[A-Za-z0-9_\\.,\\-"{}()\\[\\]=!:#\/$|'<> ]+$/
.
- Constraints: The maximum length is
- display_
name str - Data Access Rule Display Name.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$
.
- Constraints: The maximum length is
- filters
Sequence[Logs
Data Access Rule Filter Args] - List of filters that the Data Access Rule is composed of.
- Constraints: The maximum length is
4096
items. The minimum length is0
items. Nested schema for filters:
- Constraints: The maximum length is
- instance_
id str - Cloud Logs Instance GUID.
- description str
- Optional Data Access Rule Description.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9_\\-\\s]+$/
.
- Constraints: The maximum length is
- endpoint_
type str - Cloud Logs Instance Endpoint type. Allowed values
public
andprivate
. - logs_
data_ straccess_ rule_ id - The unique identifier of the logs_data_access_rule.
- region str
- Cloud Logs Instance Region.
- default
Expression String - Default expression to use when no filter matches the query.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9_\\.,\\-"{}()\\[\\]=!:#\/$|'<> ]+$/
.
- Constraints: The maximum length is
- display
Name String - Data Access Rule Display Name.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$
.
- Constraints: The maximum length is
- 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 is0
items. Nested schema for filters:
- Constraints: The maximum length is
- instance
Id String - Cloud Logs Instance GUID.
- description String
- Optional Data Access Rule Description.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9_\\-\\s]+$/
.
- Constraints: The maximum length is
- endpoint
Type String - Cloud Logs Instance Endpoint type. Allowed values
public
andprivate
. - logs
Data StringAccess Rule Id - 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:
- Access
Rule stringId - The unique identifier of the logs data access rule.
- Id string
- The provider-assigned unique ID for this managed resource.
- Access
Rule stringId - The unique identifier of the logs data access rule.
- Id string
- The provider-assigned unique ID for this managed resource.
- access
Rule StringId - The unique identifier of the logs data access rule.
- id String
- The provider-assigned unique ID for this managed resource.
- access
Rule stringId - The unique identifier of the logs data access rule.
- id string
- The provider-assigned unique ID for this managed resource.
- access_
rule_ strid - The unique identifier of the logs data access rule.
- id str
- The provider-assigned unique ID for this managed resource.
- access
Rule StringId - 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.
- Access
Rule stringId - The unique identifier of the logs data access rule.
- Default
Expression string - Default expression to use when no filter matches the query.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9_\\.,\\-"{}()\\[\\]=!:#\/$|'<> ]+$/
.
- Constraints: The maximum length is
- Description string
- Optional Data Access Rule Description.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9_\\-\\s]+$/
.
- Constraints: The maximum length is
- Display
Name string - Data Access Rule Display Name.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$
.
- Constraints: The maximum length is
- Endpoint
Type string - Cloud Logs Instance Endpoint type. Allowed values
public
andprivate
. - Filters
List<Logs
Data Access Rule Filter> - List of filters that the Data Access Rule is composed of.
- Constraints: The maximum length is
4096
items. The minimum length is0
items. Nested schema for filters:
- Constraints: The maximum length is
- Instance
Id string - Cloud Logs Instance GUID.
- Logs
Data stringAccess Rule Id - The unique identifier of the logs_data_access_rule.
- Region string
- Cloud Logs Instance Region.
- Access
Rule stringId - The unique identifier of the logs data access rule.
- Default
Expression string - Default expression to use when no filter matches the query.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9_\\.,\\-"{}()\\[\\]=!:#\/$|'<> ]+$/
.
- Constraints: The maximum length is
- Description string
- Optional Data Access Rule Description.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9_\\-\\s]+$/
.
- Constraints: The maximum length is
- Display
Name string - Data Access Rule Display Name.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$
.
- Constraints: The maximum length is
- Endpoint
Type string - Cloud Logs Instance Endpoint type. Allowed values
public
andprivate
. - Filters
[]Logs
Data Access Rule Filter Args - List of filters that the Data Access Rule is composed of.
- Constraints: The maximum length is
4096
items. The minimum length is0
items. Nested schema for filters:
- Constraints: The maximum length is
- Instance
Id string - Cloud Logs Instance GUID.
- Logs
Data stringAccess Rule Id - The unique identifier of the logs_data_access_rule.
- Region string
- Cloud Logs Instance Region.
- access
Rule StringId - The unique identifier of the logs data access rule.
- default
Expression String - Default expression to use when no filter matches the query.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9_\\.,\\-"{}()\\[\\]=!:#\/$|'<> ]+$/
.
- Constraints: The maximum length is
- description String
- Optional Data Access Rule Description.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9_\\-\\s]+$/
.
- Constraints: The maximum length is
- display
Name String - Data Access Rule Display Name.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$
.
- Constraints: The maximum length is
- endpoint
Type String - Cloud Logs Instance Endpoint type. Allowed values
public
andprivate
. - filters
List<Logs
Data Access Rule Filter> - List of filters that the Data Access Rule is composed of.
- Constraints: The maximum length is
4096
items. The minimum length is0
items. Nested schema for filters:
- Constraints: The maximum length is
- instance
Id String - Cloud Logs Instance GUID.
- logs
Data StringAccess Rule Id - The unique identifier of the logs_data_access_rule.
- region String
- Cloud Logs Instance Region.
- access
Rule stringId - The unique identifier of the logs data access rule.
- default
Expression string - Default expression to use when no filter matches the query.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9_\\.,\\-"{}()\\[\\]=!:#\/$|'<> ]+$/
.
- Constraints: The maximum length is
- description string
- Optional Data Access Rule Description.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9_\\-\\s]+$/
.
- Constraints: The maximum length is
- display
Name string - Data Access Rule Display Name.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$
.
- Constraints: The maximum length is
- endpoint
Type string - Cloud Logs Instance Endpoint type. Allowed values
public
andprivate
. - filters
Logs
Data Access Rule Filter[] - List of filters that the Data Access Rule is composed of.
- Constraints: The maximum length is
4096
items. The minimum length is0
items. Nested schema for filters:
- Constraints: The maximum length is
- instance
Id string - Cloud Logs Instance GUID.
- logs
Data stringAccess Rule Id - The unique identifier of the logs_data_access_rule.
- region string
- Cloud Logs Instance Region.
- access_
rule_ strid - 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 is1
character. The value must match regular expression/^[A-Za-z0-9_\\.,\\-"{}()\\[\\]=!:#\/$|'<> ]+$/
.
- Constraints: The maximum length is
- description str
- Optional Data Access Rule Description.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9_\\-\\s]+$/
.
- Constraints: The maximum length is
- display_
name str - Data Access Rule Display Name.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$
.
- Constraints: The maximum length is
- endpoint_
type str - Cloud Logs Instance Endpoint type. Allowed values
public
andprivate
. - filters
Sequence[Logs
Data Access Rule Filter Args] - List of filters that the Data Access Rule is composed of.
- Constraints: The maximum length is
4096
items. The minimum length is0
items. Nested schema for filters:
- Constraints: The maximum length is
- instance_
id str - Cloud Logs Instance GUID.
- logs_
data_ straccess_ rule_ id - The unique identifier of the logs_data_access_rule.
- region str
- Cloud Logs Instance Region.
- access
Rule StringId - The unique identifier of the logs data access rule.
- default
Expression String - Default expression to use when no filter matches the query.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9_\\.,\\-"{}()\\[\\]=!:#\/$|'<> ]+$/
.
- Constraints: The maximum length is
- description String
- Optional Data Access Rule Description.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9_\\-\\s]+$/
.
- Constraints: The maximum length is
- display
Name String - Data Access Rule Display Name.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$
.
- Constraints: The maximum length is
- endpoint
Type String - Cloud Logs Instance Endpoint type. Allowed values
public
andprivate
. - 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 is0
items. Nested schema for filters:
- Constraints: The maximum length is
- instance
Id String - Cloud Logs Instance GUID.
- logs
Data StringAccess Rule Id - The unique identifier of the logs_data_access_rule.
- region String
- Cloud Logs Instance Region.
Supporting Types
LogsDataAccessRuleFilter, LogsDataAccessRuleFilterArgs
- Entity
Type string - Filter's Entity Type.
- Constraints: Allowable values are:
unspecified
,logs
.
- Constraints: Allowable values are:
- Expression string
- Filter's Expression.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9_\\.,\\-"{}()\\[\\]=!:#\/$|'<> ]+$/
.
- Constraints: The maximum length is
- Entity
Type string - Filter's Entity Type.
- Constraints: Allowable values are:
unspecified
,logs
.
- Constraints: Allowable values are:
- Expression string
- Filter's Expression.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9_\\.,\\-"{}()\\[\\]=!:#\/$|'<> ]+$/
.
- Constraints: The maximum length is
- entity
Type String - Filter's Entity Type.
- Constraints: Allowable values are:
unspecified
,logs
.
- Constraints: Allowable values are:
- expression String
- Filter's Expression.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9_\\.,\\-"{}()\\[\\]=!:#\/$|'<> ]+$/
.
- Constraints: The maximum length is
- entity
Type string - Filter's Entity Type.
- Constraints: Allowable values are:
unspecified
,logs
.
- Constraints: Allowable values are:
- expression string
- Filter's Expression.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9_\\.,\\-"{}()\\[\\]=!:#\/$|'<> ]+$/
.
- Constraints: The maximum length is
- entity_
type str - Filter's Entity Type.
- Constraints: Allowable values are:
unspecified
,logs
.
- Constraints: Allowable values are:
- expression str
- Filter's Expression.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9_\\.,\\-"{}()\\[\\]=!:#\/$|'<> ]+$/
.
- Constraints: The maximum length is
- entity
Type String - Filter's Entity Type.
- Constraints: Allowable values are:
unspecified
,logs
.
- Constraints: Allowable values are:
- expression String
- Filter's Expression.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9_\\.,\\-"{}()\\[\\]=!:#\/$|'<> ]+$/
.
- Constraints: The maximum length is
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.