published on Thursday, Aug 6, 2026 by g-core
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 dictionarydata "gcore_get_cdn_logs_uploader_policies" "name" {
# arguments
}The following arguments are supported:
- 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.
- 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.
getCdnLogsUploaderPolicies Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
List<Get
Cdn Logs Uploader Policies Item> - The items returned by the data source
- Config
Ids List<double> - Filter by ids of related logs uploader configs that use given policy.
- Max
Items 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
[]Get
Cdn Logs Uploader Policies Item - The items returned by the data source
- Config
Ids []float64 - Filter by ids of related logs uploader configs that use given policy.
- Max
Items 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<Get
Cdn Logs Uploader Policies Item> - The items returned by the data source
- config
Ids List<Double> - Filter by ids of related logs uploader configs that use given policy.
- max
Items 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
Get
Cdn Logs Uploader Policies Item[] - The items returned by the data source
- config
Ids 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 str
- The provider-assigned unique ID for this managed resource.
- items
Sequence[Get
Cdn Logs Uploader Policies Item] - 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
- 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.
Supporting Types
GetCdnLogsUploaderPoliciesItem
- Client
Id double - 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 boolCharacters - 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 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 infields) 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_typeisjsonor afield_remapis set (each field becomes a distinct output key). - File
Name stringTemplate - 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 double
- Include
Empty boolLogs - Include empty logs in the upload.
- Include
Shield boolLogs - Include logs from origin shielding in the upload.
- Log
Sample doubleRate - 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.
- List<double>
- List of logs uploader configs that use this policy.
- Retry
Interval doubleMinutes - Interval in minutes to retry failed uploads.
- Rotate
Interval doubleMinutes - Interval in minutes to rotate logs.
- Rotate
Threshold doubleLines - Threshold in lines to rotate logs.
- Rotate
Threshold doubleMb - Threshold in MB to rotate logs.
- 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.
- Client
Id float64 - 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 boolCharacters - 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]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 infields) 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 []string
- List of fields to include in logs. Duplicate names are allowed for plain text output, but rejected when
format_typeisjsonor afield_remapis set (each field becomes a distinct output key). - File
Name stringTemplate - 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 float64
- Include
Empty boolLogs - Include empty logs in the upload.
- Include
Shield boolLogs - Include logs from origin shielding in the upload.
- Log
Sample float64Rate - 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.
- []float64
- List of logs uploader configs that use this policy.
- Retry
Interval float64Minutes - Interval in minutes to retry failed uploads.
- Rotate
Interval float64Minutes - Interval in minutes to rotate logs.
- Rotate
Threshold float64Lines - Threshold in lines to rotate logs.
- Rotate
Threshold float64Mb - Threshold in MB to rotate logs.
- 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_ boolcharacters - 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 infields) 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_typeisjsonor afield_remapis set (each field becomes a distinct output key). - file_
name_ stringtemplate - 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_ boollogs - Include empty logs in the upload.
- include_
shield_ boollogs - Include logs from origin shielding in the upload.
- log_
sample_ numberrate - 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.
- list(number)
- List of logs uploader configs that use this policy.
- retry_
interval_ numberminutes - Interval in minutes to retry failed uploads.
- rotate_
interval_ numberminutes - Interval in minutes to rotate logs.
- rotate_
threshold_ numberlines - Threshold in lines to rotate logs.
- rotate_
threshold_ numbermb - Threshold in MB to rotate logs.
- 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.
- client
Id Double - 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 BooleanCharacters - 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,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 infields) 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_typeisjsonor afield_remapis set (each field becomes a distinct output key). - file
Name StringTemplate - 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 Double
- include
Empty BooleanLogs - Include empty logs in the upload.
- include
Shield BooleanLogs - Include logs from origin shielding in the upload.
- log
Sample DoubleRate - 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.
- List<Double>
- List of logs uploader configs that use this policy.
- retry
Interval DoubleMinutes - Interval in minutes to retry failed uploads.
- rotate
Interval DoubleMinutes - Interval in minutes to rotate logs.
- rotate
Threshold DoubleLines - Threshold in lines to rotate logs.
- rotate
Threshold DoubleMb - Threshold in MB to rotate logs.
- 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 booleanCharacters - 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 {[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 infields) 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 string[]
- List of fields to include in logs. Duplicate names are allowed for plain text output, but rejected when
format_typeisjsonor afield_remapis set (each field becomes a distinct output key). - file
Name stringTemplate - 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 booleanLogs - Include empty logs in the upload.
- include
Shield booleanLogs - Include logs from origin shielding in the upload.
- log
Sample numberRate - 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.
- number[]
- List of logs uploader configs that use this policy.
- retry
Interval numberMinutes - Interval in minutes to retry failed uploads.
- rotate
Interval numberMinutes - Interval in minutes to rotate logs.
- rotate
Threshold numberLines - Threshold in lines to rotate logs.
- rotate
Threshold numberMb - Threshold in MB to rotate logs.
- {[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_ boolcharacters - 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 infields) 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_typeisjsonor afield_remapis set (each field becomes a distinct output key). - file_
name_ strtemplate - 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_ boollogs - Include empty logs in the upload.
- include_
shield_ boollogs - Include logs from origin shielding in the upload.
- log_
sample_ floatrate - 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.
- Sequence[float]
- List of logs uploader configs that use this policy.
- retry_
interval_ floatminutes - Interval in minutes to retry failed uploads.
- rotate_
interval_ floatminutes - Interval in minutes to rotate logs.
- rotate_
threshold_ floatlines - Threshold in lines to rotate logs.
- rotate_
threshold_ floatmb - Threshold in MB to rotate logs.
- 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.
- 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 BooleanCharacters - 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 infields) 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_typeisjsonor afield_remapis set (each field becomes a distinct output key). - file
Name StringTemplate - 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 BooleanLogs - Include empty logs in the upload.
- include
Shield BooleanLogs - Include logs from origin shielding in the upload.
- log
Sample NumberRate - 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.
- List<Number>
- List of logs uploader configs that use this policy.
- retry
Interval NumberMinutes - Interval in minutes to retry failed uploads.
- rotate
Interval NumberMinutes - Interval in minutes to rotate logs.
- rotate
Threshold NumberLines - Threshold in lines to rotate logs.
- rotate
Threshold NumberMb - Threshold in MB to rotate logs.
- 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
gcoreTerraform Provider.
published on Thursday, Aug 6, 2026 by g-core