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
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.
To make authenticated requests to the API, the following fields are mandatory in the request header:
Name
Type
Description
v6
string
The API version.
datacenterId
string
The ID of the Data Center where the VM is located.
serverId
string
The ID of the server, that is, the Cloud GPU VM.
gpuId
The unique ID of the GPU card attached to the server.
You can refine your request by adding the optional query parameter depth.
Name
Type
Description
depth
integer
Template detail depth. Default value is 0.
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?