1. Packages
  2. Coralogix Provider
  3. API Docs
  4. getTcoPoliciesLogs
coralogix 2.0.16 published on Monday, Apr 14, 2025 by coralogix

coralogix.getTcoPoliciesLogs

Explore with Pulumi AI

Coralogix TCO-Policies-List. For more information - https://coralogix.com/docs/tco-optimizer-api.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as coralogix from "@pulumi/coralogix";

const dataTcoPolicies = coralogix.getTcoPoliciesLogs({});
Copy
import pulumi
import pulumi_coralogix as coralogix

data_tco_policies = coralogix.get_tco_policies_logs()
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/coralogix/v2/coralogix"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := coralogix.LookupTcoPoliciesLogs(ctx, map[string]interface{}{}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Coralogix = Pulumi.Coralogix;

return await Deployment.RunAsync(() => 
{
    var dataTcoPolicies = Coralogix.GetTcoPoliciesLogs.Invoke();

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.coralogix.CoralogixFunctions;
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 dataTcoPolicies = CoralogixFunctions.getTcoPoliciesLogs();

    }
}
Copy
variables:
  dataTcoPolicies:
    fn::invoke:
      function: coralogix:getTcoPoliciesLogs
      arguments: {}
Copy

Using getTcoPoliciesLogs

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 getTcoPoliciesLogs(opts?: InvokeOptions): Promise<GetTcoPoliciesLogsResult>
function getTcoPoliciesLogsOutput(opts?: InvokeOptions): Output<GetTcoPoliciesLogsResult>
Copy
def get_tco_policies_logs(opts: Optional[InvokeOptions] = None) -> GetTcoPoliciesLogsResult
def get_tco_policies_logs_output(opts: Optional[InvokeOptions] = None) -> Output[GetTcoPoliciesLogsResult]
Copy
func LookupTcoPoliciesLogs(ctx *Context, opts ...InvokeOption) (*LookupTcoPoliciesLogsResult, error)
func LookupTcoPoliciesLogsOutput(ctx *Context, opts ...InvokeOption) LookupTcoPoliciesLogsResultOutput
Copy

> Note: This function is named LookupTcoPoliciesLogs in the Go SDK.

