All URIs are relative to https://napi.arvancloud.ir/cdn/4.0
Method | HTTP request | Description |
---|---|---|
EmailForwardingsActivate | Post /domains/{domain}/email-forwardings/activate | Activate email forwarding |
EmailForwardingsAliasesDestroy | Delete /domains/{domain}/email-forwardings/{emailForwardingId}/aliases/{emailForwardingAliasId} | Delete an alias |
EmailForwardingsAliasesIndex | Get /domains/{domain}/email-forwardings/{emailForwardingId}/aliases | List of email forwarding aliases for given domain |
EmailForwardingsAliasesStore | Post /domains/{domain}/email-forwardings/{emailForwardingId}/aliases | Create new alias |
EmailForwardingsAliasesToggleActivation | Patch /domains/{domain}/email-forwardings/{emailForwardingId}/aliases/{emailForwardingAliasId}/toggle-activation | Toggle alias activation |
EmailForwardingsAliasesUpdateRecipients | Patch /domains/{domain}/email-forwardings/{emailForwardingId}/aliases/{emailForwardingAliasId}/recipients | Update alias recipients |
EmailForwardingsCatchAllActivate | Post /domains/{domain}/email-forwardings/catch-all/activate | Activate email forwarding catch all |
EmailForwardingsCatchAllDeactivate | Post /domains/{domain}/email-forwardings/catch-all/deactivate | Deactivate email forwarding catch all |
EmailForwardingsDeactivate | Post /domains/{domain}/email-forwardings/deactivate | Deactivate email forwarding |
EmailForwardingsRecipientsDestroy | Delete /domains/{domain}/email-forwardings/{emailForwardingId}/recipients/{emailForwardingRecipientId} | Delete a recipient |
EmailForwardingsRecipientsIndex | Get /domains/{domain}/email-forwardings/{emailForwardingId}/recipients | List recipients of an email forwarding |
EmailForwardingsRecipientsResendVerification | Post /domains/{domain}/email-forwardings/{emailForwardingId}/recipients/{emailForwardingRecipientId}/resend-verification | Resend Verification |
EmailForwardingsRecipientsSetDefault | Patch /domains/{domain}/email-forwardings/{emailForwardingId}/recipients/{emailForwardingRecipientId}/set-default | Set default recipient |
EmailForwardingsRecipientsStore | Post /domains/{domain}/email-forwardings/{emailForwardingId}/recipients | Create new recipient |
EmailForwardingsRecipientsVerify | Post /domains/{domain}/email-forwardings/{emailForwardingId}/recipients/{emailForwardingRecipientId}/verify | Verify recipient |
EmailForwardingsStats | Get /domains/{domain}/email-forwardings/stats | Show stats of domain's email forwarding |
MessageResponse EmailForwardingsActivate(ctx, domain).Execute()
Activate email forwarding
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/hamidfzm/arvancloud-go/cdn"
)
func main() {
domain := "example.com" // string | Domain name
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EmailForwardingAPI.EmailForwardingsActivate(context.Background(), domain).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EmailForwardingAPI.EmailForwardingsActivate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `EmailForwardingsActivate`: MessageResponse
fmt.Fprintf(os.Stdout, "Response from `EmailForwardingAPI.EmailForwardingsActivate`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
domain | string | Domain name |
Other parameters are passed through a pointer to a apiEmailForwardingsActivateRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MessageResponse EmailForwardingsAliasesDestroy(ctx, domain, emailForwardingId, emailForwardingAliasId).Execute()
Delete an alias
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/hamidfzm/arvancloud-go/cdn"
)
func main() {
domain := "example.com" // string | Domain name
emailForwardingId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Email forwarding id
emailForwardingAliasId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Email forwarding alias id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EmailForwardingAPI.EmailForwardingsAliasesDestroy(context.Background(), domain, emailForwardingId, emailForwardingAliasId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EmailForwardingAPI.EmailForwardingsAliasesDestroy``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `EmailForwardingsAliasesDestroy`: MessageResponse
fmt.Fprintf(os.Stdout, "Response from `EmailForwardingAPI.EmailForwardingsAliasesDestroy`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
domain | string | Domain name | |
emailForwardingId | string | Email forwarding id | |
emailForwardingAliasId | string | Email forwarding alias id |
Other parameters are passed through a pointer to a apiEmailForwardingsAliasesDestroyRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EmailForwardingAliasesListData EmailForwardingsAliasesIndex(ctx, domain, emailForwardingId).PerPage(perPage).Page(page).Execute()
List of email forwarding aliases for given domain
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/hamidfzm/arvancloud-go/cdn"
)
func main() {
domain := "example.com" // string | Domain name
emailForwardingId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Email forwarding id
perPage := int32(56) // int32 | Set how many items returned per page (optional)
page := int32(56) // int32 | Set the desired page number (optional) (default to 1)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EmailForwardingAPI.EmailForwardingsAliasesIndex(context.Background(), domain, emailForwardingId).PerPage(perPage).Page(page).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EmailForwardingAPI.EmailForwardingsAliasesIndex``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `EmailForwardingsAliasesIndex`: EmailForwardingAliasesListData
fmt.Fprintf(os.Stdout, "Response from `EmailForwardingAPI.EmailForwardingsAliasesIndex`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
domain | string | Domain name | |
emailForwardingId | string | Email forwarding id |
Other parameters are passed through a pointer to a apiEmailForwardingsAliasesIndexRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
perPage | int32 | Set how many items returned per page | page | int32 | Set the desired page number | [default to 1]
EmailForwardingAliasesListData
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EmailForwardingsAliasesStore201Response EmailForwardingsAliasesStore(ctx, domain, emailForwardingId).EmailForwardingAliasesStore(emailForwardingAliasesStore).Execute()
Create new alias
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/hamidfzm/arvancloud-go/cdn"
)
func main() {
domain := "example.com" // string | Domain name
emailForwardingId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Email forwarding id
emailForwardingAliasesStore := *openapiclient.NewEmailForwardingAliasesStore("LocalPart_example", []string{"Recipients_example"}) // EmailForwardingAliasesStore | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EmailForwardingAPI.EmailForwardingsAliasesStore(context.Background(), domain, emailForwardingId).EmailForwardingAliasesStore(emailForwardingAliasesStore).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EmailForwardingAPI.EmailForwardingsAliasesStore``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `EmailForwardingsAliasesStore`: EmailForwardingsAliasesStore201Response
fmt.Fprintf(os.Stdout, "Response from `EmailForwardingAPI.EmailForwardingsAliasesStore`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
domain | string | Domain name | |
emailForwardingId | string | Email forwarding id |
Other parameters are passed through a pointer to a apiEmailForwardingsAliasesStoreRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
emailForwardingAliasesStore | EmailForwardingAliasesStore | |
EmailForwardingsAliasesStore201Response
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MessageResponse EmailForwardingsAliasesToggleActivation(ctx, domain, emailForwardingId, emailForwardingAliasId).EmailForwardingAliasesToggleActivation(emailForwardingAliasesToggleActivation).Execute()
Toggle alias activation
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/hamidfzm/arvancloud-go/cdn"
)
func main() {
domain := "example.com" // string | Domain name
emailForwardingId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Email forwarding id
emailForwardingAliasId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Email forwarding alias id
emailForwardingAliasesToggleActivation := *openapiclient.NewEmailForwardingAliasesToggleActivation(false) // EmailForwardingAliasesToggleActivation | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EmailForwardingAPI.EmailForwardingsAliasesToggleActivation(context.Background(), domain, emailForwardingId, emailForwardingAliasId).EmailForwardingAliasesToggleActivation(emailForwardingAliasesToggleActivation).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EmailForwardingAPI.EmailForwardingsAliasesToggleActivation``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `EmailForwardingsAliasesToggleActivation`: MessageResponse
fmt.Fprintf(os.Stdout, "Response from `EmailForwardingAPI.EmailForwardingsAliasesToggleActivation`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
domain | string | Domain name | |
emailForwardingId | string | Email forwarding id | |
emailForwardingAliasId | string | Email forwarding alias id |
Other parameters are passed through a pointer to a apiEmailForwardingsAliasesToggleActivationRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
emailForwardingAliasesToggleActivation | EmailForwardingAliasesToggleActivation | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MessageResponse EmailForwardingsAliasesUpdateRecipients(ctx, domain, emailForwardingId, emailForwardingAliasId).EmailForwardingAliasesRecipients(emailForwardingAliasesRecipients).Execute()
Update alias recipients
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/hamidfzm/arvancloud-go/cdn"
)
func main() {
domain := "example.com" // string | Domain name
emailForwardingId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Email forwarding id
emailForwardingAliasId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Email forwarding alias id
emailForwardingAliasesRecipients := *openapiclient.NewEmailForwardingAliasesRecipients([]string{"Recipients_example"}) // EmailForwardingAliasesRecipients | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EmailForwardingAPI.EmailForwardingsAliasesUpdateRecipients(context.Background(), domain, emailForwardingId, emailForwardingAliasId).EmailForwardingAliasesRecipients(emailForwardingAliasesRecipients).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EmailForwardingAPI.EmailForwardingsAliasesUpdateRecipients``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `EmailForwardingsAliasesUpdateRecipients`: MessageResponse
fmt.Fprintf(os.Stdout, "Response from `EmailForwardingAPI.EmailForwardingsAliasesUpdateRecipients`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
domain | string | Domain name | |
emailForwardingId | string | Email forwarding id | |
emailForwardingAliasId | string | Email forwarding alias id |
Other parameters are passed through a pointer to a apiEmailForwardingsAliasesUpdateRecipientsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
emailForwardingAliasesRecipients | EmailForwardingAliasesRecipients | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MessageResponse EmailForwardingsCatchAllActivate(ctx, domain).Execute()
Activate email forwarding catch all
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/hamidfzm/arvancloud-go/cdn"
)
func main() {
domain := "example.com" // string | Domain name
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EmailForwardingAPI.EmailForwardingsCatchAllActivate(context.Background(), domain).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EmailForwardingAPI.EmailForwardingsCatchAllActivate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `EmailForwardingsCatchAllActivate`: MessageResponse
fmt.Fprintf(os.Stdout, "Response from `EmailForwardingAPI.EmailForwardingsCatchAllActivate`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
domain | string | Domain name |
Other parameters are passed through a pointer to a apiEmailForwardingsCatchAllActivateRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MessageResponse EmailForwardingsCatchAllDeactivate(ctx, domain).Execute()
Deactivate email forwarding catch all
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/hamidfzm/arvancloud-go/cdn"
)
func main() {
domain := "example.com" // string | Domain name
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EmailForwardingAPI.EmailForwardingsCatchAllDeactivate(context.Background(), domain).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EmailForwardingAPI.EmailForwardingsCatchAllDeactivate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `EmailForwardingsCatchAllDeactivate`: MessageResponse
fmt.Fprintf(os.Stdout, "Response from `EmailForwardingAPI.EmailForwardingsCatchAllDeactivate`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
domain | string | Domain name |
Other parameters are passed through a pointer to a apiEmailForwardingsCatchAllDeactivateRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MessageResponse EmailForwardingsDeactivate(ctx, domain).Execute()
Deactivate email forwarding
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/hamidfzm/arvancloud-go/cdn"
)
func main() {
domain := "example.com" // string | Domain name
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EmailForwardingAPI.EmailForwardingsDeactivate(context.Background(), domain).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EmailForwardingAPI.EmailForwardingsDeactivate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `EmailForwardingsDeactivate`: MessageResponse
fmt.Fprintf(os.Stdout, "Response from `EmailForwardingAPI.EmailForwardingsDeactivate`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
domain | string | Domain name |
Other parameters are passed through a pointer to a apiEmailForwardingsDeactivateRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MessageResponse EmailForwardingsRecipientsDestroy(ctx, domain, emailForwardingId, emailForwardingRecipientId).Execute()
Delete a recipient
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/hamidfzm/arvancloud-go/cdn"
)
func main() {
domain := "example.com" // string | Domain name
emailForwardingId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Email forwarding id
emailForwardingRecipientId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Email forwarding recipient id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EmailForwardingAPI.EmailForwardingsRecipientsDestroy(context.Background(), domain, emailForwardingId, emailForwardingRecipientId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EmailForwardingAPI.EmailForwardingsRecipientsDestroy``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `EmailForwardingsRecipientsDestroy`: MessageResponse
fmt.Fprintf(os.Stdout, "Response from `EmailForwardingAPI.EmailForwardingsRecipientsDestroy`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
domain | string | Domain name | |
emailForwardingId | string | Email forwarding id | |
emailForwardingRecipientId | string | Email forwarding recipient id |
Other parameters are passed through a pointer to a apiEmailForwardingsRecipientsDestroyRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EmailForwardingRecipientsListData EmailForwardingsRecipientsIndex(ctx, domain, emailForwardingId).PerPage(perPage).Page(page).Execute()
List recipients of an email forwarding
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/hamidfzm/arvancloud-go/cdn"
)
func main() {
domain := "example.com" // string | Domain name
emailForwardingId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Email forwarding id
perPage := int32(56) // int32 | Set how many items returned per page (optional)
page := int32(56) // int32 | Set the desired page number (optional) (default to 1)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EmailForwardingAPI.EmailForwardingsRecipientsIndex(context.Background(), domain, emailForwardingId).PerPage(perPage).Page(page).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EmailForwardingAPI.EmailForwardingsRecipientsIndex``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `EmailForwardingsRecipientsIndex`: EmailForwardingRecipientsListData
fmt.Fprintf(os.Stdout, "Response from `EmailForwardingAPI.EmailForwardingsRecipientsIndex`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
domain | string | Domain name | |
emailForwardingId | string | Email forwarding id |
Other parameters are passed through a pointer to a apiEmailForwardingsRecipientsIndexRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
perPage | int32 | Set how many items returned per page | page | int32 | Set the desired page number | [default to 1]
EmailForwardingRecipientsListData
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MessageResponse EmailForwardingsRecipientsResendVerification(ctx, domain, emailForwardingId, emailForwardingRecipientId).Execute()
Resend Verification
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/hamidfzm/arvancloud-go/cdn"
)
func main() {
domain := "example.com" // string | Domain name
emailForwardingId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Email forwarding id
emailForwardingRecipientId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Email forwarding recipient id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EmailForwardingAPI.EmailForwardingsRecipientsResendVerification(context.Background(), domain, emailForwardingId, emailForwardingRecipientId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EmailForwardingAPI.EmailForwardingsRecipientsResendVerification``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `EmailForwardingsRecipientsResendVerification`: MessageResponse
fmt.Fprintf(os.Stdout, "Response from `EmailForwardingAPI.EmailForwardingsRecipientsResendVerification`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
domain | string | Domain name | |
emailForwardingId | string | Email forwarding id | |
emailForwardingRecipientId | string | Email forwarding recipient id |
Other parameters are passed through a pointer to a apiEmailForwardingsRecipientsResendVerificationRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MessageResponse EmailForwardingsRecipientsSetDefault(ctx, domain, emailForwardingId, emailForwardingRecipientId).Execute()
Set default recipient
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/hamidfzm/arvancloud-go/cdn"
)
func main() {
domain := "example.com" // string | Domain name
emailForwardingId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Email forwarding id
emailForwardingRecipientId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Email forwarding recipient id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EmailForwardingAPI.EmailForwardingsRecipientsSetDefault(context.Background(), domain, emailForwardingId, emailForwardingRecipientId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EmailForwardingAPI.EmailForwardingsRecipientsSetDefault``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `EmailForwardingsRecipientsSetDefault`: MessageResponse
fmt.Fprintf(os.Stdout, "Response from `EmailForwardingAPI.EmailForwardingsRecipientsSetDefault`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
domain | string | Domain name | |
emailForwardingId | string | Email forwarding id | |
emailForwardingRecipientId | string | Email forwarding recipient id |
Other parameters are passed through a pointer to a apiEmailForwardingsRecipientsSetDefaultRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EmailForwardingsRecipientsStore201Response EmailForwardingsRecipientsStore(ctx, domain, emailForwardingId).EmailForwardingRecipientsStore(emailForwardingRecipientsStore).Execute()
Create new recipient
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/hamidfzm/arvancloud-go/cdn"
)
func main() {
domain := "example.com" // string | Domain name
emailForwardingId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Email forwarding id
emailForwardingRecipientsStore := *openapiclient.NewEmailForwardingRecipientsStore("Email_example") // EmailForwardingRecipientsStore | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EmailForwardingAPI.EmailForwardingsRecipientsStore(context.Background(), domain, emailForwardingId).EmailForwardingRecipientsStore(emailForwardingRecipientsStore).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EmailForwardingAPI.EmailForwardingsRecipientsStore``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `EmailForwardingsRecipientsStore`: EmailForwardingsRecipientsStore201Response
fmt.Fprintf(os.Stdout, "Response from `EmailForwardingAPI.EmailForwardingsRecipientsStore`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
domain | string | Domain name | |
emailForwardingId | string | Email forwarding id |
Other parameters are passed through a pointer to a apiEmailForwardingsRecipientsStoreRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
emailForwardingRecipientsStore | EmailForwardingRecipientsStore | |
EmailForwardingsRecipientsStore201Response
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MessageResponse EmailForwardingsRecipientsVerify(ctx, domain, emailForwardingId, emailForwardingRecipientId).EmailForwardingRecipientsVerify(emailForwardingRecipientsVerify).Execute()
Verify recipient
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/hamidfzm/arvancloud-go/cdn"
)
func main() {
domain := "example.com" // string | Domain name
emailForwardingId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Email forwarding id
emailForwardingRecipientId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Email forwarding recipient id
emailForwardingRecipientsVerify := *openapiclient.NewEmailForwardingRecipientsVerify("Code_example") // EmailForwardingRecipientsVerify | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EmailForwardingAPI.EmailForwardingsRecipientsVerify(context.Background(), domain, emailForwardingId, emailForwardingRecipientId).EmailForwardingRecipientsVerify(emailForwardingRecipientsVerify).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EmailForwardingAPI.EmailForwardingsRecipientsVerify``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `EmailForwardingsRecipientsVerify`: MessageResponse
fmt.Fprintf(os.Stdout, "Response from `EmailForwardingAPI.EmailForwardingsRecipientsVerify`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
domain | string | Domain name | |
emailForwardingId | string | Email forwarding id | |
emailForwardingRecipientId | string | Email forwarding recipient id |
Other parameters are passed through a pointer to a apiEmailForwardingsRecipientsVerifyRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
emailForwardingRecipientsVerify | EmailForwardingRecipientsVerify | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EmailForwardingStatsData EmailForwardingsStats(ctx, domain).Execute()
Show stats of domain's email forwarding
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/hamidfzm/arvancloud-go/cdn"
)
func main() {
domain := "example.com" // string | Domain name
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EmailForwardingAPI.EmailForwardingsStats(context.Background(), domain).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EmailForwardingAPI.EmailForwardingsStats``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `EmailForwardingsStats`: EmailForwardingStatsData
fmt.Fprintf(os.Stdout, "Response from `EmailForwardingAPI.EmailForwardingsStats`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
domain | string | Domain name |
Other parameters are passed through a pointer to a apiEmailForwardingsStatsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]