Skip to content

API Documentation

glesys edited this page May 7, 2024 · 127 revisions

API Documentation

Server module

Manage servers in the GleSYS server platforms.

Authentication:

  • apikey: yes
  • user login
    • username: no
    • cloudaccount: yes
    • customernumber: no
  • anonymous: no

server/list

Url: https://api.glesys.com/server/list

Method: Both Https POST and GET

Required arguments: None

Optional arguments: None

Description: Get a list of all servers on this account.

server/details

Url: https://api.glesys.com/server/details

Method: Both Https POST and GET

Required arguments: serverid

Optional arguments: includestate

Description: Get detailed information about a server such as hostname, hardware configuration (cpu, memory and disk), ip adresses, cost, transfer, os and more. Set 'includestate' to true to include 'isrunning', 'islocked' and 'status' to the response. The 'status'-field can be either 'running', 'updating' or 'ready'. These fields replaces the deprecated 'state'-field. These fields are not included by default for performance reasons.

server/networkadapters

Url: https://api.glesys.com/server/networkadapters

Method: Both Https POST and GET

Required arguments: serverid

Optional arguments: None

Description: List networkadapters for the server.

server/backup

Url: https://api.glesys.com/server/backup

Method: Only Https POST

Required arguments: serverid , enabled

Optional arguments: None

Description: Enable or disable backup for a server. Currently only supported for VMWare servers.

server/estimatedbackupcost

Url: https://api.glesys.com/server/estimatedbackupcost

Method: Only Https POST

Required arguments: serverid

Optional arguments: enabled

Description: Estimate backup cost for existing servers. Currently only supported for VMWare servers. The current object in the response contains the current backup cost for the server. The estimated object in the response contains the estimated backup cost for the server including overrides. The diff object in the response contains the difference between the estimated and current object.

server/status

Url: https://api.glesys.com/server/status

Method: Both Https POST and GET

Required arguments: serverid

Optional arguments: statustype

Description: Get status information about a server. This information may contain on/off-status, CPU/memory/disk-usage and uptime. Not all information is supported by all platforms. To get specific details use the statustype parameter (comma separated for multiple). CPU/memory/disk-usage is cached for one minute. The 'isrunning'-, 'islocked'- and 'status'-fields replaces the deprecated 'state'-field. The 'status'-field can be either 'running', 'updating' or 'ready'.

server/reboot

Url: https://api.glesys.com/server/reboot

Method: Only Https POST

Required arguments: serverid

Optional arguments: None

Description: Reboots a server. Does the same thing as server/stop with type set to reboot.

server/reset

Url: https://api.glesys.com/server/reset

Method: Only Https POST

Required arguments: serverid

Optional arguments: None

Description: Resets a server. Comparable to reboot but forcefully shuts the server down and starts it up again, without breaking power to the server. Currently only supported for KVM servers.

server/stop

Url: https://api.glesys.com/server/stop

Method: Only Https POST

Required arguments: serverid

Optional arguments: type

Description: Shutdown, power off or reboot a server. Not all shutdown types are supported on all platforms.

server/start

Url: https://api.glesys.com/server/start

Method: Only Https POST

Required arguments: serverid

Optional arguments: bios

Description: Power up (boot) a server.

server/create

Url: https://api.glesys.com/server/create

Method: Only Https POST

Required arguments: datacenter , platform , hostname , templatename , disksize , memorysize , cpucores

Optional arguments: description , ip , ipv6 , transfer , bandwidth , campaigncode , sshkeyids , sshkey , rootpassword , users , backupschedules , cloudconfig , cloudconfigparams

Description: Create a new virtual server. While both id, tag or name for templates can be used as the templatename argument, it is recommended that you use id. Available templates can be found via the server/templates endpoint. If you use the word 'any' as an argument, instead of an ip address, one will be choosen for you, automatically. If you dont supply the ip argument, one will be choosen for you, both for ipv4 and for ipv6. If transfer is supplied as an argument, it will automatically be converted to bandwidth to keep backwards compatibility. To enable backup for KVM supply a schedule. Supported frequencies are 'daily' and 'weekly'. Example: { "backupschedules": [{ "frequency": "daily", "numberofimagestokeep": 7 }] } Supports passing of a cloud config template written in the mustache templating language via the 'cloudconfig' argument. The 'cloudconfigparams' and 'users' will be available when rendering the template. To try out rendering you template, the server/previewcloudconfig endpoint can be used. Cloud config is only supported on the KVM platform. The users argument is required when platform is set to KVM and no custom cloud config is passed. For VMware the users argument is required for cloud config based templates. For any user supplied in the users argument a password and/or a public SSH key is required. Example: { "users": [{ "username": "cloud", "password": "correct-horse-battery-staple", "sshkeys": ["ssh-rsa AAAAB3Nz..."] }] }

server/createfrombackup

Url: https://api.glesys.com/server/createfrombackup

Method: Only Https POST

Required arguments: backupid

Optional arguments: datacenter

Description: Create a server from backup. Currently only supported for KVM servers.

server/createmanualbackup

Url: https://api.glesys.com/server/createmanualbackup

Method: Only Https POST

Required arguments: None

Optional arguments: None

Description: TODO

server/deletemanualbackup

Url: https://api.glesys.com/server/deletemanualbackup

Method: Only Https POST

Required arguments: None

Optional arguments: None

Description: TODO

server/destroy

Url: https://api.glesys.com/server/destroy

Method: Only Https POST

Required arguments: serverid , keepip

Optional arguments: None

Description: Destroy a server and remove all files on it. This change is final and cannot be undone. You will NOT be asked for confirmation. Pass keepip=yes to keep the server's IP addresses on your account – or keepip=no to release them back to the public pool.

server/edit

Url: https://api.glesys.com/server/edit

Method: Only Https POST

Required arguments: serverid

Optional arguments: disksize , memorysize , cpucores , transfer , hostname , description , bandwidth , backupschedules

