All URIs are relative to https://api.azionapi.net
| Method | HTTP request | Description |
|---|---|---|
| GetZoneDnsSec | Get /intelligent_dns/{zone_id}/dnssec | Retrieve the DNSSEC zone status |
| PutZoneDnsSec | Patch /intelligent_dns/{zone_id}/dnssec | Update the DNSSEC zone |
GetOrPatchDnsSecResponse GetZoneDnsSec(ctx, zoneId).Execute()
Retrieve the DNSSEC zone status
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
zoneId := int32(56) // int32 | The hosted zone id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DNSSECAPI.GetZoneDnsSec(context.Background(), zoneId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DNSSECAPI.GetZoneDnsSec``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetZoneDnsSec`: GetOrPatchDnsSecResponse
fmt.Fprintf(os.Stdout, "Response from `DNSSECAPI.GetZoneDnsSec`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| zoneId | int32 | The hosted zone id |
Other parameters are passed through a pointer to a apiGetZoneDnsSecRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: application/json; version=3
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetOrPatchDnsSecResponse PutZoneDnsSec(ctx, zoneId).DnsSec(dnsSec).Execute()
Update the DNSSEC zone
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
zoneId := int32(56) // int32 | The hosted zone id
dnsSec := *openapiclient.NewDnsSec() // DnsSec | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DNSSECAPI.PutZoneDnsSec(context.Background(), zoneId).DnsSec(dnsSec).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DNSSECAPI.PutZoneDnsSec``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `PutZoneDnsSec`: GetOrPatchDnsSecResponse
fmt.Fprintf(os.Stdout, "Response from `DNSSECAPI.PutZoneDnsSec`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| zoneId | int32 | The hosted zone id |
Other parameters are passed through a pointer to a apiPutZoneDnsSecRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
dnsSec | DnsSec | |
- Content-Type: application/json
- Accept: application/json; version=3
[Back to top] [Back to API list] [Back to Model list] [Back to README]