All URIs are relative to http://keyfactor.example.com
Method | HTTP request | Description |
---|---|---|
LicenseGetCurrentLicense | Get /License | Gets the current license |
KeyfactorApiModelsLicenseLicenseResponse LicenseGetCurrentLicense(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
Gets the current license
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.LicenseApi.LicenseGetCurrentLicense(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LicenseApi.LicenseGetCurrentLicense``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `LicenseGetCurrentLicense`: KeyfactorApiModelsLicenseLicenseResponse
fmt.Fprintf(os.Stdout, "Response from `LicenseApi.LicenseGetCurrentLicense`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiLicenseGetCurrentLicenseRequest 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"] |
KeyfactorApiModelsLicenseLicenseResponse
- 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]