Description: Edit the configuration of a server. You can change such parameters as amount of cpu cores, memory, hdd and transfer. Most arguments are optional so you can change all, none or just a few of the parameters at a time. If transfer is supplied as an argument, it will automatically be converted to bandwidth to keep backwards compatibility. To edit backup for KVM supply a new or empty schedule. Supported frequencies are 'daily' and 'weekly'. Update: { "backupschedules": [{ "frequency": "daily", "numberofimagestokeep": 7 }] } Delete: { "backupschedules": [] }

server/clone

Url: https://api.glesys.com/server/clone

Method: Only Https POST

Required arguments: serverid , hostname

Optional arguments: disksize , memorysize , cpucores , transfer , bandwidth , description , datacenter

Description: Create an copy (clone) of another server. This copies all files on the server. It will not boot the clone when the cloning is done. This has to be done manually. The ip-adresses are not moved from the original servers. The clone will not have any ip-address so if one is needed it should be added by the ip/add-function. Cloning is only supported on the VMware platform. If transfer is supplied as an argument, it will automatically be converted to bandwidth to keep backwards compatibility.

server/limits

Url: https://api.glesys.com/server/limits

Method: Both Https POST and GET

Required arguments: serverid

Optional arguments: None

Description: Only for OpenVZ. Get the beancounter limits for a server. The limits lets you know if you have exceeded any of the limits that are set for your server. These are limitations such as allocated memory, open files and more. More information about the parameters returned by this function can be found at http://wiki.openvz.org/UBC . You can reset the failcount of a limit using the function server/resetlimit.

server/resetlimit

Url: https://api.glesys.com/server/resetlimit

Method: Only Https POST

Required arguments: serverid , type

Optional arguments: None

Description: Only for OpenVZ. Resets the failcount for a beancounters limit to zero. See the documentation for server/limits for more information.

server/listbackups

Url: https://api.glesys.com/server/listbackups

Method: Both Https POST and GET

Required arguments: serverid

Optional arguments: None

Description: List available backups for a server.

server/console

Url: https://api.glesys.com/server/console

Method: Both Https POST and GET

Required arguments: serverid

Optional arguments: None

Description: Get all the connection information you need to be able to connect to an server with VNC. This gives you console access and could be useful if you have locked yourself out using a firewall, or in a number of other situations.

server/resetpassword

Url: https://api.glesys.com/server/resetpassword

Method: Only Https POST

Required arguments: serverid , rootpassword

Optional arguments: None

Description: Reset the root-password of a OpenVZ-server to a password of your choice. The password needs to be at least 8 characters.

server/templates

Url: https://api.glesys.com/server/templates

Method: Both Https POST and GET

Required arguments: None

Optional arguments: None

Description: Get a list of all operating system templates that are available when creating a server using the server/create-function.

server/allowedarguments

Url: https://api.glesys.com/server/allowedarguments

Method: Both Https POST and GET

Required arguments: None

Optional arguments: serverid

Description: Lists the allowed arguments for some of the functions in this module such as disksize, cpucores etc.

server/resourceusage

Url: https://api.glesys.com/server/resourceusage

Method: Both Https POST and GET

Required arguments: serverid , resource , resolution

Optional arguments: None

Description: Return resource usage over time for server.

server/costs

Url: https://api.glesys.com/server/costs

Method: Both Https POST and GET

Required arguments: serverid

Optional arguments: None

Description: List all costs for this server such as cpu-, memory-, license- and managed hosting-costs and more.

server/listiso

Url: https://api.glesys.com/server/listiso

Method: Both Https POST and GET

Required arguments: serverid

Optional arguments: None

Description: List all isos available for mounting in a virtual machine

server/mountiso

Url: https://api.glesys.com/server/mountiso

Method: Both Https POST and GET

Required arguments: serverid

Optional arguments: isofile

Description: Mount one of the isos listed in server/listiso on a virtual machine. This currently only supports vmware-servers.

server/estimatedcost

Url: https://api.glesys.com/server/estimatedcost

Method: Only Https POST

Required arguments: None

Optional arguments: serverid , cpucores , disksize , memorysize , bandwidth , campaigncode

Description: Estimate cost for a server, new or existing.

server/previewcloudconfig

Url: https://api.glesys.com/server/previewcloudconfig

Method: Only Https POST

Required arguments: cloudconfig

Optional arguments: cloudconfigparams , users

Description: Preview a cloud config mustache template. A list of parameters to be used when rendering the template can be provided, along with a list of users in the same format as the server/create endpoint.

Ip module

Functions for managing IP adresses, and their PTR records.

Authentication:

  • apikey: yes
  • user login
    • username: no
    • cloudaccount: yes
    • customernumber: no
  • anonymous: no

ip/listfree

Url: https://api.glesys.com/ip/listfree

Method: Both Https POST and GET

Required arguments: ipversion , datacenter , platform

Optional arguments: None

Description: Get a list of all ip adresses that are available and not used on any project or server.

ip/listown

Url: https://api.glesys.com/ip/listown

Method: Both Https POST and GET

Required arguments: None

Optional arguments: used , ipversion , datacenter , platform

Description: List all ip addresses that are reserved on this project. This is both ip-addresses that are being used by servers and those that are free, on this project. You are able to filter the results using the optional arguments.

ip/details

Url: https://api.glesys.com/ip/details

Method: Both Https POST and GET

Required arguments: ipaddress

Optional arguments: None

Description: Get detailed information about an ip-address such as gateway and netmask. This information is not available, or needed, on all platforms.

ip/take

Url: https://api.glesys.com/ip/take

Method: Only Https POST

Required arguments: ipaddress

Optional arguments: None

Description: Take an free ip and add it to this project. You can list free ips with the function ip/listfree. Once you have reserved an free ip on this project you can add it to a server with the ip/add function.

ip/release

Url: https://api.glesys.com/ip/release

Method: Only Https POST

Required arguments: ipaddress

Optional arguments: None

Description: Return an unused ip-address to the pool of free ips. This ip cannot be allocated to an server. If it is, you have to remove it first with the ip/remove function before you can release it with ip/release.

ip/add

Url: https://api.glesys.com/ip/add

Method: Only Https POST

Required arguments: ipaddress

Optional arguments: serverid

