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

coralogix.getArchiveRetentions

Explore with Pulumi AI

coralogix logo
coralogix 2.0.17 published on Tuesday, Apr 22, 2025 by coralogix

    Coralogix archive-retention. For more info please review - https://coralogix.com/docs/archive-setup-grpc-api/.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as coralogix from "@pulumi/coralogix";
    
    const example = coralogix.getArchiveRetentions({});
    
    import pulumi
    import pulumi_coralogix as coralogix
    
    example = coralogix.get_archive_retentions()
    
    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.LookupArchiveRetentions(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 example = Coralogix.GetArchiveRetentions.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 example = CoralogixFunctions.getArchiveRetentions();
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: coralogix:getArchiveRetentions
          arguments: {}
    

    Using getArchiveRetentions

    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 getArchiveRetentions(opts?: InvokeOptions): Promise<GetArchiveRetentionsResult>
    function getArchiveRetentionsOutput(opts?: InvokeOptions): Output<GetArchiveRetentionsResult>
    def get_archive_retentions(opts: Optional[InvokeOptions] = None) -> GetArchiveRetentionsResult
    def get_archive_retentions_output(opts: Optional[InvokeOptions] = None) -> Output[GetArchiveRetentionsResult]
    func LookupArchiveRetentions(ctx *Context, opts ...InvokeOption) (*LookupArchiveRetentionsResult, error)
    func LookupArchiveRetentionsOutput(ctx *Context, opts ...InvokeOption) LookupArchiveRetentionsResultOutput

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

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

    getArchiveRetentions Result

    The following output properties are available:

    Id string
    The ID of this resource.
    Retentions List<GetArchiveRetentionsRetention>
    List of 4 retentions. The first retention is the default retention and can't be renamed.
    Id string
    The ID of this resource.
    Retentions []GetArchiveRetentionsRetention
    List of 4 retentions. The first retention is the default retention and can't be renamed.
    id String
    The ID of this resource.
    retentions List<GetArchiveRetentionsRetention>
    List of 4 retentions. The first retention is the default retention and can't be renamed.
    id string
    The ID of this resource.
    retentions GetArchiveRetentionsRetention[]
    List of 4 retentions. The first retention is the default retention and can't be renamed.
    id str
    The ID of this resource.
    retentions Sequence[GetArchiveRetentionsRetention]
    List of 4 retentions. The first retention is the default retention and can't be renamed.
    id String
    The ID of this resource.
    retentions List<Property Map>
    List of 4 retentions. The first retention is the default retention and can't be renamed.

    Supporting Types

    GetArchiveRetentionsRetention

    Editable bool
    Is the retention editable.
    Id string
    The retention id.
    Name string
    The retention name. If not set, the retention will be named by backend.
    Order double
    The retention order. Computed by the order of the retention in the retentions list definition.
    Editable bool
    Is the retention editable.
    Id string
    The retention id.
    Name string
    The retention name. If not set, the retention will be named by backend.
    Order float64
    The retention order. Computed by the order of the retention in the retentions list definition.
    editable Boolean
    Is the retention editable.
    id String
    The retention id.
    name String
    The retention name. If not set, the retention will be named by backend.
    order Double
    The retention order. Computed by the order of the retention in the retentions list definition.
    editable boolean
    Is the retention editable.
    id string
    The retention id.
    name string
    The retention name. If not set, the retention will be named by backend.
    order number
    The retention order. Computed by the order of the retention in the retentions list definition.
    editable bool
    Is the retention editable.
    id str
    The retention id.
    name str
    The retention name. If not set, the retention will be named by backend.
    order float
    The retention order. Computed by the order of the retention in the retentions list definition.
    editable Boolean
    Is the retention editable.
    id String
    The retention id.
    name String
    The retention name. If not set, the retention will be named by backend.
    order Number
    The retention order. Computed by the order of the retention in the retentions list definition.

    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