Skip to content

Latest commit

 

History

History
148 lines (94 loc) · 5.15 KB

File metadata and controls

148 lines (94 loc) · 5.15 KB

\MacEnrollmentApi

All URIs are relative to http://keyfactor.example.com

Method HTTP request Description
GetMacEnrollment GET /MacEnrollment Gets mac enrollment settings data
UpdateMacEnrollment PUT /MacEnrollment Updates mac enrollment settings data

GetMacEnrollment

MacEnrollmentMacEnrollmentAPIModel NewGetMacEnrollmentRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()

Gets mac enrollment settings data

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient]
    xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional)

    configuration := openapiclient.NewConfiguration(make(map[string]string))
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.MacEnrollmentApi.NewGetMacEnrollmentRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `MacEnrollmentApi.GetMacEnrollment``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `GetMacEnrollment`: MacEnrollmentMacEnrollmentAPIModel
    fmt.Fprintf(os.Stdout, "Response from `MacEnrollmentApi.GetMacEnrollment`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiGetMacEnrollmentRequest struct via the builder pattern

Name Type Description Notes
xKeyfactorRequestedWith string Type of the request [XMLHttpRequest, APIClient]
xKeyfactorApiVersion string Desired version of the api, if not provided defaults to v1

Return type

MacEnrollmentMacEnrollmentAPIModel

Authorization

basicAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: text/plain, application/json, text/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

UpdateMacEnrollment

MacEnrollmentMacEnrollmentAPIModel NewUpdateMacEnrollmentRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).MacEnrollmentMacEnrollmentAPIModel(macEnrollmentMacEnrollmentAPIModel).Execute()

Updates mac enrollment settings data

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient]
    xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional)
    macEnrollmentMacEnrollmentAPIModel := *openapiclient.NewMacEnrollmentMacEnrollmentAPIModel() // MacEnrollmentMacEnrollmentAPIModel |  (optional)

    configuration := openapiclient.NewConfiguration(make(map[string]string))
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.MacEnrollmentApi.NewUpdateMacEnrollmentRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).MacEnrollmentMacEnrollmentAPIModel(macEnrollmentMacEnrollmentAPIModel).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `MacEnrollmentApi.UpdateMacEnrollment``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `UpdateMacEnrollment`: MacEnrollmentMacEnrollmentAPIModel
    fmt.Fprintf(os.Stdout, "Response from `MacEnrollmentApi.UpdateMacEnrollment`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiUpdateMacEnrollmentRequest struct via the builder pattern

Name Type Description Notes
xKeyfactorRequestedWith string Type of the request [XMLHttpRequest, APIClient]
xKeyfactorApiVersion string Desired version of the api, if not provided defaults to v1
macEnrollmentMacEnrollmentAPIModel MacEnrollmentMacEnrollmentAPIModel

Return type

MacEnrollmentMacEnrollmentAPIModel

Authorization

basicAuth

HTTP request headers

  • Content-Type: application/json-patch+json, application/json, text/json, application/*+json
  • Accept: text/plain, application/json, text/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]