DNSSECApi

All URIs are relative to https://dns.de-fra.ionos.com

Method
HTTP request
Description

Delete /zones/{zoneId}/keys

Delete a DNSSEC key

Get /zones/{zoneId}/keys

Retrieve a DNSSEC key

Post /zones/{zoneId}/keys

Create a DNSSEC key

ZonesKeysDelete

var result map[string]interface{} = ZonesKeysDelete(ctx, zoneId)
                      .Execute()

Delete a DNSSEC key

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.DNSSECApi.ZonesKeysDelete(context.Background(), zoneId).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `DNSSECApi.ZonesKeysDelete``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp)
    }
    // response from `ZonesKeysDelete`: map[string]interface{}
    fmt.Fprintf(os.Stdout, "Response from `DNSSECApi.ZonesKeysDelete`: %v\n", resource)
}

Path Parameters

Name
Type
Description
Notes

ctx

context.Context

context for authentication, logging, cancellation, deadlines, tracing, etc.

zoneId

string

The ID (UUID) of the DNS zone.

Other Parameters

Other parameters are passed through a pointer to an apiZonesKeysDeleteRequest struct via the builder pattern

Name

Type

Description

Notes

Return type

map[string]interface{}

HTTP request headers

  • Content-Type: Not defined

  • Accept: application/json

ZonesKeysGet

Retrieve a DNSSEC key

Example

Path Parameters

Name
Type
Description
Notes

ctx

context.Context

context for authentication, logging, cancellation, deadlines, tracing, etc.

zoneId

string

The ID (UUID) of the DNS zone.

Other Parameters

Other parameters are passed through a pointer to an apiZonesKeysGetRequest struct via the builder pattern

Name

Type

Description

Notes

Return type

DnssecKeyReadList

HTTP request headers

  • Content-Type: Not defined

  • Accept: application/json

ZonesKeysPost

Create a DNSSEC key

Example

Path Parameters

Name
Type
Description
Notes

ctx

context.Context

context for authentication, logging, cancellation, deadlines, tracing, etc.

zoneId

string

The ID (UUID) of the DNS zone.

Other Parameters

Other parameters are passed through a pointer to an apiZonesKeysPostRequest struct via the builder pattern

Name
Type
Description
Notes

dnssecKeyCreate

Enable DNSSEC request.

Return type

DnssecKeyReadCreation

HTTP request headers

  • Content-Type: application/json

  • Accept: application/json

Last updated