Description: Add an ip-adress to an server. The ip has to be free, but reserved on this project. You are able to list ip-adresses with ip/listown and reserve on this project by using ip/take. To find free ips you can use ip/listfree. When adding an ip to a VMware server you have to configure the server yourself, unless the ip was added during the creation of the server (server/create). You can get detailed information such as gateway and netmask using the ip/details-function.

ip/remove

Url: https://api.glesys.com/ip/remove

Method: Only Https POST

Required arguments: ipaddress

Optional arguments: release

Description: Remove an ip from a server. This does not release it back to GleSYS pool of free ips. It just removes it from the server and keeps it on the project so that you can use it for other servers or the same server at a later time. If you want to remove the ip from this project entirely, use the function ip/release.

ip/setptr

Url: https://api.glesys.com/ip/setptr

Method: Only Https POST

Required arguments: ipaddress , data

Optional arguments: None

Description: Sets PTR data for an IP. Use ip/listown or ip/details to get current PTR data

ip/resetptr

Url: https://api.glesys.com/ip/resetptr

Method: Only Https POST

Required arguments: ipaddress

Optional arguments: None

Description: Resets PTR to default value

Domain module

Functions to manage domains and records, such as registrations, renewals or changes to the DNS zone.

Authentication:

  • apikey: yes
  • user login
    • username: no
    • cloudaccount: yes
    • customernumber: no
  • anonymous: no

domain/list

Url: https://api.glesys.com/domain/list

Method: Both Https POST and GET

Required arguments: None

Optional arguments: None

Description: Get a list of all domains on this account. The glesysnameserver-item in the returned data shows if this domain actually uses glesys nameservers or not. It looks in the domains NS-records for .namesystem.se

domain/add

Url: https://api.glesys.com/domain/add

Method: Only Https POST

Required arguments: domainname

Optional arguments: primarynameserver , responsibleperson , ttl , refresh , retry , expire , minimum , createrecords

Description: Add a domain to our dns-system. Some default records will be created on the domain. If the optional argument create_records is set to 0, only NS and SOA records will be created by default.

domain/register

Url: https://api.glesys.com/domain/register

Method: Only Https POST

Required arguments: domainname , email , firstname , lastname , organization , nationalid , address , city , zipcode , country , phonenumber

Optional arguments: fax , numyears

Description: Register a domain. The domain has to be added to the account first by calling domain/add. Always send puny-coded domains to the api if you have international characters in it. The optional argument numyears decides how many years the domain in registered for. It defaults to the lowest number of years allowed for the tld. The nationalid-field replaces the previous organizationnumber-field, which is deprecated.

domain/transfer

Url: https://api.glesys.com/domain/transfer

Method: Only Https POST

Required arguments: domainname , authcode , email , firstname , lastname , nationalid , address , city , zipcode , country , phonenumber

Optional arguments: organization , fax , numyears

Description: Transfer a domain to glesys. The domain has to be added to the account first by calling domain/add. Always send puny-coded domains to the api if you have international characters in it. The optional argument numyears decides how many years the domain in registered for. It defaults to the lowest number of years allowed for the tld. The nationalid-field replaces the previous organizationnumber-field, which is deprecated.

domain/renew

Url: https://api.glesys.com/domain/renew

Method: Only Https POST

Required arguments: domainname , numyears

Optional arguments: None

Description: Renew a domain. The domain has to be added to the account first by calling domain/add.

domain/setautorenew

Url: https://api.glesys.com/domain/setautorenew

Method: Only Https POST

Required arguments: domainname , autorenew

Optional arguments: None

Description: Activate/deactivate autorenewal for a domain.

domain/details

Url: https://api.glesys.com/domain/details

Method: Both Https POST and GET

Required arguments: domainname

Optional arguments: None

Description: Gets detailed information about this domain. This is basically the information available in the domains SOA-record.

domain/export

Url: https://api.glesys.com/domain/export

Method: Both Https POST and GET

Required arguments: domainname

Optional arguments: None

Description: Fetch the zone file for a domain.

domain/available

Url: https://api.glesys.com/domain/available

Method: Both Https POST and GET

Required arguments: search

Optional arguments: None

Description: Checks if the domain is available for registration. You can either set search to the domain you are interested in or leave out the tld and search for all tlds that we offer for registration. Example: example.com or example.

domain/pricelist

Url: https://api.glesys.com/domain/pricelist

Method: Both Https POST and GET

Required arguments: None

Optional arguments: None

Description: List all prices for all operations (registrations, transfers etc) for all TLDs supported by GleSYS.

domain/edit

Url: https://api.glesys.com/domain/edit

Method: Only Https POST

Required arguments: domainname

Optional arguments: primarynameserver , responsibleperson , ttl , refresh , retry , expire , minimum

Description: Edit soa for a domain in our dns-system

domain/delete

Url: https://api.glesys.com/domain/delete

Method: Only Https POST

Required arguments: domainname

Optional arguments: forcedeleteemail

Description: Deletes a domain from the dns system. By default, you will get an error message if you try to delete a domain with active email accounts or active email aliases. To override this, and force the removal of all the emailaccounts on the domain, set the forcedeleteemail parameter to true.

domain/updaterecord

Url: https://api.glesys.com/domain/updaterecord

Method: Only Https POST

Required arguments: recordid

Optional arguments: ttl , host , type , data

Description: Update a records dns information

domain/listrecords

Url: https://api.glesys.com/domain/listrecords

Method: Only Https POST

Required arguments: domainname

Optional arguments: None

Description: List records for a given domain. This information includes the recordid.

domain/addrecord

Url: https://api.glesys.com/domain/addrecord

Method: Only Https POST

Required arguments: domainname , host , type , data

Optional arguments: ttl

Description: Adds a dns record to a domain

domain/deleterecord

Url: https://api.glesys.com/domain/deleterecord

Method: Only Https POST

Required arguments: recordid

Optional arguments: None

Description: Removes a dns record from a domain. Get the recordid from domain/listrecords

domain/allowedarguments

Url: https://api.glesys.com/domain/allowedarguments

Method: Both Https POST and GET

Required arguments: None

Optional arguments: None

Description: Lists the allowed arguments for some of the functions in this module such as register. Some tlds require that the registering part has connections to the country.

domain/changenameservers

Url: https://api.glesys.com/domain/changenameservers

Method: Only Https POST

Required arguments: domainname , ns1 , ns2

Optional arguments: ns3 , ns4

Description: Change nameservers for a domain. Check the registrarinfo field in domain/details to know if this can be done for a domain. Glue records currently only supported at .nu and .se.

domain/generateauthcode

Url: https://api.glesys.com/domain/generateauthcode

Method: Only Https POST

Required arguments: domainname

Optional arguments: None

Description: Generate auth-code for a domain.

Archive module

Manage archive volumes. Get information about archive volumes and create or edit volumes.

Authentication:

  • apikey: yes
  • user login
    • username: no
    • cloudaccount: yes
    • customernumber: no
  • anonymous: no

archive/details

Url: https://api.glesys.com/archive/details

Method: Both Https POST and GET

Required arguments: username

Optional arguments: None

Description: Get detailed information about an archive volume.

archive/delete

Url: https://api.glesys.com/archive/delete

Method: Only Https POST

Required arguments: username

Optional arguments: None

Description: Delete a archive volume. All files on the volume are permanently destroyed.

archive/list

Url: https://api.glesys.com/archive/list

Method: Both Https POST and GET

Required arguments: None

Optional arguments: None

Description: Lists all active disks on this account.

archive/create

Url: https://api.glesys.com/archive/create

Method: Only Https POST

Required arguments: username , password , size

Optional arguments: None

Description: Create a new backup volume. Size is in gigabytes.

archive/changepassword

Url: https://api.glesys.com/archive/changepassword

Method: Only Https POST

Required arguments: username , password

Optional arguments: None

Description: Change the password for an archive user.

archive/resize

Url: https://api.glesys.com/archive/resize

Method: Only Https POST

Required arguments: username , size

Optional arguments: None

Description: Resize an archive volume. It is only possible to upgrade the size of the disk. Downgrading is currently not supported. If you need to downgrade, please create a new volume and transfer all data to the new volume. Then delete the old volume.

archive/changedescription

Url: https://api.glesys.com/archive/changedescription

Method: Only Https POST

Required arguments: username , description

Optional arguments: None

Description: Change the description of an archive.

archive/allowedarguments

Url: https://api.glesys.com/archive/allowedarguments

Method: Both Https POST and GET

Required arguments: None

Optional arguments: None

Description: Lists the allowed arguments for some of the functions in this module such as archivesize.

Email module

Functions for managing email account and email aliases on domains.

Authentication:

  • apikey: yes
  • user login
    • username: no
    • cloudaccount: yes
    • customernumber: no
  • anonymous: no

email/overview

Url: https://api.glesys.com/email/overview

Method: Both Https POST and GET

Required arguments: None

Optional arguments: filter , page

Description: Returns an overview of all domains and the number of email accounts and aliases. The results can be paginated by passing the page parameter and the relevant pagination information will be available in the meta property of the response object. The results can be filtered using the filter parameter.

email/list

Url: https://api.glesys.com/email/list

Method: Both Https POST and GET

Required arguments: domainname

Optional arguments: filter

Description: Gets a list of all accounts and aliases of a domain with full details. It is also possible to filter the results by setting the optional filter parameter to an existing alias or account. Example: user@example.com. Please note that if you are getting the list using HTTP GET, you need to escape the @ in the filter (@ == %40). DEPRECATION: The 'quota' field is deprecated and has been replaced with 'quotaingib'.

email/editaccount

Url: https://api.glesys.com/email/editaccount

Method: Only Https POST

Required arguments: emailaccount

Optional arguments: antispamlevel , antivirus , autorespond , autorespondmessage , quotaingib , rejectspam

Description: Edit an email account and change things like quota, autoresponse and antispam level. Allowed values for antispam is 0-5. Set rejectspam to completely reject spam instead of just marking it as spam(defaults to false). DEPRECATION: The 'quota' parameter is deprecated and has been replaced with 'quotaingib'.

email/delete

Url: https://api.glesys.com/email/delete

Method: Only Https POST

Required arguments: email

Optional arguments: None

Description: Delete an email-account or alias.

email/createaccount

Url: https://api.glesys.com/email/createaccount

Method: Only Https POST

Required arguments: emailaccount

Optional arguments: antispamlevel , antivirus , autorespond , autorespondmessage , quotaingib , rejectspam

Description: Create an email account. Allowed values for antispam is 0-5. Set rejectspam to completely reject spam instead of just marking it as spam (defaults to false). DEPRECATION: The 'quota' parameter is deprecated and has been replaced with 'quotaingib'.

email/quota

Url: https://api.glesys.com/email/quota

Method: Both Https POST and GET

Required arguments: emailaccount

Optional arguments: None

Description: Gets quota information about an account. How much is being used and how much is available. DEPRECATION: The 'quota' and 'used' fields are deprecated and have been replaced with 'quotaingib' and 'usedquotainmib'

email/createalias

Url: https://api.glesys.com/email/createalias

Method: Only Https POST

Required arguments: emailalias , goto

Optional arguments: None

Description: Create an email alias.

email/editalias

Url: https://api.glesys.com/email/editalias

Method: Only Https POST

Required arguments: emailalias , goto

Optional arguments: None

Description: Edit an email alias.

email/costs

Url: https://api.glesys.com/email/costs

Method: Both Https POST and GET

Required arguments: None

Optional arguments: None

Description: Get email related costs and pricelists.

email/resetpassword

Url: https://api.glesys.com/email/resetpassword

Method: Only Https POST

Required arguments: emailaccount

Optional arguments: None

Description: Reset password for an email account.

Invoice module

List invoices and manage invoicing related settings.

Authentication:

  • apikey: yes
  • user login
    • username: no
    • cloudaccount: no
    • customernumber: yes
  • anonymous: no

invoice/list

Url: https://api.glesys.com/invoice/list

Method: Both Https POST and GET

Required arguments: None

Optional arguments: None

Description: List all invoices of the customer that own this account.

invoice/next

Url: https://api.glesys.com/invoice/next

Method: Both Https POST and GET

Required arguments: None

Optional arguments: None

Description: Shows an estimation of what the next invoice will look like. This shows costs for servers, changes, what has been changed and summaries.

invoice/paybypaypal

Url: https://api.glesys.com/invoice/paybypaypal

Method: Only Https POST

Required arguments: invoiceids

Optional arguments: None

Description: Pay one (or more) invoices with paypal

Country module

Information about available country data.

Authentication:

  • apikey: yes
  • user login
    • username: no
    • cloudaccount: yes
    • customernumber: no
  • anonymous: no

country/list

Url: https://api.glesys.com/country/list

Method: Both Https POST and GET

Required arguments: None

Optional arguments: None

Description: Fetch a list of all known countries and territories.

Customer module

Manage the current customer.

Authentication:

  • apikey: yes
  • user login
    • username: no
    • cloudaccount: no
    • customernumber: yes
  • anonymous: no

customer/settings

Url: https://api.glesys.com/customer/settings

Method: Only Https POST

Required arguments: None

Optional arguments: name , address , zipcode , city , nationalidnumber , invoicereference , phonenumber , email , invoiceaddress , invoicezipcode , invoicecity , separateinvoiceaddress , vatnumber , paymentmethod

Description: Change settings for an organization. NOTE! The field canpayinvoicesmanuallyusingpaypal is deprecated and can be removed without notice.

customer/listcollaborators

Url: https://api.glesys.com/customer/listcollaborators

Method: Both Https POST and GET

Required arguments: None

Optional arguments: None

Description: Lists the collaborators for the organization. Collaborators can be given access to projects within the organization. Organization owners has full access to the organization, including billing.

customer/listprojects

Url: https://api.glesys.com/customer/listprojects

Method: Both Https POST and GET

Required arguments: None

Optional arguments: None

Description: List all Projects for this Organization. This endpoint is not accessible with an API key.

customer/editcollaborator

Url: https://api.glesys.com/customer/editcollaborator

Method: Only Https POST

Required arguments: collaboratorid

Optional arguments: isowner , projectaccess

Description: Edit a collaborator. Project should be specified in the format cl21345:full,cl6789:read.

customer/removecollaborator

Url: https://api.glesys.com/customer/removecollaborator

Method: Only Https POST

Required arguments: collaboratorid

Optional arguments: None

Description: Removes a collaborator from the organization.

customer/createproject

Url: https://api.glesys.com/customer/createproject

Method: Only Https POST

Required arguments: name

Optional arguments: None

Description: Create a new project. Requires authentication as a user.

Account module

Functions to manage the current account.

Authentication:

  • apikey: yes
  • user login
    • username: no
    • cloudaccount: yes
    • customernumber: no
  • anonymous: no

account/info

Url: https://api.glesys.com/account/info

Method: Both Https POST and GET

Required arguments: None

Optional arguments: None

Description: Provides information about the currently logged in account. PLEASE NOTE: maxnumemailaccount has been deprecated in favor of maxnumemailaccounts.

Paymentcard module

Manage and use a users payment cards.

Authentication:

  • apikey: no
  • user login
    • username: yes
    • cloudaccount: no
    • customernumber: no
  • anonymous: no

paymentcard/add

Url: https://api.glesys.com/paymentcard/add

Method: Only Https POST

Required arguments: language

Optional arguments: cutomernumber

Description: Get an url that needs to be visited to add a new payment card for an organization. The language parameter determines the language of the website the url points to. Can be EN or SV.

Vpn module

Set up and handle VPN-accounts.

Authentication:

  • apikey: yes
  • user login
    • username: no
    • cloudaccount: yes
    • customernumber: no
  • anonymous: no

vpn/listusers

Url: https://api.glesys.com/vpn/listusers

Method: Both Https POST and GET

Required arguments: None

Optional arguments: None

Description: List all vpn-users on this account

vpn/createuser

Url: https://api.glesys.com/vpn/createuser

Method: Only Https POST

Required arguments: username , password

Optional arguments: None

Description: Create a new vpn-user. Usernames has to be prefixed with your accountname, ex: clxxxxx_vpnuser.

vpn/deleteuser

Url: https://api.glesys.com/vpn/deleteuser

Method: Only Https POST

Required arguments: username

Optional arguments: None

Description: Delete a vpn-user from this account.

vpn/edituser

Url: https://api.glesys.com/vpn/edituser

Method: Only Https POST

Required arguments: username

Optional arguments: password , enabled

Description: Enable/disable and change password for an vpn-user.

Loadbalancer module

Create and manage loadbalander instances.

Authentication:

  • apikey: yes
  • user login
    • username: no
    • cloudaccount: yes
    • customernumber: no
  • anonymous: no

loadbalancer/list

Url: https://api.glesys.com/loadbalancer/list

Method: Both Https POST and GET

Required arguments: None

Optional arguments: None

Description: List all loadbalancers on your account

loadbalancer/details

Url: https://api.glesys.com/loadbalancer/details

Method: Both Https POST and GET

Required arguments: loadbalancerid

Optional arguments: None

Description: Detailed information about a loadbalancer instance

loadbalancer/create

Url: https://api.glesys.com/loadbalancer/create

Method: Only Https POST

Required arguments: name , datacenter

Optional arguments: None

Description: Creates a new loadbalancer with the provided name in the specified datacenter.

loadbalancer/edit

Url: https://api.glesys.com/loadbalancer/edit

Method: Only Https POST

Required arguments: loadbalancerid

Optional arguments: name

Description: Edit a loadbalancer

loadbalancer/destroy

Url: https://api.glesys.com/loadbalancer/destroy

Method: Only Https POST

Required arguments: loadbalancerid

Optional arguments: None

Description: Completly destroys a specified loadbalancer instance

loadbalancer/addfrontend

Url: https://api.glesys.com/loadbalancer/addfrontend

Method: Only Https POST

Required arguments: loadbalancerid , name , port , backendname

Optional arguments: sslcertificate , maxconnections , clienttimeout

Description: Creates a frontend on specified loadbalancer. It will bind to a port on the loadbalancer instance and forward it to the specified backend.

loadbalancer/editfrontend

