SDKs

Ruby

Ruby

Install

Not published. Build from the rb directory.

Package

voxgig-sdk-gandi-sdk

API reference

Entity Operations
AccessToken create
AcmeAccount list, load
AcmeDomain list, load
AcmePrice create, list
AcmeSubscription create, list, load, remove, update
BillingInfo load
BillingPrice load
CertificateDcv patch, update
CertificatePackage list, load
CertificatePem load
CertificateRenewal create
CertificateTag create, list, patch, remove, update
Comment create, load, remove
Domain create, list, load, remove, update
DomainAvailability load
DomainChangeOwner create, load
DomainClaim create, load
DomainContact load, update
DomainDnskey create, list, remove, update
DomainDnssec create, load, remove
DomainHost create, list, load, remove, update
DomainLivedns create, load
DomainNameserver list, update
DomainTag create, list, patch, remove, update
DomainTransfer create, load, update
DomainWebredir create, list, load, remove, update
EmailForward create, list, remove, update
EmailMailbox create, list, load, remove, update
EmailMigration create, load
EmailOffer load, update
EmailSlot create, list, load, remove
HostingApplication list, load
HostingInstance create, list, load, remove, update
HostingVhost create, list, load, remove, update
IssuedCertificate create, list, load, remove, update
LinkedZone create, list, load, remove, update
LinkedZoneDeployment create
LinkedZoneDomain list, load, update
LinkedZoneTask list, load
LivednsAxfrSlave list, remove, update
LivednsAxfrTsig list, remove, update
LivednsDomain create, list, load, update
LivednsKey create, list, load, remove, update
LivednsNameserver list
LivednsRecord create, list, load, patch, remove, update
LivednsRrtype list
LivednsSnapshot create, list, load, remove, update
LivednsTsigKey create, list, load
LivednsZone remove, update
Mailbox create, list, load, remove, update
MailboxDomain create, list, load
MailboxForward create, list, remove, update
MailboxProduct create, list
MailboxQuota list
MailboxSlot list, load
Organization create, list, load, remove, update
OrganizationCustomer create, list, load, remove, update
Template create, list, load, remove, update
TemplateDispatch create, load
Tld list, load
User load

Configuration

Set the server URL and credentials for your environment. Enable only the features your application needs.

Features

Set up the client

This setup fragment reads credentials from the environment. Use the API operation reference to supply input for each call.

require_relative "Gandi_sdk"
client = GandiSDK.new({"apikey" => ENV["GANDI_APIKEY"]})

Client defaults

{
  "base": "https://api.gandi.net/v5",
  "auth": {
    "prefix": "Bearer"
  },
  "headers": {
    "content-type": "application/json"
  },
  "entity": {
    "access_token": {},
    "acme_account": {},
    "acme_domain": {},
    "acme_price": {},
    "acme_subscription": {},
    "billing_info": {},
    "billing_price": {},
    "certificate_dcv": {},
    "certificate_package": {},
    "certificate_pem": {},
    "certificate_renewal": {},
    "certificate_tag": {},
    "comment": {},
    "domain": {},
    "domain_availability": {},
    "domain_change_owner": {},
    "domain_claim": {},
    "domain_contact": {},
    "domain_dnskey": {},
    "domain_dnssec": {},
    "domain_host": {},
    "domain_livedns": {},
    "domain_nameserver": {},
    "domain_tag": {},
    "domain_transfer": {},
    "domain_webredir": {},
    "email_forward": {},
    "email_mailbox": {},
    "email_migration": {},
    "email_offer": {},
    "email_slot": {},
    "hosting_application": {},
    "hosting_instance": {},
    "hosting_vhost": {},
    "issued_certificate": {},
    "linked_zone": {},
    "linked_zone_deployment": {},
    "linked_zone_domain": {},
    "linked_zone_task": {},
    "livedns_axfr_slave": {},
    "livedns_axfr_tsig": {},
    "livedns_domain": {},
    "livedns_key": {},
    "livedns_nameserver": {},
    "livedns_record": {},
    "livedns_rrtype": {},
    "livedns_snapshot": {},
    "livedns_tsig_key": {},
    "livedns_zone": {},
    "mailbox": {},
    "mailbox_domain": {},
    "mailbox_forward": {},
    "mailbox_product": {},
    "mailbox_quota": {},
    "mailbox_slot": {},
    "organization": {},
    "organization_customer": {},
    "template": {},
    "template_dispatch": {},
    "tld": {},
    "user": {}
  }
}