1. Packages
  2. Packages
  3. Gcore Provider
  4. API Docs
  5. getCdnLogsUploaderPolicies
Viewing docs for gcore 2.0.0-alpha.15
published on Thursday, Aug 6, 2026 by g-core
Viewing docs for gcore 2.0.0-alpha.15
published on Thursday, Aug 6, 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 exampleCdnLogsUploaderPolicies = gcore.getCdnLogsUploaderPolicies({
        configIds: [0],
        search: "search",
    });
    
    import pulumi
    import pulumi_gcore as gcore
    
    example_cdn_logs_uploader_policies = gcore.get_cdn_logs_uploader_policies(config_ids=[0],
        search="search")
    
    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.GetCdnLogsUploaderPolicies(ctx, &gcore.GetCdnLogsUploaderPoliciesArgs{
    			ConfigIds: []float64{
    				0,
    			},
    			Search: pulumi.StringRef("search"),
    		}, 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 exampleCdnLogsUploaderPolicies = Gcore.GetCdnLogsUploaderPolicies.Invoke(new()
        {
            ConfigIds = new[]
            {
                0,
            },
            Search = "search",
        });
    
    });
    
    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.GetCdnLogsUploaderPoliciesArgs;
    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 exampleCdnLogsUploaderPolicies = GcoreFunctions.getCdnLogsUploaderPolicies(GetCdnLogsUploaderPoliciesArgs.builder()
                .configIds(0)
                .search("search")
                .build());
    
        }
    }
    
    variables:
      exampleCdnLogsUploaderPolicies:
        fn::invoke:
          function: gcore:getCdnLogsUploaderPolicies
          arguments:
            configIds:
              - 0
            search: search
    
    Example coming soon!
    

    Using getCdnLogsUploaderPolicies

    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 getCdnLogsUploaderPolicies(args: GetCdnLogsUploaderPoliciesArgs, opts?: InvokeOptions): Promise<GetCdnLogsUploaderPoliciesResult>
    function getCdnLogsUploaderPoliciesOutput(args: GetCdnLogsUploaderPoliciesOutputArgs, opts?: InvokeOptions): Output<GetCdnLogsUploaderPoliciesResult>
    def get_cdn_logs_uploader_policies(config_ids: Optional[Sequence[float]] = None,
                                       max_items: Optional[float] = None,
                                       search: Optional[str] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetCdnLogsUploaderPoliciesResult
    def get_cdn_logs_uploader_policies_output(config_ids: pulumi.Input[Optional[Sequence[pulumi.Input[float]]]] = None,
                                       max_items: pulumi.Input[Optional[float]] = None,
                                       search: pulumi.Input[Optional[str]] = None,
                                       opts: Optional[InvokeOptions] = None) -> Output[GetCdnLogsUploaderPoliciesResult]
    func GetCdnLogsUploaderPolicies(ctx *Context, args *GetCdnLogsUploaderPoliciesArgs, opts ...InvokeOption) (*GetCdnLogsUploaderPoliciesResult, error)
    func GetCdnLogsUploaderPoliciesOutput(ctx *Context, args *GetCdnLogsUploaderPoliciesOutputArgs, opts ...InvokeOption) GetCdnLogsUploaderPoliciesResultOutput

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

    public static class GetCdnLogsUploaderPolicies 
    {
        public static Task<GetCdnLogsUploaderPoliciesResult> InvokeAsync(GetCdnLogsUploaderPoliciesArgs args, InvokeOptions? opts = null)
        public static Output<GetCdnLogsUploaderPoliciesResult> Invoke(GetCdnLogsUploaderPoliciesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCdnLogsUploaderPoliciesResult> getCdnLogsUploaderPolicies(GetCdnLogsUploaderPoliciesArgs args, InvokeOptions options)
    public static Output<GetCdnLogsUploaderPoliciesResult> getCdnLogsUploaderPolicies(GetCdnLogsUploaderPoliciesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: gcore:index/getCdnLogsUploaderPolicies:getCdnLogsUploaderPolicies
      arguments:
        # arguments dictionary
    data "gcore_get_cdn_logs_uploader_policies" "name" {
        # arguments
    }

    The following arguments are supported:

    ConfigIds List<double>
    Filter by ids of related logs uploader configs that use given policy.
    MaxItems double
    Max items to fetch, default: 1000
    Search string
    Search by policy name or id.
    ConfigIds []float64
    Filter by ids of related logs uploader configs that use given policy.
    MaxItems float64
    Max items to fetch, default: 1000
    Search string
    Search by policy name or id.
    config_ids list(number)
    Filter by ids of related logs uploader configs that use given policy.
    max_items number
    Max items to fetch, default: 1000
    search string
    Search by policy name or id.
    configIds List<Double>
    Filter by ids of related logs uploader configs that use given policy.
    maxItems Double
    Max items to fetch, default: 1000
    search String
    Search by policy name or id.
    configIds number[]
    Filter by ids of related logs uploader configs that use given policy.
    maxItems number
    Max items to fetch, default: 1000
    search string
    Search by policy name or id.
    config_ids Sequence[float]
    Filter by ids of related logs uploader configs that use given policy.
    max_items float
    Max items to fetch, default: 1000
    search str
    Search by policy name or id.
    configIds List<Number>
    Filter by ids of related logs uploader configs that use given policy.
    maxItems Number
    Max items to fetch, default: 1000
    search String
    Search by policy name or id.

    getCdnLogsUploaderPolicies Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Items List<GetCdnLogsUploaderPoliciesItem>
    The items returned by the data source
    ConfigIds List<double>
    Filter by ids of related logs uploader configs that use given policy.
    MaxItems double
    Max items to fetch, default: 1000
    Search string
    Search by policy name or id.
    Id string
    The provider-assigned unique ID for this managed resource.
    Items []GetCdnLogsUploaderPoliciesItem
    The items returned by the data source
    ConfigIds []float64
    Filter by ids of related logs uploader configs that use given policy.
    MaxItems float64
    Max items to fetch, default: 1000
    Search string
    Search by policy name or id.
    id string
    The provider-assigned unique ID for this managed resource.
    items list(object)
    The items returned by the data source
    config_ids list(number)
    Filter by ids of related logs uploader configs that use given policy.
    max_items number
    Max items to fetch, default: 1000
    search string
    Search by policy name or id.
    id String
    The provider-assigned unique ID for this managed resource.
    items List<GetCdnLogsUploaderPoliciesItem>
    The items returned by the data source
    configIds List<Double>
    Filter by ids of related logs uploader configs that use given policy.
    maxItems Double
    Max items to fetch, default: 1000
    search String
    Search by policy name or id.
    id string
    The provider-assigned unique ID for this managed resource.
    items GetCdnLogsUploaderPoliciesItem[]
    The items returned by the data source
    configIds number[]
    Filter by ids of related logs uploader configs that use given policy.
    maxItems number
    Max items to fetch, default: 1000
    search string
    Search by policy name or id.
    id str
    The provider-assigned unique ID for this managed resource.
    items Sequence[GetCdnLogsUploaderPoliciesItem]
    The items returned by the data source
    config_ids Sequence[float]
    Filter by ids of related logs uploader configs that use given policy.
    max_items float
    Max items to fetch, default: 1000
    search str
    Search by policy name or id.
    id String
    The provider-assigned unique ID for this managed resource.
    items List<Property Map>
    The items returned by the data source
    configIds List<Number>
    Filter by ids of related logs uploader configs that use given policy.
    maxItems Number
    Max items to fetch, default: 1000
    search String
    Search by policy name or id.

    Supporting Types

    GetCdnLogsUploaderPoliciesItem

    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
    Field delimiter for logs.
    FieldRemap Dictionary<string, string>
    Per-field output-name remap for exported logs. Maps a canonical Gcore field name (from /cdn/logs_uploader/policies/fields, and must be present in fields) to the field name it should have in the exported logs. Unmapped fields keep their canonical name. Output names (after remapping) must be unique.
    FieldSeparator string
    Field separator for logs.
    Fields List<string>
    List of fields to include in logs. Duplicate names are allowed for plain text output, but rejected when format_type is json or a field_remap is set (each field becomes a distinct output key).
    FileNameTemplate string
    Template for log file name.
    FormatType string

    Format type for logs.

    Possible values:

    • "" - empty, it means it will apply the format configurations from the policy.
    • "json" - output the logs as json lines. Available values: "json", "".
    Id double
    IncludeEmptyLogs bool
    Include empty logs in the upload.
    IncludeShieldLogs bool
    Include logs from origin shielding in the upload.
    LogSampleRate double
    Sampling rate for logs. A value between 0 and 1 that determines the fraction of log entries to collect.

    • 1 - collect all logs (default).
    • 0.5 - collect approximately 50% of logs.
    • 0 - collect no logs (effectively disables logging without removing the policy).
    Name string
    Name of the policy.
    RelatedUploaderConfigs List<double>
    List of logs uploader configs that use this policy.
    RetryIntervalMinutes double
    Interval in minutes to retry failed uploads.
    RotateIntervalMinutes double
    Interval in minutes to rotate logs.
    RotateThresholdLines double
    Threshold in lines to rotate logs.
    RotateThresholdMb double
    Threshold in MB to rotate logs.
    Tags Dictionary<string, string>
    Tags allow for dynamic decoration of logs by adding predefined fields to the log format. These tags serve as customizable key-value pairs that can be included in log entries to enhance context and readability.
    Updated string
    Time when logs uploader policy was updated.
    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
    Field delimiter for logs.
    FieldRemap map[string]string
    Per-field output-name remap for exported logs. Maps a canonical Gcore field name (from /cdn/logs_uploader/policies/fields, and must be present in fields) to the field name it should have in the exported logs. Unmapped fields keep their canonical name. Output names (after remapping) must be unique.
    FieldSeparator string
    Field separator for logs.
    Fields []string
    List of fields to include in logs. Duplicate names are allowed for plain text output, but rejected when format_type is json or a field_remap is set (each field becomes a distinct output key).
    FileNameTemplate string
    Template for log file name.
    FormatType string

    Format type for logs.

    Possible values:

    • "" - empty, it means it will apply the format configurations from the policy.
    • "json" - output the logs as json lines. Available values: "json", "".
    Id float64
    IncludeEmptyLogs bool
    Include empty logs in the upload.
    IncludeShieldLogs bool
    Include logs from origin shielding in the upload.
    LogSampleRate float64
    Sampling rate for logs. A value between 0 and 1 that determines the fraction of log entries to collect.

    • 1 - collect all logs (default).
    • 0.5 - collect approximately 50% of logs.
    • 0 - collect no logs (effectively disables logging without removing the policy).
    Name string
    Name of the policy.
    RelatedUploaderConfigs []float64
    List of logs uploader configs that use this policy.
    RetryIntervalMinutes float64
    Interval in minutes to retry failed uploads.
    RotateIntervalMinutes float64
    Interval in minutes to rotate logs.
    RotateThresholdLines float64
    Threshold in lines to rotate logs.
    RotateThresholdMb float64
    Threshold in MB to rotate logs.
    Tags map[string]string
    Tags allow for dynamic decoration of logs by adding predefined fields to the log format. These tags serve as customizable key-value pairs that can be included in log entries to enhance context and readability.
    Updated string
    Time when logs uploader policy was updated.
    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 delimiter for logs.
    field_remap map(string)
    Per-field output-name remap for exported logs. Maps a canonical Gcore field name (from /cdn/logs_uploader/policies/fields, and must be present in fields) to the field name it should have in the exported logs. Unmapped fields keep their canonical name. Output names (after remapping) must be unique.
    field_separator string
    Field separator for logs.
    fields list(string)
    List of fields to include in logs. Duplicate names are allowed for plain text output, but rejected when format_type is json or a field_remap is set (each field becomes a distinct output key).
    file_name_template string
    Template for log file name.
    format_type string

    Format type for logs.

    Possible values:

    • "" - empty, it means it will apply the format configurations from the policy.
    • "json" - output the logs as json lines. Available values: "json", "".
    id number
    include_empty_logs bool
    Include empty logs in the upload.
    include_shield_logs bool
    Include logs from origin shielding in the upload.
    log_sample_rate number
    Sampling rate for logs. A value between 0 and 1 that determines the fraction of log entries to collect.

    • 1 - collect all logs (default).
    • 0.5 - collect approximately 50% of logs.
    • 0 - collect no logs (effectively disables logging without removing the policy).
    name string
    Name of the policy.
    related_uploader_configs list(number)
    List of logs uploader configs that use this policy.
    retry_interval_minutes number
    Interval in minutes to retry failed uploads.
    rotate_interval_minutes number
    Interval in minutes to rotate logs.
    rotate_threshold_lines number
    Threshold in lines to rotate logs.
    rotate_threshold_mb number
    Threshold in MB to rotate logs.
    tags map(string)
    Tags allow for dynamic decoration of logs by adding predefined fields to the log format. These tags serve as customizable key-value pairs that can be included in log entries to enhance context and readability.
    updated string
    Time when logs uploader policy was updated.
    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
    Field delimiter for logs.
    fieldRemap Map<String,String>
    Per-field output-name remap for exported logs. Maps a canonical Gcore field name (from /cdn/logs_uploader/policies/fields, and must be present in fields) to the field name it should have in the exported logs. Unmapped fields keep their canonical name. Output names (after remapping) must be unique.
    fieldSeparator String
    Field separator for logs.
    fields List<String>
    List of fields to include in logs. Duplicate names are allowed for plain text output, but rejected when format_type is json or a field_remap is set (each field becomes a distinct output key).
    fileNameTemplate String
    Template for log file name.
    formatType String

    Format type for logs.

    Possible values:

    • "" - empty, it means it will apply the format configurations from the policy.
    • "json" - output the logs as json lines. Available values: "json", "".
    id Double
    includeEmptyLogs Boolean
    Include empty logs in the upload.
    includeShieldLogs Boolean
    Include logs from origin shielding in the upload.
    logSampleRate Double
    Sampling rate for logs. A value between 0 and 1 that determines the fraction of log entries to collect.

    • 1 - collect all logs (default).
    • 0.5 - collect approximately 50% of logs.
    • 0 - collect no logs (effectively disables logging without removing the policy).
    name String
    Name of the policy.
    relatedUploaderConfigs List<Double>
    List of logs uploader configs that use this policy.
    retryIntervalMinutes Double
    Interval in minutes to retry failed uploads.
    rotateIntervalMinutes Double
    Interval in minutes to rotate logs.
    rotateThresholdLines Double
    Threshold in lines to rotate logs.
    rotateThresholdMb Double
    Threshold in MB to rotate logs.
    tags Map<String,String>
    Tags allow for dynamic decoration of logs by adding predefined fields to the log format. These tags serve as customizable key-value pairs that can be included in log entries to enhance context and readability.
    updated String
    Time when logs uploader policy was updated.
    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
    Field delimiter for logs.
    fieldRemap {[key: string]: string}
    Per-field output-name remap for exported logs. Maps a canonical Gcore field name (from /cdn/logs_uploader/policies/fields, and must be present in fields) to the field name it should have in the exported logs. Unmapped fields keep their canonical name. Output names (after remapping) must be unique.
    fieldSeparator string
    Field separator for logs.
    fields string[]
    List of fields to include in logs. Duplicate names are allowed for plain text output, but rejected when format_type is json or a field_remap is set (each field becomes a distinct output key).
    fileNameTemplate string
    Template for log file name.
    formatType string

    Format type for logs.

    Possible values:

    • "" - empty, it means it will apply the format configurations from the policy.
    • "json" - output the logs as json lines. Available values: "json", "".
    id number
    includeEmptyLogs boolean
    Include empty logs in the upload.
    includeShieldLogs boolean
    Include logs from origin shielding in the upload.
    logSampleRate number
    Sampling rate for logs. A value between 0 and 1 that determines the fraction of log entries to collect.

    • 1 - collect all logs (default).
    • 0.5 - collect approximately 50% of logs.
    • 0 - collect no logs (effectively disables logging without removing the policy).
    name string
    Name of the policy.
    relatedUploaderConfigs number[]
    List of logs uploader configs that use this policy.
    retryIntervalMinutes number
    Interval in minutes to retry failed uploads.
    rotateIntervalMinutes number
    Interval in minutes to rotate logs.
    rotateThresholdLines number
    Threshold in lines to rotate logs.
    rotateThresholdMb number
    Threshold in MB to rotate logs.
    tags {[key: string]: string}
    Tags allow for dynamic decoration of logs by adding predefined fields to the log format. These tags serve as customizable key-value pairs that can be included in log entries to enhance context and readability.
    updated string
    Time when logs uploader policy was updated.
    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 delimiter for logs.
    field_remap Mapping[str, str]
    Per-field output-name remap for exported logs. Maps a canonical Gcore field name (from /cdn/logs_uploader/policies/fields, and must be present in fields) to the field name it should have in the exported logs. Unmapped fields keep their canonical name. Output names (after remapping) must be unique.
    field_separator str
    Field separator for logs.
    fields Sequence[str]
    List of fields to include in logs. Duplicate names are allowed for plain text output, but rejected when format_type is json or a field_remap is set (each field becomes a distinct output key).
    file_name_template str
    Template for log file name.
    format_type str

    Format type for logs.

    Possible values:

    • "" - empty, it means it will apply the format configurations from the policy.
    • "json" - output the logs as json lines. Available values: "json", "".
    id float
    include_empty_logs bool
    Include empty logs in the upload.
    include_shield_logs bool
    Include logs from origin shielding in the upload.
    log_sample_rate float
    Sampling rate for logs. A value between 0 and 1 that determines the fraction of log entries to collect.

    • 1 - collect all logs (default).
    • 0.5 - collect approximately 50% of logs.
    • 0 - collect no logs (effectively disables logging without removing the policy).
    name str
    Name of the policy.
    related_uploader_configs Sequence[float]
    List of logs uploader configs that use this policy.
    retry_interval_minutes float
    Interval in minutes to retry failed uploads.
    rotate_interval_minutes float
    Interval in minutes to rotate logs.
    rotate_threshold_lines float
    Threshold in lines to rotate logs.
    rotate_threshold_mb float
    Threshold in MB to rotate logs.
    tags Mapping[str, str]
    Tags allow for dynamic decoration of logs by adding predefined fields to the log format. These tags serve as customizable key-value pairs that can be included in log entries to enhance context and readability.
    updated str
    Time when logs uploader policy was updated.
    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
    Field delimiter for logs.
    fieldRemap Map<String>
    Per-field output-name remap for exported logs. Maps a canonical Gcore field name (from /cdn/logs_uploader/policies/fields, and must be present in fields) to the field name it should have in the exported logs. Unmapped fields keep their canonical name. Output names (after remapping) must be unique.
    fieldSeparator String
    Field separator for logs.
    fields List<String>
    List of fields to include in logs. Duplicate names are allowed for plain text output, but rejected when format_type is json or a field_remap is set (each field becomes a distinct output key).
    fileNameTemplate String
    Template for log file name.
    formatType String

    Format type for logs.

    Possible values:

    • "" - empty, it means it will apply the format configurations from the policy.
    • "json" - output the logs as json lines. Available values: "json", "".
    id Number
    includeEmptyLogs Boolean
    Include empty logs in the upload.
    includeShieldLogs Boolean
    Include logs from origin shielding in the upload.
    logSampleRate Number
    Sampling rate for logs. A value between 0 and 1 that determines the fraction of log entries to collect.

    • 1 - collect all logs (default).
    • 0.5 - collect approximately 50% of logs.
    • 0 - collect no logs (effectively disables logging without removing the policy).
    name String
    Name of the policy.
    relatedUploaderConfigs List<Number>
    List of logs uploader configs that use this policy.
    retryIntervalMinutes Number
    Interval in minutes to retry failed uploads.
    rotateIntervalMinutes Number
    Interval in minutes to rotate logs.
    rotateThresholdLines Number
    Threshold in lines to rotate logs.
    rotateThresholdMb Number
    Threshold in MB to rotate logs.
    tags Map<String>
    Tags allow for dynamic decoration of logs by adding predefined fields to the log format. These tags serve as customizable key-value pairs that can be included in log entries to enhance context and readability.
    updated String
    Time when logs uploader policy was updated.

    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.15
    published on Thursday, Aug 6, 2026 by g-core

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial