1. Packages
  2. Packages
  3. Gcore Provider
  4. API Docs
  5. getCdnLogsUploaderPolicy
Viewing docs for gcore 2.0.0-alpha.11
published on Wednesday, Jul 1, 2026 by g-core
Viewing docs for gcore 2.0.0-alpha.11
published on Wednesday, Jul 1, 2026 by g-core

    Logs uploader policies define how CDN logs are formatted and delivered, including field selection, field ordering, delimiters, delivery frequency, and file size limits.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as gcore from "@pulumi/gcore";
    
    const exampleCdnLogsUploaderPolicy = gcore.getCdnLogsUploaderPolicy({
        id: 0,
    });
    
    import pulumi
    import pulumi_gcore as gcore
    
    example_cdn_logs_uploader_policy = gcore.get_cdn_logs_uploader_policy(id=0)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/gcore/v2/gcore"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := gcore.LookupCdnLogsUploaderPolicy(ctx, &gcore.LookupCdnLogsUploaderPolicyArgs{
    			Id: 0,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcore = Pulumi.Gcore;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleCdnLogsUploaderPolicy = Gcore.GetCdnLogsUploaderPolicy.Invoke(new()
        {
            Id = 0,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcore.GcoreFunctions;
    import com.pulumi.gcore.inputs.GetCdnLogsUploaderPolicyArgs;
    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 exampleCdnLogsUploaderPolicy = GcoreFunctions.getCdnLogsUploaderPolicy(GetCdnLogsUploaderPolicyArgs.builder()
                .id(0)
                .build());
    
        }
    }
    
    variables:
      exampleCdnLogsUploaderPolicy:
        fn::invoke:
          function: gcore:getCdnLogsUploaderPolicy
          arguments:
            id: 0
    
    Example coming soon!
    

    Using getCdnLogsUploaderPolicy

    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 getCdnLogsUploaderPolicy(args: GetCdnLogsUploaderPolicyArgs, opts?: InvokeOptions): Promise<GetCdnLogsUploaderPolicyResult>
    function getCdnLogsUploaderPolicyOutput(args: GetCdnLogsUploaderPolicyOutputArgs, opts?: InvokeOptions): Output<GetCdnLogsUploaderPolicyResult>
    def get_cdn_logs_uploader_policy(id: Optional[float] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetCdnLogsUploaderPolicyResult
    def get_cdn_logs_uploader_policy_output(id: pulumi.Input[Optional[float]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetCdnLogsUploaderPolicyResult]
    func LookupCdnLogsUploaderPolicy(ctx *Context, args *LookupCdnLogsUploaderPolicyArgs, opts ...InvokeOption) (*LookupCdnLogsUploaderPolicyResult, error)
    func LookupCdnLogsUploaderPolicyOutput(ctx *Context, args *LookupCdnLogsUploaderPolicyOutputArgs, opts ...InvokeOption) LookupCdnLogsUploaderPolicyResultOutput

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

    public static class GetCdnLogsUploaderPolicy 
    {
        public static Task<GetCdnLogsUploaderPolicyResult> InvokeAsync(GetCdnLogsUploaderPolicyArgs args, InvokeOptions? opts = null)
        public static Output<GetCdnLogsUploaderPolicyResult> Invoke(GetCdnLogsUploaderPolicyInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCdnLogsUploaderPolicyResult> getCdnLogsUploaderPolicy(GetCdnLogsUploaderPolicyArgs args, InvokeOptions options)
    public static Output<GetCdnLogsUploaderPolicyResult> getCdnLogsUploaderPolicy(GetCdnLogsUploaderPolicyArgs args, InvokeOptions options)
    
    fn::invoke:
      function: gcore:index/getCdnLogsUploaderPolicy:getCdnLogsUploaderPolicy
      arguments:
        # arguments dictionary
    data "gcore_getcdnlogsuploaderpolicy" "name" {
        # arguments
    }

    The following arguments are supported:

    Id double
    Id float64
    id number
    id Double
    id number
    id float
    id Number

    getCdnLogsUploaderPolicy Result

    The following output properties are available:

    ClientId double
    Client that owns the policy.
    Created string
    Time when logs uploader policy was created.
    DateFormat string
    Date format for logs.
    Description string
    Description of the policy.
    EscapeSpecialCharacters bool
    When set to true, the service sanitizes string values by escaping characters that may be unsafe for transport, logging, or downstream processing.
    FieldDelimiter string
    FieldSeparator string
    Fields List<string>
    FileNameTemplate string
    FormatType string
    Id double
    IncludeEmptyLogs bool
    IncludeShieldLogs bool
    LogSampleRate double
    Name string
    RelatedUploaderConfigs List<double>
    RetryIntervalMinutes double
    RotateIntervalMinutes double
    RotateThresholdLines double
    RotateThresholdMb double
    Tags Dictionary<string, string>
    Updated string
    ClientId float64
    Client that owns the policy.
    Created string
    Time when logs uploader policy was created.
    DateFormat string
    Date format for logs.
    Description string
    Description of the policy.
    EscapeSpecialCharacters bool
    When set to true, the service sanitizes string values by escaping characters that may be unsafe for transport, logging, or downstream processing.
    FieldDelimiter string
    FieldSeparator string
    Fields []string
    FileNameTemplate string
    FormatType string
    Id float64
    IncludeEmptyLogs bool
    IncludeShieldLogs bool
    LogSampleRate float64
    Name string
    RelatedUploaderConfigs []float64
    RetryIntervalMinutes float64
    RotateIntervalMinutes float64
    RotateThresholdLines float64
    RotateThresholdMb float64
    Tags map[string]string
    Updated string
    client_id number
    Client that owns the policy.
    created string
    Time when logs uploader policy was created.
    date_format string
    Date format for logs.
    description string
    Description of the policy.
    escape_special_characters bool
    When set to true, the service sanitizes string values by escaping characters that may be unsafe for transport, logging, or downstream processing.
    field_delimiter string
    field_separator string
    fields list(string)
    file_name_template string
    format_type string
    id number
    include_empty_logs bool
    include_shield_logs bool
    log_sample_rate number
    name string
    related_uploader_configs list(number)
    retry_interval_minutes number
    rotate_interval_minutes number
    rotate_threshold_lines number
    rotate_threshold_mb number
    tags map(string)
    updated string
    clientId Double
    Client that owns the policy.
    created String
    Time when logs uploader policy was created.
    dateFormat String
    Date format for logs.
    description String
    Description of the policy.
    escapeSpecialCharacters Boolean
    When set to true, the service sanitizes string values by escaping characters that may be unsafe for transport, logging, or downstream processing.
    fieldDelimiter String
    fieldSeparator String
    fields List<String>
    fileNameTemplate String
    formatType String
    id Double
    includeEmptyLogs Boolean
    includeShieldLogs Boolean
    logSampleRate Double
    name String
    relatedUploaderConfigs List<Double>
    retryIntervalMinutes Double
    rotateIntervalMinutes Double
    rotateThresholdLines Double
    rotateThresholdMb Double
    tags Map<String,String>
    updated String
    clientId number
    Client that owns the policy.
    created string
    Time when logs uploader policy was created.
    dateFormat string
    Date format for logs.
    description string
    Description of the policy.
    escapeSpecialCharacters boolean
    When set to true, the service sanitizes string values by escaping characters that may be unsafe for transport, logging, or downstream processing.
    fieldDelimiter string
    fieldSeparator string
    fields string[]
    fileNameTemplate string
    formatType string
    id number
    includeEmptyLogs boolean
    includeShieldLogs boolean
    logSampleRate number
    name string
    relatedUploaderConfigs number[]
    retryIntervalMinutes number
    rotateIntervalMinutes number
    rotateThresholdLines number
    rotateThresholdMb number
    tags {[key: string]: string}
    updated string
    client_id float
    Client that owns the policy.
    created str
    Time when logs uploader policy was created.
    date_format str
    Date format for logs.
    description str
    Description of the policy.
    escape_special_characters bool
    When set to true, the service sanitizes string values by escaping characters that may be unsafe for transport, logging, or downstream processing.
    field_delimiter str
    field_separator str
    fields Sequence[str]
    file_name_template str
    format_type str
    id float
    include_empty_logs bool
    include_shield_logs bool
    log_sample_rate float
    name str
    related_uploader_configs Sequence[float]
    retry_interval_minutes float
    rotate_interval_minutes float
    rotate_threshold_lines float
    rotate_threshold_mb float
    tags Mapping[str, str]
    updated str
    clientId Number
    Client that owns the policy.
    created String
    Time when logs uploader policy was created.
    dateFormat String
    Date format for logs.
    description String
    Description of the policy.
    escapeSpecialCharacters Boolean
    When set to true, the service sanitizes string values by escaping characters that may be unsafe for transport, logging, or downstream processing.
    fieldDelimiter String
    fieldSeparator String
    fields List<String>
    fileNameTemplate String
    formatType String
    id Number
    includeEmptyLogs Boolean
    includeShieldLogs Boolean
    logSampleRate Number
    name String
    relatedUploaderConfigs List<Number>
    retryIntervalMinutes Number
    rotateIntervalMinutes Number
    rotateThresholdLines Number
    rotateThresholdMb Number
    tags Map<String>
    updated String

    Package Details

    Repository
    gcore g-core/terraform-provider-gcore
    License
    Notes
    This Pulumi package is based on the gcore Terraform Provider.
    Viewing docs for gcore 2.0.0-alpha.11
    published on Wednesday, Jul 1, 2026 by g-core

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial