====== Images ====== To list all of the images available on your account, send a GET request to .. code-block:: bash https://api.e2enetworks.com/myaccount/api/v1/images/saved-images/?apikey={{api_key}}&project_id={{project-id}}. The response will be a JSON object with a key called images. This will be set to an array of image objects, each of which will contain the standard image attributes: List all Images =============== .. csv-table:: :file: tables/image.csv :widths: 20, 20, 60 :header-rows: 1 .. tabs:: .. code-tab:: python Request Headers Content-Type: application/json Authorization: Bearer b7d03a6947b217efb6f3ec3bd3504582..... .. code-tab:: python Response Headers content-type: application/json; charset=utf-8 status: 200 OK ratelimit-limit: 1200 ratelimit-remaining: 777 ratelimit-reset: 1415984218 .. tabs:: .. code-tab:: python Response Body { "message": "Success", "code": 200, "data": [ { "name": "CentOS-6.8", "size": "B-1VCPU-2RAM-15DISK", "image": "CentOS-6.8-GPU", "os": { "name": "Centos", "version": "6.8", "image": "CentOS-6.8-GPU" }, "zone": { "slug_name": "ncr" }, "specs": { "ram": "6.10", "cpu": 1, "disk_space": 15, "price_per_month": "1377", "price_per_hour": "1.85", "series": "B", "minimum_billing_amount": "0" } }, { "name": "GPU-CentOS-6.8", "size": "B-1VCPU-2RAM-15DISK", "image": "CentOS-6.8-GPU", "os": { "name": "Centos", "version": "6.8", "image": "CentOS-6.8-GPU" }, "zone": { "slug_name": "ncr" }, "specs": { "ram": "6.10", "cpu": 1, "disk_space": 15, "price_per_month": "1377", "price_per_hour": "1.85", "series": "B", "minimum_billing_amount": "0" } }, { "name": "GPU-CentOS-7.3", "size": "B-1VCPU-2RAM-15DISK", "image": "CentOS-6.8-GPU", "os": { "name": "Centos", "version": "6.8", "image": "CentOS-6.8-GPU" }, "zone": { "slug_name": "ncr" }, "specs": { "ram": "6.10", "cpu": 1, "disk_space": 15, "price_per_month": "1377", "price_per_hour": "1.85", "series": "B", "minimum_billing_amount": "0" } }, { "name": "CentOS-7.3-1GB", "size": "B-1VCPU-6RAM-46DISK", "image": "CentOS-7.3-Distro", "os": { "name": "Centos", "version": "7.3", "image": "CentOS-7.3-Distro" }, "zone": { "slug_name": "ncr" }, "specs": { "ram": "6.00", "cpu": 1, "disk_space": 46, "price_per_month": "685", "price_per_hour": "0.92", "series": "B", "minimum_billing_amount": "100" } }, { "name": "saved-image-0005", "size": "B-1VCPU-6RAM-46DISK", "image": "CentOS-7.3-Distro", "os": { "name": "Centos", "version": "7.3", "image": "CentOS-7.3-Distro" }, "zone": { "slug_name": "ncr" }, "specs": { "ram": "6.00", "cpu": 1, "disk_space": 46, "price_per_month": "685", "price_per_hour": "0.92", "series": "B", "minimum_billing_amount": "100" } } "specs": { "committed_sku":[{"committed_sku_id":229,"committed_sku_name":"365 Days Committed , Rs 17739","committed_node_message":"This committed node will be reserved for next 365 days ( till 04-December-2021 07:32). The cost Rs. 17739 of this node will be added in next invoice.","committed_sku_price":"17739","committed_upto_date":"04-December-2021 07:32","committed_days":365},{"committed_sku_id":808,"committed_sku_name":"7 Days Committed , Rs 378","committed_node_message":"This committed node will be reserved for next 7 days ( till 11-December-2020 07:32). The cost Rs. 378 of this node will be added in next invoice.","committed_sku_price":"378","committed_upto_date":"11-December-2020 07:32","committed_days":7}]} } ...... ], "errors": {} } List Images By Image Type ------------------------- To list all images assigned to a specific image type, add the image_type as a query parameter and send a GET request to endpoint .. code-block:: bash https://api.e2enetworks.com/myaccount/api/v1/images/? apikey={{api_key}}&image_type=$IMAGE_TYPE&project_id={{project-id}} .. csv-table:: :file: tables/api_imagetable.csv :widths: 20, 20, 60 :header-rows: 1 .. tabs:: .. code-tab:: python Request Headers Content-Type: application/json Authorization: Bearer b7d03a6947b217efb6f3ec3bd3504582..... .. code-tab:: python Response Headers content-type: application/json; charset=utf-8 status: 200 OK ratelimit-limit: 1200 ratelimit-remaining: 777 ratelimit-reset: 1415984218 .. tabs:: .. code-tab:: python Response Body { "message": "Success", "code": 200, "data": [ { "name": "B.8GB-CentOS-6.10", "plan": "B-2VCPU-8RAM-115DISK", "image": "CentOS-6.10-Distro", "os": { "name": "CentOS", "version": "6.10", "image": "CentOS-6.10-Distro" }, "zone": { "slug_name": "ncr" }, "specs": { "ram": "8.00", "cpu": 2, "disk_space": 115, "price_per_month": "1971.00", "price_per_hour": "2.70", "series": "B", "minimum_billing_amount": "0" } }, { "name": "B.15GB-CentOS-6.10", "plan": "B-4VCPU-15RAM-230DISK", "image": "CentOS-6.10-Distro", "os": { "name": "CentOS", "version": "6.10", "image": "CentOS-6.10-Distro" }, "zone": { "slug_name": "ncr" }, "specs": { "ram": "15.00", "cpu": 4, "disk_space": 230, "price_per_month": "4380.00", "price_per_hour": "6.00", "series": "B", "minimum_billing_amount": "0" } }, { "name": "B.6.1GB-CentOS-6.10", "plan": "B-2VCPU-6RAM-46DISK", "image": "CentOS-6.10-Distro", "os": { "name": "CentOS", "version": "6.10", "image": "CentOS-6.10-Distro" }, "zone": { "slug_name": "ncr" }, "specs": { "ram": "6.10", "cpu": 2, "disk_space": 46, "price_per_month": "1350.50", "price_per_hour": "1.85", "series": "B", "minimum_billing_amount": "0" } }, { "name": "A.4GB-CentOS-6.10", "plan": "A-2VCPU-4RAM-60DISK", "image": "CentOS-6.10-Distro", "os": { "name": "CentOS", "version": "6.10", "image": "CentOS-6.10-Distro" }, "zone": { "slug_name": "ncr" }, "specs": { "ram": "4.00", "cpu": 2, "disk_space": 60, "price_per_month": "1744.70", "price_per_hour": "2.39", "series": "A", "minimum_billing_amount": "0" } }, { "name": "A.6GB-CentOS-6.10", "plan": "A-3VCPU-6RAM-100DISK", "image": "CentOS-6.10-Distro", "os": { "name": "CentOS", "version": "6.10", "image": "CentOS-6.10-Distro" }, "zone": { "slug_name": "ncr" }, "specs": { "ram": "6.00", "cpu": 3, "disk_space": 100, "price_per_month": "2620.70", "price_per_hour": "3.59", "series": "A", "minimum_billing_amount": "0" } }, { "name": "A.9GB-CentOS-6.10", "plan": "A-5VCPU-9RAM-140DISK", "image": "CentOS-6.10-Distro", "os": { "name": "CentOS", "version": "6.10", "image": "CentOS-6.10-Distro" }, "zone": { "slug_name": "ncr" }, "specs": { "ram": "9.00", "cpu": 5, "disk_space": 140, "price_per_month": "3584.30", "price_per_hour": "4.91", "series": "A", "minimum_billing_amount": "0" } "specs": { "committed_sku":[{"committed_sku_id":229,"committed_sku_name":"365 Days Committed , Rs 17739","committed_node_message":"This committed node will be reserved for next 365 days ( till 04-December-2021 07:32). The cost Rs. 17739 of this node will be added in next invoice.","committed_sku_price":"17739","committed_upto_date":"04-December-2021 07:32","committed_days":365},{"committed_sku_id":808,"committed_sku_name":"7 Days Committed , Rs 378","committed_node_message":"This committed node will be reserved for next 7 days ( till 11-December-2020 07:32). The cost Rs. 378 of this node will be added in next invoice.","committed_sku_price":"378","committed_upto_date":"11-December-2020 07:32","committed_days":7}]} } ...... ], "errors": {} } List Images By CPU ------------------ To list all of the images available on your account, send a GET request to .. code-block:: bash https://api.e2enetworks.com/myaccount/api/v1/images/? apikey={{api_key}}&project_id={{project-id}}. The response will be a JSON object with a key called images. This will be set to an array of image objects, each of which will contain the standard image attributes: .. csv-table:: :file: tables/api_cpu.csv :widths: 20, 20, 60 :header-rows: 1 .. tabs:: .. code-tab:: python Request Headers Content-Type: application/json Authorization: Bearer b7d03a6947b217efb6f3ec3bd3504582..... .. code-tab:: python Response Headers content-type: application/json; charset=utf-8 status: 200 OK ratelimit-limit: 1200 ratelimit-remaining: 777 ratelimit-reset: 1415984218 .. tabs:: .. code-tab:: python Response Body { "message": "Success", "code": 200, "data": [ { "name": "B.15GB-CentOS-6.10", "plan": "B-4VCPU-15RAM-230DISK", "image": "CentOS-6.10-Distro", "os": { "name": "CentOS", "version": "6.10", "image": "CentOS-6.10-Distro" }, "zone": { "slug_name": "ncr" }, "specs": { "ram": "15.00", "cpu": 4, "disk_space": 230, "price_per_month": "4380.00", "price_per_hour": "6.00", "series": "B", "minimum_billing_amount": "0" } }, { "name": "C.10GB-CentOS-6.10", "plan": "C-4VCPU-10RAM-100DISK", "image": "CentOS-6.10-Distro", "os": { "name": "CentOS", "version": "6.10", "image": "CentOS-6.10-Distro" }, "zone": { "slug_name": "ncr" }, "specs": { "ram": "10.00", "cpu": 4, "disk_space": 100, "price_per_month": "1642.50", "price_per_hour": "2.25", "series": "C", "minimum_billing_amount": "0" } } ...... ], "errors": {} } List Images By RAM ------------------ To list all images assigned to a specific ram, add the ram as a query parameter and send a GET request to endpoint .. code-block:: bash https://api.e2enetworks.com/myaccount/api/v1/images/? apikey={{api-key}}&project_id={{project-id}}&ram=$RAM .. csv-table:: :file: tables/api_cpu.csv :widths: 20, 20, 60 :header-rows: 1 .. tabs:: .. code-tab:: python Request Headers Content-Type: application/json Authorization: Bearer b7d03a6947b217efb6f3ec3bd3504582..... .. code-tab:: python Response Headers content-type: application/json; charset=utf-8 status: 200 OK ratelimit-limit: 1200 ratelimit-remaining: 777 ratelimit-reset: 1415984218 .. tabs:: .. code-tab:: python Response Body { "message": "Success", "code": 200, "data": [ { "name": "B.8GB-CentOS-6.10", "plan": "B-2VCPU-8RAM-115DISK", "image": "CentOS-6.10-Distro", "os": { "name": "CentOS", "version": "6.10", "image": "CentOS-6.10-Distro" }, "zone": { "slug_name": "ncr" }, "specs": { "ram": "8.00", "cpu": 2, "disk_space": 115, "price_per_month": "1971.00", "price_per_hour": "2.70", "series": "B", "minimum_billing_amount": "0" } }, ...... ], "errors": {} } List Images By series --------------------- To list all images assigned to a specific series, add the series as a query parameter and send a GET request to endpoint .. code-block:: bash https://api.e2enetworks.com/myaccount/api/v1/images/?apikey={{api_key}} &series=$SERIES&project_id={{project-id}} .. csv-table:: :file: tables/api_cpu.csv :widths: 20, 20, 60 :header-rows: 1 .. tabs:: .. code-tab:: python Request Headers Content-Type: application/json Authorization: Bearer b7d03a6947b217efb6f3ec3bd3504582..... .. code-tab:: python Response Headers content-type: application/json; charset=utf-8 status: 200 OK ratelimit-limit: 1200 ratelimit-remaining: 777 ratelimit-reset: 1415984218 .. tabs:: .. code-tab:: python Response Body { "message": "Success", "code": 200, "data": [ { "name": "A.4GB-CentOS-6.10", "plan": "A-2VCPU-4RAM-60DISK", "image": "CentOS-6.10-Distro", "os": { "name": "CentOS", "version": "6.10", "image": "CentOS-6.10-Distro" }, "zone": { "slug_name": "ncr" }, "specs": { "ram": "4.00", "cpu": 2, "disk_space": 60, "price_per_month": "1744.70", "price_per_hour": "2.39", "series": "A", "minimum_billing_amount": "0" } }, { "name": "A.6GB-CentOS-6.10", "plan": "A-3VCPU-6RAM-100DISK", "image": "CentOS-6.10-Distro", "os": { "name": "CentOS", "version": "6.10", "image": "CentOS-6.10-Distro" }, "zone": { "slug_name": "ncr" }, "specs": { "ram": "6.00", "cpu": 3, "disk_space": 100, "price_per_month": "2620.70", "price_per_hour": "3.59", "series": "A", "minimum_billing_amount": "0" } }, ...... ], "errors": {} } List Images By Image Type ------------------------- To list all images assigned to specific cpu and ram, add the cpu and ram as a query parameter and send a GET request to endpoint .. code-block:: bash https://api.e2enetworks.com/myaccount/api/v1/images/? apikey={{api_key}}&cpu=$CPU&ram=$RAM&project_id={{project-id}} .. csv-table:: :file: tables/api_cpu.csv :widths: 20, 20, 60 :header-rows: 1 .. tabs:: .. code-tab:: python Request Headers Content-Type: application/json Authorization: Bearer b7d03a6947b217efb6f3ec3bd3504582..... .. code-tab:: python Response Headers content-type: application/json; charset=utf-8 status: 200 OK ratelimit-limit: 1200 ratelimit-remaining: 777 ratelimit-reset: 1415984218 .. tabs:: .. code-tab:: python Response Body { "message": "Success", "code": 200, "data": [ { "name": "E2E-1Click-Redis", "plan": "1CLICK-4VCPU-8RAM-20DISK", "image": "Debian-9-Distro", "os": { "name": "Debian", "version": null, "image": "Debian-9-Distro" }, "zone": { "slug_name": "ncr" }, "specs": { "ram": "8.00", "cpu": 4, "disk_space": 20, "price_per_month": "730.00", "price_per_hour": "1.00", "series": "1CLICK", "minimum_billing_amount": "0" } } ], "errors": {} } List Images By CPU, RAM & SERIES -------------------------------- To list all images assigned to specific cpu, ram & series, add the cpu, ram and series as a query parameter and send a GET request to endpoint .. code-block:: bash https://api.e2enetworks.com/myaccount/api/v1/images/?apikey={{api_key}} &cpu=$CPU&ram=$RAM&series=$SERIES&project_id ={{project-id}} .. csv-table:: :file: tables/api_cpu.csv :widths: 20, 20, 60 :header-rows: 1 .. tabs:: .. code-tab:: python Request Headers Content-Type: application/json Authorization: Bearer b7d03a6947b217efb6f3ec3bd3504582..... .. code-tab:: python Response Headers content-type: application/json; charset=utf-8 status: 200 OK ratelimit-limit: 1200 ratelimit-remaining: 777 ratelimit-reset: 1415984218 .. tabs:: .. code-tab:: python Response Body { "message": "Success", "code": 200, "data": [ { "name": "E2E-1Click-Redis", "plan": "1CLICK-4VCPU-8RAM-20DISK", "image": "Debian-9-Distro", "os": { "name": "Debian", "version": null, "image": "Debian-9-Distro" }, "zone": { "slug_name": "ncr" }, "specs": { "ram": "8.00", "cpu": 4, "disk_space": 20, "price_per_month": "730.00", "price_per_hour": "1.00", "series": "A", "minimum_billing_amount": "0" } } ], "errors": {} } List Images By OS & Version --------------------------- To list all images assigned to specific os and version, add the os and version as a query parameter and send a GET request to endpoint .. code-block:: bash https://api.e2enetworks.com/myaccount/api/v1/images/?apikey={{api_key}} &os=$OS&version=$VERSION&project_id ={{project-id}} .. csv-table:: :file: tables/api_cpu.csv :widths: 20, 20, 60 :header-rows: 1 .. tabs:: .. code-tab:: python Request Headers Content-Type: application/json Authorization: Bearer b7d03a6947b217efb6f3ec3bd3504582..... .. code-tab:: python Response Headers content-type: application/json; charset=utf-8 status: 200 OK ratelimit-limit: 1200 ratelimit-remaining: 777 ratelimit-reset: 1415984218 .. tabs:: .. code-tab:: python Response Body { "message": "Success", "code": 200, "data": [ { "name": "B.8GB-CentOS-6.10", "plan": "B-2VCPU-8RAM-115DISK", "image": "CentOS-6.10-Distro", "os": { "name": "CentOS", "version": "6.10", "image": "CentOS-6.10-Distro" }, "zone": { "slug_name": "ncr" }, "specs": { "ram": "8.00", "cpu": 2, "disk_space": 115, "price_per_month": "1971.00", "price_per_hour": "2.70", "series": "B", "minimum_billing_amount": "0" } }, { "name": "B.15GB-CentOS-6.10", "plan": "B-4VCPU-15RAM-230DISK", "image": "CentOS-6.10-Distro", "os": { "name": "CentOS", "version": "6.10", "image": "CentOS-6.10-Distro" }, "zone": { "slug_name": "ncr" }, "specs": { "ram": "15.00", "cpu": 4, "disk_space": 230, "price_per_month": "4380.00", "price_per_hour": "6.00", "series": "B", "minimum_billing_amount": "0" } }, { "name": "B.6.1GB-CentOS-6.10", "plan": "B-2VCPU-6RAM-46DISK", "image": "CentOS-6.10-Distro", "os": { "name": "CentOS", "version": "6.10", "image": "CentOS-6.10-Distro" }, "zone": { "slug_name": "ncr" }, "specs": { "ram": "6.10", "cpu": 2, "disk_space": 46, "price_per_month": "1350.50", "price_per_hour": "1.85", "series": "B", "minimum_billing_amount": "0" } }, ... ], "errors": {} }