1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. CceAddonV3
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.CceAddonV3

Explore with Pulumi AI

flexibleengine logo
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

    Provides a CCE addon resource within FlexibleEngine.

    NOTE: Currently, there is an ongoing certificate issue regarding the add-on management APIs. Please set insecure = true in provider block to ignore SSL certificate verification.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const config = new pulumi.Config();
    const clusterId = config.requireObject("clusterId");
    const addonTest = new flexibleengine.CceAddonV3("addonTest", {
        clusterId: clusterId,
        templateName: "metrics-server",
        version: "1.0.6",
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    config = pulumi.Config()
    cluster_id = config.require_object("clusterId")
    addon_test = flexibleengine.CceAddonV3("addonTest",
        cluster_id=cluster_id,
        template_name="metrics-server",
        version="1.0.6")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		clusterId := cfg.RequireObject("clusterId")
    		_, err := flexibleengine.NewCceAddonV3(ctx, "addonTest", &flexibleengine.CceAddonV3Args{
    			ClusterId:    pulumi.Any(clusterId),
    			TemplateName: pulumi.String("metrics-server"),
    			Version:      pulumi.String("1.0.6"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Flexibleengine = Pulumi.Flexibleengine;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var clusterId = config.RequireObject<dynamic>("clusterId");
        var addonTest = new Flexibleengine.CceAddonV3("addonTest", new()
        {
            ClusterId = clusterId,
            TemplateName = "metrics-server",
            Version = "1.0.6",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.CceAddonV3;
    import com.pulumi.flexibleengine.CceAddonV3Args;
    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 config = ctx.config();
            final var clusterId = config.get("clusterId");
            var addonTest = new CceAddonV3("addonTest", CceAddonV3Args.builder()
                .clusterId(clusterId)
                .templateName("metrics-server")
                .version("1.0.6")
                .build());
    
        }
    }
    
    configuration:
      clusterId:
        type: dynamic
    resources:
      addonTest:
        type: flexibleengine:CceAddonV3
        properties:
          clusterId: ${clusterId}
          templateName: metrics-server
          version: 1.0.6
    

    Create CceAddonV3 Resource

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

    Constructor syntax

    new CceAddonV3(name: string, args: CceAddonV3Args, opts?: CustomResourceOptions);
    @overload
    def CceAddonV3(resource_name: str,
                   args: CceAddonV3Args,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def CceAddonV3(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   cluster_id: Optional[str] = None,
                   template_name: Optional[str] = None,
                   version: Optional[str] = None,
                   cce_addon_v3_id: Optional[str] = None,
                   region: Optional[str] = None,
                   timeouts: Optional[CceAddonV3TimeoutsArgs] = None,
                   values: Optional[CceAddonV3ValuesArgs] = None)
    func NewCceAddonV3(ctx *Context, name string, args CceAddonV3Args, opts ...ResourceOption) (*CceAddonV3, error)
    public CceAddonV3(string name, CceAddonV3Args args, CustomResourceOptions? opts = null)
    public CceAddonV3(String name, CceAddonV3Args args)
    public CceAddonV3(String name, CceAddonV3Args args, CustomResourceOptions options)
    
    type: flexibleengine:CceAddonV3
    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 CceAddonV3Args
    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 CceAddonV3Args
    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 CceAddonV3Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CceAddonV3Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CceAddonV3Args
    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 cceAddonV3Resource = new Flexibleengine.CceAddonV3("cceAddonV3Resource", new()
    {
        ClusterId = "string",
        TemplateName = "string",
        Version = "string",
        CceAddonV3Id = "string",
        Region = "string",
        Timeouts = new Flexibleengine.Inputs.CceAddonV3TimeoutsArgs
        {
            Create = "string",
            Delete = "string",
        },
        Values = new Flexibleengine.Inputs.CceAddonV3ValuesArgs
        {
            Basic = "string",
            Custom = "string",
            Flavor = "string",
        },
    });
    
    example, err := flexibleengine.NewCceAddonV3(ctx, "cceAddonV3Resource", &flexibleengine.CceAddonV3Args{
    	ClusterId:    pulumi.String("string"),
    	TemplateName: pulumi.String("string"),
    	Version:      pulumi.String("string"),
    	CceAddonV3Id: pulumi.String("string"),
    	Region:       pulumi.String("string"),
    	Timeouts: &flexibleengine.CceAddonV3TimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    	},
    	Values: &flexibleengine.CceAddonV3ValuesArgs{
    		Basic:  pulumi.String("string"),
    		Custom: pulumi.String("string"),
    		Flavor: pulumi.String("string"),
    	},
    })
    
    var cceAddonV3Resource = new CceAddonV3("cceAddonV3Resource", CceAddonV3Args.builder()
        .clusterId("string")
        .templateName("string")
        .version("string")
        .cceAddonV3Id("string")
        .region("string")
        .timeouts(CceAddonV3TimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .build())
        .values(CceAddonV3ValuesArgs.builder()
            .basic("string")
            .custom("string")
            .flavor("string")
            .build())
        .build());
    
    cce_addon_v3_resource = flexibleengine.CceAddonV3("cceAddonV3Resource",
        cluster_id="string",
        template_name="string",
        version="string",
        cce_addon_v3_id="string",
        region="string",
        timeouts={
            "create": "string",
            "delete": "string",
        },
        values={
            "basic": "string",
            "custom": "string",
            "flavor": "string",
        })
    
    const cceAddonV3Resource = new flexibleengine.CceAddonV3("cceAddonV3Resource", {
        clusterId: "string",
        templateName: "string",
        version: "string",
        cceAddonV3Id: "string",
        region: "string",
        timeouts: {
            create: "string",
            "delete": "string",
        },
        values: {
            basic: "string",
            custom: "string",
            flavor: "string",
        },
    });
    
    type: flexibleengine:CceAddonV3
    properties:
        cceAddonV3Id: string
        clusterId: string
        region: string
        templateName: string
        timeouts:
            create: string
            delete: string
        values:
            basic: string
            custom: string
            flavor: string
        version: string
    

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

    ClusterId string
    ID of the cluster. Changing this parameter will create a new resource.
    TemplateName string
    Name of the addon template. Changing this parameter will create a new resource.
    Version string
    Version of the addon. Changing this parameter will create a new resource.
    CceAddonV3Id string
    ID of the addon instance.
    Region string
    Specifies the region in which to create the CCE addon resource. If omitted, the provider-level region will be used. Changing this will create a new CCE addon resource.
    Timeouts CceAddonV3Timeouts
    Values CceAddonV3Values

    Add-on template installation parameters. These parameters vary depending on the add-on. Changing this parameter will create a new resource. The values object structure is documented below.

    The values block supports:

    ClusterId string
    ID of the cluster. Changing this parameter will create a new resource.
    TemplateName string
    Name of the addon template. Changing this parameter will create a new resource.
    Version string
    Version of the addon. Changing this parameter will create a new resource.
    CceAddonV3Id string
    ID of the addon instance.
    Region string
    Specifies the region in which to create the CCE addon resource. If omitted, the provider-level region will be used. Changing this will create a new CCE addon resource.
    Timeouts CceAddonV3TimeoutsArgs
    Values CceAddonV3ValuesArgs

    Add-on template installation parameters. These parameters vary depending on the add-on. Changing this parameter will create a new resource. The values object structure is documented below.

    The values block supports:

    clusterId String
    ID of the cluster. Changing this parameter will create a new resource.
    templateName String
    Name of the addon template. Changing this parameter will create a new resource.
    version String
    Version of the addon. Changing this parameter will create a new resource.
    cceAddonV3Id String
    ID of the addon instance.
    region String
    Specifies the region in which to create the CCE addon resource. If omitted, the provider-level region will be used. Changing this will create a new CCE addon resource.
    timeouts CceAddonV3Timeouts
    values CceAddonV3Values

    Add-on template installation parameters. These parameters vary depending on the add-on. Changing this parameter will create a new resource. The values object structure is documented below.

    The values block supports:

    clusterId string
    ID of the cluster. Changing this parameter will create a new resource.
    templateName string
    Name of the addon template. Changing this parameter will create a new resource.
    version string
    Version of the addon. Changing this parameter will create a new resource.
    cceAddonV3Id string
    ID of the addon instance.
    region string
    Specifies the region in which to create the CCE addon resource. If omitted, the provider-level region will be used. Changing this will create a new CCE addon resource.
    timeouts CceAddonV3Timeouts
    values CceAddonV3Values

    Add-on template installation parameters. These parameters vary depending on the add-on. Changing this parameter will create a new resource. The values object structure is documented below.

    The values block supports:

    cluster_id str
    ID of the cluster. Changing this parameter will create a new resource.
    template_name str
    Name of the addon template. Changing this parameter will create a new resource.
    version str
    Version of the addon. Changing this parameter will create a new resource.
    cce_addon_v3_id str
    ID of the addon instance.
    region str
    Specifies the region in which to create the CCE addon resource. If omitted, the provider-level region will be used. Changing this will create a new CCE addon resource.
    timeouts CceAddonV3TimeoutsArgs
    values CceAddonV3ValuesArgs

    Add-on template installation parameters. These parameters vary depending on the add-on. Changing this parameter will create a new resource. The values object structure is documented below.

    The values block supports:

    clusterId String
    ID of the cluster. Changing this parameter will create a new resource.
    templateName String
    Name of the addon template. Changing this parameter will create a new resource.
    version String
    Version of the addon. Changing this parameter will create a new resource.
    cceAddonV3Id String
    ID of the addon instance.
    region String
    Specifies the region in which to create the CCE addon resource. If omitted, the provider-level region will be used. Changing this will create a new CCE addon resource.
    timeouts Property Map
    values Property Map

    Add-on template installation parameters. These parameters vary depending on the add-on. Changing this parameter will create a new resource. The values object structure is documented below.

    The values block supports:

    Outputs

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

    Description string
    Description of addon instance.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Addon status information.
    Description string
    Description of addon instance.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Addon status information.
    description String
    Description of addon instance.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Addon status information.
    description string
    Description of addon instance.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    Addon status information.
    description str
    Description of addon instance.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    Addon status information.
    description String
    Description of addon instance.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Addon status information.

    Look up Existing CceAddonV3 Resource

    Get an existing CceAddonV3 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?: CceAddonV3State, opts?: CustomResourceOptions): CceAddonV3
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cce_addon_v3_id: Optional[str] = None,
            cluster_id: Optional[str] = None,
            description: Optional[str] = None,
            region: Optional[str] = None,
            status: Optional[str] = None,
            template_name: Optional[str] = None,
            timeouts: Optional[CceAddonV3TimeoutsArgs] = None,
            values: Optional[CceAddonV3ValuesArgs] = None,
            version: Optional[str] = None) -> CceAddonV3
    func GetCceAddonV3(ctx *Context, name string, id IDInput, state *CceAddonV3State, opts ...ResourceOption) (*CceAddonV3, error)
    public static CceAddonV3 Get(string name, Input<string> id, CceAddonV3State? state, CustomResourceOptions? opts = null)
    public static CceAddonV3 get(String name, Output<String> id, CceAddonV3State state, CustomResourceOptions options)
    resources:  _:    type: flexibleengine:CceAddonV3    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:
    CceAddonV3Id string
    ID of the addon instance.
    ClusterId string
    ID of the cluster. Changing this parameter will create a new resource.
    Description string
    Description of addon instance.
    Region string
    Specifies the region in which to create the CCE addon resource. If omitted, the provider-level region will be used. Changing this will create a new CCE addon resource.
    Status string
    Addon status information.
    TemplateName string
    Name of the addon template. Changing this parameter will create a new resource.
    Timeouts CceAddonV3Timeouts
    Values CceAddonV3Values

    Add-on template installation parameters. These parameters vary depending on the add-on. Changing this parameter will create a new resource. The values object structure is documented below.

    The values block supports:

    Version string
    Version of the addon. Changing this parameter will create a new resource.
    CceAddonV3Id string
    ID of the addon instance.
    ClusterId string
    ID of the cluster. Changing this parameter will create a new resource.
    Description string
    Description of addon instance.
    Region string
    Specifies the region in which to create the CCE addon resource. If omitted, the provider-level region will be used. Changing this will create a new CCE addon resource.
    Status string
    Addon status information.
    TemplateName string
    Name of the addon template. Changing this parameter will create a new resource.
    Timeouts CceAddonV3TimeoutsArgs
    Values CceAddonV3ValuesArgs

    Add-on template installation parameters. These parameters vary depending on the add-on. Changing this parameter will create a new resource. The values object structure is documented below.

    The values block supports:

    Version string
    Version of the addon. Changing this parameter will create a new resource.
    cceAddonV3Id String
    ID of the addon instance.
    clusterId String
    ID of the cluster. Changing this parameter will create a new resource.
    description String
    Description of addon instance.
    region String
    Specifies the region in which to create the CCE addon resource. If omitted, the provider-level region will be used. Changing this will create a new CCE addon resource.
    status String
    Addon status information.
    templateName String
    Name of the addon template. Changing this parameter will create a new resource.
    timeouts CceAddonV3Timeouts
    values CceAddonV3Values

    Add-on template installation parameters. These parameters vary depending on the add-on. Changing this parameter will create a new resource. The values object structure is documented below.

    The values block supports:

    version String
    Version of the addon. Changing this parameter will create a new resource.
    cceAddonV3Id string
    ID of the addon instance.
    clusterId string
    ID of the cluster. Changing this parameter will create a new resource.
    description string
    Description of addon instance.
    region string
    Specifies the region in which to create the CCE addon resource. If omitted, the provider-level region will be used. Changing this will create a new CCE addon resource.
    status string
    Addon status information.
    templateName string
    Name of the addon template. Changing this parameter will create a new resource.
    timeouts CceAddonV3Timeouts
    values CceAddonV3Values

    Add-on template installation parameters. These parameters vary depending on the add-on. Changing this parameter will create a new resource. The values object structure is documented below.

    The values block supports:

    version string
    Version of the addon. Changing this parameter will create a new resource.
    cce_addon_v3_id str
    ID of the addon instance.
    cluster_id str
    ID of the cluster. Changing this parameter will create a new resource.
    description str
    Description of addon instance.
    region str
    Specifies the region in which to create the CCE addon resource. If omitted, the provider-level region will be used. Changing this will create a new CCE addon resource.
    status str
    Addon status information.
    template_name str
    Name of the addon template. Changing this parameter will create a new resource.
    timeouts CceAddonV3TimeoutsArgs
    values CceAddonV3ValuesArgs

    Add-on template installation parameters. These parameters vary depending on the add-on. Changing this parameter will create a new resource. The values object structure is documented below.

    The values block supports:

    version str
    Version of the addon. Changing this parameter will create a new resource.
    cceAddonV3Id String
    ID of the addon instance.
    clusterId String
    ID of the cluster. Changing this parameter will create a new resource.
    description String
    Description of addon instance.
    region String
    Specifies the region in which to create the CCE addon resource. If omitted, the provider-level region will be used. Changing this will create a new CCE addon resource.
    status String
    Addon status information.
    templateName String
    Name of the addon template. Changing this parameter will create a new resource.
    timeouts Property Map
    values Property Map

    Add-on template installation parameters. These parameters vary depending on the add-on. Changing this parameter will create a new resource. The values object structure is documented below.

    The values block supports:

    version String
    Version of the addon. Changing this parameter will create a new resource.

    Supporting Types

    CceAddonV3Timeouts, CceAddonV3TimeoutsArgs

    Create string
    Delete string
    Create string
    Delete string
    create String
    delete String
    create string
    delete string
    create str
    delete str
    create String
    delete String

    CceAddonV3Values, CceAddonV3ValuesArgs

    Basic string
    The basic parameters in json string format. Changing this will create a new resource.
    Custom string
    The custom parameters in json string format. Changing this will create a new resource.
    Flavor string
    The flavor parameters in json string format. Changing this will create a new resource.
    Basic string
    The basic parameters in json string format. Changing this will create a new resource.
    Custom string
    The custom parameters in json string format. Changing this will create a new resource.
    Flavor string
    The flavor parameters in json string format. Changing this will create a new resource.
    basic String
    The basic parameters in json string format. Changing this will create a new resource.
    custom String
    The custom parameters in json string format. Changing this will create a new resource.
    flavor String
    The flavor parameters in json string format. Changing this will create a new resource.
    basic string
    The basic parameters in json string format. Changing this will create a new resource.
    custom string
    The custom parameters in json string format. Changing this will create a new resource.
    flavor string
    The flavor parameters in json string format. Changing this will create a new resource.
    basic str
    The basic parameters in json string format. Changing this will create a new resource.
    custom str
    The custom parameters in json string format. Changing this will create a new resource.
    flavor str
    The flavor parameters in json string format. Changing this will create a new resource.
    basic String
    The basic parameters in json string format. Changing this will create a new resource.
    custom String
    The custom parameters in json string format. Changing this will create a new resource.
    flavor String
    The flavor parameters in json string format. Changing this will create a new resource.

    Import

    CCE addon can be imported using the cluster ID and addon ID separated by a slash, e.g.:

    $ pulumi import flexibleengine:index/cceAddonV3:CceAddonV3 my_addon <cluster_id>/<id>
    
    $ pulumi import flexibleengine:index/cceAddonV3:CceAddonV3 my_addon bb6923e4-b16e-11eb-b0cd-0255ac101da1/c7ecb230-b16f-11eb-b3b6-0255ac1015a3
    

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

    Package Details

    Repository
    flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
    License
    Notes
    This Pulumi package is based on the flexibleengine Terraform Provider.
    flexibleengine logo
    flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud