1. Packages
  2. Gcore Provider
  3. API Docs
  4. CdnClientConfig
gcore 0.31.2 published on Monday, Nov 3, 2025 by g-core

gcore.CdnClientConfig

Start a Neo task
Explain and create a gcore.CdnClientConfig resource
gcore logo
gcore 0.31.2 published on Monday, Nov 3, 2025 by g-core

    Manage your CDN client (only utilization_level can be updated).

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as gcore from "@pulumi/gcore";
    
    const myAccount = new gcore.CdnClientConfig("myAccount", {utilizationLevel: 90});
    export const cdnClient = {
        id: myAccount.id,
        cname: myAccount.cname,
        created: myAccount.created,
        updated: myAccount.updated,
        utilization_level: myAccount.utilizationLevel,
        use_balancer: myAccount.useBalancer,
        auto_suspend_enabled: myAccount.autoSuspendEnabled,
        cdn_resources_rules_max_count: myAccount.cdnResourcesRulesMaxCount,
        service: {
            enabled: myAccount.services.apply(services => services[0].enabled),
            status: myAccount.services.apply(services => services[0].status),
            updated: myAccount.services.apply(services => services[0].updated),
        },
    };
    
    import pulumi
    import pulumi_gcore as gcore
    
    my_account = gcore.CdnClientConfig("myAccount", utilization_level=90)
    pulumi.export("cdnClient", {
        "id": my_account.id,
        "cname": my_account.cname,
        "created": my_account.created,
        "updated": my_account.updated,
        "utilization_level": my_account.utilization_level,
        "use_balancer": my_account.use_balancer,
        "auto_suspend_enabled": my_account.auto_suspend_enabled,
        "cdn_resources_rules_max_count": my_account.cdn_resources_rules_max_count,
        "service": {
            "enabled": my_account.services[0].enabled,
            "status": my_account.services[0].status,
            "updated": my_account.services[0].updated,
        },
    })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/gcore/gcore"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		myAccount, err := gcore.NewCdnClientConfig(ctx, "myAccount", &gcore.CdnClientConfigArgs{
    			UtilizationLevel: pulumi.Float64(90),
    		})
    		if err != nil {
    			return err
    		}
    		ctx.Export("cdnClient", pulumi.Map{
    			"id":                            myAccount.ID(),
    			"cname":                         myAccount.Cname,
    			"created":                       myAccount.Created,
    			"updated":                       myAccount.Updated,
    			"utilization_level":             myAccount.UtilizationLevel,
    			"use_balancer":                  myAccount.UseBalancer,
    			"auto_suspend_enabled":          myAccount.AutoSuspendEnabled,
    			"cdn_resources_rules_max_count": myAccount.CdnResourcesRulesMaxCount,
    			"service": pulumi.Map{
    				"enabled": myAccount.Services.ApplyT(func(services []gcore.CdnClientConfigService) (*bool, error) {
    					return &services[0].Enabled, nil
    				}).(pulumi.BoolPtrOutput),
    				"status": myAccount.Services.ApplyT(func(services []gcore.CdnClientConfigService) (*string, error) {
    					return &services[0].Status, nil
    				}).(pulumi.StringPtrOutput),
    				"updated": myAccount.Services.ApplyT(func(services []gcore.CdnClientConfigService) (*string, error) {
    					return &services[0].Updated, nil
    				}).(pulumi.StringPtrOutput),
    			},
    		})
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcore = Pulumi.Gcore;
    
    return await Deployment.RunAsync(() => 
    {
        var myAccount = new Gcore.CdnClientConfig("myAccount", new()
        {
            UtilizationLevel = 90,
        });
    
        return new Dictionary<string, object?>
        {
            ["cdnClient"] = 
            {
                { "id", myAccount.Id },
                { "cname", myAccount.Cname },
                { "created", myAccount.Created },
                { "updated", myAccount.Updated },
                { "utilization_level", myAccount.UtilizationLevel },
                { "use_balancer", myAccount.UseBalancer },
                { "auto_suspend_enabled", myAccount.AutoSuspendEnabled },
                { "cdn_resources_rules_max_count", myAccount.CdnResourcesRulesMaxCount },
                { "service", 
                {
                    { "enabled", myAccount.Services.Apply(services => services[0].Enabled) },
                    { "status", myAccount.Services.Apply(services => services[0].Status) },
                    { "updated", myAccount.Services.Apply(services => services[0].Updated) },
                } },
            },
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcore.CdnClientConfig;
    import com.pulumi.gcore.CdnClientConfigArgs;
    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 myAccount = new CdnClientConfig("myAccount", CdnClientConfigArgs.builder()
                .utilizationLevel(90)
                .build());
    
            ctx.export("cdnClient", Map.ofEntries(
                Map.entry("id", myAccount.id()),
                Map.entry("cname", myAccount.cname()),
                Map.entry("created", myAccount.created()),
                Map.entry("updated", myAccount.updated()),
                Map.entry("utilization_level", myAccount.utilizationLevel()),
                Map.entry("use_balancer", myAccount.useBalancer()),
                Map.entry("auto_suspend_enabled", myAccount.autoSuspendEnabled()),
                Map.entry("cdn_resources_rules_max_count", myAccount.cdnResourcesRulesMaxCount()),
                Map.entry("service", Map.ofEntries(
                    Map.entry("enabled", myAccount.services().applyValue(services -> services[0].enabled())),
                    Map.entry("status", myAccount.services().applyValue(services -> services[0].status())),
                    Map.entry("updated", myAccount.services().applyValue(services -> services[0].updated()))
                ))
            ));
        }
    }
    
    resources:
      myAccount:
        type: gcore:CdnClientConfig
        properties:
          utilizationLevel: 90
    outputs:
      cdnClient:
        id: ${myAccount.id}
        cname: ${myAccount.cname}
        created: ${myAccount.created}
        updated: ${myAccount.updated}
        utilization_level: ${myAccount.utilizationLevel}
        use_balancer: ${myAccount.useBalancer}
        auto_suspend_enabled: ${myAccount.autoSuspendEnabled}
        cdn_resources_rules_max_count: ${myAccount.cdnResourcesRulesMaxCount}
        service:
          enabled: ${myAccount.services[0].enabled}
          status: ${myAccount.services[0].status}
          updated: ${myAccount.services[0].updated}
    

    Create CdnClientConfig Resource

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

    Constructor syntax

    new CdnClientConfig(name: string, args?: CdnClientConfigArgs, opts?: CustomResourceOptions);
    @overload
    def CdnClientConfig(resource_name: str,
                        args: Optional[CdnClientConfigArgs] = None,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def CdnClientConfig(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        utilization_level: Optional[float] = None)
    func NewCdnClientConfig(ctx *Context, name string, args *CdnClientConfigArgs, opts ...ResourceOption) (*CdnClientConfig, error)
    public CdnClientConfig(string name, CdnClientConfigArgs? args = null, CustomResourceOptions? opts = null)
    public CdnClientConfig(String name, CdnClientConfigArgs args)
    public CdnClientConfig(String name, CdnClientConfigArgs args, CustomResourceOptions options)
    
    type: gcore:CdnClientConfig
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args CdnClientConfigArgs
    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 CdnClientConfigArgs
    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 CdnClientConfigArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CdnClientConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CdnClientConfigArgs
    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 cdnClientConfigResource = new Gcore.CdnClientConfig("cdnClientConfigResource", new()
    {
        UtilizationLevel = 0,
    });
    
    example, err := gcore.NewCdnClientConfig(ctx, "cdnClientConfigResource", &gcore.CdnClientConfigArgs{
    	UtilizationLevel: pulumi.Float64(0),
    })
    
    var cdnClientConfigResource = new CdnClientConfig("cdnClientConfigResource", CdnClientConfigArgs.builder()
        .utilizationLevel(0.0)
        .build());
    
    cdn_client_config_resource = gcore.CdnClientConfig("cdnClientConfigResource", utilization_level=0)
    
    const cdnClientConfigResource = new gcore.CdnClientConfig("cdnClientConfigResource", {utilizationLevel: 0});
    
    type: gcore:CdnClientConfig
    properties:
        utilizationLevel: 0
    

    CdnClientConfig 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 CdnClientConfig resource accepts the following input properties:

    UtilizationLevel double
    CDN traffic usage limit in gigabytes.
    UtilizationLevel float64
    CDN traffic usage limit in gigabytes.
    utilizationLevel Double
    CDN traffic usage limit in gigabytes.
    utilizationLevel number
    CDN traffic usage limit in gigabytes.
    utilization_level float
    CDN traffic usage limit in gigabytes.
    utilizationLevel Number
    CDN traffic usage limit in gigabytes.

    Outputs

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

    AutoSuspendEnabled bool
    Defines whether resources will be deactivated automatically by inactivity.
    CdnResourcesRulesMaxCount double
    Limit on the number of rules for each CDN resource.
    Cname string
    Domain zone to which a CNAME record of your CDN resources should be pointed.
    Created string
    Date of the first synchronization with the Platform (ISO 8601/RFC 3339 format, UTC.)
    Id string
    The provider-assigned unique ID for this managed resource.
    Services List<CdnClientConfigService>
    Information about the CDN service status.
    Updated string
    Date of the last update of information about CDN service (ISO 8601/RFC 3339 format, UTC.)
    UseBalancer bool
    Defines whether custom balancing is used for content delivery.
    AutoSuspendEnabled bool
    Defines whether resources will be deactivated automatically by inactivity.
    CdnResourcesRulesMaxCount float64
    Limit on the number of rules for each CDN resource.
    Cname string
    Domain zone to which a CNAME record of your CDN resources should be pointed.
    Created string
    Date of the first synchronization with the Platform (ISO 8601/RFC 3339 format, UTC.)
    Id string
    The provider-assigned unique ID for this managed resource.
    Services []CdnClientConfigService
    Information about the CDN service status.
    Updated string
    Date of the last update of information about CDN service (ISO 8601/RFC 3339 format, UTC.)
    UseBalancer bool
    Defines whether custom balancing is used for content delivery.
    autoSuspendEnabled Boolean
    Defines whether resources will be deactivated automatically by inactivity.
    cdnResourcesRulesMaxCount Double
    Limit on the number of rules for each CDN resource.
    cname String
    Domain zone to which a CNAME record of your CDN resources should be pointed.
    created String
    Date of the first synchronization with the Platform (ISO 8601/RFC 3339 format, UTC.)
    id String
    The provider-assigned unique ID for this managed resource.
    services List<CdnClientConfigService>
    Information about the CDN service status.
    updated String
    Date of the last update of information about CDN service (ISO 8601/RFC 3339 format, UTC.)
    useBalancer Boolean
    Defines whether custom balancing is used for content delivery.
    autoSuspendEnabled boolean
    Defines whether resources will be deactivated automatically by inactivity.
    cdnResourcesRulesMaxCount number
    Limit on the number of rules for each CDN resource.
    cname string
    Domain zone to which a CNAME record of your CDN resources should be pointed.
    created string
    Date of the first synchronization with the Platform (ISO 8601/RFC 3339 format, UTC.)
    id string
    The provider-assigned unique ID for this managed resource.
    services CdnClientConfigService[]
    Information about the CDN service status.
    updated string
    Date of the last update of information about CDN service (ISO 8601/RFC 3339 format, UTC.)
    useBalancer boolean
    Defines whether custom balancing is used for content delivery.
    auto_suspend_enabled bool
    Defines whether resources will be deactivated automatically by inactivity.
    cdn_resources_rules_max_count float
    Limit on the number of rules for each CDN resource.
    cname str
    Domain zone to which a CNAME record of your CDN resources should be pointed.
    created str
    Date of the first synchronization with the Platform (ISO 8601/RFC 3339 format, UTC.)
    id str
    The provider-assigned unique ID for this managed resource.
    services Sequence[CdnClientConfigService]
    Information about the CDN service status.
    updated str
    Date of the last update of information about CDN service (ISO 8601/RFC 3339 format, UTC.)
    use_balancer bool
    Defines whether custom balancing is used for content delivery.
    autoSuspendEnabled Boolean
    Defines whether resources will be deactivated automatically by inactivity.
    cdnResourcesRulesMaxCount Number
    Limit on the number of rules for each CDN resource.
    cname String
    Domain zone to which a CNAME record of your CDN resources should be pointed.
    created String
    Date of the first synchronization with the Platform (ISO 8601/RFC 3339 format, UTC.)
    id String
    The provider-assigned unique ID for this managed resource.
    services List<Property Map>
    Information about the CDN service status.
    updated String
    Date of the last update of information about CDN service (ISO 8601/RFC 3339 format, UTC.)
    useBalancer Boolean
    Defines whether custom balancing is used for content delivery.

    Look up Existing CdnClientConfig Resource

    Get an existing CdnClientConfig 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?: CdnClientConfigState, opts?: CustomResourceOptions): CdnClientConfig
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            auto_suspend_enabled: Optional[bool] = None,
            cdn_resources_rules_max_count: Optional[float] = None,
            cname: Optional[str] = None,
            created: Optional[str] = None,
            services: Optional[Sequence[CdnClientConfigServiceArgs]] = None,
            updated: Optional[str] = None,
            use_balancer: Optional[bool] = None,
            utilization_level: Optional[float] = None) -> CdnClientConfig
    func GetCdnClientConfig(ctx *Context, name string, id IDInput, state *CdnClientConfigState, opts ...ResourceOption) (*CdnClientConfig, error)
    public static CdnClientConfig Get(string name, Input<string> id, CdnClientConfigState? state, CustomResourceOptions? opts = null)
    public static CdnClientConfig get(String name, Output<String> id, CdnClientConfigState state, CustomResourceOptions options)
    resources:  _:    type: gcore:CdnClientConfig    get:      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:
    AutoSuspendEnabled bool
    Defines whether resources will be deactivated automatically by inactivity.
    CdnResourcesRulesMaxCount double
    Limit on the number of rules for each CDN resource.
    Cname string
    Domain zone to which a CNAME record of your CDN resources should be pointed.
    Created string
    Date of the first synchronization with the Platform (ISO 8601/RFC 3339 format, UTC.)
    Services List<CdnClientConfigService>
    Information about the CDN service status.
    Updated string
    Date of the last update of information about CDN service (ISO 8601/RFC 3339 format, UTC.)
    UseBalancer bool
    Defines whether custom balancing is used for content delivery.
    UtilizationLevel double
    CDN traffic usage limit in gigabytes.
    AutoSuspendEnabled bool
    Defines whether resources will be deactivated automatically by inactivity.
    CdnResourcesRulesMaxCount float64
    Limit on the number of rules for each CDN resource.
    Cname string
    Domain zone to which a CNAME record of your CDN resources should be pointed.
    Created string
    Date of the first synchronization with the Platform (ISO 8601/RFC 3339 format, UTC.)
    Services []CdnClientConfigServiceArgs
    Information about the CDN service status.
    Updated string
    Date of the last update of information about CDN service (ISO 8601/RFC 3339 format, UTC.)
    UseBalancer bool
    Defines whether custom balancing is used for content delivery.
    UtilizationLevel float64
    CDN traffic usage limit in gigabytes.
    autoSuspendEnabled Boolean
    Defines whether resources will be deactivated automatically by inactivity.
    cdnResourcesRulesMaxCount Double
    Limit on the number of rules for each CDN resource.
    cname String
    Domain zone to which a CNAME record of your CDN resources should be pointed.
    created String
    Date of the first synchronization with the Platform (ISO 8601/RFC 3339 format, UTC.)
    services List<CdnClientConfigService>
    Information about the CDN service status.
    updated String
    Date of the last update of information about CDN service (ISO 8601/RFC 3339 format, UTC.)
    useBalancer Boolean
    Defines whether custom balancing is used for content delivery.
    utilizationLevel Double
    CDN traffic usage limit in gigabytes.
    autoSuspendEnabled boolean
    Defines whether resources will be deactivated automatically by inactivity.
    cdnResourcesRulesMaxCount number
    Limit on the number of rules for each CDN resource.
    cname string
    Domain zone to which a CNAME record of your CDN resources should be pointed.
    created string
    Date of the first synchronization with the Platform (ISO 8601/RFC 3339 format, UTC.)
    services CdnClientConfigService[]
    Information about the CDN service status.
    updated string
    Date of the last update of information about CDN service (ISO 8601/RFC 3339 format, UTC.)
    useBalancer boolean
    Defines whether custom balancing is used for content delivery.
    utilizationLevel number
    CDN traffic usage limit in gigabytes.
    auto_suspend_enabled bool
    Defines whether resources will be deactivated automatically by inactivity.
    cdn_resources_rules_max_count float
    Limit on the number of rules for each CDN resource.
    cname str
    Domain zone to which a CNAME record of your CDN resources should be pointed.
    created str
    Date of the first synchronization with the Platform (ISO 8601/RFC 3339 format, UTC.)
    services Sequence[CdnClientConfigServiceArgs]
    Information about the CDN service status.
    updated str
    Date of the last update of information about CDN service (ISO 8601/RFC 3339 format, UTC.)
    use_balancer bool
    Defines whether custom balancing is used for content delivery.
    utilization_level float
    CDN traffic usage limit in gigabytes.
    autoSuspendEnabled Boolean
    Defines whether resources will be deactivated automatically by inactivity.
    cdnResourcesRulesMaxCount Number
    Limit on the number of rules for each CDN resource.
    cname String
    Domain zone to which a CNAME record of your CDN resources should be pointed.
    created String
    Date of the first synchronization with the Platform (ISO 8601/RFC 3339 format, UTC.)
    services List<Property Map>
    Information about the CDN service status.
    updated String
    Date of the last update of information about CDN service (ISO 8601/RFC 3339 format, UTC.)
    useBalancer Boolean
    Defines whether custom balancing is used for content delivery.
    utilizationLevel Number
    CDN traffic usage limit in gigabytes.

    Supporting Types

    CdnClientConfigService, CdnClientConfigServiceArgs

    Enabled bool
    Status string
    Updated string
    Enabled bool
    Status string
    Updated string
    enabled Boolean
    status String
    updated String
    enabled boolean
    status string
    updated string
    enabled Boolean
    status String
    updated String

    Package Details

    Repository
    gcore g-core/terraform-provider-gcore
    License
    Notes
    This Pulumi package is based on the gcore Terraform Provider.
    gcore logo
    gcore 0.31.2 published on Monday, Nov 3, 2025 by g-core
      Meet Neo: Your AI Platform Teammate