public static class GetTcoPoliciesLogs 
{
    public static Task<GetTcoPoliciesLogsResult> InvokeAsync(InvokeOptions? opts = null)
    public static Output<GetTcoPoliciesLogsResult> Invoke(InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetTcoPoliciesLogsResult> getTcoPoliciesLogs(InvokeOptions options)
public static Output<GetTcoPoliciesLogsResult> getTcoPoliciesLogs(InvokeOptions options)
Copy
fn::invoke:
  function: coralogix:index/getTcoPoliciesLogs:getTcoPoliciesLogs
  arguments:
    # arguments dictionary
Copy

getTcoPoliciesLogs Result

The following output properties are available:

Id string
This field can be ignored
Policies List<GetTcoPoliciesLogsPolicy>
Id string
This field can be ignored
Policies []GetTcoPoliciesLogsPolicy
id String
This field can be ignored
policies List<GetTcoPoliciesLogsPolicy>
id string
This field can be ignored
policies GetTcoPoliciesLogsPolicy[]
id str
This field can be ignored
policies Sequence[GetTcoPoliciesLogsPolicy]
id String
This field can be ignored
policies List<Property Map>

Supporting Types

GetTcoPoliciesLogsPolicy

Applications This property is required. GetTcoPoliciesLogsPolicyApplications
The applications to apply the policy on. Applies the policy on all the applications by default.
ArchiveRetentionId This property is required. string
Allowing logs with a specific retention to be tagged.
Description This property is required. string
The policy description
Enabled This property is required. bool
Determines weather the policy will be enabled. True by default.
Id This property is required. string
tco-policy ID.
Name This property is required. string
tco-policy name.
Order This property is required. double
The policy's order between the other policies.
Priority This property is required. string
The policy priority. Can be one of ["block" "high" "low" "medium"].
Severities This property is required. List<string>
The severities to apply the policy on. Valid severities are ["critical" "debug" "error" "info" "verbose" "warning"].
Subsystems This property is required. GetTcoPoliciesLogsPolicySubsystems
The subsystems to apply the policy on. Applies the policy on all the subsystems by default.
Applications This property is required. GetTcoPoliciesLogsPolicyApplications
The applications to apply the policy on. Applies the policy on all the applications by default.
ArchiveRetentionId This property is required. string
Allowing logs with a specific retention to be tagged.
Description This property is required. string
The policy description
Enabled This property is required. bool
Determines weather the policy will be enabled. True by default.
Id This property is required. string
tco-policy ID.
Name This property is required. string
tco-policy name.
Order This property is required. float64
The policy's order between the other policies.
Priority This property is required. string
The policy priority. Can be one of ["block" "high" "low" "medium"].
Severities This property is required. []string
The severities to apply the policy on. Valid severities are ["critical" "debug" "error" "info" "verbose" "warning"].
Subsystems This property is required. GetTcoPoliciesLogsPolicySubsystems
The subsystems to apply the policy on. Applies the policy on all the subsystems by default.
applications This property is required. GetTcoPoliciesLogsPolicyApplications
The applications to apply the policy on. Applies the policy on all the applications by default.
archiveRetentionId This property is required. String
Allowing logs with a specific retention to be tagged.
description This property is required. String
The policy description
enabled This property is required. Boolean
Determines weather the policy will be enabled. True by default.
id This property is required. String
tco-policy ID.
name This property is required. String
tco-policy name.
order This property is required. Double
The policy's order between the other policies.
priority This property is required. String
The policy priority. Can be one of ["block" "high" "low" "medium"].
severities This property is required. List<String>
The severities to apply the policy on. Valid severities are ["critical" "debug" "error" "info" "verbose" "warning"].
subsystems This property is required. GetTcoPoliciesLogsPolicySubsystems
The subsystems to apply the policy on. Applies the policy on all the subsystems by default.
applications This property is required. GetTcoPoliciesLogsPolicyApplications
The applications to apply the policy on. Applies the policy on all the applications by default.
archiveRetentionId This property is required. string
Allowing logs with a specific retention to be tagged.
description This property is required. string
The policy description
enabled This property is required. boolean
Determines weather the policy will be enabled. True by default.
id This property is required. string
tco-policy ID.
name This property is required. string
tco-policy name.
order This property is required. number
The policy's order between the other policies.
priority This property is required. string
The policy priority. Can be one of ["block" "high" "low" "medium"].
severities This property is required. string[]
The severities to apply the policy on. Valid severities are ["critical" "debug" "error" "info" "verbose" "warning"].
subsystems This property is required. GetTcoPoliciesLogsPolicySubsystems
The subsystems to apply the policy on. Applies the policy on all the subsystems by default.
applications This property is required. GetTcoPoliciesLogsPolicyApplications
The applications to apply the policy on. Applies the policy on all the applications by default.
archive_retention_id This property is required. str
Allowing logs with a specific retention to be tagged.
description This property is required. str
The policy description
enabled This property is required. bool
Determines weather the policy will be enabled. True by default.
id This property is required. str
tco-policy ID.
name This property is required. str
tco-policy name.
order This property is required. float
The policy's order between the other policies.
priority This property is required. str
The policy priority. Can be one of ["block" "high" "low" "medium"].
severities This property is required. Sequence[str]
The severities to apply the policy on. Valid severities are ["critical" "debug" "error" "info" "verbose" "warning"].
subsystems This property is required. GetTcoPoliciesLogsPolicySubsystems
The subsystems to apply the policy on. Applies the policy on all the subsystems by default.
applications This property is required. Property Map
The applications to apply the policy on. Applies the policy on all the applications by default.
archiveRetentionId This property is required. String
Allowing logs with a specific retention to be tagged.
description This property is required. String
The policy description
enabled This property is required. Boolean
Determines weather the policy will be enabled. True by default.
id This property is required. String
tco-policy ID.
name This property is required. String
tco-policy name.
order This property is required. Number
The policy's order between the other policies.
priority This property is required. String
The policy priority. Can be one of ["block" "high" "low" "medium"].
severities This property is required. List<String>
The severities to apply the policy on. Valid severities are ["critical" "debug" "error" "info" "verbose" "warning"].
subsystems This property is required. Property Map
The subsystems to apply the policy on. Applies the policy on all the subsystems by default.

GetTcoPoliciesLogsPolicyApplications

Names This property is required. List<string>
RuleType This property is required. string
The rule type. Can be one of ["includes" "is" "isnot" "startswith" "unspecified"].
Names This property is required. []string
RuleType This property is required. string
The rule type. Can be one of ["includes" "is" "isnot" "startswith" "unspecified"].
names This property is required. List<String>
ruleType This property is required. String
The rule type. Can be one of ["includes" "is" "isnot" "startswith" "unspecified"].
names This property is required. string[]
ruleType This property is required. string
The rule type. Can be one of ["includes" "is" "isnot" "startswith" "unspecified"].
names This property is required. Sequence[str]
rule_type This property is required. str
The rule type. Can be one of ["includes" "is" "isnot" "startswith" "unspecified"].
names This property is required. List<String>
ruleType This property is required. String
The rule type. Can be one of ["includes" "is" "isnot" "startswith" "unspecified"].

GetTcoPoliciesLogsPolicySubsystems

Names This property is required. List<string>
RuleType This property is required. string
Names This property is required. []string
RuleType This property is required. string
names This property is required. List<String>
ruleType This property is required. String
names This property is required. string[]
ruleType This property is required. string
names This property is required. Sequence[str]
rule_type This property is required. str
names This property is required. List<String>
ruleType This property is required. String

Package Details

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