All URIs are relative to http://keyfactor.example.com
Method | HTTP request | Description |
---|---|---|
SMTPSMTP | Get /SMTP | Gets SMTP profile data |
SMTPTestSMTP | Post /SMTP/Test | Tests SMTP profile data |
SMTPUpdateSMTP | Put /SMTP | Updates SMTP profile data |
KeyfactorAPIModelsSMTPSMTPResponse SMTPSMTP(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
Gets SMTP profile data
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient")
xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1")
configuration := openapiclient.NewConfiguration(make(map[string]string))
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SMTPApi.SMTPSMTP(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SMTPApi.SMTPSMTP``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SMTPSMTP`: KeyfactorAPIModelsSMTPSMTPResponse
fmt.Fprintf(os.Stdout, "Response from `SMTPApi.SMTPSMTP`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSMTPSMTPRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
xKeyfactorRequestedWith | string | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] |
xKeyfactorApiVersion | string | Desired version of the api, if not provided defaults to v1 | [default to "1"] |
KeyfactorAPIModelsSMTPSMTPResponse
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
KeyfactorAPIModelsSMTPSMTPTestResponse SMTPTestSMTP(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).SmtpProfile(smtpProfile).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
Tests SMTP profile data
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient")
smtpProfile := *openapiclient.NewKeyfactorAPIModelsSMTPSMTPTestRequest() // KeyfactorAPIModelsSMTPSMTPTestRequest |
xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1")
configuration := openapiclient.NewConfiguration(make(map[string]string))
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SMTPApi.SMTPTestSMTP(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).SmtpProfile(smtpProfile).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SMTPApi.SMTPTestSMTP``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SMTPTestSMTP`: KeyfactorAPIModelsSMTPSMTPTestResponse
fmt.Fprintf(os.Stdout, "Response from `SMTPApi.SMTPTestSMTP`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSMTPTestSMTPRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
xKeyfactorRequestedWith | string | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] |
smtpProfile | KeyfactorAPIModelsSMTPSMTPTestRequest | ||
xKeyfactorApiVersion | string | Desired version of the api, if not provided defaults to v1 | [default to "1"] |
KeyfactorAPIModelsSMTPSMTPTestResponse
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
KeyfactorAPIModelsSMTPSMTPResponse SMTPUpdateSMTP(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).SmtpProfile(smtpProfile).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
Updates SMTP profile data
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient")
smtpProfile := *openapiclient.NewKeyfactorAPIModelsSMTPSMTPRequest() // KeyfactorAPIModelsSMTPSMTPRequest |
xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1")
configuration := openapiclient.NewConfiguration(make(map[string]string))
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SMTPApi.SMTPUpdateSMTP(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).SmtpProfile(smtpProfile).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SMTPApi.SMTPUpdateSMTP``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SMTPUpdateSMTP`: KeyfactorAPIModelsSMTPSMTPResponse
fmt.Fprintf(os.Stdout, "Response from `SMTPApi.SMTPUpdateSMTP`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSMTPUpdateSMTPRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
xKeyfactorRequestedWith | string | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] |
smtpProfile | KeyfactorAPIModelsSMTPSMTPRequest | ||
xKeyfactorApiVersion | string | Desired version of the api, if not provided defaults to v1 | [default to "1"] |
KeyfactorAPIModelsSMTPSMTPResponse
- Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
- Accept: application/json, text/json, application/xml, text/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]