1. Packages
  2. Edgecenter Provider
  3. API Docs
  4. getK8sPool
edgecenter 0.8.0 published on Wednesday, Apr 30, 2025 by edge-center

edgecenter.getK8sPool

Explore with Pulumi AI

edgecenter logo
edgecenter 0.8.0 published on Wednesday, Apr 30, 2025 by edge-center

    Represent k8s cluster’s pool.

    WARNING: Data source “edgecenter.K8sPool” is deprecated and unavailable.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as edgecenter from "@pulumi/edgecenter";
    
    const pool = edgecenter.getK8sPool({
        clusterId: "6bf878c1-1ce4-47c3-a39b-6b5f1d79bf25",
        poolId: "dc3a3ea9-86ae-47ad-a8e8-79df0ce04839",
        projectId: 1,
        regionId: 1,
    });
    
    import pulumi
    import pulumi_edgecenter as edgecenter
    
    pool = edgecenter.get_k8s_pool(cluster_id="6bf878c1-1ce4-47c3-a39b-6b5f1d79bf25",
        pool_id="dc3a3ea9-86ae-47ad-a8e8-79df0ce04839",
        project_id=1,
        region_id=1)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/edgecenter/edgecenter"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := edgecenter.LookupK8sPool(ctx, &edgecenter.LookupK8sPoolArgs{
    			ClusterId: "6bf878c1-1ce4-47c3-a39b-6b5f1d79bf25",
    			PoolId:    "dc3a3ea9-86ae-47ad-a8e8-79df0ce04839",
    			ProjectId: pulumi.Float64Ref(1),
    			RegionId:  pulumi.Float64Ref(1),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Edgecenter = Pulumi.Edgecenter;
    
    return await Deployment.RunAsync(() => 
    {
        var pool = Edgecenter.GetK8sPool.Invoke(new()
        {
            ClusterId = "6bf878c1-1ce4-47c3-a39b-6b5f1d79bf25",
            PoolId = "dc3a3ea9-86ae-47ad-a8e8-79df0ce04839",
            ProjectId = 1,
            RegionId = 1,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.edgecenter.EdgecenterFunctions;
    import com.pulumi.edgecenter.inputs.GetK8sPoolArgs;
    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 pool = EdgecenterFunctions.getK8sPool(GetK8sPoolArgs.builder()
                .clusterId("6bf878c1-1ce4-47c3-a39b-6b5f1d79bf25")
                .poolId("dc3a3ea9-86ae-47ad-a8e8-79df0ce04839")
                .projectId(1)
                .regionId(1)
                .build());
    
        }
    }
    
    variables:
      pool:
        fn::invoke:
          function: edgecenter:getK8sPool
          arguments:
            clusterId: 6bf878c1-1ce4-47c3-a39b-6b5f1d79bf25
            poolId: dc3a3ea9-86ae-47ad-a8e8-79df0ce04839
            projectId: 1
            regionId: 1
    

    Using getK8sPool

    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 getK8sPool(args: GetK8sPoolArgs, opts?: InvokeOptions): Promise<GetK8sPoolResult>
    function getK8sPoolOutput(args: GetK8sPoolOutputArgs, opts?: InvokeOptions): Output<GetK8sPoolResult>
    def get_k8s_pool(cluster_id: Optional[str] = None,
                     id: Optional[str] = None,
                     pool_id: Optional[str] = None,
                     project_id: Optional[float] = None,
                     project_name: Optional[str] = None,
                     region_id: Optional[float] = None,
                     region_name: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetK8sPoolResult
    def get_k8s_pool_output(cluster_id: Optional[pulumi.Input[str]] = None,
                     id: Optional[pulumi.Input[str]] = None,
                     pool_id: Optional[pulumi.Input[str]] = None,
                     project_id: Optional[pulumi.Input[float]] = None,
                     project_name: Optional[pulumi.Input[str]] = None,
                     region_id: Optional[pulumi.Input[float]] = None,
                     region_name: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetK8sPoolResult]
    func LookupK8sPool(ctx *Context, args *LookupK8sPoolArgs, opts ...InvokeOption) (*LookupK8sPoolResult, error)
    func LookupK8sPoolOutput(ctx *Context, args *LookupK8sPoolOutputArgs, opts ...InvokeOption) LookupK8sPoolResultOutput

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

    public static class GetK8sPool 
    {
        public static Task<GetK8sPoolResult> InvokeAsync(GetK8sPoolArgs args, InvokeOptions? opts = null)
        public static Output<GetK8sPoolResult> Invoke(GetK8sPoolInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetK8sPoolResult> getK8sPool(GetK8sPoolArgs args, InvokeOptions options)
    public static Output<GetK8sPoolResult> getK8sPool(GetK8sPoolArgs args, InvokeOptions options)
    
    fn::invoke:
      function: edgecenter:index/getK8sPool:getK8sPool
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ClusterId string
    The uuid of the Kubernetes cluster this pool belongs to.
    PoolId string
    The uuid of the Kubernetes pool within the cluster.
    Id string
    The ID of this resource.
    ProjectId double
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    ProjectName string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    RegionId double
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    RegionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    ClusterId string
    The uuid of the Kubernetes cluster this pool belongs to.
    PoolId string
    The uuid of the Kubernetes pool within the cluster.
    Id string
    The ID of this resource.
    ProjectId float64
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    ProjectName string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    RegionId float64
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    RegionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    clusterId String
    The uuid of the Kubernetes cluster this pool belongs to.
    poolId String
    The uuid of the Kubernetes pool within the cluster.
    id String
    The ID of this resource.
    projectId Double
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName String
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    regionId Double
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName String
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    clusterId string
    The uuid of the Kubernetes cluster this pool belongs to.
    poolId string
    The uuid of the Kubernetes pool within the cluster.
    id string
    The ID of this resource.
    projectId number
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    regionId number
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    cluster_id str
    The uuid of the Kubernetes cluster this pool belongs to.
    pool_id str
    The uuid of the Kubernetes pool within the cluster.
    id str
    The ID of this resource.
    project_id float
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    project_name str
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    region_id float
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    region_name str
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    clusterId String
    The uuid of the Kubernetes cluster this pool belongs to.
    poolId String
    The uuid of the Kubernetes pool within the cluster.
    id String
    The ID of this resource.
    projectId Number
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName String
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    regionId Number
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName String
    The name of the region. Either 'regionid' or 'regionname' must be specified.

    getK8sPool Result

    The following output properties are available:

    ClusterId string
    The uuid of the Kubernetes cluster this pool belongs to.
    CreatedAt string
    The timestamp when the Kubernetes pool was created.
    DockerVolumeSize double
    The size of the volume used for Docker containers, in gigabytes.
    DockerVolumeType string
    The type of volume used for the Docker containers. Available values are 'standard', 'ssd_hiiops', 'cold', and 'ultra'.
    FlavorId string
    The identifier of the flavor used for nodes in this pool.
    Id string
    The ID of this resource.
    IsDefault bool
    Indicates whether this pool is the default pool in the cluster.
    MaxNodeCount double
    The maximum number of nodes the pool can scale to.
    MinNodeCount double
    The minimum number of nodes in the pool.
    Name string
    The name of the Kubernetes pool.
    NodeAddresses List<string>
    A list of IP addresses of nodes within the pool.
    NodeCount double
    The current number of nodes in the pool.
    NodeNames List<string>
    A list of names of nodes within the pool.
    PoolId string
    The uuid of the Kubernetes pool within the cluster.
    StackId string
    The identifier of the underlying infrastructure stack used by this pool.
    ProjectId double
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    ProjectName string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    RegionId double
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    RegionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    ClusterId string
    The uuid of the Kubernetes cluster this pool belongs to.
    CreatedAt string
    The timestamp when the Kubernetes pool was created.
    DockerVolumeSize float64
    The size of the volume used for Docker containers, in gigabytes.
    DockerVolumeType string
    The type of volume used for the Docker containers. Available values are 'standard', 'ssd_hiiops', 'cold', and 'ultra'.
    FlavorId string
    The identifier of the flavor used for nodes in this pool.
    Id string
    The ID of this resource.
    IsDefault bool
    Indicates whether this pool is the default pool in the cluster.
    MaxNodeCount float64
    The maximum number of nodes the pool can scale to.
    MinNodeCount float64
    The minimum number of nodes in the pool.
    Name string
    The name of the Kubernetes pool.
    NodeAddresses []string
    A list of IP addresses of nodes within the pool.
    NodeCount float64
    The current number of nodes in the pool.
    NodeNames []string
    A list of names of nodes within the pool.
    PoolId string
    The uuid of the Kubernetes pool within the cluster.
    StackId string
    The identifier of the underlying infrastructure stack used by this pool.
    ProjectId float64
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    ProjectName string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    RegionId float64
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    RegionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    clusterId String
    The uuid of the Kubernetes cluster this pool belongs to.
    createdAt String
    The timestamp when the Kubernetes pool was created.
    dockerVolumeSize Double
    The size of the volume used for Docker containers, in gigabytes.
    dockerVolumeType String
    The type of volume used for the Docker containers. Available values are 'standard', 'ssd_hiiops', 'cold', and 'ultra'.
    flavorId String
    The identifier of the flavor used for nodes in this pool.
    id String
    The ID of this resource.
    isDefault Boolean
    Indicates whether this pool is the default pool in the cluster.
    maxNodeCount Double
    The maximum number of nodes the pool can scale to.
    minNodeCount Double
    The minimum number of nodes in the pool.
    name String
    The name of the Kubernetes pool.
    nodeAddresses List<String>
    A list of IP addresses of nodes within the pool.
    nodeCount Double
    The current number of nodes in the pool.
    nodeNames List<String>
    A list of names of nodes within the pool.
    poolId String
    The uuid of the Kubernetes pool within the cluster.
    stackId String
    The identifier of the underlying infrastructure stack used by this pool.
    projectId Double
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName String
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    regionId Double
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName String
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    clusterId string
    The uuid of the Kubernetes cluster this pool belongs to.
    createdAt string
    The timestamp when the Kubernetes pool was created.
    dockerVolumeSize number
    The size of the volume used for Docker containers, in gigabytes.
    dockerVolumeType string
    The type of volume used for the Docker containers. Available values are 'standard', 'ssd_hiiops', 'cold', and 'ultra'.
    flavorId string
    The identifier of the flavor used for nodes in this pool.
    id string
    The ID of this resource.
    isDefault boolean
    Indicates whether this pool is the default pool in the cluster.
    maxNodeCount number
    The maximum number of nodes the pool can scale to.
    minNodeCount number
    The minimum number of nodes in the pool.
    name string
    The name of the Kubernetes pool.
    nodeAddresses string[]
    A list of IP addresses of nodes within the pool.
    nodeCount number
    The current number of nodes in the pool.
    nodeNames string[]
    A list of names of nodes within the pool.
    poolId string
    The uuid of the Kubernetes pool within the cluster.
    stackId string
    The identifier of the underlying infrastructure stack used by this pool.
    projectId number
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    regionId number
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    cluster_id str
    The uuid of the Kubernetes cluster this pool belongs to.
    created_at str
    The timestamp when the Kubernetes pool was created.
    docker_volume_size float
    The size of the volume used for Docker containers, in gigabytes.
    docker_volume_type str
    The type of volume used for the Docker containers. Available values are 'standard', 'ssd_hiiops', 'cold', and 'ultra'.
    flavor_id str
    The identifier of the flavor used for nodes in this pool.
    id str
    The ID of this resource.
    is_default bool
    Indicates whether this pool is the default pool in the cluster.
    max_node_count float
    The maximum number of nodes the pool can scale to.
    min_node_count float
    The minimum number of nodes in the pool.
    name str
    The name of the Kubernetes pool.
    node_addresses Sequence[str]
    A list of IP addresses of nodes within the pool.
    node_count float
    The current number of nodes in the pool.
    node_names Sequence[str]
    A list of names of nodes within the pool.
    pool_id str
    The uuid of the Kubernetes pool within the cluster.
    stack_id str
    The identifier of the underlying infrastructure stack used by this pool.
    project_id float
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    project_name str
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    region_id float
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    region_name str
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    clusterId String
    The uuid of the Kubernetes cluster this pool belongs to.
    createdAt String
    The timestamp when the Kubernetes pool was created.
    dockerVolumeSize Number
    The size of the volume used for Docker containers, in gigabytes.
    dockerVolumeType String
    The type of volume used for the Docker containers. Available values are 'standard', 'ssd_hiiops', 'cold', and 'ultra'.
    flavorId String
    The identifier of the flavor used for nodes in this pool.
    id String
    The ID of this resource.
    isDefault Boolean
    Indicates whether this pool is the default pool in the cluster.
    maxNodeCount Number
    The maximum number of nodes the pool can scale to.
    minNodeCount Number
    The minimum number of nodes in the pool.
    name String
    The name of the Kubernetes pool.
    nodeAddresses List<String>
    A list of IP addresses of nodes within the pool.
    nodeCount Number
    The current number of nodes in the pool.
    nodeNames List<String>
    A list of names of nodes within the pool.
    poolId String
    The uuid of the Kubernetes pool within the cluster.
    stackId String
    The identifier of the underlying infrastructure stack used by this pool.
    projectId Number
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName String
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    regionId Number
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName String
    The name of the region. Either 'regionid' or 'regionname' must be specified.

    Package Details

    Repository
    edgecenter edge-center/terraform-provider-edgecenter
    License
    Notes
    This Pulumi package is based on the edgecenter Terraform Provider.
    edgecenter logo
    edgecenter 0.8.0 published on Wednesday, Apr 30, 2025 by edge-center