SecondaryZonesApi
All URIs are relative to https://dns.de-fra.ionos.com
SecondaryzonesAxfrGet
var result ZoneTransferPrimaryIpsStatus = SecondaryzonesAxfrGet(ctx, secondaryZoneId)
.Execute()Get status of zone transfer
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() {
secondaryZoneId := "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.SecondaryZonesApi.SecondaryzonesAxfrGet(context.Background(), secondaryZoneId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SecondaryZonesApi.SecondaryzonesAxfrGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp)
}
// response from `SecondaryzonesAxfrGet`: ZoneTransferPrimaryIpsStatus
fmt.Fprintf(os.Stdout, "Response from `SecondaryZonesApi.SecondaryzonesAxfrGet`: %v\n", resource)
}Path Parameters
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
secondaryZoneId
string
The ID (UUID) of the DNS zone.
Other Parameters
Other parameters are passed through a pointer to an apiSecondaryzonesAxfrGetRequest struct via the builder pattern
Name
Type
Description
Notes
Return type
HTTP request headers
Content-Type: Not defined
Accept: application/json
SecondaryzonesAxfrPut
Start zone transfer
Example
Path Parameters
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
secondaryZoneId
string
The ID (UUID) of the DNS zone.
Other Parameters
Other parameters are passed through a pointer to an apiSecondaryzonesAxfrPutRequest struct via the builder pattern
Name
Type
Description
Notes
Return type
map[string]interface{}
HTTP request headers
Content-Type: Not defined
Accept: application/json
SecondaryzonesDelete
Delete a secondary zone
Example
Path Parameters
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
secondaryZoneId
string
The ID (UUID) of the DNS zone.
Other Parameters
Other parameters are passed through a pointer to an apiSecondaryzonesDeleteRequest struct via the builder pattern
Name
Type
Description
Notes
Return type
map[string]interface{}
HTTP request headers
Content-Type: Not defined
Accept: application/json
SecondaryzonesFindById
Retrieve a secondary zone
Example
Path Parameters
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
secondaryZoneId
string
The ID (UUID) of the DNS zone.
Other Parameters
Other parameters are passed through a pointer to an apiSecondaryzonesFindByIdRequest struct via the builder pattern
Name
Type
Description
Notes
Return type
HTTP request headers
Content-Type: Not defined
Accept: application/json
SecondaryzonesGet
Retrieve secondary zones
Example
Path Parameters
Other Parameters
Other parameters are passed through a pointer to an apiSecondaryzonesGetRequest struct via the builder pattern
filterZoneName
string
Filter used to fetch only the zones that contain the specified zone name.
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
HTTP request headers
Content-Type: Not defined
Accept: application/json
SecondaryzonesPost
Create a secondary zone
Example
Path Parameters
Other Parameters
Other parameters are passed through a pointer to an apiSecondaryzonesPostRequest struct via the builder pattern
Return type
HTTP request headers
Content-Type: application/json
Accept: application/json
SecondaryzonesPut
Update a secondary zone
Example
Path Parameters
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
secondaryZoneId
string
The ID (UUID) of the DNS zone.
Other Parameters
Other parameters are passed through a pointer to an apiSecondaryzonesPutRequest struct via the builder pattern
Return type
HTTP request headers
Content-Type: application/json
Accept: application/json
Last updated
