1. Packages
  2. Ibm Provider
  3. API Docs
  4. getLogsPolicies
ibm 1.77.1 published on Monday, Apr 14, 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",
});
Copy
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")
Copy
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
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
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
Copy

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>
Copy
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]
Copy
func GetLogsPolicies(ctx *Context, args *GetLogsPoliciesArgs, opts ...InvokeOption) (*GetLogsPoliciesResult, error)
func GetLogsPoliciesOutput(ctx *Context, args *GetLogsPoliciesOutputArgs, opts ...InvokeOption) GetLogsPoliciesResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetLogsPoliciesResult> getLogsPolicies(GetLogsPoliciesArgs args, InvokeOptions options)
public static Output<GetLogsPoliciesResult> getLogsPolicies(GetLogsPoliciesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: ibm:index/getLogsPolicies:getLogsPolicies
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

InstanceId This property is required. string
Cloud Logs Instance GUID.
EnabledOnly bool
Optionally filter only enabled policies.
EndpointType string
Id string
(String) Policy ID.

  • Constraints: The maximum length is 36 characters. The minimum length is 36 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}$/.
Region string
Cloud Logs Instance Region.
SourceType string
Source type to filter policies by.

  • Constraints: Allowable values are: unspecified, logs.
InstanceId This property is required. string
Cloud Logs Instance GUID.
EnabledOnly bool
Optionally filter only enabled policies.
EndpointType string
Id string
(String) Policy ID.

  • Constraints: The maximum length is 36 characters. The minimum length is 36 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}$/.
Region string
Cloud Logs Instance Region.
SourceType string
Source type to filter policies by.

  • Constraints: Allowable values are: unspecified, logs.
instanceId This property is required. String
Cloud Logs Instance GUID.
enabledOnly Boolean
Optionally filter only enabled policies.
endpointType String
id String
(String) Policy ID.

  • Constraints: The maximum length is 36 characters. The minimum length is 36 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}$/.
region String
Cloud Logs Instance Region.
sourceType String
Source type to filter policies by.

  • Constraints: Allowable values are: unspecified, logs.
instanceId This property is required. string
Cloud Logs Instance GUID.
enabledOnly boolean
Optionally filter only enabled policies.
endpointType string
id string
(String) Policy ID.

  • Constraints: The maximum length is 36 characters. The minimum length is 36 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}$/.
region string
Cloud Logs Instance Region.
sourceType string
Source type to filter policies by.

  • Constraints: Allowable values are: unspecified, logs.
instance_id This property is required. 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 is 36 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}$/.
region str
Cloud Logs Instance Region.
source_type str
Source type to filter policies by.

  • Constraints: Allowable values are: unspecified, logs.
instanceId This property is required. String
Cloud Logs Instance GUID.
enabledOnly Boolean
Optionally filter only enabled policies.
endpointType String
id String
(String) Policy ID.

  • Constraints: The maximum length is 36 characters. The minimum length is 36 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}$/.
region String
Cloud Logs Instance Region.
sourceType String
Source type to filter policies by.

  • Constraints: Allowable values are: unspecified, logs.

getLogsPolicies Result

The following output properties are available:

Id string
(String) Policy ID.

  • Constraints: The maximum length is 36 characters. The minimum length is 36 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}$/.
InstanceId string
Policies List<GetLogsPoliciesPolicy>
(List) Company policies.

  • Constraints: The maximum length is 4096 items. The minimum length is 0 items. Nested schema for policies:
Region string
EnabledOnly bool
EndpointType string
SourceType string
Id string
(String) Policy ID.

  • Constraints: The maximum length is 36 characters. The minimum length is 36 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}$/.
InstanceId string
Policies []GetLogsPoliciesPolicy
(List) Company policies.

  • Constraints: The maximum length is 4096 items. The minimum length is 0 items. Nested schema for policies:
Region string
EnabledOnly bool
EndpointType string
SourceType string
id String
(String) Policy ID.

  • Constraints: The maximum length is 36 characters. The minimum length is 36 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}$/.
instanceId String
policies List<GetLogsPoliciesPolicy>
(List) Company policies.

  • Constraints: The maximum length is 4096 items. The minimum length is 0 items. Nested schema for policies:
region String
enabledOnly Boolean
endpointType String
sourceType String
id string
(String) Policy ID.

  • Constraints: The maximum length is 36 characters. The minimum length is 36 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}$/.
instanceId string
policies GetLogsPoliciesPolicy[]
(List) Company policies.

  • Constraints: The maximum length is 4096 items. The minimum length is 0 items. Nested schema for policies:
