All URIs are relative to https://api.ote-godaddy.com
Method | HTTP request | Description |
---|---|---|
DomainsForwardsDelete | Delete /v2/customers/{customerId}/domains/forwards/{fqdn} | Submit a forwarding cancellation request for the given fqdn |
DomainsForwardsGet | Get /v2/customers/{customerId}/domains/forwards/{fqdn} | Retrieve the forwarding information for the given fqdn |
DomainsForwardsPut | Put /v2/customers/{customerId}/domains/forwards/{fqdn} | Modify the forwarding information for the given fqdn |
DomainsForwardsDelete(ctx, customerId, fqdn).Execute()
Submit a forwarding cancellation request for the given fqdn
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
customerId := "customerId_example" // string | The Customer identifier<br/> Note: For API Resellers, performing actions on behalf of your customers, you need to specify the Subaccount you're operating on behalf of; otherwise use your shopper id.
fqdn := "fqdn_example" // string | The fully qualified domain name whose forwarding details are to be deleted.
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.V2Api.DomainsForwardsDelete(context.Background(), customerId, fqdn).Execute()
if err.Error() != "" {
fmt.Fprintf(os.Stderr, "Error when calling `V2Api.DomainsForwardsDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
customerId | string | The Customer identifier<br/> Note: For API Resellers, performing actions on behalf of your customers, you need to specify the Subaccount you're operating on behalf of; otherwise use your shopper id. | |
fqdn | string | The fully qualified domain name whose forwarding details are to be deleted. |
Other parameters are passed through a pointer to a apiDomainsForwardsDeleteRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]DomainForwarding DomainsForwardsGet(ctx, customerId, fqdn).IncludeSubs(includeSubs).Execute()
Retrieve the forwarding information for the given fqdn
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
customerId := "customerId_example" // string | The Customer identifier<br/> Note: For API Resellers, performing actions on behalf of your customers, you need to specify the Subaccount you're operating on behalf of; otherwise use your shopper id.
fqdn := "fqdn_example" // string | The fully qualified domain name whose forwarding details are to be retrieved.
includeSubs := true // bool | Optionally include all sub domains if the fqdn specified is a domain and not a sub domain. (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.V2Api.DomainsForwardsGet(context.Background(), customerId, fqdn).IncludeSubs(includeSubs).Execute()
if err.Error() != "" {
fmt.Fprintf(os.Stderr, "Error when calling `V2Api.DomainsForwardsGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DomainsForwardsGet`: []DomainForwarding
fmt.Fprintf(os.Stdout, "Response from `V2Api.DomainsForwardsGet`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
customerId | string | The Customer identifier<br/> Note: For API Resellers, performing actions on behalf of your customers, you need to specify the Subaccount you're operating on behalf of; otherwise use your shopper id. | |
fqdn | string | The fully qualified domain name whose forwarding details are to be retrieved. |
Other parameters are passed through a pointer to a apiDomainsForwardsGetRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
includeSubs | bool | Optionally include all sub domains if the fqdn specified is a domain and not a sub domain. |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DomainsForwardsPut(ctx, customerId, fqdn).Body(body).Execute()
Modify the forwarding information for the given fqdn
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
customerId := "customerId_example" // string | The Customer identifier<br/> Note: For API Resellers, performing actions on behalf of your customers, you need to specify the Subaccount you're operating on behalf of; otherwise use your shopper id.
fqdn := "fqdn_example" // string | The fully qualified domain name whose forwarding details are to be modified.
body := *openapiclient.NewDomainForwardingCreate("Type_example", "Url_example") // DomainForwardingCreate | Domain forwarding rule to create or replace on the fqdn
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.V2Api.DomainsForwardsPut(context.Background(), customerId, fqdn).Body(body).Execute()
if err.Error() != "" {
fmt.Fprintf(os.Stderr, "Error when calling `V2Api.DomainsForwardsPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
customerId | string | The Customer identifier<br/> Note: For API Resellers, performing actions on behalf of your customers, you need to specify the Subaccount you're operating on behalf of; otherwise use your shopper id. | |
fqdn | string | The fully qualified domain name whose forwarding details are to be modified. |
Other parameters are passed through a pointer to a apiDomainsForwardsPutRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
body | DomainForwardingCreate | Domain forwarding rule to create or replace on the fqdn |
(empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]