1. Packages
  2. Packages
  3. Gcore Provider
  4. API Docs
  5. CdnLogsUploaderConfig
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 configs tie a logs uploader policy to one or more targets and a set of CDN resources, controlling which access logs are uploaded and where they are delivered.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as gcore from "@pulumi/gcore";
    
    const exampleCdnLogsUploaderConfig = new gcore.CdnLogsUploaderConfig("example_cdn_logs_uploader_config", {
        name: "name",
        policy: 0,
        target: 0,
        enabled: true,
        forAllResources: true,
        resources: [0],
    });
    
    import pulumi
    import pulumi_gcore as gcore
    
    example_cdn_logs_uploader_config = gcore.CdnLogsUploaderConfig("example_cdn_logs_uploader_config",
        name="name",
        policy=0,
        target=0,
        enabled=True,
        for_all_resources=True,
        resources=[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.NewCdnLogsUploaderConfig(ctx, "example_cdn_logs_uploader_config", &gcore.CdnLogsUploaderConfigArgs{
    			Name:            pulumi.String("name"),
    			Policy:          pulumi.Float64(0),
    			Target:          pulumi.Float64(0),
    			Enabled:         pulumi.Bool(true),
    			ForAllResources: pulumi.Bool(true),
    			Resources: pulumi.Float64Array{
    				pulumi.Float64(0),
    			},
    		})
    		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 exampleCdnLogsUploaderConfig = new Gcore.CdnLogsUploaderConfig("example_cdn_logs_uploader_config", new()
        {
            Name = "name",
            Policy = 0,
            Target = 0,
            Enabled = true,
            ForAllResources = true,
            Resources = new[]
            {
                0,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcore.CdnLogsUploaderConfig;
    import com.pulumi.gcore.CdnLogsUploaderConfigArgs;
    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) {
            var exampleCdnLogsUploaderConfig = new CdnLogsUploaderConfig("exampleCdnLogsUploaderConfig", CdnLogsUploaderConfigArgs.builder()
                .name("name")
                .policy(0.0)
                .target(0.0)
                .enabled(true)
                .forAllResources(true)
                .resources(0.0)
                .build());
    
        }
    }
    
    resources:
      exampleCdnLogsUploaderConfig:
        type: gcore:CdnLogsUploaderConfig
        name: example_cdn_logs_uploader_config
        properties:
          name: name
          policy: 0
          target: 0
          enabled: true
          forAllResources: true
          resources:
            - 0
    
    Example coming soon!
    

    Create CdnLogsUploaderConfig Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new CdnLogsUploaderConfig(name: string, args: CdnLogsUploaderConfigArgs, opts?: CustomResourceOptions);
    @overload
    def CdnLogsUploaderConfig(resource_name: str,
                              args: CdnLogsUploaderConfigArgs,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def CdnLogsUploaderConfig(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              policy: Optional[float] = None,
                              target: Optional[float] = None,
                              enabled: Optional[bool] = None,
                              for_all_resources: Optional[bool] = None,
                              name: Optional[str] = None,
                              resources: Optional[Sequence[float]] = None)
    func NewCdnLogsUploaderConfig(ctx *Context, name string, args CdnLogsUploaderConfigArgs, opts ...ResourceOption) (*CdnLogsUploaderConfig, error)
    public CdnLogsUploaderConfig(string name, CdnLogsUploaderConfigArgs args, CustomResourceOptions? opts = null)
    public CdnLogsUploaderConfig(String name, CdnLogsUploaderConfigArgs args)
    public CdnLogsUploaderConfig(String name, CdnLogsUploaderConfigArgs args, CustomResourceOptions options)
    
    type: gcore:CdnLogsUploaderConfig
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "gcore_cdnlogsuploaderconfig" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args CdnLogsUploaderConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args CdnLogsUploaderConfigArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args CdnLogsUploaderConfigArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CdnLogsUploaderConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CdnLogsUploaderConfigArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var cdnLogsUploaderConfigResource = new Gcore.CdnLogsUploaderConfig("cdnLogsUploaderConfigResource", new()
    {
        Policy = 0,
        Target = 0,
        Enabled = false,
        ForAllResources = false,
        Name = "string",
        Resources = new[]
        {
            0,
        },
    });
    
    example, err := gcore.NewCdnLogsUploaderConfig(ctx, "cdnLogsUploaderConfigResource", &gcore.CdnLogsUploaderConfigArgs{
    	Policy:          pulumi.Float64(0),
    	Target:          pulumi.Float64(0),
    	Enabled:         pulumi.Bool(false),
    	ForAllResources: pulumi.Bool(false),
    	Name:            pulumi.String("string"),
    	Resources: pulumi.Float64Array{
    		pulumi.Float64(0),
    	},
    })
    
    resource "gcore_cdnlogsuploaderconfig" "cdnLogsUploaderConfigResource" {
      policy            = 0
      target            = 0
      enabled           = false
      for_all_resources = false
      name              = "string"
      resources         = [0]
    }
    
    var cdnLogsUploaderConfigResource = new CdnLogsUploaderConfig("cdnLogsUploaderConfigResource", CdnLogsUploaderConfigArgs.builder()
        .policy(0.0)
        .target(0.0)
        .enabled(false)
        .forAllResources(false)
        .name("string")
        .resources(0.0)
        .build());
    
    cdn_logs_uploader_config_resource = gcore.CdnLogsUploaderConfig("cdnLogsUploaderConfigResource",
        policy=float(0),
        target=float(0),
        enabled=False,
        for_all_resources=False,
        name="string",
        resources=[float(0)])
    
    const cdnLogsUploaderConfigResource = new gcore.CdnLogsUploaderConfig("cdnLogsUploaderConfigResource", {
        policy: 0,
        target: 0,
        enabled: false,
        forAllResources: false,
        name: "string",
        resources: [0],
    });
    
    type: gcore:CdnLogsUploaderConfig
    properties:
        enabled: false
        forAllResources: false
        name: string
        policy: 0
        resources:
            - 0
        target: 0
    

    CdnLogsUploaderConfig Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The CdnLogsUploaderConfig resource accepts the following input properties:

    Policy double
    ID of the policy that should be assigned to given config.
    Target double
    ID of the target to which logs should be uploaded.
    Enabled bool
    Enables or disables the config.
    ForAllResources bool
    If set to true, the config will be applied to all CDN resources. If set to false, the config will be applied to the resources specified in the resources field.
    Name string
    Name of the config.
    Resources List<double>
    List of resource IDs to which the config should be applied.
    Policy float64
    ID of the policy that should be assigned to given config.
    Target float64
    ID of the target to which logs should be uploaded.
    Enabled bool
    Enables or disables the config.
    ForAllResources bool
    If set to true, the config will be applied to all CDN resources. If set to false, the config will be applied to the resources specified in the resources field.
    Name string
    Name of the config.
    Resources []float64
    List of resource IDs to which the config should be applied.
    policy number
    ID of the policy that should be assigned to given config.
    target number
    ID of the target to which logs should be uploaded.
    enabled bool
    Enables or disables the config.
    for_all_resources bool
    If set to true, the config will be applied to all CDN resources. If set to false, the config will be applied to the resources specified in the resources field.
    name string
    Name of the config.
    resources list(number)
    List of resource IDs to which the config should be applied.
    policy Double
    ID of the policy that should be assigned to given config.
    target Double
    ID of the target to which logs should be uploaded.
    enabled Boolean
    Enables or disables the config.
    forAllResources Boolean
    If set to true, the config will be applied to all CDN resources. If set to false, the config will be applied to the resources specified in the resources field.
    name String
    Name of the config.
    resources List<Double>
    List of resource IDs to which the config should be applied.
    policy number
    ID of the policy that should be assigned to given config.
    target number
    ID of the target to which logs should be uploaded.
    enabled boolean
    Enables or disables the config.
    forAllResources boolean
    If set to true, the config will be applied to all CDN resources. If set to false, the config will be applied to the resources specified in the resources field.
    name string
    Name of the config.
    resources number[]
    List of resource IDs to which the config should be applied.
    policy float
    ID of the policy that should be assigned to given config.
    target float
    ID of the target to which logs should be uploaded.
    enabled bool
    Enables or disables the config.
    for_all_resources bool
    If set to true, the config will be applied to all CDN resources. If set to false, the config will be applied to the resources specified in the resources field.
    name str
    Name of the config.
    resources Sequence[float]
    List of resource IDs to which the config should be applied.
    policy Number
    ID of the policy that should be assigned to given config.
    target Number
    ID of the target to which logs should be uploaded.
    enabled Boolean
    Enables or disables the config.
    forAllResources Boolean
    If set to true, the config will be applied to all CDN resources. If set to false, the config will be applied to the resources specified in the resources field.
    name String
    Name of the config.
    resources List<Number>
    List of resource IDs to which the config should be applied.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the CdnLogsUploaderConfig resource produces the following output properties:

    CdnLogsUploaderConfigId double
    The ID of this resource.
    ClientId double
    Client that owns the config.
    Created string
    Time when the config was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Validation status of the logs uploader config.
    Updated string
    Time when the config was updated.
    CdnLogsUploaderConfigId float64
    The ID of this resource.
    ClientId float64
    Client that owns the config.
    Created string
    Time when the config was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Validation status of the logs uploader config.
    Updated string
    Time when the config was updated.
    cdn_logs_uploader_config_id number
    The ID of this resource.
    client_id number
    Client that owns the config.
    created string
    Time when the config was created.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    Validation status of the logs uploader config.
    updated string
    Time when the config was updated.
    cdnLogsUploaderConfigId Double
    The ID of this resource.
    clientId Double
    Client that owns the config.
    created String
    Time when the config was created.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Validation status of the logs uploader config.
    updated String
    Time when the config was updated.
    cdnLogsUploaderConfigId number
    The ID of this resource.
    clientId number
    Client that owns the config.
    created string
    Time when the config was created.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    Validation status of the logs uploader config.
    updated string
    Time when the config was updated.
    cdn_logs_uploader_config_id float
    The ID of this resource.
    client_id float
    Client that owns the config.
    created str
    Time when the config was created.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    Validation status of the logs uploader config.
    updated str
    Time when the config was updated.
    cdnLogsUploaderConfigId Number
    The ID of this resource.
    clientId Number
    Client that owns the config.
    created String
    Time when the config was created.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Validation status of the logs uploader config.
    updated String
    Time when the config was updated.

    Look up Existing CdnLogsUploaderConfig Resource

    Get an existing CdnLogsUploaderConfig resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: CdnLogsUploaderConfigState, opts?: CustomResourceOptions): CdnLogsUploaderConfig
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cdn_logs_uploader_config_id: Optional[float] = None,
            client_id: Optional[float] = None,
            created: Optional[str] = None,
            enabled: Optional[bool] = None,
            for_all_resources: Optional[bool] = None,
            name: Optional[str] = None,
            policy: Optional[float] = None,
            resources: Optional[Sequence[float]] = None,
            status: Optional[str] = None,
            target: Optional[float] = None,
            updated: Optional[str] = None) -> CdnLogsUploaderConfig
    func GetCdnLogsUploaderConfig(ctx *Context, name string, id IDInput, state *CdnLogsUploaderConfigState, opts ...ResourceOption) (*CdnLogsUploaderConfig, error)
    public static CdnLogsUploaderConfig Get(string name, Input<string> id, CdnLogsUploaderConfigState? state, CustomResourceOptions? opts = null)
    public static CdnLogsUploaderConfig get(String name, Output<String> id, CdnLogsUploaderConfigState state, CustomResourceOptions options)
    resources:  _:    type: gcore:CdnLogsUploaderConfig    get:      id: ${id}
    import {
      to = gcore_cdnlogsuploaderconfig.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CdnLogsUploaderConfigId double
    The ID of this resource.
    ClientId double
    Client that owns the config.
    Created string
    Time when the config was created.
    Enabled bool
    Enables or disables the config.
    ForAllResources bool
    If set to true, the config will be applied to all CDN resources. If set to false, the config will be applied to the resources specified in the resources field.
    Name string
    Name of the config.
    Policy double
    ID of the policy that should be assigned to given config.
    Resources List<double>
    List of resource IDs to which the config should be applied.
    Status string
    Validation status of the logs uploader config.
    Target double
    ID of the target to which logs should be uploaded.
    Updated string
    Time when the config was updated.
    CdnLogsUploaderConfigId float64
    The ID of this resource.
    ClientId float64
    Client that owns the config.
    Created string
    Time when the config was created.
    Enabled bool
    Enables or disables the config.
    ForAllResources bool
    If set to true, the config will be applied to all CDN resources. If set to false, the config will be applied to the resources specified in the resources field.
    Name string
    Name of the config.
    Policy float64
    ID of the policy that should be assigned to given config.
    Resources []float64
    List of resource IDs to which the config should be applied.
    Status string
    Validation status of the logs uploader config.
    Target float64
    ID of the target to which logs should be uploaded.
    Updated string
    Time when the config was updated.
    cdn_logs_uploader_config_id number
    The ID of this resource.
    client_id number
    Client that owns the config.
    created string
    Time when the config was created.
    enabled bool
    Enables or disables the config.
    for_all_resources bool
    If set to true, the config will be applied to all CDN resources. If set to false, the config will be applied to the resources specified in the resources field.
    name string
    Name of the config.
    policy number
    ID of the policy that should be assigned to given config.
    resources list(number)
    List of resource IDs to which the config should be applied.
    status string
    Validation status of the logs uploader config.
    target number
    ID of the target to which logs should be uploaded.
    updated string
    Time when the config was updated.
    cdnLogsUploaderConfigId Double
    The ID of this resource.
    clientId Double
    Client that owns the config.
    created String
    Time when the config was created.
    enabled Boolean
    Enables or disables the config.
    forAllResources Boolean
    If set to true, the config will be applied to all CDN resources. If set to false, the config will be applied to the resources specified in the resources field.
    name String
    Name of the config.
    policy Double
    ID of the policy that should be assigned to given config.
    resources List<Double>
    List of resource IDs to which the config should be applied.
    status String
    Validation status of the logs uploader config.
    target Double
    ID of the target to which logs should be uploaded.
    updated String
    Time when the config was updated.
    cdnLogsUploaderConfigId number
    The ID of this resource.
    clientId number
    Client that owns the config.
    created string
    Time when the config was created.
    enabled boolean
    Enables or disables the config.
    forAllResources boolean
    If set to true, the config will be applied to all CDN resources. If set to false, the config will be applied to the resources specified in the resources field.
    name string
    Name of the config.
    policy number
    ID of the policy that should be assigned to given config.
    resources number[]
    List of resource IDs to which the config should be applied.
    status string
    Validation status of the logs uploader config.
    target number
    ID of the target to which logs should be uploaded.
    updated string
    Time when the config was updated.
    cdn_logs_uploader_config_id float
    The ID of this resource.
    client_id float
    Client that owns the config.
    created str
    Time when the config was created.
    enabled bool
    Enables or disables the config.
    for_all_resources bool
    If set to true, the config will be applied to all CDN resources. If set to false, the config will be applied to the resources specified in the resources field.
    name str
    Name of the config.
    policy float
    ID of the policy that should be assigned to given config.
    resources Sequence[float]
    List of resource IDs to which the config should be applied.
    status str
    Validation status of the logs uploader config.
    target float
    ID of the target to which logs should be uploaded.
    updated str
    Time when the config was updated.
    cdnLogsUploaderConfigId Number
    The ID of this resource.
    clientId Number
    Client that owns the config.
    created String
    Time when the config was created.
    enabled Boolean
    Enables or disables the config.
    forAllResources Boolean
    If set to true, the config will be applied to all CDN resources. If set to false, the config will be applied to the resources specified in the resources field.
    name String
    Name of the config.
    policy Number
    ID of the policy that should be assigned to given config.
    resources List<Number>
    List of resource IDs to which the config should be applied.
    status String
    Validation status of the logs uploader config.
    target Number
    ID of the target to which logs should be uploaded.
    updated String
    Time when the config was updated.

    Import

    The pulumi import command can be used, for example:

    $ pulumi import gcore:index/cdnLogsUploaderConfig:CdnLogsUploaderConfig example '<id>'
    

    To learn more about importing existing cloud resources, see Importing resources.

    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