Retrieve a specific GPU in a VM

This topic explains how to retrieve the details of a single, specific Graphics Processing Unit (GPU) attached to the Cloud GPU VM.

Endpoint

Use the following endpoint for templates: https://api.ionos.com/cloudapi/v6/datacenters/{datacenterId}/servers/{serverId}/gpus/{gpuId}

Request

Note: The following request contains sample values. Remember to replace them with the relevant information.

curl --location \
--request GET 'https://api.ionos.com/cloudapi/v6/datacenters/{datacenterId}/servers/{serverId}/gpus/{gpuId}' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJraWQiO' \
--header 'Content-Type: application/json'

To make authenticated requests to the API, the following fields are mandatory in the request header:

Name

Type

Description

Authorization

string

The bearer token.

Content-Type

string

Must be application/json.

Response

A successful request returns a 200 status code and a JSON collection containing the complete details of the requested GPU resource.

Last updated

Was this helpful?