region string
enabledOnly boolean
endpointType string
sourceType string
id str
(String) Policy ID.

  • Constraints: The maximum length is 36 characters. The minimum length is 36 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}$/.
instance_id str
policies Sequence[GetLogsPoliciesPolicy]
(List) Company policies.

  • Constraints: The maximum length is 4096 items. The minimum length is 0 items. Nested schema for policies:
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 is 36 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}$/.
instanceId String
policies List<Property Map>
(List) Company policies.

  • Constraints: The maximum length is 4096 items. The minimum length is 0 items. Nested schema for policies:
region String
enabledOnly Boolean
endpointType String
sourceType String

Supporting Types

GetLogsPoliciesPolicy

ApplicationRules This property is required. List<GetLogsPoliciesPolicyApplicationRule>
(List) Rule for matching with application. Nested schema for application_rule:
ArchiveRetentions This property is required. List<GetLogsPoliciesPolicyArchiveRetention>
(List) Archive retention definition. Nested schema for archive_retention:
CompanyId This property is required. double
(Integer) Company ID.
CreatedAt This property is required. string
(String) Created at date at utc+0.

  • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression /^"\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}"$/.
Deleted This property is required. bool
(Boolean) Soft deletion flag.
Description This property is required. string
(String) Description of policy.

  • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9_\\-\\s]+$/.
Enabled This property is required. bool
(Boolean) Enabled flag.
Id This property is required. string
(String) Policy ID.

  • Constraints: The maximum length is 36 characters. The minimum length is 36 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}$/.
LogRules This property is required. List<GetLogsPoliciesPolicyLogRule>
(List) Log rules. Nested schema for log_rules:
Name This property is required. string
(String) Value of the rule.

  • 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}]+$.
Order This property is required. double
(Integer) Order of policy in relation to other policies.
Priority This property is required. 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.
SubsystemRules This property is required. List<GetLogsPoliciesPolicySubsystemRule>
(List) Rule for matching with application. Nested schema for subsystem_rule:
UpdatedAt This property is required. string
(String) Updated at date at utc+0.

  • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression /^"\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}"$/.
ApplicationRules This property is required. []GetLogsPoliciesPolicyApplicationRule
(List) Rule for matching with application. Nested schema for application_rule:
ArchiveRetentions This property is required. []GetLogsPoliciesPolicyArchiveRetention
(List) Archive retention definition. Nested schema for archive_retention:
CompanyId This property is required. float64
(Integer) Company ID.
CreatedAt This property is required. string
(String) Created at date at utc+0.

  • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression /^"\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}"$/.
Deleted This property is required. bool
(Boolean) Soft deletion flag.
Description This property is required. string
(String) Description of policy.

  • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9_\\-\\s]+$/.
Enabled This property is required. bool
(Boolean) Enabled flag.
Id This property is required. string
(String) Policy ID.

  • Constraints: The maximum length is 36 characters. The minimum length is 36 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}$/.
LogRules This property is required. []GetLogsPoliciesPolicyLogRule
(List) Log rules. Nested schema for log_rules:
Name This property is required. string
(String) Value of the rule.

  • 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}]+$.
Order This property is required. float64
(Integer) Order of policy in relation to other policies.
Priority This property is required. 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.
SubsystemRules This property is required. []GetLogsPoliciesPolicySubsystemRule
(List) Rule for matching with application. Nested schema for subsystem_rule:
UpdatedAt This property is required. string
(String) Updated at date at utc+0.

  • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression /^"\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}"$/.
applicationRules This property is required. List<GetLogsPoliciesPolicyApplicationRule>
(List) Rule for matching with application. Nested schema for application_rule:
archiveRetentions This property is required. List<GetLogsPoliciesPolicyArchiveRetention>
(List) Archive retention definition. Nested schema for archive_retention:
companyId This property is required. Double
(Integer) Company ID.
createdAt This property is required. String
(String) Created at date at utc+0.

  • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression /^"\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}"$/.
deleted This property is required. Boolean
(Boolean) Soft deletion flag.
description This property is required. String
(String) Description of policy.

  • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9_\\-\\s]+$/.
enabled This property is required. Boolean
(Boolean) Enabled flag.
id This property is required. String
(String) Policy ID.

  • Constraints: The maximum length is 36 characters. The minimum length is 36 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}$/.
logRules This property is required. List<GetLogsPoliciesPolicyLogRule>
(List) Log rules. Nested schema for log_rules:
name This property is required. String
(String) Value of the rule.

  • 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}]+$.
order This property is required. Double
(Integer) Order of policy in relation to other policies.
priority This property is required. 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.
subsystemRules This property is required. List<GetLogsPoliciesPolicySubsystemRule>
(List) Rule for matching with application. Nested schema for subsystem_rule:
updatedAt This property is required. String
(String) Updated at date at utc+0.

  • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression /^"\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}"$/.