Url: https://api.glesys.com/loadbalancer/editfrontend

Method: Only Https POST

Required arguments: loadbalancerid , frontendname

Optional arguments: sslcertificate , port , maxconnections , clienttimeout

Description: Edit a frontend on a loadbalancer.

loadbalancer/removefrontend

Url: https://api.glesys.com/loadbalancer/removefrontend

Method: Only Https POST

Required arguments: loadbalancerid , frontendname

Optional arguments: None

Description: Remove a specifed fronted.

loadbalancer/addbackend

Url: https://api.glesys.com/loadbalancer/addbackend

Method: Only Https POST

Required arguments: loadbalancerid , name

Optional arguments: mode , stickysession , connecttimeout , responsetimeout

Description: Creates a backend on specified loadbalancer. It will forward traffic from related frontend to specified targets. Mode will default to TCP but HTTP mode can be used to get more HTTP specific functions as StickySessions which will route traffic from a specific client only to a specific target.

loadbalancer/editbackend

Url: https://api.glesys.com/loadbalancer/editbackend

Method: Only Https POST

Required arguments: loadbalancerid , backendname

Optional arguments: mode , stickysession , connecttimeout , responsetimeout

Description: Edit a backend on a loadbalancer.

loadbalancer/removebackend

Url: https://api.glesys.com/loadbalancer/removebackend

Method: Only Https POST

Required arguments: loadbalancerid , backendname

Optional arguments: None

Description: Remove a specified backend.

loadbalancer/addtarget

Url: https://api.glesys.com/loadbalancer/addtarget

Method: Only Https POST

Required arguments: loadbalancerid , backendname , ipaddress , port , name , weight

Optional arguments: None

Description: Creates as target which will represent one of the servers related backends will forward traffic to.

loadbalancer/edittarget

Url: https://api.glesys.com/loadbalancer/edittarget

Method: Only Https POST

Required arguments: loadbalancerid , backendname , targetname

Optional arguments: ipaddress , port , weight

Description: Edit the options for the specified target.

loadbalancer/enabletarget

Url: https://api.glesys.com/loadbalancer/enabletarget

Method: Only Https POST

Required arguments: loadbalancerid , backendname , targetname

Optional arguments: None

Description: Enables specified target.

loadbalancer/disabletarget

Url: https://api.glesys.com/loadbalancer/disabletarget

Method: Only Https POST

Required arguments: loadbalancerid , backendname , targetname

Optional arguments: None

Description: Disables specified target. A disabled target will NOT recive any traffic

loadbalancer/removetarget

Url: https://api.glesys.com/loadbalancer/removetarget

Method: Only Https POST

Required arguments: loadbalancerid , backendname , name

Optional arguments: None

Description: Removes specified target

loadbalancer/addcertificate

Url: https://api.glesys.com/loadbalancer/addcertificate

Method: Only Https POST

Required arguments: loadbalancerid , certificatename , certificate

Optional arguments: None

Description: Add ssl certficate to loadbalancer instance. certificate should be a base64 encoded .pem file that contains a certificate and a private key. Note: ssl will not automatically be used, you will need to added it to a frontend.

loadbalancer/listcertificate

Url: https://api.glesys.com/loadbalancer/listcertificate

Method: Both Https POST and GET

Required arguments: loadbalancerid

Optional arguments: None

Description: List certificate attached to an loadbalancer instance.

loadbalancer/removecertificate

Url: https://api.glesys.com/loadbalancer/removecertificate

Method: Only Https POST

Required arguments: loadbalancerid , certificatename

Optional arguments: None

Description: Removes ssl certificate from loadbalancer instance.

loadbalancer/errors

Url: https://api.glesys.com/loadbalancer/errors

Method: Both Https POST and GET

Required arguments: loadbalancerid

Optional arguments: None

Description: Show loadbalancer errors

loadbalancer/addtoblocklist

Url: https://api.glesys.com/loadbalancer/addtoblocklist

Method: Only Https POST

Required arguments: loadbalancerid , prefix

Optional arguments: None

Description: Blocks ip or prefix from access any url on the loadbalancer

loadbalancer/removefromblocklist

Url: https://api.glesys.com/loadbalancer/removefromblocklist

Method: Only Https POST

Required arguments: loadbalancerid , prefix

Optional arguments: None

Description: Removed an ip or prefix from loadbalancer blocklist

User module

Log in/out and manage the currently logged in user.

Authentication:

  • apikey: no
  • user login
    • username: yes
    • cloudaccount: no
    • customernumber: no
  • anonymous: no

user/createorganization

Url: https://api.glesys.com/user/createorganization

Method: Only Https POST

Required arguments: country , type , name

Optional arguments: None

Description: Create an organization for the current user.

user/details

Url: https://api.glesys.com/user/details

Method: Both Https POST and GET

Required arguments: None

Optional arguments: None

Description: Get information about the currently logged in user. Username, name, twofactor method and more.

user/edit

Url: https://api.glesys.com/user/edit

Method: Only Https POST

Required arguments: None

Optional arguments: name

Description: Update information about the current user.

user/login

Url: https://api.glesys.com/user/login

Method: Only Https POST

Required arguments: username , password

Optional arguments: otp , verificationcode

Description: This function is used to login with an username and password. If twofactor authentication is enabled, an authentication token is required. You will be provided with an temporary API key that can be used together with any of the organizations or projects that the user has access to. One of these project keys or organization numbers and the API key can be used as authentication for subsequent API requests. Script that needs to use the API should generally not use this. Using non-temporary API keys created through GleSYS Cloud is far better for that use case as they don't require you to share your password and OTP-devices and can be limited to accept connections from just a few ip adresses and can limit which functions they can be used with.

user/logout

Url: https://api.glesys.com/user/logout

Method: Only Https POST

Required arguments: None

Optional arguments: None

Description: Destroy the current user session.

user/enabletwofactor

Url: https://api.glesys.com/user/enabletwofactor

Method: Only Https POST

Required arguments: method , secret , verification

Optional arguments: None

Description: Enable twofactor authentication for the currently logged in user.

user/disabletwofactor

Url: https://api.glesys.com/user/disabletwofactor

