All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
CreateDomainAdminUser | Post /api/v1/add/domain-admin | Create Domain Admin user |
DeleteDomainAdmin | Post /api/v1/delete/domain-admin | Delete Domain Admin |
EditDomainAdminACL | Post /api/v1/edit/da-acl | Edit Domain Admin ACL |
EditDomainAdminUser | Post /api/v1/edit/domain-admin | Edit Domain Admin user |
GetDomainAdmins | Get /api/v1/get/domain-admin/all | Get Domain Admins |
CreateAlias200Response CreateDomainAdminUser(ctx).CreateDomainAdminUserRequest(createDomainAdminUserRequest).Execute()
Create Domain Admin user
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/shoopea/mailcow-go"
)
func main() {
createDomainAdminUserRequest := *openapiclient.NewCreateDomainAdminUserRequest() // CreateDomainAdminUserRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DomainAdminApi.CreateDomainAdminUser(context.Background()).CreateDomainAdminUserRequest(createDomainAdminUserRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DomainAdminApi.CreateDomainAdminUser``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateDomainAdminUser`: CreateAlias200Response
fmt.Fprintf(os.Stdout, "Response from `DomainAdminApi.CreateDomainAdminUser`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiCreateDomainAdminUserRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
createDomainAdminUserRequest | CreateDomainAdminUserRequest |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CreateAlias200Response DeleteDomainAdmin(ctx).DeleteDomainAdminRequest(deleteDomainAdminRequest).Execute()
Delete Domain Admin
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/shoopea/mailcow-go"
)
func main() {
deleteDomainAdminRequest := *openapiclient.NewDeleteDomainAdminRequest() // DeleteDomainAdminRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DomainAdminApi.DeleteDomainAdmin(context.Background()).DeleteDomainAdminRequest(deleteDomainAdminRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DomainAdminApi.DeleteDomainAdmin``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DeleteDomainAdmin`: CreateAlias200Response
fmt.Fprintf(os.Stdout, "Response from `DomainAdminApi.DeleteDomainAdmin`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiDeleteDomainAdminRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
deleteDomainAdminRequest | DeleteDomainAdminRequest |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CreateAlias200Response EditDomainAdminACL(ctx).EditDomainAdminACLRequest(editDomainAdminACLRequest).Execute()
Edit Domain Admin ACL
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/shoopea/mailcow-go"
)
func main() {
editDomainAdminACLRequest := *openapiclient.NewEditDomainAdminACLRequest() // EditDomainAdminACLRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DomainAdminApi.EditDomainAdminACL(context.Background()).EditDomainAdminACLRequest(editDomainAdminACLRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DomainAdminApi.EditDomainAdminACL``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `EditDomainAdminACL`: CreateAlias200Response
fmt.Fprintf(os.Stdout, "Response from `DomainAdminApi.EditDomainAdminACL`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiEditDomainAdminACLRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
editDomainAdminACLRequest | EditDomainAdminACLRequest |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EditDomainAdminUser200Response EditDomainAdminUser(ctx).EditDomainAdminUserRequest(editDomainAdminUserRequest).Execute()
Edit Domain Admin user
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/shoopea/mailcow-go"
)
func main() {
editDomainAdminUserRequest := *openapiclient.NewEditDomainAdminUserRequest() // EditDomainAdminUserRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DomainAdminApi.EditDomainAdminUser(context.Background()).EditDomainAdminUserRequest(editDomainAdminUserRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DomainAdminApi.EditDomainAdminUser``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `EditDomainAdminUser`: EditDomainAdminUser200Response
fmt.Fprintf(os.Stdout, "Response from `DomainAdminApi.EditDomainAdminUser`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiEditDomainAdminUserRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
editDomainAdminUserRequest | EditDomainAdminUserRequest |
EditDomainAdminUser200Response
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetDomainAdmins(ctx).Execute()
Get Domain Admins
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/shoopea/mailcow-go"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.DomainAdminApi.GetDomainAdmins(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DomainAdminApi.GetDomainAdmins``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetDomainAdminsRequest struct via the builder pattern
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]