applicationRules This property is required. GetLogsPoliciesPolicyApplicationRule[]
(List) Rule for matching with application. Nested schema for application_rule:
archiveRetentions This property is required. GetLogsPoliciesPolicyArchiveRetention[]
(List) Archive retention definition. Nested schema for archive_retention:
companyId This property is required. number
(Integer) Company ID.
createdAt This property is required. string
(String) Created at date at utc+0.

  • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression /^"\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}"$/.
deleted This property is required. boolean
(Boolean) Soft deletion flag.
description This property is required. string
(String) Description of policy.

  • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9_\\-\\s]+$/.
enabled This property is required. boolean
(Boolean) Enabled flag.
id This property is required. string
(String) Policy ID.

  • Constraints: The maximum length is 36 characters. The minimum length is 36 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}$/.
logRules This property is required. GetLogsPoliciesPolicyLogRule[]
(List) Log rules. Nested schema for log_rules:
name This property is required. string
(String) Value of the rule.

  • 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}]+$.
order This property is required. number
(Integer) Order of policy in relation to other policies.
priority This property is required. 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.
subsystemRules This property is required. GetLogsPoliciesPolicySubsystemRule[]
(List) Rule for matching with application. Nested schema for subsystem_rule:
updatedAt This property is required. string
(String) Updated at date at utc+0.

  • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression /^"\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}"$/.
application_rules This property is required. Sequence[GetLogsPoliciesPolicyApplicationRule]
(List) Rule for matching with application. Nested schema for application_rule:
archive_retentions This property is required. Sequence[GetLogsPoliciesPolicyArchiveRetention]
(List) Archive retention definition. Nested schema for archive_retention:
company_id This property is required. float
(Integer) Company ID.
created_at This property is required. str
(String) Created at date at utc+0.

  • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression /^"\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}"$/.
deleted This property is required. bool
(Boolean) Soft deletion flag.
description This property is required. str
(String) Description of policy.

  • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9_\\-\\s]+$/.
enabled This property is required. bool
(Boolean) Enabled flag.
id This property is required. str
(String) Policy ID.

  • Constraints: The maximum length is 36 characters. The minimum length is 36 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}$/.
log_rules This property is required. Sequence[GetLogsPoliciesPolicyLogRule]
(List) Log rules. Nested schema for log_rules:
name This property is required. str
(String) Value of the rule.

  • 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}]+$.
order This property is required. float
(Integer) Order of policy in relation to other policies.
priority This property is required. 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.
subsystem_rules This property is required. Sequence[GetLogsPoliciesPolicySubsystemRule]
(List) Rule for matching with application. Nested schema for subsystem_rule:
updated_at This property is required. str
(String) Updated at date at utc+0.

  • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression /^"\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}"$/.
applicationRules This property is required. List<Property Map>
(List) Rule for matching with application. Nested schema for application_rule:
archiveRetentions This property is required. List<Property Map>
(List) Archive retention definition. Nested schema for archive_retention:
companyId This property is required. Number
(Integer) Company ID.
createdAt This property is required. String
(String) Created at date at utc+0.

  • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression /^"\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}"$/.
deleted This property is required. Boolean
(Boolean) Soft deletion flag.
description This property is required. String
(String) Description of policy.

  • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9_\\-\\s]+$/.
enabled This property is required. Boolean
(Boolean) Enabled flag.
id This property is required. String
(String) Policy ID.

  • Constraints: The maximum length is 36 characters. The minimum length is 36 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}$/.
logRules This property is required. List<Property Map>
(List) Log rules. Nested schema for log_rules:
name This property is required. String
(String) Value of the rule.

  • 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}]+$.
order This property is required. Number
(Integer) Order of policy in relation to other policies.
priority This property is required. 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.
subsystemRules This property is required. List<Property Map>
(List) Rule for matching with application. Nested schema for subsystem_rule:
updatedAt This property is required. String
(String) Updated at date at utc+0.

  • Constraints: The maximum length is 4096 characters. The minimum length is 1 character. The value must match regular expression /^"\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}"$/.

GetLogsPoliciesPolicyApplicationRule

Name This property is required. string
(String) Value of the rule.

  • 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}]+$.
RuleTypeId This property is required. string
(String) Identifier of the rule.

  • Constraints: Allowable values are: unspecified, is, is_not, start_with, includes.
Name This property is required. string
(String) Value of the rule.

  • 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}]+$.
RuleTypeId This property is required. string
(String) Identifier of the rule.

  • Constraints: Allowable values are: unspecified, is, is_not, start_with, includes.
