1. Packages
  2. Coralogix Provider
  3. API Docs
  4. getTcoPoliciesTraces
coralogix 2.0.17 published on Tuesday, Apr 22, 2025 by coralogix

coralogix.getTcoPoliciesTraces

Explore with Pulumi AI

coralogix logo
coralogix 2.0.17 published on Tuesday, Apr 22, 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 tcoPoliciesData = coralogix.getTcoPoliciesTraces({});
    
    import pulumi
    import pulumi_coralogix as coralogix
    
    tco_policies_data = coralogix.get_tco_policies_traces()
    
    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.LookupTcoPoliciesTraces(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 tcoPoliciesData = Coralogix.GetTcoPoliciesTraces.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 tcoPoliciesData = CoralogixFunctions.getTcoPoliciesTraces();
    
        }
    }
    
    variables:
      tcoPoliciesData:
        fn::invoke:
          function: coralogix:getTcoPoliciesTraces
          arguments: {}
    

    Using getTcoPoliciesTraces

    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 getTcoPoliciesTraces(opts?: InvokeOptions): Promise<GetTcoPoliciesTracesResult>
    function getTcoPoliciesTracesOutput(opts?: InvokeOptions): Output<GetTcoPoliciesTracesResult>
    def get_tco_policies_traces(opts: Optional[InvokeOptions] = None) -> GetTcoPoliciesTracesResult
    def get_tco_policies_traces_output(opts: Optional[InvokeOptions] = None) -> Output[GetTcoPoliciesTracesResult]
    func LookupTcoPoliciesTraces(ctx *Context, opts ...InvokeOption) (*LookupTcoPoliciesTracesResult, error)
    func LookupTcoPoliciesTracesOutput(ctx *Context, opts ...InvokeOption) LookupTcoPoliciesTracesResultOutput

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

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

    getTcoPoliciesTraces Result

    The following output properties are available:

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

    Supporting Types

    GetTcoPoliciesTracesPolicy

    Actions GetTcoPoliciesTracesPolicyActions
    The actions to apply the policy on. Applies the policy on all the actions by default.
    Applications GetTcoPoliciesTracesPolicyApplications
    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"].
    Services GetTcoPoliciesTracesPolicyServices
    The services to apply the policy on. Applies the policy on all the services by default.
    Subsystems GetTcoPoliciesTracesPolicySubsystems
    The subsystems to apply the policy on. Applies the policy on all the subsystems by default.
    Tags Dictionary<string, GetTcoPoliciesTracesPolicyTags>
    The tags to apply the policy on. Applies the policy on all the tags by default.
    Actions GetTcoPoliciesTracesPolicyActions
    The actions to apply the policy on. Applies the policy on all the actions by default.
    Applications GetTcoPoliciesTracesPolicyApplications
    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"].
    Services GetTcoPoliciesTracesPolicyServices
    The services to apply the policy on. Applies the policy on all the services by default.
    Subsystems GetTcoPoliciesTracesPolicySubsystems
    The subsystems to apply the policy on. Applies the policy on all the subsystems by default.
    Tags map[string]GetTcoPoliciesTracesPolicyTags
    The tags to apply the policy on. Applies the policy on all the tags by default.
    actions GetTcoPoliciesTracesPolicyActions
    The actions to apply the policy on. Applies the policy on all the actions by default.
    applications GetTcoPoliciesTracesPolicyApplications
    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"].
    services GetTcoPoliciesTracesPolicyServices
    The services to apply the policy on. Applies the policy on all the services by default.
    subsystems GetTcoPoliciesTracesPolicySubsystems
    The subsystems to apply the policy on. Applies the policy on all the subsystems by default.
    tags Map<String,GetTcoPoliciesTracesPolicyTags>
    The tags to apply the policy on. Applies the policy on all the tags by default.
    actions GetTcoPoliciesTracesPolicyActions
    The actions to apply the policy on. Applies the policy on all the actions by default.
    applications GetTcoPoliciesTracesPolicyApplications
    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"].
    services GetTcoPoliciesTracesPolicyServices
    The services to apply the policy on. Applies the policy on all the services by default.
    subsystems GetTcoPoliciesTracesPolicySubsystems
    The subsystems to apply the policy on. Applies the policy on all the subsystems by default.
    tags {[key: string]: GetTcoPoliciesTracesPolicyTags}
    The tags to apply the policy on. Applies the policy on all the tags by default.
    actions GetTcoPoliciesTracesPolicyActions
    The actions to apply the policy on. Applies the policy on all the actions by default.
    applications GetTcoPoliciesTracesPolicyApplications
    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"].
    services GetTcoPoliciesTracesPolicyServices
    The services to apply the policy on. Applies the policy on all the services by default.
    subsystems GetTcoPoliciesTracesPolicySubsystems
    The subsystems to apply the policy on. Applies the policy on all the subsystems by default.
    tags Mapping[str, GetTcoPoliciesTracesPolicyTags]
    The tags to apply the policy on. Applies the policy on all the tags by default.
    actions Property Map
    The actions to apply the policy on. Applies the policy on all the actions 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"].
    services Property Map
    The services to apply the policy on. Applies the policy on all the services by default.
    subsystems Property Map
    The subsystems to apply the policy on. Applies the policy on all the subsystems by default.
    tags Map<Property Map>
    The tags to apply the policy on. Applies the policy on all the tags by default.

    GetTcoPoliciesTracesPolicyActions

    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

    GetTcoPoliciesTracesPolicyApplications

    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

    GetTcoPoliciesTracesPolicyServices

    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

    GetTcoPoliciesTracesPolicySubsystems

    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

    GetTcoPoliciesTracesPolicyTags

    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.17 published on Tuesday, Apr 22, 2025 by coralogix