Returning all VM types
Returning all VM types
When not overridden by custom types, this endpoint returns all the default VM types for your IaaS
If you are on AWS, you will see an additional boolean field raw_instance_storage per vm_type.
If you are on GCP, you will see an additional string field machine_type if it has been specified for the vm_type.
Request
URI
GET
https://{opsmanager-installation}/api/v0/vm_types
COPY
Responses
200
OK
Returns
GetVmTypes
of type(s)
application/json
{
"vm_type_catalog_name": "string",
"vm_types": [
{
"name": "string",
"ram": 0,
"cpu": 0,
"ephemeral_disk": 0,
"machine_type": "string",
"raw_instance_storage": false,
"builtin": false
}
]
}
string
vm_type_catalog_name
Optional
The name of the VM type catalog. This can vary between IaaS providers. When using a custom VM type catalog, the value will be CUSTOM.
Possible values are :
CUSTOM,
DEFAULT,
FIFTH_GEN,
FIFTH_GEN_AMD,
GEN_1_VM_TYPE,
GEN_2_VM_TYPE,
STANDARD_SERIES,
E2_SERIES,
array of
vm_types
vm_types
Optional
vm_types
400
Setup is not completed
Returns
RequireSetupCompleted
of type(s)
application/json
{
"errors": {
"errors": [
"string"
]
}
}
401
Unauthorized
Returns
UnauthorizedResponse
of type(s)
application/json
{
"errors": {
"errors": [
"string"
]
}
}
403
Forbidden
Returns
ForbiddenResponse
of type(s)
application/json
{
"errors": {
"errors": [
"string"
]
}
}
Code Samples
COPY
curl -H 'Authorization: <value>' https://{api_host}/api/v0/vm_types