| Server IP : 198.38.94.13 / Your IP : 216.73.217.33 Web Server : Apache System : Linux d4744.dxb1.stableserver.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64 User : revivere ( 1140) PHP Version : 8.2.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /opt/saltstack/salt/lib/python3.10/site-packages/vultr/ |
Upload File : |
'''Partial class to handle Vultr ISO API calls'''
from .utils import VultrBase, update_params
class VultrISO(VultrBase):
'''Handles Vultr ISO API calls'''
def __init__(self, api_key):
VultrBase.__init__(self, api_key)
def list(self, params=None):
''' /v1/iso/list
GET - account
List all ISOs currently available on this account
Link: https://www.vultr.com/api/#iso_iso_list
'''
params = params if params else dict()
return self.request('/v1/iso/list', params, 'GET')
def create_from_url(self, url, params=None):
''' /vi/iso/create_from_url
POST - account
Create a new ISO image on the current account.
The ISO image will be downloaded from a given URL.
Download status can be checked with the v1/iso/list call.
Link: https://www.vultr.com/api/#iso_create_from_url
'''
params = update_params(params, {
'url': url,
})
return self.request('/v1/iso/create_from_url', params, 'POST')