ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getLogsPolicies
Explore with Pulumi AI
Provides a read-only data source to retrieve information about logs_policies. You can then reference the fields of the data source in other resources within the same configuration by using interpolation syntax.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const logsPoliciesInstance = ibm.getLogsPolicies({
instanceId: ibm_logs_policy.logs_policy_instance.instance_id,
region: ibm_logs_policy.logs_policy_instance.region,
enabledOnly: true,
sourceType: "logs",
});
import pulumi
import pulumi_ibm as ibm
logs_policies_instance = ibm.get_logs_policies(instance_id=ibm_logs_policy["logs_policy_instance"]["instance_id"],
region=ibm_logs_policy["logs_policy_instance"]["region"],
enabled_only=True,
source_type="logs")
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.GetLogsPolicies(ctx, &ibm.GetLogsPoliciesArgs{
InstanceId: ibm_logs_policy.Logs_policy_instance.Instance_id,
Region: pulumi.StringRef(ibm_logs_policy.Logs_policy_instance.Region),
EnabledOnly: pulumi.BoolRef(true),
SourceType: pulumi.StringRef("logs"),
}, nil)
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 logsPoliciesInstance = Ibm.GetLogsPolicies.Invoke(new()
{
InstanceId = ibm_logs_policy.Logs_policy_instance.Instance_id,
Region = ibm_logs_policy.Logs_policy_instance.Region,
EnabledOnly = true,
SourceType = "logs",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IbmFunctions;
import com.pulumi.ibm.inputs.GetLogsPoliciesArgs;
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) {
final var logsPoliciesInstance = IbmFunctions.getLogsPolicies(GetLogsPoliciesArgs.builder()
.instanceId(ibm_logs_policy.logs_policy_instance().instance_id())
.region(ibm_logs_policy.logs_policy_instance().region())
.enabledOnly(true)
.sourceType("logs")
.build());
}
}
variables:
logsPoliciesInstance:
fn::invoke:
function: ibm:getLogsPolicies
arguments:
instanceId: ${ibm_logs_policy.logs_policy_instance.instance_id}
region: ${ibm_logs_policy.logs_policy_instance.region}
enabledOnly: true
sourceType: logs
Using getLogsPolicies
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getLogsPolicies(args: GetLogsPoliciesArgs, opts?: InvokeOptions): Promise<GetLogsPoliciesResult>
function getLogsPoliciesOutput(args: GetLogsPoliciesOutputArgs, opts?: InvokeOptions): Output<GetLogsPoliciesResult>
def get_logs_policies(enabled_only: Optional[bool] = None,
endpoint_type: Optional[str] = None,
id: Optional[str] = None,
instance_id: Optional[str] = None,
region: Optional[str] = None,
source_type: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetLogsPoliciesResult
def get_logs_policies_output(enabled_only: Optional[pulumi.Input[bool]] = None,
endpoint_type: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
instance_id: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
source_type: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetLogsPoliciesResult]
func GetLogsPolicies(ctx *Context, args *GetLogsPoliciesArgs, opts ...InvokeOption) (*GetLogsPoliciesResult, error)
func GetLogsPoliciesOutput(ctx *Context, args *GetLogsPoliciesOutputArgs, opts ...InvokeOption) GetLogsPoliciesResultOutput
> Note: This function is named GetLogsPolicies
in the Go SDK.
public static class GetLogsPolicies
{
public static Task<GetLogsPoliciesResult> InvokeAsync(GetLogsPoliciesArgs args, InvokeOptions? opts = null)
public static Output<GetLogsPoliciesResult> Invoke(GetLogsPoliciesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetLogsPoliciesResult> getLogsPolicies(GetLogsPoliciesArgs args, InvokeOptions options)
public static Output<GetLogsPoliciesResult> getLogsPolicies(GetLogsPoliciesArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getLogsPolicies:getLogsPolicies
arguments:
# arguments dictionary
The following arguments are supported:
- Instance
Id string - Cloud Logs Instance GUID.
- Enabled
Only bool - Optionally filter only enabled policies.
- Endpoint
Type string - Id string
- (String) Policy ID.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/
.
- Constraints: The maximum length is
- Region string
- Cloud Logs Instance Region.
- Source
Type string - Source type to filter policies by.
- Constraints: Allowable values are:
unspecified
,logs
.
- Constraints: Allowable values are:
- Instance
Id string - Cloud Logs Instance GUID.
- Enabled
Only bool - Optionally filter only enabled policies.
- Endpoint
Type string - Id string
- (String) Policy ID.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/
.
- Constraints: The maximum length is
- Region string
- Cloud Logs Instance Region.
- Source
Type string - Source type to filter policies by.
- Constraints: Allowable values are:
unspecified
,logs
.
- Constraints: Allowable values are:
- instance
Id String - Cloud Logs Instance GUID.
- enabled
Only Boolean - Optionally filter only enabled policies.
- endpoint
Type String - id String
- (String) Policy ID.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/
.
- Constraints: The maximum length is
- region String
- Cloud Logs Instance Region.
- source
Type String - Source type to filter policies by.
- Constraints: Allowable values are:
unspecified
,logs
.
- Constraints: Allowable values are:
- instance
Id string - Cloud Logs Instance GUID.
- enabled
Only boolean - Optionally filter only enabled policies.
- endpoint
Type string - id string
- (String) Policy ID.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/
.
- Constraints: The maximum length is
- region string
- Cloud Logs Instance Region.
- source
Type string - Source type to filter policies by.
- Constraints: Allowable values are:
unspecified
,logs
.
- Constraints: Allowable values are:
- instance_
id str - Cloud Logs Instance GUID.
- enabled_
only bool - Optionally filter only enabled policies.
- endpoint_
type str - id str
- (String) Policy ID.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/
.
- Constraints: The maximum length is
- region str
- Cloud Logs Instance Region.
- source_
type str - Source type to filter policies by.
- Constraints: Allowable values are:
unspecified
,logs
.
- Constraints: Allowable values are:
- instance
Id String - Cloud Logs Instance GUID.
- enabled
Only Boolean - Optionally filter only enabled policies.
- endpoint
Type String - id String
- (String) Policy ID.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/
.
- Constraints: The maximum length is
- region String
- Cloud Logs Instance Region.
- source
Type String - Source type to filter policies by.
- Constraints: Allowable values are:
unspecified
,logs
.
- Constraints: Allowable values are:
getLogsPolicies Result
The following output properties are available:
- Id string
- (String) Policy ID.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/
.
- Constraints: The maximum length is
- Instance
Id string - Policies
List<Get
Logs Policies Policy> - (List) Company policies.
- Constraints: The maximum length is
4096
items. The minimum length is0
items. Nested schema for policies:
- Constraints: The maximum length is
- Region string
- Enabled
Only bool - Endpoint
Type string - Source
Type string
- Id string
- (String) Policy ID.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/
.
- Constraints: The maximum length is
- Instance
Id string - Policies
[]Get
Logs Policies Policy - (List) Company policies.
- Constraints: The maximum length is
4096
items. The minimum length is0
items. Nested schema for policies:
- Constraints: The maximum length is
- Region string
- Enabled
Only bool - Endpoint
Type string - Source
Type string
- id String
- (String) Policy ID.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/
.
- Constraints: The maximum length is
- instance
Id String - policies
List<Get
Logs Policies Policy> - (List) Company policies.
- Constraints: The maximum length is
4096
items. The minimum length is0
items. Nested schema for policies:
- Constraints: The maximum length is
- region String
- enabled
Only Boolean - endpoint
Type String - source
Type String
- id string
- (String) Policy ID.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/
.
- Constraints: The maximum length is
- instance
Id string - policies
Get
Logs Policies Policy[] - (List) Company policies.
- Constraints: The maximum length is
4096
items. The minimum length is0
items. Nested schema for policies:
- Constraints: The maximum length is
- region string
- enabled
Only boolean - endpoint
Type string - source
Type string
- id str
- (String) Policy ID.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/
.
- Constraints: The maximum length is
- instance_
id str - policies
Sequence[Get
Logs Policies Policy] - (List) Company policies.
- Constraints: The maximum length is
4096
items. The minimum length is0
items. Nested schema for policies:
- Constraints: The maximum length is
- region str
- enabled_
only bool - endpoint_
type str - source_
type str
- id String
- (String) Policy ID.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/
.
- Constraints: The maximum length is
- instance
Id String - policies List<Property Map>
- (List) Company policies.
- Constraints: The maximum length is
4096
items. The minimum length is0
items. Nested schema for policies:
- Constraints: The maximum length is
- region String
- enabled
Only Boolean - endpoint
Type String - source
Type String
Supporting Types
GetLogsPoliciesPolicy
- Application
Rules List<GetLogs Policies Policy Application Rule> - (List) Rule for matching with application. Nested schema for application_rule:
- Archive
Retentions List<GetLogs Policies Policy Archive Retention> - (List) Archive retention definition. Nested schema for archive_retention:
- Company
Id double - (Integer) Company ID.
- Created
At string - (String) Created at date at utc+0.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression/^"\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}"$/
.
- Constraints: The maximum length is
- Deleted bool
- (Boolean) Soft deletion flag.
- Description string
- (String) Description of policy.
- 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
- Enabled bool
- (Boolean) Enabled flag.
- Id string
- (String) Policy ID.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/
.
- Constraints: The maximum length is
- Log
Rules List<GetLogs Policies Policy Log Rule> - (List) Log rules. Nested schema for log_rules:
- Name string
- (String) Value of the rule.
- 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
- Order double
- (Integer) Order of policy in relation to other policies.
- Priority string
- (String) The data pipeline sources that match the policy rules will go through.
- Constraints: Allowable values are:
type_unspecified
,type_block
,type_low
,type_medium
,type_high
.
- Constraints: Allowable values are:
- Subsystem
Rules List<GetLogs Policies Policy Subsystem Rule> - (List) Rule for matching with application. Nested schema for subsystem_rule:
- Updated
At string - (String) Updated at date at utc+0.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression/^"\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}"$/
.
- Constraints: The maximum length is
- Application
Rules []GetLogs Policies Policy Application Rule - (List) Rule for matching with application. Nested schema for application_rule:
- Archive
Retentions []GetLogs Policies Policy Archive Retention - (List) Archive retention definition. Nested schema for archive_retention:
- Company
Id float64 - (Integer) Company ID.
- Created
At string - (String) Created at date at utc+0.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression/^"\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}"$/
.
- Constraints: The maximum length is
- Deleted bool
- (Boolean) Soft deletion flag.
- Description string
- (String) Description of policy.
- 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
- Enabled bool
- (Boolean) Enabled flag.
- Id string
- (String) Policy ID.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/
.
- Constraints: The maximum length is
- Log
Rules []GetLogs Policies Policy Log Rule - (List) Log rules. Nested schema for log_rules:
- Name string
- (String) Value of the rule.
- 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
- Order float64
- (Integer) Order of policy in relation to other policies.
- Priority string
- (String) The data pipeline sources that match the policy rules will go through.
- Constraints: Allowable values are:
type_unspecified
,type_block
,type_low
,type_medium
,type_high
.
- Constraints: Allowable values are:
- Subsystem
Rules []GetLogs Policies Policy Subsystem Rule - (List) Rule for matching with application. Nested schema for subsystem_rule:
- Updated
At string - (String) Updated at date at utc+0.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression/^"\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}"$/
.
- Constraints: The maximum length is
- application
Rules List<GetLogs Policies Policy Application Rule> - (List) Rule for matching with application. Nested schema for application_rule:
- archive
Retentions List<GetLogs Policies Policy Archive Retention> - (List) Archive retention definition. Nested schema for archive_retention:
- company
Id Double - (Integer) Company ID.
- created
At String - (String) Created at date at utc+0.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression/^"\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}"$/
.
- Constraints: The maximum length is
- deleted Boolean
- (Boolean) Soft deletion flag.
- description String
- (String) Description of policy.
- 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
- enabled Boolean
- (Boolean) Enabled flag.
- id String
- (String) Policy ID.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/
.
- Constraints: The maximum length is
- log
Rules List<GetLogs Policies Policy Log Rule> - (List) Log rules. Nested schema for log_rules:
- name String
- (String) Value of the rule.
- 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
- order Double
- (Integer) Order of policy in relation to other policies.
- priority String
- (String) The data pipeline sources that match the policy rules will go through.
- Constraints: Allowable values are:
type_unspecified
,type_block
,type_low
,type_medium
,type_high
.
- Constraints: Allowable values are:
- subsystem
Rules List<GetLogs Policies Policy Subsystem Rule> - (List) Rule for matching with application. Nested schema for subsystem_rule:
- updated
At String - (String) Updated at date at utc+0.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression/^"\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}"$/
.
- Constraints: The maximum length is
- application
Rules GetLogs Policies Policy Application Rule[] - (List) Rule for matching with application. Nested schema for application_rule:
- archive
Retentions GetLogs Policies Policy Archive Retention[] - (List) Archive retention definition. Nested schema for archive_retention:
- company
Id number - (Integer) Company ID.
- created
At string - (String) Created at date at utc+0.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression/^"\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}"$/
.
- Constraints: The maximum length is
- deleted boolean
- (Boolean) Soft deletion flag.
- description string
- (String) Description of policy.
- 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
- enabled boolean
- (Boolean) Enabled flag.
- id string
- (String) Policy ID.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/
.
- Constraints: The maximum length is
- log
Rules GetLogs Policies Policy Log Rule[] - (List) Log rules. Nested schema for log_rules:
- name string
- (String) Value of the rule.
- 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
- order number
- (Integer) Order of policy in relation to other policies.
- priority string
- (String) The data pipeline sources that match the policy rules will go through.
- Constraints: Allowable values are:
type_unspecified
,type_block
,type_low
,type_medium
,type_high
.
- Constraints: Allowable values are:
- subsystem
Rules GetLogs Policies Policy Subsystem Rule[] - (List) Rule for matching with application. Nested schema for subsystem_rule:
- updated
At string - (String) Updated at date at utc+0.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression/^"\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}"$/
.
- Constraints: The maximum length is
- application_
rules Sequence[GetLogs Policies Policy Application Rule] - (List) Rule for matching with application. Nested schema for application_rule:
- archive_
retentions Sequence[GetLogs Policies Policy Archive Retention] - (List) Archive retention definition. Nested schema for archive_retention:
- company_
id float - (Integer) Company ID.
- created_
at str - (String) Created at date at utc+0.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression/^"\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}"$/
.
- Constraints: The maximum length is
- deleted bool
- (Boolean) Soft deletion flag.
- description str
- (String) Description of policy.
- 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
- enabled bool
- (Boolean) Enabled flag.
- id str
- (String) Policy ID.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/
.
- Constraints: The maximum length is
- log_
rules Sequence[GetLogs Policies Policy Log Rule] - (List) Log rules. Nested schema for log_rules:
- name str
- (String) Value of the rule.
- 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
- order float
- (Integer) Order of policy in relation to other policies.
- priority str
- (String) The data pipeline sources that match the policy rules will go through.
- Constraints: Allowable values are:
type_unspecified
,type_block
,type_low
,type_medium
,type_high
.
- Constraints: Allowable values are:
- subsystem_
rules Sequence[GetLogs Policies Policy Subsystem Rule] - (List) Rule for matching with application. Nested schema for subsystem_rule:
- updated_
at str - (String) Updated at date at utc+0.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression/^"\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}"$/
.
- Constraints: The maximum length is
- application
Rules List<Property Map> - (List) Rule for matching with application. Nested schema for application_rule:
- archive
Retentions List<Property Map> - (List) Archive retention definition. Nested schema for archive_retention:
- company
Id Number - (Integer) Company ID.
- created
At String - (String) Created at date at utc+0.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression/^"\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}"$/
.
- Constraints: The maximum length is
- deleted Boolean
- (Boolean) Soft deletion flag.
- description String
- (String) Description of policy.
- 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
- enabled Boolean
- (Boolean) Enabled flag.
- id String
- (String) Policy ID.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/
.
- Constraints: The maximum length is
- log
Rules List<Property Map> - (List) Log rules. Nested schema for log_rules:
- name String
- (String) Value of the rule.
- 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
- order Number
- (Integer) Order of policy in relation to other policies.
- priority String
- (String) The data pipeline sources that match the policy rules will go through.
- Constraints: Allowable values are:
type_unspecified
,type_block
,type_low
,type_medium
,type_high
.
- Constraints: Allowable values are:
- subsystem
Rules List<Property Map> - (List) Rule for matching with application. Nested schema for subsystem_rule:
- updated
At String - (String) Updated at date at utc+0.
- Constraints: The maximum length is
4096
characters. The minimum length is1
character. The value must match regular expression/^"\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}"$/
.
- Constraints: The maximum length is
GetLogsPoliciesPolicyApplicationRule
- Name string
- (String) Value of the rule.
- 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
- Rule
Type stringId - (String) Identifier of the rule.
- Constraints: Allowable values are:
unspecified
,is
,is_not
,start_with
,includes
.
- Constraints: Allowable values are:
- Name string
- (String) Value of the rule.
- 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
- Rule
Type stringId - (String) Identifier of the rule.
- Constraints: Allowable values are:
unspecified
,is
,is_not
,start_with
,includes
.
- Constraints: Allowable values are:
- name String
- (String) Value of the rule.
- 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
- rule
Type StringId - (String) Identifier of the rule.
- Constraints: Allowable values are:
unspecified
,is
,is_not
,start_with
,includes
.
- Constraints: Allowable values are:
- name string
- (String) Value of the rule.
- 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
- rule
Type stringId - (String) Identifier of the rule.
- Constraints: Allowable values are:
unspecified
,is
,is_not
,start_with
,includes
.
- Constraints: Allowable values are:
- name str
- (String) Value of the rule.
- 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
- rule_
type_ strid - (String) Identifier of the rule.
- Constraints: Allowable values are:
unspecified
,is
,is_not
,start_with
,includes
.
- Constraints: Allowable values are:
- name String
- (String) Value of the rule.
- 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
- rule
Type StringId - (String) Identifier of the rule.
- Constraints: Allowable values are:
unspecified
,is
,is_not
,start_with
,includes
.
- Constraints: Allowable values are:
GetLogsPoliciesPolicyArchiveRetention
- Id string
- (String) Policy ID.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/
.
- Constraints: The maximum length is
- Id string
- (String) Policy ID.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/
.
- Constraints: The maximum length is
- id String
- (String) Policy ID.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/
.
- Constraints: The maximum length is
- id string
- (String) Policy ID.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/
.
- Constraints: The maximum length is
- id str
- (String) Policy ID.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/
.
- Constraints: The maximum length is
- id String
- (String) Policy ID.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/
.
- Constraints: The maximum length is
GetLogsPoliciesPolicyLogRule
- Severities List<string>
- (List) Source severities to match with.
- Constraints: Allowable list items are:
unspecified
,debug
,verbose
,info
,warning
,error
,critical
. The maximum length is4096
items. The minimum length is0
items.
- Constraints: Allowable list items are:
- Severities []string
- (List) Source severities to match with.
- Constraints: Allowable list items are:
unspecified
,debug
,verbose
,info
,warning
,error
,critical
. The maximum length is4096
items. The minimum length is0
items.
- Constraints: Allowable list items are:
- severities List<String>
- (List) Source severities to match with.
- Constraints: Allowable list items are:
unspecified
,debug
,verbose
,info
,warning
,error
,critical
. The maximum length is4096
items. The minimum length is0
items.
- Constraints: Allowable list items are:
- severities string[]
- (List) Source severities to match with.
- Constraints: Allowable list items are:
unspecified
,debug
,verbose
,info
,warning
,error
,critical
. The maximum length is4096
items. The minimum length is0
items.
- Constraints: Allowable list items are:
- severities Sequence[str]
- (List) Source severities to match with.
- Constraints: Allowable list items are:
unspecified
,debug
,verbose
,info
,warning
,error
,critical
. The maximum length is4096
items. The minimum length is0
items.
- Constraints: Allowable list items are:
- severities List<String>
- (List) Source severities to match with.
- Constraints: Allowable list items are:
unspecified
,debug
,verbose
,info
,warning
,error
,critical
. The maximum length is4096
items. The minimum length is0
items.
- Constraints: Allowable list items are:
GetLogsPoliciesPolicySubsystemRule
- Name string
- (String) Value of the rule.
- 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
- Rule
Type stringId - (String) Identifier of the rule.
- Constraints: Allowable values are:
unspecified
,is
,is_not
,start_with
,includes
.
- Constraints: Allowable values are:
- Name string
- (String) Value of the rule.
- 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
- Rule
Type stringId - (String) Identifier of the rule.
- Constraints: Allowable values are:
unspecified
,is
,is_not
,start_with
,includes
.
- Constraints: Allowable values are:
- name String
- (String) Value of the rule.
- 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
- rule
Type StringId - (String) Identifier of the rule.
- Constraints: Allowable values are:
unspecified
,is
,is_not
,start_with
,includes
.
- Constraints: Allowable values are:
- name string
- (String) Value of the rule.
- 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
- rule
Type stringId - (String) Identifier of the rule.
- Constraints: Allowable values are:
unspecified
,is
,is_not
,start_with
,includes
.
- Constraints: Allowable values are:
- name str
- (String) Value of the rule.
- 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
- rule_
type_ strid - (String) Identifier of the rule.
- Constraints: Allowable values are:
unspecified
,is
,is_not
,start_with
,includes
.
- Constraints: Allowable values are:
- name String
- (String) Value of the rule.
- 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
- rule
Type StringId - (String) Identifier of the rule.
- Constraints: Allowable values are:
unspecified
,is
,is_not
,start_with
,includes
.
- Constraints: Allowable values are:
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.