All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
CreateTLSPolicyMap | Post /api/v1/add/tls-policy-map | Create TLS Policy Map |
DeleteTLSPolicyMap | Post /api/v1/delete/tls-policy-map | Delete TLS Policy Map |
GetTLSPolicyMap | Get /api/v1/get/tls-policy-map/{id} | Get TLS Policy Map |
CreateAlias200Response CreateTLSPolicyMap(ctx).CreateTLSPolicyMapRequest(createTLSPolicyMapRequest).Execute()
Create TLS Policy Map
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/shoopea/mailcow-go"
)
func main() {
createTLSPolicyMapRequest := *openapiclient.NewCreateTLSPolicyMapRequest() // CreateTLSPolicyMapRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OutgoingTLSPolicyMapOverridesApi.CreateTLSPolicyMap(context.Background()).CreateTLSPolicyMapRequest(createTLSPolicyMapRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OutgoingTLSPolicyMapOverridesApi.CreateTLSPolicyMap``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateTLSPolicyMap`: CreateAlias200Response
fmt.Fprintf(os.Stdout, "Response from `OutgoingTLSPolicyMapOverridesApi.CreateTLSPolicyMap`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiCreateTLSPolicyMapRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
createTLSPolicyMapRequest | CreateTLSPolicyMapRequest |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CreateAlias200Response DeleteTLSPolicyMap(ctx).DeleteTLSPolicyMapRequest(deleteTLSPolicyMapRequest).Execute()
Delete TLS Policy Map
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/shoopea/mailcow-go"
)
func main() {
deleteTLSPolicyMapRequest := *openapiclient.NewDeleteTLSPolicyMapRequest() // DeleteTLSPolicyMapRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OutgoingTLSPolicyMapOverridesApi.DeleteTLSPolicyMap(context.Background()).DeleteTLSPolicyMapRequest(deleteTLSPolicyMapRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OutgoingTLSPolicyMapOverridesApi.DeleteTLSPolicyMap``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DeleteTLSPolicyMap`: CreateAlias200Response
fmt.Fprintf(os.Stdout, "Response from `OutgoingTLSPolicyMapOverridesApi.DeleteTLSPolicyMap`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiDeleteTLSPolicyMapRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
deleteTLSPolicyMapRequest | DeleteTLSPolicyMapRequest |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetTLSPolicyMap(ctx, id).XAPIKey(xAPIKey).Execute()
Get TLS Policy Map
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/shoopea/mailcow-go"
)
func main() {
id := "all" // string | id of entry you want to get
xAPIKey := "api-key-string" // string | e.g. api-key-string (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.OutgoingTLSPolicyMapOverridesApi.GetTLSPolicyMap(context.Background(), id).XAPIKey(xAPIKey).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OutgoingTLSPolicyMapOverridesApi.GetTLSPolicyMap``: %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. | |
id | string | id of entry you want to get |
Other parameters are passed through a pointer to a apiGetTLSPolicyMapRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
xAPIKey | string | e.g. api-key-string |
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]