name This property is required. String
(String) Value of the rule.

  • 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}]+$.
ruleTypeId This property is required. String
(String) Identifier of the rule.

  • Constraints: Allowable values are: unspecified, is, is_not, start_with, includes.
name This property is required. string
(String) Value of the rule.

  • 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}]+$.
ruleTypeId This property is required. string
(String) Identifier of the rule.

  • Constraints: Allowable values are: unspecified, is, is_not, start_with, includes.
name This property is required. str
(String) Value of the rule.

  • 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}]+$.
rule_type_id This property is required. str
(String) Identifier of the rule.

  • Constraints: Allowable values are: unspecified, is, is_not, start_with, includes.
name This property is required. String
(String) Value of the rule.

  • 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}]+$.
ruleTypeId This property is required. String
(String) Identifier of the rule.

  • Constraints: Allowable values are: unspecified, is, is_not, start_with, includes.

GetLogsPoliciesPolicyArchiveRetention

Id This property is required. string
(String) Policy ID.

  • Constraints: The maximum length is 36 characters. The minimum length is 36 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}$/.
Id This property is required. string
(String) Policy ID.

  • Constraints: The maximum length is 36 characters. The minimum length is 36 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}$/.
id This property is required. String
(String) Policy ID.

  • Constraints: The maximum length is 36 characters. The minimum length is 36 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}$/.
id This property is required. string
(String) Policy ID.

  • Constraints: The maximum length is 36 characters. The minimum length is 36 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}$/.
id This property is required. str
(String) Policy ID.

  • Constraints: The maximum length is 36 characters. The minimum length is 36 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}$/.
id This property is required. String
(String) Policy ID.

  • Constraints: The maximum length is 36 characters. The minimum length is 36 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}$/.

GetLogsPoliciesPolicyLogRule

Severities This property is required. List<string>
(List) Source severities to match with.

  • Constraints: Allowable list items are: unspecified, debug, verbose, info, warning, error, critical. The maximum length is 4096 items. The minimum length is 0 items.
Severities This property is required. []string
(List) Source severities to match with.

  • Constraints: Allowable list items are: unspecified, debug, verbose, info, warning, error, critical. The maximum length is 4096 items. The minimum length is 0 items.
severities This property is required. List<String>
(List) Source severities to match with.

  • Constraints: Allowable list items are: unspecified, debug, verbose, info, warning, error, critical. The maximum length is 4096 items. The minimum length is 0 items.
severities This property is required. string[]
(List) Source severities to match with.

  • Constraints: Allowable list items are: unspecified, debug, verbose, info, warning, error, critical. The maximum length is 4096 items. The minimum length is 0 items.
severities This property is required. Sequence[str]
(List) Source severities to match with.

  • Constraints: Allowable list items are: unspecified, debug, verbose, info, warning, error, critical. The maximum length is 4096 items. The minimum length is 0 items.
severities This property is required. List<String>
(List) Source severities to match with.

  • Constraints: Allowable list items are: unspecified, debug, verbose, info, warning, error, critical. The maximum length is 4096 items. The minimum length is 0 items.

GetLogsPoliciesPolicySubsystemRule

Name This property is required. string
(String) Value of the rule.

  • 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}]+$.
RuleTypeId This property is required. string
(String) Identifier of the rule.

  • Constraints: Allowable values are: unspecified, is, is_not, start_with, includes.
Name This property is required. string
(String) Value of the rule.

  • 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}]+$.
RuleTypeId This property is required. string
(String) Identifier of the rule.

  • Constraints: Allowable values are: unspecified, is, is_not, start_with, includes.
name This property is required. String
(String) Value of the rule.

  • 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}]+$.
ruleTypeId This property is required. String
(String) Identifier of the rule.

  • Constraints: Allowable values are: unspecified, is, is_not, start_with, includes.
name This property is required. string
(String) Value of the rule.

  • 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}]+$.
ruleTypeId This property is required. string
(String) Identifier of the rule.

  • Constraints: Allowable values are: unspecified, is, is_not, start_with, includes.
name This property is required. str
(String) Value of the rule.

  • 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}]+$.
rule_type_id This property is required. str
(String) Identifier of the rule.

  • Constraints: Allowable values are: unspecified, is, is_not, start_with, includes.
name This property is required. String
(String) Value of the rule.

  • 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}]+$.
ruleTypeId This property is required. String
(String) Identifier of the rule.

  • Constraints: Allowable values are: unspecified, is, is_not, start_with, includes.

Package Details

Repository
ibm ibm-cloud/terraform-provider-ibm
License
Notes
This Pulumi package is based on the ibm Terraform Provider.