diff --git a/docs/server/google cloud platform/compute.md b/docs/server/google cloud platform/compute.md index 7d6d513..3e9e387 100644 --- a/docs/server/google cloud platform/compute.md +++ b/docs/server/google cloud platform/compute.md @@ -80,3 +80,35 @@ POST: /api/compute/delete "status": "DONE" } ``` + +### List Machine Types +``` +GET: /api/compute/list-machine-types +``` +> Parameters: + +>| Name | Type | Description | Required | +| -----------------------| -------------| --------------------------------------------------------- | ------------- | +| `query` | string | Query based on machine type name (e.g. e2-micro). | No | + +>??? quote "Request" + ``` + https://localhost/api/compute/list-machine-types?query=a2 + ``` +>??? quote "Response" + ```JSON + [ + { + "name": "a2-highgpu-1g" + }, + { + "name": "a2-highgpu-2g" + }, + { + "name": "a2-highgpu-4g" + }, + { + "name": "a2-highgpu-8g" + } + ] + ```