ZoneFilesApi
Method
HTTP request
Description
ZonesZonefileGet
var result = ZonesZonefileGet(ctx, zoneId)
.Execute()Example
package main
import (
"context"
"fmt"
"os"
dns "github.com/ionos-cloud/sdk-go-bundle/products/dns"
"github.com/ionos-cloud/sdk-go-bundle/shared"
)
func main() {
zoneId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The ID (UUID) of the DNS zone.
configuration := shared.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL")
apiClient := dns.NewAPIClient(configuration)
resource, resp, err := apiClient.ZoneFilesApi.ZonesZonefileGet(context.Background(), zoneId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ZoneFilesApi.ZonesZonefileGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp)
}
}Path Parameters
Name
Type
Description
Notes
Other Parameters
Return type
HTTP request headers
ZonesZonefilePut
Example
Path Parameters
Name
Type
Description
Notes
Other Parameters
Name
Type
Description
Notes
Return type
HTTP request headers
Last updated
