RecordsApi

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

Method
HTTP request
Description

Get /records

Retrieve all records from primary zones

Get /secondaryzones/{secondaryZoneId}/records

Retrieve records for a secondary zone

Delete /zones/{zoneId}/records/{recordId}

Delete a record

Get /zones/{zoneId}/records/{recordId}

Retrieve a record

Get /zones/{zoneId}/records

Retrieve records

Post /zones/{zoneId}/records

Create a record

Put /zones/{zoneId}/records/{recordId}

Update a record

RecordsGet

var result RecordReadList = RecordsGet(ctx)
                      .FilterZoneId(filterZoneId)
                      .FilterName(filterName)
                      .FilterState(filterState)
                      .FilterType(filterType)
                      .Offset(offset)
                      .Limit(limit)
                      .Execute()

Retrieve all records from primary zones

Example

Path Parameters

Other Parameters

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

Name
Type
Description
Notes

filterZoneId

string

Filter used to fetch only the records that contain specified zoneId.

filterName

string

Filter used to fetch only the records that contain specified record name.

filterState

Filter used to fetch only the records that are in certain state.

filterType

Filter used to fetch only the records with specified type.

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

RecordReadList

HTTP request headers

  • Content-Type: Not defined

  • Accept: application/json

SecondaryzonesRecordsGet

Retrieve records for a secondary zone

Example

Path Parameters

Name
Type
Description
Notes

ctx

context.Context

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

secondaryZoneId

string

The ID (UUID) of the DNS secondary zone.

Other Parameters

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

Name
Type
Description
Notes

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

SecondaryZoneRecordReadList

HTTP request headers

  • Content-Type: Not defined

  • Accept: application/json

ZonesRecordsDelete

Delete a record

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.

recordId

string

The ID (UUID) of the record.

Other Parameters

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

Name

Type

Description

Notes

Return type

map[string]interface{}

HTTP request headers

  • Content-Type: Not defined

  • Accept: application/json

ZonesRecordsFindById

Retrieve a record

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.

recordId

string

The ID (UUID) of the record.

Other Parameters

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

Name

Type

Description

Notes

Return type

RecordRead

HTTP request headers

  • Content-Type: Not defined

  • Accept: application/json

ZonesRecordsGet

Retrieve records

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 apiZonesRecordsGetRequest struct via the builder pattern

Name

Type

Description

Notes

Return type

RecordReadList

HTTP request headers

  • Content-Type: Not defined

  • Accept: application/json

ZonesRecordsPost

Create a record

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 apiZonesRecordsPostRequest struct via the builder pattern

Name
Type
Description
Notes

recordCreate

record

Return type

RecordRead

HTTP request headers

  • Content-Type: application/json

  • Accept: application/json

ZonesRecordsPut

Update a record

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.

recordId

string

The ID (UUID) of the DNS record.

Other Parameters

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

Name
Type
Description
Notes

recordEnsure

Return type

RecordRead

HTTP request headers

  • Content-Type: application/json

  • Accept: application/json

Last updated