GET
/
v1
/
vm_metadata
VM Metadata
curl --request GET \
  --url https://gateway.costgraph.baselinehq.cloud/v1/vm_metadata \
  --header 'Authorization: <api-key>'
[
  {
    "architecture": "<string>",
    "availabilityZone": "<string>",
    "costPerHour": 123,
    "cpucores": 123,
    "creationTime": "<string>",
    "hostname": "<string>",
    "instanceType": "<string>",
    "name": "<string>",
    "operatingSystem": "<string>",
    "provider": "<string>",
    "ramgiB": 123,
    "region": "<string>"
  }
]

Query Parameters

Response

name
string
The name of the virtual machine.
hostname
string
The hostname of the virtual machine.
provider
string
The cloud provider hosting the VM.
region
string
The region where the VM is located.
availabilityZone
string
The availability zone of the VM.
instanceType
string
The instance type of the VM.
architecture
string
The CPU architecture of the VM.
operatingSystem
string
The operating system running on the VM.
cpucores
number
Number of CPU cores allocated to the VM.
ramgiB
number
Amount of RAM allocated to the VM in GiB.
costPerHour
number
The cost per hour for the VM.
creationTime
string
The creation time of the VM metadata record.Example: "2023-10-01T00:00:00Z"

Authorizations

Authorization
string
header
required

Bearer token for authentication

Query Parameters

Name
string

Name of the VM (optional)

Hostname
string

Hostname of the VM (optional)

Provider
string

Cloud provider (optional)

Region
string

Region (optional)

AvailabilityZone
string

Availability zone (optional)

InstanceType
string

Instance type (optional)

Architecture
string

CPU architecture (optional)

OperatingSystem
string

Operating system (optional)

Response

200
application/json

OK

The response is of type object[].