1. Packages
  2. Packages
  3. Vkcs Provider
  4. API Docs
  5. getKubernetesNodeGroupV2
Viewing docs for vkcs 0.15.0
published on Tuesday, May 5, 2026 by vk-cs
Viewing docs for vkcs 0.15.0
published on Tuesday, May 5, 2026 by vk-cs

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as vkcs from "@pulumi/vkcs";
    
    const nodeGroup = vkcs.getKubernetesNodeGroupV2({
        id: k8sNodeGroup.id,
    });
    
    import pulumi
    import pulumi_vkcs as vkcs
    
    node_group = vkcs.get_kubernetes_node_group_v2(id=k8s_node_group["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/vkcs/vkcs"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := vkcs.LookupKubernetesNodeGroupV2(ctx, &vkcs.LookupKubernetesNodeGroupV2Args{
    			Id: k8sNodeGroup.Id,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Vkcs = Pulumi.Vkcs;
    
    return await Deployment.RunAsync(() => 
    {
        var nodeGroup = Vkcs.GetKubernetesNodeGroupV2.Invoke(new()
        {
            Id = k8sNodeGroup.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.vkcs.VkcsFunctions;
    import com.pulumi.vkcs.inputs.GetKubernetesNodeGroupV2Args;
    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 nodeGroup = VkcsFunctions.getKubernetesNodeGroupV2(GetKubernetesNodeGroupV2Args.builder()
                .id(k8sNodeGroup.id())
                .build());
    
        }
    }
    
    variables:
      nodeGroup:
        fn::invoke:
          function: vkcs:getKubernetesNodeGroupV2
          arguments:
            id: ${k8sNodeGroup.id}
    

    Using getKubernetesNodeGroupV2

    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 getKubernetesNodeGroupV2(args: GetKubernetesNodeGroupV2Args, opts?: InvokeOptions): Promise<GetKubernetesNodeGroupV2Result>
    function getKubernetesNodeGroupV2Output(args: GetKubernetesNodeGroupV2OutputArgs, opts?: InvokeOptions): Output<GetKubernetesNodeGroupV2Result>
    def get_kubernetes_node_group_v2(id: Optional[str] = None,
                                     region: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetKubernetesNodeGroupV2Result
    def get_kubernetes_node_group_v2_output(id: pulumi.Input[Optional[str]] = None,
                                     region: pulumi.Input[Optional[str]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetKubernetesNodeGroupV2Result]
    func LookupKubernetesNodeGroupV2(ctx *Context, args *LookupKubernetesNodeGroupV2Args, opts ...InvokeOption) (*LookupKubernetesNodeGroupV2Result, error)
    func LookupKubernetesNodeGroupV2Output(ctx *Context, args *LookupKubernetesNodeGroupV2OutputArgs, opts ...InvokeOption) LookupKubernetesNodeGroupV2ResultOutput

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

    public static class GetKubernetesNodeGroupV2 
    {
        public static Task<GetKubernetesNodeGroupV2Result> InvokeAsync(GetKubernetesNodeGroupV2Args args, InvokeOptions? opts = null)
        public static Output<GetKubernetesNodeGroupV2Result> Invoke(GetKubernetesNodeGroupV2InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetKubernetesNodeGroupV2Result> getKubernetesNodeGroupV2(GetKubernetesNodeGroupV2Args args, InvokeOptions options)
    public static Output<GetKubernetesNodeGroupV2Result> getKubernetesNodeGroupV2(GetKubernetesNodeGroupV2Args args, InvokeOptions options)
    
    fn::invoke:
      function: vkcs:index/getKubernetesNodeGroupV2:getKubernetesNodeGroupV2
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    required string → The ID of the node group to retrieve.
    Region string
    optional string → The region where the node group resides. Defaults to the provider's region.
    Id string
    required string → The ID of the node group to retrieve.
    Region string
    optional string → The region where the node group resides. Defaults to the provider's region.
    id String
    required string → The ID of the node group to retrieve.
    region String
    optional string → The region where the node group resides. Defaults to the provider's region.
    id string
    required string → The ID of the node group to retrieve.
    region string
    optional string → The region where the node group resides. Defaults to the provider's region.
    id str
    required string → The ID of the node group to retrieve.
    region str
    optional string → The region where the node group resides. Defaults to the provider's region.
    id String
    required string → The ID of the node group to retrieve.
    region String
    optional string → The region where the node group resides. Defaults to the provider's region.

    getKubernetesNodeGroupV2 Result

    The following output properties are available:

    AutoScaleMaxSize double
    number → The maximum allowed node count for auto_scale.
    AutoScaleMinSize double
    number → The minimum allowed node count for auto_scale.
    AutoScaleNodeCount double
    number → The current number of nodes when scale_type is auto_scale.
    AvailabilityZone string
    string → The availability zone where the nodes are located.
    ClusterId string
    string → The ID of the parent Kubernetes cluster.
    CreatedAt string
    string → The creation timestamp of the node group (ISO 8601 format).
    DiskSize double
    number → The size of the root volume in GB.
    DiskType string
    string → The type of root volume attached to each node (e.g., ceph-ssd).
    FixedScaleNodeCount double
    number → The desired number of nodes when scale_type is fixed_scale.
    Id string
    Labels Dictionary<string, string>
    map of string → Kubernetes labels applied to the nodes in this group.
    Name string
    string → The user-assigned name of the node group.
    NodeFlavor string
    string → The flavor ID (VM type) of each node in the group.
    ParallelUpgradeChunk double
    number → The maximum percentage of nodes that can be upgraded simultaneously (1-100).
    Region string
    ScaleType string
    string → The scaling strategy: fixed_scale (static node count) or auto_scale (dynamic based on load).
    Taints List<GetKubernetesNodeGroupV2Taint>
    set → Taints applied to the nodes. Each taint contains key, value, and effect (e.g., NoSchedule).
    Uuid string
    string → The node group's UUID
    AutoScaleMaxSize float64
    number → The maximum allowed node count for auto_scale.
    AutoScaleMinSize float64
    number → The minimum allowed node count for auto_scale.
    AutoScaleNodeCount float64
    number → The current number of nodes when scale_type is auto_scale.
    AvailabilityZone string
    string → The availability zone where the nodes are located.
    ClusterId string
    string → The ID of the parent Kubernetes cluster.
    CreatedAt string
    string → The creation timestamp of the node group (ISO 8601 format).
    DiskSize float64
    number → The size of the root volume in GB.
    DiskType string
    string → The type of root volume attached to each node (e.g., ceph-ssd).
    FixedScaleNodeCount float64
    number → The desired number of nodes when scale_type is fixed_scale.
    Id string
    Labels map[string]string
    map of string → Kubernetes labels applied to the nodes in this group.
    Name string
    string → The user-assigned name of the node group.
    NodeFlavor string
    string → The flavor ID (VM type) of each node in the group.
    ParallelUpgradeChunk float64
    number → The maximum percentage of nodes that can be upgraded simultaneously (1-100).
    Region string
    ScaleType string
    string → The scaling strategy: fixed_scale (static node count) or auto_scale (dynamic based on load).
    Taints []GetKubernetesNodeGroupV2Taint
    set → Taints applied to the nodes. Each taint contains key, value, and effect (e.g., NoSchedule).
    Uuid string
    string → The node group's UUID
    autoScaleMaxSize Double
    number → The maximum allowed node count for auto_scale.
    autoScaleMinSize Double
    number → The minimum allowed node count for auto_scale.
    autoScaleNodeCount Double
    number → The current number of nodes when scale_type is auto_scale.
    availabilityZone String
    string → The availability zone where the nodes are located.
    clusterId String
    string → The ID of the parent Kubernetes cluster.
    createdAt String
    string → The creation timestamp of the node group (ISO 8601 format).
    diskSize Double
    number → The size of the root volume in GB.
    diskType String
    string → The type of root volume attached to each node (e.g., ceph-ssd).
    fixedScaleNodeCount Double
    number → The desired number of nodes when scale_type is fixed_scale.
    id String
    labels Map<String,String>
    map of string → Kubernetes labels applied to the nodes in this group.
    name String
    string → The user-assigned name of the node group.
    nodeFlavor String
    string → The flavor ID (VM type) of each node in the group.
    parallelUpgradeChunk Double
    number → The maximum percentage of nodes that can be upgraded simultaneously (1-100).
    region String
    scaleType String
    string → The scaling strategy: fixed_scale (static node count) or auto_scale (dynamic based on load).
    taints List<GetKubernetesNodeGroupV2Taint>
    set → Taints applied to the nodes. Each taint contains key, value, and effect (e.g., NoSchedule).
    uuid String
    string → The node group's UUID
    autoScaleMaxSize number
    number → The maximum allowed node count for auto_scale.
    autoScaleMinSize number
    number → The minimum allowed node count for auto_scale.
    autoScaleNodeCount number
    number → The current number of nodes when scale_type is auto_scale.
    availabilityZone string
    string → The availability zone where the nodes are located.
    clusterId string
    string → The ID of the parent Kubernetes cluster.
    createdAt string
    string → The creation timestamp of the node group (ISO 8601 format).
    diskSize number
    number → The size of the root volume in GB.
    diskType string
    string → The type of root volume attached to each node (e.g., ceph-ssd).
    fixedScaleNodeCount number
    number → The desired number of nodes when scale_type is fixed_scale.
    id string
    labels {[key: string]: string}
    map of string → Kubernetes labels applied to the nodes in this group.
    name string
    string → The user-assigned name of the node group.
    nodeFlavor string
    string → The flavor ID (VM type) of each node in the group.
    parallelUpgradeChunk number
    number → The maximum percentage of nodes that can be upgraded simultaneously (1-100).
    region string
    scaleType string
    string → The scaling strategy: fixed_scale (static node count) or auto_scale (dynamic based on load).
    taints GetKubernetesNodeGroupV2Taint[]
    set → Taints applied to the nodes. Each taint contains key, value, and effect (e.g., NoSchedule).
    uuid string
    string → The node group's UUID
    auto_scale_max_size float
    number → The maximum allowed node count for auto_scale.
    auto_scale_min_size float
    number → The minimum allowed node count for auto_scale.
    auto_scale_node_count float
    number → The current number of nodes when scale_type is auto_scale.
    availability_zone str
    string → The availability zone where the nodes are located.
    cluster_id str
    string → The ID of the parent Kubernetes cluster.
    created_at str
    string → The creation timestamp of the node group (ISO 8601 format).
    disk_size float
    number → The size of the root volume in GB.
    disk_type str
    string → The type of root volume attached to each node (e.g., ceph-ssd).
    fixed_scale_node_count float
    number → The desired number of nodes when scale_type is fixed_scale.
    id str
    labels Mapping[str, str]
    map of string → Kubernetes labels applied to the nodes in this group.
    name str
    string → The user-assigned name of the node group.
    node_flavor str
    string → The flavor ID (VM type) of each node in the group.
    parallel_upgrade_chunk float
    number → The maximum percentage of nodes that can be upgraded simultaneously (1-100).
    region str
    scale_type str
    string → The scaling strategy: fixed_scale (static node count) or auto_scale (dynamic based on load).
    taints Sequence[GetKubernetesNodeGroupV2Taint]
    set → Taints applied to the nodes. Each taint contains key, value, and effect (e.g., NoSchedule).
    uuid str
    string → The node group's UUID
    autoScaleMaxSize Number
    number → The maximum allowed node count for auto_scale.
    autoScaleMinSize Number
    number → The minimum allowed node count for auto_scale.
    autoScaleNodeCount Number
    number → The current number of nodes when scale_type is auto_scale.
    availabilityZone String
    string → The availability zone where the nodes are located.
    clusterId String
    string → The ID of the parent Kubernetes cluster.
    createdAt String
    string → The creation timestamp of the node group (ISO 8601 format).
    diskSize Number
    number → The size of the root volume in GB.
    diskType String
    string → The type of root volume attached to each node (e.g., ceph-ssd).
    fixedScaleNodeCount Number
    number → The desired number of nodes when scale_type is fixed_scale.
    id String
    labels Map<String>
    map of string → Kubernetes labels applied to the nodes in this group.
    name String
    string → The user-assigned name of the node group.
    nodeFlavor String
    string → The flavor ID (VM type) of each node in the group.
    parallelUpgradeChunk Number
    number → The maximum percentage of nodes that can be upgraded simultaneously (1-100).
    region String
    scaleType String
    string → The scaling strategy: fixed_scale (static node count) or auto_scale (dynamic based on load).
    taints List<Property Map>
    set → Taints applied to the nodes. Each taint contains key, value, and effect (e.g., NoSchedule).
    uuid String
    string → The node group's UUID

    Supporting Types

    GetKubernetesNodeGroupV2Taint

    Effect string
    string → The effect of the taint. Allowed values are: NoSchedule, PreferNoSchedule, NoExecute.
    Key string
    string → The taint key. Must conform to Kubernetes label key syntax (e.g., node.kubernetes.io/unreachable).
    Value string
    string → The taint value. Must conform to Kubernetes label value syntax (e.g., production).
    Effect string
    string → The effect of the taint. Allowed values are: NoSchedule, PreferNoSchedule, NoExecute.
    Key string
    string → The taint key. Must conform to Kubernetes label key syntax (e.g., node.kubernetes.io/unreachable).
    Value string
    string → The taint value. Must conform to Kubernetes label value syntax (e.g., production).
    effect String
    string → The effect of the taint. Allowed values are: NoSchedule, PreferNoSchedule, NoExecute.
    key String
    string → The taint key. Must conform to Kubernetes label key syntax (e.g., node.kubernetes.io/unreachable).
    value String
    string → The taint value. Must conform to Kubernetes label value syntax (e.g., production).
    effect string
    string → The effect of the taint. Allowed values are: NoSchedule, PreferNoSchedule, NoExecute.
    key string
    string → The taint key. Must conform to Kubernetes label key syntax (e.g., node.kubernetes.io/unreachable).
    value string
    string → The taint value. Must conform to Kubernetes label value syntax (e.g., production).
    effect str
    string → The effect of the taint. Allowed values are: NoSchedule, PreferNoSchedule, NoExecute.
    key str
    string → The taint key. Must conform to Kubernetes label key syntax (e.g., node.kubernetes.io/unreachable).
    value str
    string → The taint value. Must conform to Kubernetes label value syntax (e.g., production).
    effect String
    string → The effect of the taint. Allowed values are: NoSchedule, PreferNoSchedule, NoExecute.
    key String
    string → The taint key. Must conform to Kubernetes label key syntax (e.g., node.kubernetes.io/unreachable).
    value String
    string → The taint value. Must conform to Kubernetes label value syntax (e.g., production).

    Package Details

    Repository
    vkcs vk-cs/terraform-provider-vkcs
    License
    Notes
    This Pulumi package is based on the vkcs Terraform Provider.
    Viewing docs for vkcs 0.15.0
    published on Tuesday, May 5, 2026 by vk-cs
      Try Pulumi Cloud free. Your team will thank you.