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

flexibleengine.getCceAddonTemplate

Explore with Pulumi AI

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

    Use this data source to get an available FlexibleEngine CCE add-on template.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const config = new pulumi.Config();
    const clusterId = config.requireObject("clusterId");
    const addonName = config.requireObject("addonName");
    const addonVersion = config.requireObject("addonVersion");
    const test = flexibleengine.getCceAddonTemplate({
        clusterId: clusterId,
        name: addonName,
        version: addonVersion,
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    config = pulumi.Config()
    cluster_id = config.require_object("clusterId")
    addon_name = config.require_object("addonName")
    addon_version = config.require_object("addonVersion")
    test = flexibleengine.get_cce_addon_template(cluster_id=cluster_id,
        name=addon_name,
        version=addon_version)
    
    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")
    		addonName := cfg.RequireObject("addonName")
    		addonVersion := cfg.RequireObject("addonVersion")
    		_, err := flexibleengine.GetCceAddonTemplate(ctx, &flexibleengine.GetCceAddonTemplateArgs{
    			ClusterId: clusterId,
    			Name:      addonName,
    			Version:   addonVersion,
    		}, nil)
    		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 addonName = config.RequireObject<dynamic>("addonName");
        var addonVersion = config.RequireObject<dynamic>("addonVersion");
        var test = Flexibleengine.GetCceAddonTemplate.Invoke(new()
        {
            ClusterId = clusterId,
            Name = addonName,
            Version = addonVersion,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.FlexibleengineFunctions;
    import com.pulumi.flexibleengine.inputs.GetCceAddonTemplateArgs;
    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");
            final var addonName = config.get("addonName");
            final var addonVersion = config.get("addonVersion");
            final var test = FlexibleengineFunctions.getCceAddonTemplate(GetCceAddonTemplateArgs.builder()
                .clusterId(clusterId)
                .name(addonName)
                .version(addonVersion)
                .build());
    
        }
    }
    
    configuration:
      clusterId:
        type: dynamic
      addonName:
        type: dynamic
      addonVersion:
        type: dynamic
    variables:
      test:
        fn::invoke:
          function: flexibleengine:getCceAddonTemplate
          arguments:
            clusterId: ${clusterId}
            name: ${addonName}
            version: ${addonVersion}
    

    Using getCceAddonTemplate

    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 getCceAddonTemplate(args: GetCceAddonTemplateArgs, opts?: InvokeOptions): Promise<GetCceAddonTemplateResult>
    function getCceAddonTemplateOutput(args: GetCceAddonTemplateOutputArgs, opts?: InvokeOptions): Output<GetCceAddonTemplateResult>
    def get_cce_addon_template(cluster_id: Optional[str] = None,
                               id: Optional[str] = None,
                               name: Optional[str] = None,
                               region: Optional[str] = None,
                               version: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetCceAddonTemplateResult
    def get_cce_addon_template_output(cluster_id: Optional[pulumi.Input[str]] = None,
                               id: Optional[pulumi.Input[str]] = None,
                               name: Optional[pulumi.Input[str]] = None,
                               region: Optional[pulumi.Input[str]] = None,
                               version: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetCceAddonTemplateResult]
    func GetCceAddonTemplate(ctx *Context, args *GetCceAddonTemplateArgs, opts ...InvokeOption) (*GetCceAddonTemplateResult, error)
    func GetCceAddonTemplateOutput(ctx *Context, args *GetCceAddonTemplateOutputArgs, opts ...InvokeOption) GetCceAddonTemplateResultOutput

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

    public static class GetCceAddonTemplate 
    {
        public static Task<GetCceAddonTemplateResult> InvokeAsync(GetCceAddonTemplateArgs args, InvokeOptions? opts = null)
        public static Output<GetCceAddonTemplateResult> Invoke(GetCceAddonTemplateInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCceAddonTemplateResult> getCceAddonTemplate(GetCceAddonTemplateArgs args, InvokeOptions options)
    public static Output<GetCceAddonTemplateResult> getCceAddonTemplate(GetCceAddonTemplateArgs args, InvokeOptions options)
    
    fn::invoke:
      function: flexibleengine:index/getCceAddonTemplate:getCceAddonTemplate
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ClusterId string
    Specifies the ID of CCE cluster.
    Name string

    Specifies the add-on name. The supported addons are as follows:

    • autoscaler: AutoScaler is a component that automatically adjusts the size of a Kubernetes cluster so that all pods have a place to run and there are no unneeded nodes. Latest version: 1.19.6.

    • coredns: CoreDNS is a DNS server that chains plugins and provides Kubernetes DNS Services. Latest version: 1.17.7.

    • everest: Everest is a cloud native container storage system based on CSI, used to support cloud storage services for Kubernetes. Latest version: 1.2.9.

    • metrics-server: Metrics Server is a cluster-level resource usage data aggregator. Latest version: 1.1.2.

    • gpu-beta: A device plugin for nvidia.com/gpu resource on nvidia driver. Latest version: 1.2.2.

    Version string
    Specifies the add-on version.
    Id string
    The resource id of the addon template.
    Region string
    The region in which to query the data source. If omitted, the provider-level region will be used.
    ClusterId string
    Specifies the ID of CCE cluster.
    Name string

    Specifies the add-on name. The supported addons are as follows:

    • autoscaler: AutoScaler is a component that automatically adjusts the size of a Kubernetes cluster so that all pods have a place to run and there are no unneeded nodes. Latest version: 1.19.6.

    • coredns: CoreDNS is a DNS server that chains plugins and provides Kubernetes DNS Services. Latest version: 1.17.7.

    • everest: Everest is a cloud native container storage system based on CSI, used to support cloud storage services for Kubernetes. Latest version: 1.2.9.

    • metrics-server: Metrics Server is a cluster-level resource usage data aggregator. Latest version: 1.1.2.

    • gpu-beta: A device plugin for nvidia.com/gpu resource on nvidia driver. Latest version: 1.2.2.

    Version string
    Specifies the add-on version.
    Id string
    The resource id of the addon template.
    Region string
    The region in which to query the data source. If omitted, the provider-level region will be used.
    clusterId String
    Specifies the ID of CCE cluster.
    name String

    Specifies the add-on name. The supported addons are as follows:

    • autoscaler: AutoScaler is a component that automatically adjusts the size of a Kubernetes cluster so that all pods have a place to run and there are no unneeded nodes. Latest version: 1.19.6.

    • coredns: CoreDNS is a DNS server that chains plugins and provides Kubernetes DNS Services. Latest version: 1.17.7.

    • everest: Everest is a cloud native container storage system based on CSI, used to support cloud storage services for Kubernetes. Latest version: 1.2.9.

    • metrics-server: Metrics Server is a cluster-level resource usage data aggregator. Latest version: 1.1.2.

    • gpu-beta: A device plugin for nvidia.com/gpu resource on nvidia driver. Latest version: 1.2.2.

    version String
    Specifies the add-on version.
    id String
    The resource id of the addon template.
    region String
    The region in which to query the data source. If omitted, the provider-level region will be used.
    clusterId string
    Specifies the ID of CCE cluster.
    name string

    Specifies the add-on name. The supported addons are as follows:

    • autoscaler: AutoScaler is a component that automatically adjusts the size of a Kubernetes cluster so that all pods have a place to run and there are no unneeded nodes. Latest version: 1.19.6.

    • coredns: CoreDNS is a DNS server that chains plugins and provides Kubernetes DNS Services. Latest version: 1.17.7.

    • everest: Everest is a cloud native container storage system based on CSI, used to support cloud storage services for Kubernetes. Latest version: 1.2.9.

    • metrics-server: Metrics Server is a cluster-level resource usage data aggregator. Latest version: 1.1.2.

    • gpu-beta: A device plugin for nvidia.com/gpu resource on nvidia driver. Latest version: 1.2.2.

    version string
    Specifies the add-on version.
    id string
    The resource id of the addon template.
    region string
    The region in which to query the data source. If omitted, the provider-level region will be used.
    cluster_id str
    Specifies the ID of CCE cluster.
    name str

    Specifies the add-on name. The supported addons are as follows:

    • autoscaler: AutoScaler is a component that automatically adjusts the size of a Kubernetes cluster so that all pods have a place to run and there are no unneeded nodes. Latest version: 1.19.6.

    • coredns: CoreDNS is a DNS server that chains plugins and provides Kubernetes DNS Services. Latest version: 1.17.7.

    • everest: Everest is a cloud native container storage system based on CSI, used to support cloud storage services for Kubernetes. Latest version: 1.2.9.

    • metrics-server: Metrics Server is a cluster-level resource usage data aggregator. Latest version: 1.1.2.

    • gpu-beta: A device plugin for nvidia.com/gpu resource on nvidia driver. Latest version: 1.2.2.

    version str
    Specifies the add-on version.
    id str
    The resource id of the addon template.
    region str
    The region in which to query the data source. If omitted, the provider-level region will be used.
    clusterId String
    Specifies the ID of CCE cluster.
    name String

    Specifies the add-on name. The supported addons are as follows:

    • autoscaler: AutoScaler is a component that automatically adjusts the size of a Kubernetes cluster so that all pods have a place to run and there are no unneeded nodes. Latest version: 1.19.6.

    • coredns: CoreDNS is a DNS server that chains plugins and provides Kubernetes DNS Services. Latest version: 1.17.7.

    • everest: Everest is a cloud native container storage system based on CSI, used to support cloud storage services for Kubernetes. Latest version: 1.2.9.

    • metrics-server: Metrics Server is a cluster-level resource usage data aggregator. Latest version: 1.1.2.

    • gpu-beta: A device plugin for nvidia.com/gpu resource on nvidia driver. Latest version: 1.2.2.

    version String
    Specifies the add-on version.
    id String
    The resource id of the addon template.
    region String
    The region in which to query the data source. If omitted, the provider-level region will be used.

    getCceAddonTemplate Result

    The following output properties are available:

    ClusterId string
    Description string
    The description of the add-on.
    Id string
    The resource id of the addon template.
    Name string
    Region string
    Spec string
    The detail configuration of the add-on template.
    Stable bool
    Whether the add-on template is a stable version.
    SupportVersions List<GetCceAddonTemplateSupportVersion>
    The cluster information. The support_version object structure is documented below.
    Version string
    ClusterId string
    Description string
    The description of the add-on.
    Id string
    The resource id of the addon template.
    Name string
    Region string
    Spec string
    The detail configuration of the add-on template.
    Stable bool
    Whether the add-on template is a stable version.
    SupportVersions []GetCceAddonTemplateSupportVersion
    The cluster information. The support_version object structure is documented below.
    Version string
    clusterId String
    description String
    The description of the add-on.
    id String
    The resource id of the addon template.
    name String
    region String
    spec String
    The detail configuration of the add-on template.
    stable Boolean
    Whether the add-on template is a stable version.
    supportVersions List<GetCceAddonTemplateSupportVersion>
    The cluster information. The support_version object structure is documented below.
    version String
    clusterId string
    description string
    The description of the add-on.
    id string
    The resource id of the addon template.
    name string
    region string
    spec string
    The detail configuration of the add-on template.
    stable boolean
    Whether the add-on template is a stable version.
    supportVersions GetCceAddonTemplateSupportVersion[]
    The cluster information. The support_version object structure is documented below.
    version string
    cluster_id str
    description str
    The description of the add-on.
    id str
    The resource id of the addon template.
    name str
    region str
    spec str
    The detail configuration of the add-on template.
    stable bool
    Whether the add-on template is a stable version.
    support_versions Sequence[GetCceAddonTemplateSupportVersion]
    The cluster information. The support_version object structure is documented below.
    version str
    clusterId String
    description String
    The description of the add-on.
    id String
    The resource id of the addon template.
    name String
    region String
    spec String
    The detail configuration of the add-on template.
    stable Boolean
    Whether the add-on template is a stable version.
    supportVersions List<Property Map>
    The cluster information. The support_version object structure is documented below.
    version String

    Supporting Types

    GetCceAddonTemplateSupportVersion

    BareMetals List<string>
    The cluster (Bare Metal) version that the add-on template supported.
    VirtualMachines List<string>
    The cluster (Virtual Machine) version that the add-on template supported.
    BareMetals []string
    The cluster (Bare Metal) version that the add-on template supported.
    VirtualMachines []string
    The cluster (Virtual Machine) version that the add-on template supported.
    bareMetals List<String>
    The cluster (Bare Metal) version that the add-on template supported.
    virtualMachines List<String>
    The cluster (Virtual Machine) version that the add-on template supported.
    bareMetals string[]
    The cluster (Bare Metal) version that the add-on template supported.
    virtualMachines string[]
    The cluster (Virtual Machine) version that the add-on template supported.
    bare_metals Sequence[str]
    The cluster (Bare Metal) version that the add-on template supported.
    virtual_machines Sequence[str]
    The cluster (Virtual Machine) version that the add-on template supported.
    bareMetals List<String>
    The cluster (Bare Metal) version that the add-on template supported.
    virtualMachines List<String>
    The cluster (Virtual Machine) version that the add-on template supported.

    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