Go API client for IONOS hosting api

Working with the API Every endpoint uses the X-API-Key header for authorization, to obtain the key please see the Official Documentation.

Overview

  • API version: 1.0.0
  • Package version: 1.0.0
  • Build package: io.swagger.codegen.v3.generators.go.GoClientCodegen

Documentation for API Endpoints

All URIs are relative to https://api.hosting.ionos.com/ssl

Class Method HTTP request Description
DynamicDNSApi ActivateDynDns Post /v1/dyndns
DynamicDNSApi DisableDynDns Delete /v1/dyndns
DynamicDNSApi V1DyndnsBulkIdDelete Delete /v1/dyndns/{bulkId}
DynamicDNSApi V1DyndnsBulkIdPut Put /v1/dyndns/{bulkId}
RecordsApi DeleteRecord Delete /v1/zones/{zoneId}/records/{recordId}
RecordsApi GetRecord Get /v1/zones/{zoneId}/records/{recordId}
RecordsApi UpdateRecord Put /v1/zones/{zoneId}/records/{recordId}
ZonesApi GetZone Get /v1/zones/{zoneId}
ZonesApi GetZones Get /v1/zones
ZonesApi PatchZone Patch /v1/zones/{zoneId}
ZonesApi UpdateZone Put /v1/zones/{zoneId}
CertificatesApi CreateCertificate Post /v1/certificates Create a new certificate
CertificatesApi GetCertificateDetails Get /v1/certificates/{id} Get certificate details
CertificatesApi GetCertificates Get /v1/certificates Get certificates
CertificatesApi UnassignCertificate Delete /v1/certificates/{id} Unassign

Documentation For Models

Documentation For Authorization

X-API-Key

  • Type: API key

Example

auth := context.WithValue(context.Background(), sw.ContextAPIKey, sw.APIKey{
	Key: "APIKEY",
	Prefix: "Bearer", // Omit if not necessary.
})
r, err := client.Service.Operation(auth, args)