1. Registry
  2. Packages
  3. Vkcs Provider
  4. API Docs
  5. getComputeServergroup
Viewing docs for vkcs 0.19.0
published on Tuesday, Oct 27, 2026 by vk-cs
vkcs
Viewing docs for vkcs 0.19.0
published on Tuesday, Oct 27, 2026 by vk-cs

    Use this data source to get the ID of an available VKCS server group.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as vkcs from "@pulumi/vkcs";
    
    const example = vkcs.getComputeServergroup({
        name: "custom-group-tf-example",
    });
    
    import pulumi
    import pulumi_vkcs as vkcs
    
    example = vkcs.get_compute_servergroup(name="custom-group-tf-example")
    
    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.LookupComputeServergroup(ctx, &vkcs.LookupComputeServergroupArgs{
    			Name: "custom-group-tf-example",
    		}, 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 example = Vkcs.GetComputeServergroup.Invoke(new()
        {
            Name = "custom-group-tf-example",
        });
    
    });
    
    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.GetComputeServergroupArgs;
    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 example = VkcsFunctions.getComputeServergroup(GetComputeServergroupArgs.builder()
                .name("custom-group-tf-example")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: vkcs:getComputeServergroup
          arguments:
            name: custom-group-tf-example
    
    Example coming soon!
    

    Using getComputeServergroup

    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 getComputeServergroup(args: GetComputeServergroupArgs, opts?: InvokeOptions): Promise<GetComputeServergroupResult>
    function getComputeServergroupOutput(args: GetComputeServergroupOutputArgs, opts?: InvokeOutputOptions): Output<GetComputeServergroupResult>
    def get_compute_servergroup(id: Optional[str] = None,
                                name: Optional[str] = None,
                                region: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetComputeServergroupResult
    def get_compute_servergroup_output(id: pulumi.Input[Optional[str]] = None,
                                name: pulumi.Input[Optional[str]] = None,
                                region: pulumi.Input[Optional[str]] = None,
                                opts: Optional[InvokeOutputOptions] = None) -> Output[GetComputeServergroupResult]
    func LookupComputeServergroup(ctx *Context, args *LookupComputeServergroupArgs, opts ...InvokeOption) (*LookupComputeServergroupResult, error)
    func LookupComputeServergroupOutput(ctx *Context, args *LookupComputeServergroupOutputArgs, opts ...InvokeOption) LookupComputeServergroupResultOutput

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

    public static class GetComputeServergroup 
    {
        public static Task<GetComputeServergroupResult> InvokeAsync(GetComputeServergroupArgs args, InvokeOptions? opts = null)
        public static Output<GetComputeServergroupResult> Invoke(GetComputeServergroupInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetComputeServergroupResult> Invoke(GetComputeServergroupInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetComputeServergroupResult> getComputeServergroup(GetComputeServergroupArgs args, InvokeOptions options)
    public static Output<GetComputeServergroupResult> getComputeServergroup(GetComputeServergroupArgs args, InvokeOptions options)
    public static Output<GetComputeServergroupResult> getComputeServergroup(GetComputeServergroupArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: vkcs:index/getComputeServergroup:getComputeServergroup
      arguments:
        # arguments dictionary
    data "vkcs_get_compute_servergroup" "name" {
        # arguments
    }

    The following arguments are supported:

    Name string
    required string → The name of the server group.
    Id string
    string → ID of the resource.
    Region string
    optional string → The region in which to obtain the Compute client. If omitted, the region argument of the provider is used.
    Name string
    required string → The name of the server group.
    Id string
    string → ID of the resource.
    Region string
    optional string → The region in which to obtain the Compute client. If omitted, the region argument of the provider is used.
    name string
    required string → The name of the server group.
    id string
    string → ID of the resource.
    region string
    optional string → The region in which to obtain the Compute client. If omitted, the region argument of the provider is used.
    name String
    required string → The name of the server group.
    id String
    string → ID of the resource.
    region String
    optional string → The region in which to obtain the Compute client. If omitted, the region argument of the provider is used.
    name string
    required string → The name of the server group.
    id string
    string → ID of the resource.
    region string
    optional string → The region in which to obtain the Compute client. If omitted, the region argument of the provider is used.
    name str
    required string → The name of the server group.
    id str
    string → ID of the resource.
    region str
    optional string → The region in which to obtain the Compute client. If omitted, the region argument of the provider is used.
    name String
    required string → The name of the server group.
    id String
    string → ID of the resource.
    region String
    optional string → The region in which to obtain the Compute client. If omitted, the region argument of the provider is used.

    getComputeServergroup Result

    The following output properties are available:

    Id string
    string → ID of the resource.
    Members List<string>
    string → The instances that are part of this server group.
    Metadata Dictionary<string, string>
    map of string → The metadata of the server group.
    Name string
    Policies List<string>
    string → The set of policies for the server group.
    Region string
    Id string
    string → ID of the resource.
    Members []string
    string → The instances that are part of this server group.
    Metadata map[string]string
    map of string → The metadata of the server group.
    Name string
    Policies []string
    string → The set of policies for the server group.
    Region string
    id string
    string → ID of the resource.
    members list(string)
    string → The instances that are part of this server group.
    metadata map(string)
    map of string → The metadata of the server group.
    name string
    policies list(string)
    string → The set of policies for the server group.
    region string
    id String
    string → ID of the resource.
    members List<String>
    string → The instances that are part of this server group.
    metadata Map<String,String>
    map of string → The metadata of the server group.
    name String
    policies List<String>
    string → The set of policies for the server group.
    region String
    id string
    string → ID of the resource.
    members string[]
    string → The instances that are part of this server group.
    metadata {[key: string]: string}
    map of string → The metadata of the server group.
    name string
    policies string[]
    string → The set of policies for the server group.
    region string
    id str
    string → ID of the resource.
    members Sequence[str]
    string → The instances that are part of this server group.
    metadata Mapping[str, str]
    map of string → The metadata of the server group.
    name str
    policies Sequence[str]
    string → The set of policies for the server group.
    region str
    id String
    string → ID of the resource.
    members List<String>
    string → The instances that are part of this server group.
    metadata Map<String>
    map of string → The metadata of the server group.
    name String
    policies List<String>
    string → The set of policies for the server group.
    region String

    Package Details

    Repository
    vkcs vk-cs/terraform-provider-vkcs
    License
    Notes
    This Pulumi package is based on the vkcs Terraform Provider.
    vkcs
    Viewing docs for vkcs 0.19.0
    published on Tuesday, Oct 27, 2026 by vk-cs

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial