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 |
InlineResponse201 DomainsDomainIdDnsPost(ctx, domainId, optional)
Add DNS record
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 are passed through a pointer to a DomainsDomainIdDnsPostOpts struct
Name | Type | Description | Notes |
---|
dnsRecord | optional.Interface of DnsRecord| |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DomainsDomainIdDnsRecordIdDelete(ctx, domainId, recordId)
Delete DNS record by ID
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 |
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DomainsDomainIdDnsRecordIdPut(ctx, domainId, recordId, optional)
Update DNS record by ID
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 are passed through a pointer to a DomainsDomainIdDnsRecordIdPutOpts struct
Name | Type | Description | Notes |
---|
dnsRecord | optional.Interface of DnsRecord| |
(empty response body)
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]DnsRecord GetDnsRecords(ctx, domainId, optional)
List DNS records
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 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 |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DnsRecord GetRecordById(ctx, domainId, recordId)
Find DNS record by ID
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 |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]