vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs
vkcs.getKubernetesNodeGroup
Explore with Pulumi AI
Use this data source to get information on VKCS Kubernetes cluster’s node group.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as vkcs from "@pulumi/vkcs";
const k8sNodeGroup = vkcs.getKubernetesNodeGroup({
id: vkcs_kubernetes_node_group.default_ng.id,
});
import pulumi
import pulumi_vkcs as vkcs
k8s_node_group = vkcs.get_kubernetes_node_group(id=vkcs_kubernetes_node_group["default_ng"]["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.LookupKubernetesNodeGroup(ctx, &vkcs.LookupKubernetesNodeGroupArgs{
Id: pulumi.StringRef(vkcs_kubernetes_node_group.Default_ng.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 k8sNodeGroup = Vkcs.GetKubernetesNodeGroup.Invoke(new()
{
Id = vkcs_kubernetes_node_group.Default_ng.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.GetKubernetesNodeGroupArgs;
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 k8sNodeGroup = VkcsFunctions.getKubernetesNodeGroup(GetKubernetesNodeGroupArgs.builder()
.id(vkcs_kubernetes_node_group.default_ng().id())
.build());
}
}
variables:
k8sNodeGroup:
fn::invoke:
function: vkcs:getKubernetesNodeGroup
arguments:
id: ${vkcs_kubernetes_node_group.default_ng.id}
Using getKubernetesNodeGroup
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 getKubernetesNodeGroup(args: GetKubernetesNodeGroupArgs, opts?: InvokeOptions): Promise<GetKubernetesNodeGroupResult>
function getKubernetesNodeGroupOutput(args: GetKubernetesNodeGroupOutputArgs, opts?: InvokeOptions): Output<GetKubernetesNodeGroupResult>
def get_kubernetes_node_group(autoscaling_enabled: Optional[bool] = None,
flavor_id: Optional[str] = None,
id: Optional[str] = None,
max_node_unavailable: Optional[float] = None,
max_nodes: Optional[float] = None,
min_nodes: Optional[float] = None,
name: Optional[str] = None,
node_count: Optional[float] = None,
region: Optional[str] = None,
uuid: Optional[str] = None,
volume_size: Optional[float] = None,
volume_type: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetKubernetesNodeGroupResult
def get_kubernetes_node_group_output(autoscaling_enabled: Optional[pulumi.Input[bool]] = None,
flavor_id: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
max_node_unavailable: Optional[pulumi.Input[float]] = None,
max_nodes: Optional[pulumi.Input[float]] = None,
min_nodes: Optional[pulumi.Input[float]] = None,
name: Optional[pulumi.Input[str]] = None,
node_count: Optional[pulumi.Input[float]] = None,
region: Optional[pulumi.Input[str]] = None,
uuid: Optional[pulumi.Input[str]] = None,
volume_size: Optional[pulumi.Input[float]] = None,
volume_type: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetKubernetesNodeGroupResult]
func LookupKubernetesNodeGroup(ctx *Context, args *LookupKubernetesNodeGroupArgs, opts ...InvokeOption) (*LookupKubernetesNodeGroupResult, error)
func LookupKubernetesNodeGroupOutput(ctx *Context, args *LookupKubernetesNodeGroupOutputArgs, opts ...InvokeOption) LookupKubernetesNodeGroupResultOutput
> Note: This function is named LookupKubernetesNodeGroup
in the Go SDK.
public static class GetKubernetesNodeGroup
{
public static Task<GetKubernetesNodeGroupResult> InvokeAsync(GetKubernetesNodeGroupArgs args, InvokeOptions? opts = null)
public static Output<GetKubernetesNodeGroupResult> Invoke(GetKubernetesNodeGroupInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetKubernetesNodeGroupResult> getKubernetesNodeGroup(GetKubernetesNodeGroupArgs args, InvokeOptions options)
public static Output<GetKubernetesNodeGroupResult> getKubernetesNodeGroup(GetKubernetesNodeGroupArgs args, InvokeOptions options)
fn::invoke:
function: vkcs:index/getKubernetesNodeGroup:getKubernetesNodeGroup
arguments:
# arguments dictionary
The following arguments are supported:
- Autoscaling
Enabled bool - optional boolean → Determines whether the autoscaling is enabled.
- Flavor
Id string - optional string → The id of the flavor.
- Id string
- optional string → The UUID of the cluster's node group.
- double
- optional number → Specified as a percentage. The maximum number of nodes that can fail during an upgrade.
- Max
Nodes double - optional number → The maximum amount of nodes in the node group.
- Min
Nodes double - optional number → The minimum amount of nodes in the node group.
- Name string
- optional string → The name of the node group.
- Node
Count double - optional number → The count of nodes in the node group.
- Region string
- optional string → The region to obtain the service client. If omitted, the
region
argument of the provider is used.New since v0.4.0. - Uuid string
- optional deprecated string → The UUID of the cluster's node group. Deprecated This argument is deprecated, please, use the
id
attribute instead. - Volume
Size double - optional number → The amount of memory in the volume in GB
- Volume
Type string - optional string → The type of the volume.
- Autoscaling
Enabled bool - optional boolean → Determines whether the autoscaling is enabled.
- Flavor
Id string - optional string → The id of the flavor.
- Id string
- optional string → The UUID of the cluster's node group.
- float64
- optional number → Specified as a percentage. The maximum number of nodes that can fail during an upgrade.
- Max
Nodes float64 - optional number → The maximum amount of nodes in the node group.
- Min
Nodes float64 - optional number → The minimum amount of nodes in the node group.
- Name string
- optional string → The name of the node group.
- Node
Count float64 - optional number → The count of nodes in the node group.
- Region string
- optional string → The region to obtain the service client. If omitted, the
region
argument of the provider is used.New since v0.4.0. - Uuid string
- optional deprecated string → The UUID of the cluster's node group. Deprecated This argument is deprecated, please, use the
id
attribute instead. - Volume
Size float64 - optional number → The amount of memory in the volume in GB
- Volume
Type string - optional string → The type of the volume.
- autoscaling
Enabled Boolean - optional boolean → Determines whether the autoscaling is enabled.
- flavor
Id String - optional string → The id of the flavor.
- id String
- optional string → The UUID of the cluster's node group.
- Double
- optional number → Specified as a percentage. The maximum number of nodes that can fail during an upgrade.
- max
Nodes Double - optional number → The maximum amount of nodes in the node group.
- min
Nodes Double - optional number → The minimum amount of nodes in the node group.
- name String
- optional string → The name of the node group.
- node
Count Double - optional number → The count of nodes in the node group.
- region String
- optional string → The region to obtain the service client. If omitted, the
region
argument of the provider is used.New since v0.4.0. - uuid String
- optional deprecated string → The UUID of the cluster's node group. Deprecated This argument is deprecated, please, use the
id
attribute instead. - volume
Size Double - optional number → The amount of memory in the volume in GB
- volume
Type String - optional string → The type of the volume.
- autoscaling
Enabled boolean - optional boolean → Determines whether the autoscaling is enabled.
- flavor
Id string - optional string → The id of the flavor.
- id string
- optional string → The UUID of the cluster's node group.
- number
- optional number → Specified as a percentage. The maximum number of nodes that can fail during an upgrade.
- max
Nodes number - optional number → The maximum amount of nodes in the node group.
- min
Nodes number - optional number → The minimum amount of nodes in the node group.
- name string
- optional string → The name of the node group.
- node
Count number - optional number → The count of nodes in the node group.
- region string
- optional string → The region to obtain the service client. If omitted, the
region
argument of the provider is used.New since v0.4.0. - uuid string
- optional deprecated string → The UUID of the cluster's node group. Deprecated This argument is deprecated, please, use the
id
attribute instead. - volume
Size number - optional number → The amount of memory in the volume in GB
- volume
Type string - optional string → The type of the volume.
- autoscaling_
enabled bool - optional boolean → Determines whether the autoscaling is enabled.
- flavor_
id str - optional string → The id of the flavor.
- id str
- optional string → The UUID of the cluster's node group.
- float
- optional number → Specified as a percentage. The maximum number of nodes that can fail during an upgrade.
- max_
nodes float - optional number → The maximum amount of nodes in the node group.
- min_
nodes float - optional number → The minimum amount of nodes in the node group.
- name str
- optional string → The name of the node group.
- node_
count float - optional number → The count of nodes in the node group.
- region str
- optional string → The region to obtain the service client. If omitted, the
region
argument of the provider is used.New since v0.4.0. - uuid str
- optional deprecated string → The UUID of the cluster's node group. Deprecated This argument is deprecated, please, use the
id
attribute instead. - volume_
size float - optional number → The amount of memory in the volume in GB
- volume_
type str - optional string → The type of the volume.
- autoscaling
Enabled Boolean - optional boolean → Determines whether the autoscaling is enabled.
- flavor
Id String - optional string → The id of the flavor.
- id String
- optional string → The UUID of the cluster's node group.
- Number
- optional number → Specified as a percentage. The maximum number of nodes that can fail during an upgrade.
- max
Nodes Number - optional number → The maximum amount of nodes in the node group.
- min
Nodes Number - optional number → The minimum amount of nodes in the node group.
- name String
- optional string → The name of the node group.
- node
Count Number - optional number → The count of nodes in the node group.
- region String
- optional string → The region to obtain the service client. If omitted, the
region
argument of the provider is used.New since v0.4.0. - uuid String
- optional deprecated string → The UUID of the cluster's node group. Deprecated This argument is deprecated, please, use the
id
attribute instead. - volume
Size Number - optional number → The amount of memory in the volume in GB
- volume
Type String - optional string → The type of the volume.
getKubernetesNodeGroup Result
The following output properties are available:
- Autoscaling
Enabled bool - Availability
Zones List<string> - string → The list of availability zones of the node group.
- Cluster
Id string - string → The UUID of cluster that node group belongs.
- Flavor
Id string - Id string
- double
- Max
Nodes double - Min
Nodes double - Name string
- string → Name of a node.
- Node
Count double - Nodes
List<Get
Kubernetes Node Group Node> - list → The list of node group's node objects.
- Region string
- State string
- string → Determines current state of node group (RUNNING, SHUTOFF, ERROR).
- Uuid string
- string → UUID of a node.
- Volume
Size double - Volume
Type string
- Autoscaling
Enabled bool - Availability
Zones []string - string → The list of availability zones of the node group.
- Cluster
Id string - string → The UUID of cluster that node group belongs.
- Flavor
Id string - Id string
- float64
- Max
Nodes float64 - Min
Nodes float64 - Name string
- string → Name of a node.
- Node
Count float64 - Nodes
[]Get
Kubernetes Node Group Node - list → The list of node group's node objects.
- Region string
- State string
- string → Determines current state of node group (RUNNING, SHUTOFF, ERROR).
- Uuid string
- string → UUID of a node.
- Volume
Size float64 - Volume
Type string
- autoscaling
Enabled Boolean - availability
Zones List<String> - string → The list of availability zones of the node group.
- cluster
Id String - string → The UUID of cluster that node group belongs.
- flavor
Id String - id String
- Double
- max
Nodes Double - min
Nodes Double - name String
- string → Name of a node.
- node
Count Double - nodes
List<Get
Kubernetes Node Group Node> - list → The list of node group's node objects.
- region String
- state String
- string → Determines current state of node group (RUNNING, SHUTOFF, ERROR).
- uuid String
- string → UUID of a node.
- volume
Size Double - volume
Type String
- autoscaling
Enabled boolean - availability
Zones string[] - string → The list of availability zones of the node group.
- cluster
Id string - string → The UUID of cluster that node group belongs.
- flavor
Id string - id string
- number
- max
Nodes number - min
Nodes number - name string
- string → Name of a node.
- node
Count number - nodes
Get
Kubernetes Node Group Node[] - list → The list of node group's node objects.
- region string
- state string
- string → Determines current state of node group (RUNNING, SHUTOFF, ERROR).
- uuid string
- string → UUID of a node.
- volume
Size number - volume
Type string
- autoscaling_
enabled bool - availability_
zones Sequence[str] - string → The list of availability zones of the node group.
- cluster_
id str - string → The UUID of cluster that node group belongs.
- flavor_
id str - id str
- float
- max_
nodes float - min_
nodes float - name str
- string → Name of a node.
- node_
count float - nodes
Sequence[Get
Kubernetes Node Group Node] - list → The list of node group's node objects.
- region str
- state str
- string → Determines current state of node group (RUNNING, SHUTOFF, ERROR).
- uuid str
- string → UUID of a node.
- volume_
size float - volume_
type str
- autoscaling
Enabled Boolean - availability
Zones List<String> - string → The list of availability zones of the node group.
- cluster
Id String - string → The UUID of cluster that node group belongs.
- flavor
Id String - id String
- Number
- max
Nodes Number - min
Nodes Number - name String
- string → Name of a node.
- node
Count Number - nodes List<Property Map>
- list → The list of node group's node objects.
- region String
- state String
- string → Determines current state of node group (RUNNING, SHUTOFF, ERROR).
- uuid String
- string → UUID of a node.
- volume
Size Number - volume
Type String
Supporting Types
GetKubernetesNodeGroupNode
- Created
At string - string → Time when a node was created.
- Name string
- optional string → The name of the node group.
- Node
Group stringId - string → The node group id.
- Updated
At string - string → Time when a node was updated.
- Uuid string
- optional deprecated string → The UUID of the cluster's node group. Deprecated This argument is deprecated, please, use the
id
attribute instead.
- Created
At string - string → Time when a node was created.
- Name string
- optional string → The name of the node group.
- Node
Group stringId - string → The node group id.
- Updated
At string - string → Time when a node was updated.
- Uuid string
- optional deprecated string → The UUID of the cluster's node group. Deprecated This argument is deprecated, please, use the
id
attribute instead.
- created
At String - string → Time when a node was created.
- name String
- optional string → The name of the node group.
- node
Group StringId - string → The node group id.
- updated
At String - string → Time when a node was updated.
- uuid String
- optional deprecated string → The UUID of the cluster's node group. Deprecated This argument is deprecated, please, use the
id
attribute instead.
- created
At string - string → Time when a node was created.
- name string
- optional string → The name of the node group.
- node
Group stringId - string → The node group id.
- updated
At string - string → Time when a node was updated.
- uuid string
- optional deprecated string → The UUID of the cluster's node group. Deprecated This argument is deprecated, please, use the
id
attribute instead.
- created_
at str - string → Time when a node was created.
- name str
- optional string → The name of the node group.
- node_
group_ strid - string → The node group id.
- updated_
at str - string → Time when a node was updated.
- uuid str
- optional deprecated string → The UUID of the cluster's node group. Deprecated This argument is deprecated, please, use the
id
attribute instead.
- created
At String - string → Time when a node was created.
- name String
- optional string → The name of the node group.
- node
Group StringId - string → The node group id.
- updated
At String - string → Time when a node was updated.
- uuid String
- optional deprecated string → The UUID of the cluster's node group. Deprecated This argument is deprecated, please, use the
id
attribute instead.
Package Details
- Repository
- vkcs vk-cs/terraform-provider-vkcs
- License
- Notes
- This Pulumi package is based on the
vkcs
Terraform Provider.