1. Packages
  2. Ionoscloud Provider
  3. API Docs
  4. getAutoscalingGroupServers
ionoscloud 6.7.6 published on Monday, Apr 14, 2025 by ionos-cloud

ionoscloud.getAutoscalingGroupServers

Explore with Pulumi AI

The autoscaling group servers data source can be used to search for and return existing servers that are part of a specific autoscaling group.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as ionoscloud from "@pulumi/ionoscloud";

const autoscalingGroupServers = ionoscloud.getAutoscalingGroupServers({
    groupId: "autoscaling_group_uuid",
});
Copy
import pulumi
import pulumi_ionoscloud as ionoscloud

autoscaling_group_servers = ionoscloud.get_autoscaling_group_servers(group_id="autoscaling_group_uuid")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ionoscloud/v6/ionoscloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ionoscloud.GetAutoscalingGroupServers(ctx, &ionoscloud.GetAutoscalingGroupServersArgs{
			GroupId: "autoscaling_group_uuid",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ionoscloud = Pulumi.Ionoscloud;

return await Deployment.RunAsync(() => 
{
    var autoscalingGroupServers = Ionoscloud.GetAutoscalingGroupServers.Invoke(new()
    {
        GroupId = "autoscaling_group_uuid",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ionoscloud.IonoscloudFunctions;
import com.pulumi.ionoscloud.inputs.GetAutoscalingGroupServersArgs;
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 autoscalingGroupServers = IonoscloudFunctions.getAutoscalingGroupServers(GetAutoscalingGroupServersArgs.builder()
            .groupId("autoscaling_group_uuid")
            .build());

    }
}
Copy
variables:
  autoscalingGroupServers:
    fn::invoke:
      function: ionoscloud:getAutoscalingGroupServers
      arguments:
        groupId: autoscaling_group_uuid
Copy

Using getAutoscalingGroupServers

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 getAutoscalingGroupServers(args: GetAutoscalingGroupServersArgs, opts?: InvokeOptions): Promise<GetAutoscalingGroupServersResult>
function getAutoscalingGroupServersOutput(args: GetAutoscalingGroupServersOutputArgs, opts?: InvokeOptions): Output<GetAutoscalingGroupServersResult>
Copy
def get_autoscaling_group_servers(group_id: Optional[str] = None,
                                  id: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetAutoscalingGroupServersResult
def get_autoscaling_group_servers_output(group_id: Optional[pulumi.Input[str]] = None,
                                  id: Optional[pulumi.Input[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetAutoscalingGroupServersResult]
Copy
func GetAutoscalingGroupServers(ctx *Context, args *GetAutoscalingGroupServersArgs, opts ...InvokeOption) (*GetAutoscalingGroupServersResult, error)
func GetAutoscalingGroupServersOutput(ctx *Context, args *GetAutoscalingGroupServersOutputArgs, opts ...InvokeOption) GetAutoscalingGroupServersResultOutput
Copy

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

public static class GetAutoscalingGroupServers 
{
    public static Task<GetAutoscalingGroupServersResult> InvokeAsync(GetAutoscalingGroupServersArgs args, InvokeOptions? opts = null)
    public static Output<GetAutoscalingGroupServersResult> Invoke(GetAutoscalingGroupServersInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetAutoscalingGroupServersResult> getAutoscalingGroupServers(GetAutoscalingGroupServersArgs args, InvokeOptions options)
public static Output<GetAutoscalingGroupServersResult> getAutoscalingGroupServers(GetAutoscalingGroupServersArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: ionoscloud:index/getAutoscalingGroupServers:getAutoscalingGroupServers
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

GroupId This property is required. string

The unique ID of the autoscaling group.

group_id must be provided. If it is not provided, the datasource will return an error.

Id string
The unique ID of the server.
GroupId This property is required. string

The unique ID of the autoscaling group.

group_id must be provided. If it is not provided, the datasource will return an error.

Id string
The unique ID of the server.
groupId This property is required. String

The unique ID of the autoscaling group.

group_id must be provided. If it is not provided, the datasource will return an error.

id String
The unique ID of the server.
groupId This property is required. string

The unique ID of the autoscaling group.

group_id must be provided. If it is not provided, the datasource will return an error.

id string
The unique ID of the server.
group_id This property is required. str

The unique ID of the autoscaling group.

group_id must be provided. If it is not provided, the datasource will return an error.

id str
The unique ID of the server.
groupId This property is required. String

The unique ID of the autoscaling group.

group_id must be provided. If it is not provided, the datasource will return an error.

id String
The unique ID of the server.

getAutoscalingGroupServers Result

The following output properties are available:

GroupId string
Id of the autoscaling group.
Id string
The unique ID of the server.
Servers List<GetAutoscalingGroupServersServer>
List of servers.
GroupId string
Id of the autoscaling group.
Id string
The unique ID of the server.
Servers []GetAutoscalingGroupServersServer
List of servers.
groupId String
Id of the autoscaling group.
id String
The unique ID of the server.
servers List<GetAutoscalingGroupServersServer>
List of servers.
groupId string
Id of the autoscaling group.
id string
The unique ID of the server.
servers GetAutoscalingGroupServersServer[]
List of servers.
group_id str
Id of the autoscaling group.
id str
The unique ID of the server.
servers Sequence[GetAutoscalingGroupServersServer]
List of servers.
groupId String
Id of the autoscaling group.
id String
The unique ID of the server.
servers List<Property Map>
List of servers.

Supporting Types

GetAutoscalingGroupServersServer

Id This property is required. string
The unique ID of the server.
Id This property is required. string
The unique ID of the server.
id This property is required. String
The unique ID of the server.
id This property is required. string
The unique ID of the server.
id This property is required. str
The unique ID of the server.
id This property is required. String
The unique ID of the server.

Package Details

Repository
ionoscloud ionos-cloud/terraform-provider-ionoscloud
License
Notes
This Pulumi package is based on the ionoscloud Terraform Provider.