All URIs are relative to https://api.domeneshop.no/v0
Method | HTTP request | Description |
---|---|---|
DomainsDomainIdForwardsGet | Get /domains/{domainId}/forwards/ | List forwards |
DomainsDomainIdForwardsHostDelete | Delete /domains/{domainId}/forwards/{host} | Delete forward by host |
DomainsDomainIdForwardsHostGet | Get /domains/{domainId}/forwards/{host} | Find forward by host |
DomainsDomainIdForwardsHostPut | Put /domains/{domainId}/forwards/{host} | Update forward by host |
DomainsDomainIdForwardsPost | Post /domains/{domainId}/forwards/ | Add forward |
[]HttpForward DomainsDomainIdForwardsGet(ctx, domainId)
List forwards
List all forwards for the specified domain.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
domainId | int32 | ID of the domain |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DomainsDomainIdForwardsHostDelete(ctx, domainId, host)
Delete forward by host
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
domainId | int32 | ID of the domain | |
host | string | Subdomain of the forward, `@` for the root domain |
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
HttpForward DomainsDomainIdForwardsHostGet(ctx, domainId, host)
Find forward by host
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
domainId | int32 | ID of the domain | |
host | string | Subdomain of the forward, `@` for the root domain |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
HttpForward DomainsDomainIdForwardsHostPut(ctx, domainId, host, optional)
Update forward by host
Update a forwarding for the specified domain, to a given URL. The host
field must not be changed. In that case, delete the existing forwarding and recreate it for the new host/subdomain.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
domainId | int32 | ID of the domain | |
host | string | Subdomain of the forward, `@` for the root domain | |
optional | *DomainsDomainIdForwardsHostPutOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a DomainsDomainIdForwardsHostPutOpts struct
Name | Type | Description | Notes |
---|
httpForward | optional.Interface of HttpForward| |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DomainsDomainIdForwardsPost(ctx, domainId)
Add forward
Create a forwarding for the specified domain, to a given URL. The forward must not collide with any existing forwarding or DNS record of types A
, AAAA
, ANAME
or CNAME
.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
domainId | int32 | ID of the domain |
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]