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 logo
coralogix 2.0.16 published on Monday, Apr 14, 2025 by coralogix

    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({});
    
    import pulumi
    import pulumi_coralogix as coralogix
    
    data_tco_policies = coralogix.get_tco_policies_logs()
    
    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
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Coralogix = Pulumi.Coralogix;
    
    return await Deployment.RunAsync(() => 
    {
        var dataTcoPolicies = Coralogix.GetTcoPoliciesLogs.Invoke();
    
    });
    
    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();
    
        }
    }
    
    variables:
      dataTcoPolicies:
        fn::invoke:
          function: coralogix:getTcoPoliciesLogs
          arguments: {}
    

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

    > 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)
    }
    public static CompletableFuture<GetTcoPoliciesLogsResult> getTcoPoliciesLogs(InvokeOptions options)
    public static Output<GetTcoPoliciesLogsResult> getTcoPoliciesLogs(InvokeOptions options)
    
    fn::invoke:
      function: coralogix:index/getTcoPoliciesLogs:getTcoPoliciesLogs
      arguments:
        # arguments dictionary

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

    GetTcoPoliciesLogsPolicyApplications

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

    GetTcoPoliciesLogsPolicySubsystems

    Names List<string>
    RuleType string
    Names []string
    RuleType string
    names List<String>
    ruleType String
    names string[]
    ruleType string
    names Sequence[str]
    rule_type str
    names List<String>
    ruleType String

    Package Details

    Repository
    coralogix coralogix/terraform-provider-coralogix
    License
    Notes
    This Pulumi package is based on the coralogix Terraform Provider.
    coralogix logo
    coralogix 2.0.16 published on Monday, Apr 14, 2025 by coralogix