Skip to content

Latest commit

 

History

History
211 lines (121 loc) · 5.88 KB

DnsApi.md

File metadata and controls

211 lines (121 loc) · 5.88 KB

\DnsApi

All URIs are relative to https://api.domeneshop.no/v0

Method HTTP request Description
DomainsDomainIdDnsPost Post /domains/{domainId}/dns Add DNS record
DomainsDomainIdDnsRecordIdDelete Delete /domains/{domainId}/dns/{recordId} Delete DNS record by ID
DomainsDomainIdDnsRecordIdPut Put /domains/{domainId}/dns/{recordId} Update DNS record by ID
GetDnsRecords Get /domains/{domainId}/dns List DNS records
GetRecordById Get /domains/{domainId}/dns/{recordId} Find DNS record by ID

DomainsDomainIdDnsPost

InlineResponse201 DomainsDomainIdDnsPost(ctx, domainId, optional)

Add DNS record

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
domainId int32 ID of the domain
optional *DomainsDomainIdDnsPostOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a DomainsDomainIdDnsPostOpts struct

Name Type Description Notes

dnsRecord | optional.Interface of DnsRecord| |

Return type

InlineResponse201

Authorization

basicAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DomainsDomainIdDnsRecordIdDelete

DomainsDomainIdDnsRecordIdDelete(ctx, domainId, recordId)

Delete DNS record by ID

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
domainId int32 ID of the domain
recordId int32 ID of DNS record

Return type

(empty response body)

Authorization

basicAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DomainsDomainIdDnsRecordIdPut

DomainsDomainIdDnsRecordIdPut(ctx, domainId, recordId, optional)

Update DNS record by ID

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
domainId int32 ID of the domain
recordId int32 ID of DNS record
optional *DomainsDomainIdDnsRecordIdPutOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a DomainsDomainIdDnsRecordIdPutOpts struct

Name Type Description Notes

dnsRecord | optional.Interface of DnsRecord| |

Return type

(empty response body)

Authorization

basicAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetDnsRecords

[]DnsRecord GetDnsRecords(ctx, domainId, optional)

List DNS records

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
domainId int32 ID of the domain
optional *GetDnsRecordsOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a GetDnsRecordsOpts struct

Name Type Description Notes

host | optional.String| Only return records whose `host` field matches this string | type_ | optional.String| Only return records whose `type` field matches this string |

Return type

[]DnsRecord

Authorization

basicAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetRecordById

DnsRecord GetRecordById(ctx, domainId, recordId)

Find DNS record by ID

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
domainId int32 ID of the domain
recordId int32 ID of DNS record

Return type

DnsRecord

Authorization

basicAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]