Viewing docs for IonosCloud v0.3.0
published on Wednesday, Apr 15, 2026 by ionos-cloud
published on Wednesday, Apr 15, 2026 by ionos-cloud
Viewing docs for IonosCloud v0.3.0
published on Wednesday, Apr 15, 2026 by ionos-cloud
published on Wednesday, Apr 15, 2026 by ionos-cloud
The GPUs data source can be used to retrieve a list of all GPUs attached to a specific server within a datacenter.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ionoscloud from "@ionos-cloud/sdk-pulumi";
const example = ionoscloud.compute.getGpus({
datacenterId: "datacenter_id",
serverId: "server_id",
});
import pulumi
import pulumi_ionoscloud as ionoscloud
example = ionoscloud.compute.get_gpus(datacenter_id="datacenter_id",
server_id="server_id")
package main
import (
"github.com/ionos-cloud/pulumi-ionoscloud/sdk/go/ionoscloud/compute"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := compute.GetGpus(ctx, &compute.GetGpusArgs{
DatacenterId: "datacenter_id",
ServerId: "server_id",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ionoscloud = Ionoscloud.Pulumi.Ionoscloud;
return await Deployment.RunAsync(() =>
{
var example = Ionoscloud.Compute.GetGpus.Invoke(new()
{
DatacenterId = "datacenter_id",
ServerId = "server_id",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ionoscloud.compute.ComputeFunctions;
import com.pulumi.ionoscloud.compute.inputs.GetGpusArgs;
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 = ComputeFunctions.getGpus(GetGpusArgs.builder()
.datacenterId("datacenter_id")
.serverId("server_id")
.build());
}
}
variables:
example:
fn::invoke:
function: ionoscloud:compute:getGpus
arguments:
datacenterId: datacenter_id
serverId: server_id
Using getGpus
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 getGpus(args: GetGpusArgs, opts?: InvokeOptions): Promise<GetGpusResult>
function getGpusOutput(args: GetGpusOutputArgs, opts?: InvokeOptions): Output<GetGpusResult>def get_gpus(datacenter_id: Optional[str] = None,
location: Optional[str] = None,
server_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetGpusResult
def get_gpus_output(datacenter_id: pulumi.Input[Optional[str]] = None,
location: pulumi.Input[Optional[str]] = None,
server_id: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetGpusResult]func GetGpus(ctx *Context, args *GetGpusArgs, opts ...InvokeOption) (*GetGpusResult, error)
func GetGpusOutput(ctx *Context, args *GetGpusOutputArgs, opts ...InvokeOption) GetGpusResultOutput> Note: This function is named GetGpus in the Go SDK.
public static class GetGpus
{
public static Task<GetGpusResult> InvokeAsync(GetGpusArgs args, InvokeOptions? opts = null)
public static Output<GetGpusResult> Invoke(GetGpusInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetGpusResult> getGpus(GetGpusArgs args, InvokeOptions options)
public static Output<GetGpusResult> getGpus(GetGpusArgs args, InvokeOptions options)
fn::invoke:
function: ionoscloud:compute/getGpus:getGpus
arguments:
# arguments dictionaryThe following arguments are supported:
- Datacenter
Id string - The ID of the datacenter.
- Server
Id string - The ID of the server.
- Location string
- Datacenter
Id string - The ID of the datacenter.
- Server
Id string - The ID of the server.
- Location string
- datacenter
Id String - The ID of the datacenter.
- server
Id String - The ID of the server.
- location String
- datacenter
Id string - The ID of the datacenter.
- server
Id string - The ID of the server.
- location string
- datacenter_
id str - The ID of the datacenter.
- server_
id str - The ID of the server.
- location str
- datacenter
Id String - The ID of the datacenter.
- server
Id String - The ID of the server.
- location String
getGpus Result
The following output properties are available:
- Datacenter
Id string - Gpuses
List<Ionoscloud.
Get Gpus Gpus> - A list of GPUs. Each GPU has the following attributes:
- Id string
- The provider-assigned unique ID for this managed resource.
- Server
Id string - Location string
- Datacenter
Id string - Gpuses
[]Get
Gpus Gpus - A list of GPUs. Each GPU has the following attributes:
- Id string
- The provider-assigned unique ID for this managed resource.
- Server
Id string - Location string
- datacenter
Id String - gpuses
List<Get
Gpus Gpus> - A list of GPUs. Each GPU has the following attributes:
- id String
- The provider-assigned unique ID for this managed resource.
- server
Id String - location String
- datacenter
Id string - gpuses
Get
Gpus Gpus[] - A list of GPUs. Each GPU has the following attributes:
- id string
- The provider-assigned unique ID for this managed resource.
- server
Id string - location string
- datacenter_
id str - gpuses
Sequence[Get
Gpus Gpus] - A list of GPUs. Each GPU has the following attributes:
- id str
- The provider-assigned unique ID for this managed resource.
- server_
id str - location str
- datacenter
Id String - gpuses List<Property Map>
- A list of GPUs. Each GPU has the following attributes:
- id String
- The provider-assigned unique ID for this managed resource.
- server
Id String - location String
Supporting Types
GetGpusGpus
Package Details
- Repository
- ionoscloud ionos-cloud/pulumi-ionoscloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ionoscloudTerraform Provider.
Viewing docs for IonosCloud v0.3.0
published on Wednesday, Apr 15, 2026 by ionos-cloud
published on Wednesday, Apr 15, 2026 by ionos-cloud
