curl --request GET \ --url 'https://api.e2enetworks.com/myaccount/api/v1/gpu/notebooks/?project_id=<PROJECT_ID>&location=<LOCATION>&instance_category=<INSTANCE_CATEGORY>&apikey=<API_KEY>' \ --header 'Authorization: Bearer <API_TOKEN>'import requests
response = requests.get( "https://api.e2enetworks.com/myaccount/api/v1/gpu/notebooks/", params={"project_id": "<PROJECT_ID>", "location": "<LOCATION>", "instance_category": "<INSTANCE_CATEGORY>", "apikey": "<API_KEY>"}, headers={"Authorization": "Bearer <API_TOKEN>"},)print(response.json())const url = new URL("https://api.e2enetworks.com/myaccount/api/v1/gpu/notebooks/");url.search = new URLSearchParams({ project_id: "<PROJECT_ID>", location: "<LOCATION>", instance_category: "<INSTANCE_CATEGORY>", apikey: "<API_KEY>" });
const response = await fetch(url, { method: "GET", headers: { "Authorization": "Bearer <API_TOKEN>" },});console.log(await response.json());Returns a paginated list of compute resources in the project.
Use the kind query parameter to filter by compute type: pass kind=vm to return only Virtual Machines, or kind=container to return only container-based Instances. You must also pass is_advanced_search=true for the kind filter to take effect — without it, the filter is ignored and all resources are returned.
Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Project ID
Active IAM ID (To access contact person account) Find your Active IAM ID here
Location
Filter results by compute type. Pass kind=vm to return only Virtual Machines, or kind=container to return only container-based Instances.
Important: This filter only takes effect when is_advanced_search=true is also passed. Without it, the kind parameter is ignored and all resources are returned.
The page number from which you want your page search results to be displayed.
Number of results per page
Specifies if advanced filters should be applied.
Filter by name. Requires is_advanced_search=true to take effect.
Filter by resource status. Requires is_advanced_search=true to take effect.
Filter by image type. Requires is_advanced_search=true to take effect.
Filter by SKU series. Requires is_advanced_search=true to take effect.
Filter by SKU type. Requires is_advanced_search=true to take effect.
Responses
Section titled “Responses”Successful response with node details
object
object
object
object
object
object
object
object
object
Example
{ "code": 200, "message": "Success", "total_page_number": 1, "total_count": 1, "data": [ { "id": 4984, "name": "node-09161505088", "project_id": 124, "image_type": "pre-built", "image_details": { "image_id": 14, "version_id": 16, "name": "Ubuntu", "icon_url": "/notebook_images/ubuntu.svg", "image_description": "Ubuntu 22.04 base image with Python 3.10", "version_description": "Ubuntu 22.04 base image with Python 3.10" }, "sku_details": { "specs": { "sku_id": 4, "name": "C3.8GB", "series": "CPU", "cpu": 4, "gpu": 0, "memory": 8, "is_free": false, "is_active": true, "gpu_switch_type": null, "local_storage_in_gb": 0 }, "plan": { "sku_item_price_id": 4, "sku_type": "hourly", "committed_days": 0, "unit_price": 3.1, "currency": "INR", "is_active": true, "description": null } }, "status": "ready", "last_activity": "2024-09-16T09:35:18Z", "created_by": { "id": 3573, "name": "Nipun", "email": "nipun.arora@e2enetworks.com", "username": "nipun.arora@e2enetworks.com" }, "created_at": "2024-09-16T09:35:18.580926Z", "updated_at": "2024-11-13T10:58:41.184577Z", "lab_url": "https://notebooks.e2enetworks.com/notebook/p-124/n-7e940564-90f0-4e55-94f0-f67891aa0b68/lab", "disk_size_in_gb": 30, "instance_type": "paid_usage", "ssh_keys": [], "disable_ssh_login_password": true, "public_ip": "", "e2e_registry_image_url": null, "egress_gateway_ip": "116.204.174.167", "add_ons": {}, "is_jupyterlab_enabled": true, "is_ssh_enabled": false, "custom_ports": [], "private_cloud_id": null, "custom_sku": null } ], "errors": {}}