ReverseRecordsApi

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

Method
HTTP request
Description

Delete /reverserecords/{reverserecordId}

Delete a reverse DNS record

Get /reverserecords/{reverserecordId}

Retrieve a reverse DNS record

Get /reverserecords

Retrieves existing reverse DNS records

Post /reverserecords

Create a reverse DNS record

Put /reverserecords/{reverserecordId}

Update a reverse DNS record

ReverserecordsDelete

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

Delete a reverse DNS record

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() {
    reverserecordId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The ID (UUID) of the reverse DNS record.

    configuration := shared.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL")
    apiClient := dns.NewAPIClient(configuration)
    resp, err := apiClient.ReverseRecordsApi.ReverserecordsDelete(context.Background(), reverserecordId).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `ReverseRecordsApi.ReverserecordsDelete``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp)
    }
    // response from `ReverserecordsDelete`: map[string]interface{}
    fmt.Fprintf(os.Stdout, "Response from `ReverseRecordsApi.ReverserecordsDelete`: %v\n", resource)
}

Path Parameters

Name
Type
Description
Notes

ctx

context.Context

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

reverserecordId

string

The ID (UUID) of the reverse DNS record.

Other Parameters

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

Name

Type

Description

Notes

Return type

map[string]interface{}

HTTP request headers

  • Content-Type: Not defined

  • Accept: application/json

ReverserecordsFindById

Retrieve a reverse DNS record

Example

Path Parameters

Name
Type
Description
Notes

ctx

context.Context

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

reverserecordId

string

The ID (UUID) of the reverse DNS record.

Other Parameters

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

Name

Type

Description

Notes

Return type

ReverseRecordRead

HTTP request headers

  • Content-Type: Not defined

  • Accept: application/json

ReverserecordsGet

Retrieves existing reverse DNS records

Example

Path Parameters

Other Parameters

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

Name
Type
Description
Notes

filterRecordIp

Filter is used to fetch only the reverse records for the specified IPs. It's an array of IP records. IP can be any valid IPv4 or IPv6 address. Parameter has to be sent in query as many times as values (filter.recordIp=1.2.3.4&filter.recordIp=2.3.4.5)

offset

int32

The first element (of the total list of elements) to include in the response. Use together with limit for pagination.

[default to 0]

limit

int32

The maximum number of elements to return. Use together with offset for pagination.

[default to 100]

Return type

ReverseRecordsReadList

HTTP request headers

  • Content-Type: Not defined

  • Accept: application/json

ReverserecordsPost

Create a reverse DNS record

Example

Path Parameters

Other Parameters

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

Name
Type
Description
Notes

reverseRecordCreate

reverserecord

Return type

ReverseRecordRead

HTTP request headers

  • Content-Type: application/json

  • Accept: application/json

ReverserecordsPut

Update a reverse DNS record

Example

Path Parameters

Name
Type
Description
Notes

ctx

context.Context

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

reverserecordId

string

The ID (UUID) of the reverse DNS record.

Other Parameters

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

Name
Type
Description
Notes

reverseRecordEnsure

Return type

ReverseRecordRead

HTTP request headers

  • Content-Type: application/json

  • Accept: application/json

Last updated