Skip to content

Latest commit

 

History

History
144 lines (94 loc) · 5.75 KB

MacEnrollmentApi.md

File metadata and controls

144 lines (94 loc) · 5.75 KB

\MacEnrollmentApi

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

MacEnrollmentEditMacEnrollment

KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel MacEnrollmentEditMacEnrollment(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).MacEnrollmentSettings(macEnrollmentSettings).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()

Updates mac enrollment settings data

Example

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)
}

Path Parameters

Other Parameters

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"]

Return type

KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel

Authorization

basicAuth

HTTP request headers

  • 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]

MacEnrollmentMacEnrollment

KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel MacEnrollmentMacEnrollment(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()

Gets mac enrollment settings data

Example

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)
}

Path Parameters

Other Parameters

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"]

Return type

KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel

Authorization

basicAuth

HTTP request headers

  • 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]