Method: Only Https POST

Required arguments: password , otp

Optional arguments: None

Description: Disable twofactor authentication for the currently logged in user.

user/changepassword

Url: https://api.glesys.com/user/changepassword

Method: Only Https POST

Required arguments: currentpassword , newpassword

Optional arguments: otp

Description: Change password for the currently logged in user. This require otp-authentication if it is enabled for the user.

user/listorganizations

Url: https://api.glesys.com/user/listorganizations

Method: Both Https POST and GET

Required arguments: None

Optional arguments: None

Description: Lists information about the organizations your user belongs to.

user/searchdata

Url: https://api.glesys.com/user/searchdata

Method: Both Https POST and GET

Required arguments: None

Optional arguments: None

Description: Get a dataset for service entites on the projects and organizations this user has access to. This dataset can be used for searches.

user/signup

Url: https://api.glesys.com/user/signup

Method: Only Https POST

Required arguments: name , email , password , locale , useragent , termsofservice

Optional arguments: None

Description: Signup to create a new user. To proceed with a sign up you need to accept the Terms of Service and the Privacy Policy, they are available at https://glesys.com/terms-policies.

user/supportchallenge

Url: https://api.glesys.com/user/supportchallenge

Method: Both Https POST and GET

Required arguments: None

Optional arguments: None

Description: TODO

user/initiatesupportchallenge

Url: https://api.glesys.com/user/initiatesupportchallenge

Method: Only Https POST

Required arguments: None

Optional arguments: None

Description: TODO

user/confirm

Url: https://api.glesys.com/user/confirm

Method: Only Https POST

Required arguments: token

Optional arguments: None

Description: Confirm signup.

Api module

Information about the GleSYS API, such as service information.

Authentication:

Not required.

api/maintenance

Url: https://api.glesys.com/api/maintenance

Method: Both Https POST and GET

Required arguments: None

Optional arguments: None

Description: Get a list of GleSYS services that are in maintenance mode.

api/serviceinfo

Url: https://api.glesys.com/api/serviceinfo

Method: Both Https POST and GET

Required arguments: None

Optional arguments: None

Description: Deprecated. Please use https://status.glesys.com/api/v2/summary.json instead.

api/listfunctions

Url: https://api.glesys.com/api/listfunctions

Method: Both Https POST and GET

Required arguments: None

Optional arguments: None

Description: List all functions in the api

Sshkey module

Module for managing SSH keys that can be used for GleSYS servers.

Authentication:

  • apikey: yes
  • user login
    • username: no
    • cloudaccount: yes
    • customernumber: no
  • anonymous: no

sshkey/add

Url: https://api.glesys.com/sshkey/add

Method: Only Https POST

Required arguments: sshkey , description

Optional arguments: None

Description: Add public sshkey to your account which can be used when deploying new servers.

sshkey/list

Url: https://api.glesys.com/sshkey/list

Method: Both Https POST and GET

Required arguments: None

Optional arguments: None

Description: List your saved sshkeys.

sshkey/remove

Url: https://api.glesys.com/sshkey/remove

Method: Only Https POST

Required arguments: sshkeyids

Optional arguments: None

Description: Remove specified sshkey.

Networkadapter module

Set up and handle network adapters.

Authentication:

  • apikey: yes
  • user login
    • username: no
    • cloudaccount: yes
    • customernumber: no
  • anonymous: no

networkadapter/create

Url: https://api.glesys.com/networkadapter/create

Method: Only Https POST

Required arguments: serverid

Optional arguments: bandwidth , adaptertype , networkid , name

Description: Create a network adapter.

networkadapter/details

Url: https://api.glesys.com/networkadapter/details

Method: Both Https POST and GET

Required arguments: networkadapterid

Optional arguments: None

Description: Details for a network adapter.

networkadapter/edit

Url: https://api.glesys.com/networkadapter/edit

Method: Only Https POST

Required arguments: networkadapterid

Optional arguments: bandwidth , networkid , name

Description: Edit a network adapter.

networkadapter/delete

Url: https://api.glesys.com/networkadapter/delete

Method: Only Https POST

Required arguments: networkadapterid

Optional arguments: None

Description: Delete a network adapter.

Networkcircuit module

View information about your network circuits.

Authentication:

  • apikey: yes
  • user login
    • username: no
    • cloudaccount: yes
    • customernumber: no
  • anonymous: no

networkcircuit/details

Url: https://api.glesys.com/networkcircuit/details

Method: Both Https POST and GET

Required arguments: networkcircuitid

Optional arguments: None

Description: Show information of a specific network circuit, including a verbose view of the billing.

networkcircuit/list

Url: https://api.glesys.com/networkcircuit/list

Method: Both Https POST and GET

Required arguments: None

Optional arguments: None

Description: Get a list of all network circuits in this project.

Network module

Set up and manage Networks.

Authentication:

  • apikey: yes
  • user login
    • username: no
    • cloudaccount: yes
    • customernumber: no
  • anonymous: no

network/list

Url: https://api.glesys.com/network/list

Method: Both Https POST and GET

Required arguments: None

Optional arguments: None

Description: List your networks.

network/details

Url: https://api.glesys.com/network/details

Method: Both Https POST and GET

Required arguments: networkid

Optional arguments: None

Description: Details for a specific network

network/create

Url: https://api.glesys.com/network/create

Method: Only Https POST

Required arguments: datacenter , description

Optional arguments: None

Description: Create a network

network/delete

Url: https://api.glesys.com/network/delete

Method: Only Https POST

Required arguments: networkid

Optional arguments: None

Description: Delete a network

network/edit

Url: https://api.glesys.com/network/edit

Method: Only Https POST

Required arguments: networkid

Optional arguments: description

Description: Edit a network

Filestorage module

Manage file storages.

Authentication:

  • apikey: yes
  • user login
    • username: no
    • cloudaccount: yes
    • customernumber: no
  • anonymous: no

filestorage/createvolume

Url: https://api.glesys.com/filestorage/createvolume

Method: Only Https POST

Required arguments: datacenter , planid

Optional arguments: name , autopromotion

Description: Create a new file storage.

filestorage/listvolumes

