All URIs are relative to http://keyfactor.example.com
Method | HTTP request | Description |
---|---|---|
MacEnrollmentEditMacEnrollment | Put /MacEnrollment | Updates mac enrollment settings data |
MacEnrollmentMacEnrollment | Get /MacEnrollment | Gets mac enrollment settings data |
KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel MacEnrollmentEditMacEnrollment(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).MacEnrollmentSettings(macEnrollmentSettings).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
Updates mac enrollment settings data
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient")
macEnrollmentSettings := *openapiclient.NewKeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel() // KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel |
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.MacEnrollmentApi.MacEnrollmentEditMacEnrollment(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).MacEnrollmentSettings(macEnrollmentSettings).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `MacEnrollmentApi.MacEnrollmentEditMacEnrollment``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `MacEnrollmentEditMacEnrollment`: KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel
fmt.Fprintf(os.Stdout, "Response from `MacEnrollmentApi.MacEnrollmentEditMacEnrollment`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiMacEnrollmentEditMacEnrollmentRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
xKeyfactorRequestedWith | string | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] |
macEnrollmentSettings | KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel | ||
xKeyfactorApiVersion | string | Desired version of the api, if not provided defaults to v1 | [default to "1"] |
KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel
- 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]
KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel MacEnrollmentMacEnrollment(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
Gets mac enrollment settings 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.MacEnrollmentApi.MacEnrollmentMacEnrollment(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `MacEnrollmentApi.MacEnrollmentMacEnrollment``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `MacEnrollmentMacEnrollment`: KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel
fmt.Fprintf(os.Stdout, "Response from `MacEnrollmentApi.MacEnrollmentMacEnrollment`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiMacEnrollmentMacEnrollmentRequest 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"] |
KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel
- 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]