Url: https://api.glesys.com/filestorage/listvolumes

Method: Both Https POST and GET

Required arguments: None

Optional arguments: None

Description: List file storages.

filestorage/volumedetails

Url: https://api.glesys.com/filestorage/volumedetails

Method: Both Https POST and GET

Required arguments: volumeid

Optional arguments: None

Description: Details for a file storage.

filestorage/editvolume

Url: https://api.glesys.com/filestorage/editvolume

Method: Only Https POST

Required arguments: volumeid

Optional arguments: accesslist , planid , autopromotion

Description: Edit a file storage

filestorage/deletevolume

Url: https://api.glesys.com/filestorage/deletevolume

Method: Only Https POST

Required arguments: volumeid

Optional arguments: None

Description: Delete a file storage.

filestorage/resourceusage

Url: https://api.glesys.com/filestorage/resourceusage

Method: Both Https POST and GET

Required arguments: volumeid

Optional arguments: None

Description: Resource usage for a file storage.

filestorage/listplans

Url: https://api.glesys.com/filestorage/listplans

Method: Both Https POST and GET

Required arguments: None

Optional arguments: volumeid

Description: List all available plans.

Project module

Manage your projects.

Authentication:

  • apikey: no
  • user login
    • username: yes
    • cloudaccount: yes
    • customernumber: no
  • anonymous: no

project/edit

Url: https://api.glesys.com/project/edit

Method: Only Https POST

Required arguments: None

Optional arguments: name , color

Description: Edit a project.

project/rename

Url: https://api.glesys.com/project/rename

Method: Only Https POST

Required arguments: name

Optional arguments: None

Description: Rename a project.

project/delete

Url: https://api.glesys.com/project/delete

Method: Only Https POST

Required arguments: None

Optional arguments: None

Description: Request to delete a project.

Objectstorage module

Manage your Object Storage Instances

Authentication:

  • apikey: yes
  • user login
    • username: no
    • cloudaccount: yes
    • customernumber: no
  • anonymous: no

objectstorage/instancedetails

Url: https://api.glesys.com/objectstorage/instancedetails

Method: Both Https POST and GET

Required arguments: instanceid

Optional arguments: None

Description: Get detailed information of an Object Storage Instance such as datacenter, descriptions and associated credentials.

objectstorage/listinstances

Url: https://api.glesys.com/objectstorage/listinstances

Method: Both Https POST and GET

Required arguments: projectkey

Optional arguments: None

Description: Get a list of Object Storage Instances for a project

objectstorage/createinstance

Url: https://api.glesys.com/objectstorage/createinstance

Method: Only Https POST

Required arguments: projectkey , datacenter

Optional arguments: description , createinitialbucket

Description: Create a new Object Storage Instance. Your first credentials will be created automatically

objectstorage/editinstance

Url: https://api.glesys.com/objectstorage/editinstance

Method: Only Https POST

Required arguments: instanceid

Optional arguments: description

Description: Update the description of an Object Storage Instance.

objectstorage/deleteinstance

Url: https://api.glesys.com/objectstorage/deleteinstance

Method: Only Https POST

Required arguments: instanceid

Optional arguments: None

Description: Delete an Object Storage Instance together with credentials and all of your files. This change is final and cannot be undone. You will NOT be asked for confirmation.

objectstorage/createcredential

Url: https://api.glesys.com/objectstorage/createcredential

Method: Only Https POST

Required arguments: instanceid

Optional arguments: description

Description: Create credentials for an Object Storage Instance.

objectstorage/deletecredential

Url: https://api.glesys.com/objectstorage/deletecredential

Method: Only Https POST

Required arguments: credentialid , instanceid

Optional arguments: None

Description: Delete credentials for an Object Storage Instance. This will not delete any associated files

objectstorage/estimatedcost

Url: https://api.glesys.com/objectstorage/estimatedcost

Method: Only Https POST

Required arguments: None

Optional arguments: instanceid , averageUsageInGib

Description: Get cost for new or existing Object Storage Instance.

Serverdisk module

Manage additional disks for your servers. Currently only supported for the VMware platform.

Authentication:

  • apikey: yes
  • user login
    • username: no
    • cloudaccount: yes
    • customernumber: no
  • anonymous: no

serverdisk/create

Url: https://api.glesys.com/serverdisk/create

Method: Only Https POST

Required arguments: serverid , name , sizeingib

Optional arguments: None

Description: Create a new disk for a server.

serverdisk/reconfigure

Url: https://api.glesys.com/serverdisk/reconfigure

Method: Only Https POST

Required arguments: id , sizeingib

Optional arguments: None

Description: Reconfigure a disk. Currently only supports reconfiguring the size of the disk. The new size cannot be lower or equal to the current size.

serverdisk/updatename

Url: https://api.glesys.com/serverdisk/updatename

Method: Only Https POST

Required arguments: id , name

Optional arguments: None

Description: Update the name for a disk.

serverdisk/delete

Url: https://api.glesys.com/serverdisk/delete

Method: Only Https POST

Required arguments: id

Optional arguments: None

Description: Delete a disk. This change is final and cannot be undone.

serverdisk/limits

Url: https://api.glesys.com/serverdisk/limits

Method: Both Https POST and GET

Required arguments: serverid

Optional arguments: None

Description: Show disk limits for a server. This includes the number of additional disks allowed per server as well as the minimum and maximum size per disk. Note that the minimum and maximum size allowed might vary depending on which data center the server belongs to.

serverdisk/estimatedcost

Url: https://api.glesys.com/serverdisk/estimatedcost

Method: Only Https POST

Required arguments: serverid

Optional arguments: additionaldiskingibdelta

Description: Estimate additional disk cost for a server. The additionaldiskingibdelta parameter can be used to calculate an estimate with an increased or decreased amount of addtitional disk space. For example, setting this parameter to 10 for a server with 20 GiB in additional disk space will result in an estimated cost for 30 GiB in addtional disk space. The current object in the response contains the current additional disk cost for the server. The estimated object in the response contains the estimated additional disk cost for the server including overrides. The diff object in the response contains the difference between the estimated and current object.

Clone this wiki locally