All URIs are relative to http://keyfactor.example.com
| Method | HTTP request | Description |
|---|---|---|
| CreateEnrollmentCSR | POST /Enrollment/CSR | Performs a CSR Enrollment based upon the provided request |
| CreateEnrollmentCSRParse | POST /Enrollment/CSR/Parse | Parses the provided CSR and returns the properties |
| CreateEnrollmentPFX | POST /Enrollment/PFX | Performs a PFX Enrollment based upon the provided request |
| CreateEnrollmentPFXDeploy | POST /Enrollment/PFX/Deploy | Creates management jobs to install a newly enrolled pfx in to one or more certificate stores |
| CreateEnrollmentPFXReplace | POST /Enrollment/PFX/Replace | Creates management jobs to install a newly enrolled pfx into the same certificate stores as the previous certificate |
| CreateEnrollmentRenew | POST /Enrollment/Renew | Performs a renewal based upon the passed in request |
| GetEnrollmentAvailableRenewalIdById | GET /Enrollment/AvailableRenewal/Id/{id} | Returns the type of renewal available for a given certificate. |
| GetEnrollmentAvailableRenewalThumbprintThumbprint | GET /Enrollment/AvailableRenewal/Thumbprint/{thumbprint} | Returns the type of renewal available for a given certificate. |
| GetEnrollmentCSRContextMy | GET /Enrollment/CSR/Context/My | Returns the list of available CSR enrollment templates and their associated CA mappings that the calling user has permissions on |
| GetEnrollmentPFXContextMy | GET /Enrollment/PFX/Context/My | Returns the list of available PFX enrollment templates and their associated CA mappings that the calling user has permissions on |
| GetEnrollmentSettingsById | GET /Enrollment/Settings/{id} | Gets the template settings to use during enrollment. The response will be the resolved values for the settings. If there is a template specific setting, the template specific setting will be used in the response. If there is not a template specific setting, the global setting will be used in the response. |
CSSCMSDataModelModelsEnrollmentCSREnrollmentResponse NewCreateEnrollmentCSRRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XCertificateformat(xCertificateformat).ForceEnroll(forceEnroll).XKeyfactorApiVersion(xKeyfactorApiVersion).EnrollmentCSREnrollmentRequest(enrollmentCSREnrollmentRequest).Execute()
Performs a CSR Enrollment based upon the provided request
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient]
xCertificateformat := "PEM" // string | Desired format [PEM, DER]
forceEnroll := true // bool | (optional) (default to false)
xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional)
enrollmentCSREnrollmentRequest := *openapiclient.NewEnrollmentCSREnrollmentRequest("CSR_example") // EnrollmentCSREnrollmentRequest | Information needed to perform the CSR Enrollment (optional)
configuration := openapiclient.NewConfiguration(make(map[string]string))
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EnrollmentApi.NewCreateEnrollmentCSRRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XCertificateformat(xCertificateformat).ForceEnroll(forceEnroll).XKeyfactorApiVersion(xKeyfactorApiVersion).EnrollmentCSREnrollmentRequest(enrollmentCSREnrollmentRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EnrollmentApi.CreateEnrollmentCSR``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateEnrollmentCSR`: CSSCMSDataModelModelsEnrollmentCSREnrollmentResponse
fmt.Fprintf(os.Stdout, "Response from `EnrollmentApi.CreateEnrollmentCSR`: %v\n", resp)
}Other parameters are passed through a pointer to a apiCreateEnrollmentCSRRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| xKeyfactorRequestedWith | string | Type of the request [XMLHttpRequest, APIClient] | |
| xCertificateformat | string | Desired format [PEM, DER] | |
| forceEnroll | bool | [default to false] | |
| xKeyfactorApiVersion | string | Desired version of the api, if not provided defaults to v1 | |
| enrollmentCSREnrollmentRequest | EnrollmentCSREnrollmentRequest | Information needed to perform the CSR Enrollment |
CSSCMSDataModelModelsEnrollmentCSREnrollmentResponse
- 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]
[]string NewCreateEnrollmentCSRParseRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsCSRContents(cSSCMSDataModelModelsCSRContents).Execute()
Parses the provided CSR and returns the properties
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)
cSSCMSDataModelModelsCSRContents := *openapiclient.NewCSSCMSDataModelModelsCSRContents("CSR_example") // CSSCMSDataModelModelsCSRContents | CSR to be parsed (optional)
configuration := openapiclient.NewConfiguration(make(map[string]string))
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EnrollmentApi.NewCreateEnrollmentCSRParseRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsCSRContents(cSSCMSDataModelModelsCSRContents).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EnrollmentApi.CreateEnrollmentCSRParse``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateEnrollmentCSRParse`: []string
fmt.Fprintf(os.Stdout, "Response from `EnrollmentApi.CreateEnrollmentCSRParse`: %v\n", resp)
}Other parameters are passed through a pointer to a apiCreateEnrollmentCSRParseRequest 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 | |
| cSSCMSDataModelModelsCSRContents | CSSCMSDataModelModelsCSRContents | CSR to be parsed |
[]string
- 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]
CSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse NewCreateEnrollmentPFXRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XCertificateformat(xCertificateformat).XKeyfactorApiVersion(xKeyfactorApiVersion).EnrollmentPFXEnrollmentRequest(enrollmentPFXEnrollmentRequest).Execute()
Performs a PFX Enrollment based upon the provided request
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient]
xCertificateformat := "PFX" // string | Desired format [PFX, ZIP, PEM, JKS, STORE, REPLACE]
xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional)
enrollmentPFXEnrollmentRequest := *openapiclient.NewEnrollmentPFXEnrollmentRequest() // EnrollmentPFXEnrollmentRequest | The information needed to perform the PFX Enrollment (optional)
configuration := openapiclient.NewConfiguration(make(map[string]string))
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EnrollmentApi.NewCreateEnrollmentPFXRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XCertificateformat(xCertificateformat).XKeyfactorApiVersion(xKeyfactorApiVersion).EnrollmentPFXEnrollmentRequest(enrollmentPFXEnrollmentRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EnrollmentApi.CreateEnrollmentPFX``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateEnrollmentPFX`: CSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse
fmt.Fprintf(os.Stdout, "Response from `EnrollmentApi.CreateEnrollmentPFX`: %v\n", resp)
}Other parameters are passed through a pointer to a apiCreateEnrollmentPFXRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| xKeyfactorRequestedWith | string | Type of the request [XMLHttpRequest, APIClient] | |
| xCertificateformat | string | Desired format [PFX, ZIP, PEM, JKS, STORE, REPLACE] | |
| xKeyfactorApiVersion | string | Desired version of the api, if not provided defaults to v1 | |
| enrollmentPFXEnrollmentRequest | EnrollmentPFXEnrollmentRequest | The information needed to perform the PFX Enrollment |
CSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse
- 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]
EnrollmentEnrollmentManagementResponse NewCreateEnrollmentPFXDeployRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).EnrollmentEnrollmentManagementRequest(enrollmentEnrollmentManagementRequest).Execute()
Creates management jobs to install a newly enrolled pfx in to one or more certificate stores
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)
enrollmentEnrollmentManagementRequest := *openapiclient.NewEnrollmentEnrollmentManagementRequest("Password_example") // EnrollmentEnrollmentManagementRequest | The request to create the management jobs, which includes the request Id of the new pfx and the Ids and management job properties of the cert stores to add the pfx to (optional)
configuration := openapiclient.NewConfiguration(make(map[string]string))
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EnrollmentApi.NewCreateEnrollmentPFXDeployRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).EnrollmentEnrollmentManagementRequest(enrollmentEnrollmentManagementRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EnrollmentApi.CreateEnrollmentPFXDeploy``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateEnrollmentPFXDeploy`: EnrollmentEnrollmentManagementResponse
fmt.Fprintf(os.Stdout, "Response from `EnrollmentApi.CreateEnrollmentPFXDeploy`: %v\n", resp)
}Other parameters are passed through a pointer to a apiCreateEnrollmentPFXDeployRequest 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 | |
| enrollmentEnrollmentManagementRequest | EnrollmentEnrollmentManagementRequest | The request to create the management jobs, which includes the request Id of the new pfx and the Ids and management job properties of the cert stores to add the pfx to |
EnrollmentEnrollmentManagementResponse
- 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]
EnrollmentEnrollmentManagementResponse NewCreateEnrollmentPFXReplaceRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest(cSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest).Execute()
Creates management jobs to install a newly enrolled pfx into the same certificate stores as the previous certificate
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)
cSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest := *openapiclient.NewCSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest() // CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest | The request to create the management jobs, which includes the request Id of the new pfx and the Id of the existing certificate (optional)
configuration := openapiclient.NewConfiguration(make(map[string]string))
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EnrollmentApi.NewCreateEnrollmentPFXReplaceRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest(cSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EnrollmentApi.CreateEnrollmentPFXReplace``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateEnrollmentPFXReplace`: EnrollmentEnrollmentManagementResponse
fmt.Fprintf(os.Stdout, "Response from `EnrollmentApi.CreateEnrollmentPFXReplace`: %v\n", resp)
}Other parameters are passed through a pointer to a apiCreateEnrollmentPFXReplaceRequest 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 | |
| cSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest | CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest | The request to create the management jobs, which includes the request Id of the new pfx and the Id of the existing certificate |
EnrollmentEnrollmentManagementResponse
- 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]
EnrollmentRenewalApiResponse NewCreateEnrollmentRenewRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsEnrollmentRenewalRequest(cSSCMSDataModelModelsEnrollmentRenewalRequest).Execute()
Performs a renewal based upon the passed in request
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient]
collectionId := int32(56) // int32 | The collection id for the given certificate (optional) (default to 0)
xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional)
cSSCMSDataModelModelsEnrollmentRenewalRequest := *openapiclient.NewCSSCMSDataModelModelsEnrollmentRenewalRequest() // CSSCMSDataModelModelsEnrollmentRenewalRequest | The information needed to perform the renewal (optional)
configuration := openapiclient.NewConfiguration(make(map[string]string))
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.EnrollmentApi.NewCreateEnrollmentRenewRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsEnrollmentRenewalRequest(cSSCMSDataModelModelsEnrollmentRenewalRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EnrollmentApi.CreateEnrollmentRenew``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateEnrollmentRenew`: EnrollmentRenewalApiResponse
fmt.Fprintf(os.Stdout, "Response from `EnrollmentApi.CreateEnrollmentRenew`: %v\n", resp)
}Other parameters are passed through a pointer to a apiCreateEnrollmentRenewRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| xKeyfactorRequestedWith | string | Type of the request [XMLHttpRequest, APIClient] | |
| collectionId | int32 | The collection id for the given certificate | [default to 0] |
| xKeyfactorApiVersion | string | Desired version of the api, if not provided defaults to v1 | |
| cSSCMSDataModelModelsEnrollmentRenewalRequest | CSSCMSDataModelModelsEnrollmentRenewalRequest | The information needed to perform the renewal |
- 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]
CSSCMSDataModelModelsEnrollmentAvailableRenewal NewGetEnrollmentAvailableRenewalIdByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
Returns the type of renewal available for a given certificate.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := int32(56) // int32 | The Keyfactor certificate Id
xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient]
collectionId := int32(56) // int32 | The collection id for the given certificate (optional) (default to 0)
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.EnrollmentApi.NewGetEnrollmentAvailableRenewalIdByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EnrollmentApi.GetEnrollmentAvailableRenewalIdById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetEnrollmentAvailableRenewalIdById`: CSSCMSDataModelModelsEnrollmentAvailableRenewal
fmt.Fprintf(os.Stdout, "Response from `EnrollmentApi.GetEnrollmentAvailableRenewalIdById`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | int32 | The Keyfactor certificate Id |
Other parameters are passed through a pointer to a apiGetEnrollmentAvailableRenewalIdByIdRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
xKeyfactorRequestedWith | string | Type of the request [XMLHttpRequest, APIClient] | collectionId | int32 | The collection id for the given certificate | [default to 0] xKeyfactorApiVersion | string | Desired version of the api, if not provided defaults to v1 |
CSSCMSDataModelModelsEnrollmentAvailableRenewal
- 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]
CSSCMSDataModelModelsEnrollmentAvailableRenewal NewGetEnrollmentAvailableRenewalThumbprintThumbprintRequest(ctx, thumbprint).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
Returns the type of renewal available for a given certificate.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
thumbprint := "thumbprint_example" // string | The certificate thumbprint
xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient]
collectionId := int32(56) // int32 | The collection id for the given certificate (optional) (default to 0)
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.EnrollmentApi.NewGetEnrollmentAvailableRenewalThumbprintThumbprintRequest(context.Background(), thumbprint).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EnrollmentApi.GetEnrollmentAvailableRenewalThumbprintThumbprint``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetEnrollmentAvailableRenewalThumbprintThumbprint`: CSSCMSDataModelModelsEnrollmentAvailableRenewal
fmt.Fprintf(os.Stdout, "Response from `EnrollmentApi.GetEnrollmentAvailableRenewalThumbprintThumbprint`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| thumbprint | string | The certificate thumbprint |
Other parameters are passed through a pointer to a apiGetEnrollmentAvailableRenewalThumbprintThumbprintRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
xKeyfactorRequestedWith | string | Type of the request [XMLHttpRequest, APIClient] | collectionId | int32 | The collection id for the given certificate | [default to 0] xKeyfactorApiVersion | string | Desired version of the api, if not provided defaults to v1 |
CSSCMSDataModelModelsEnrollmentAvailableRenewal
- 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]
KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse NewGetEnrollmentCSRContextMyRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
Returns the list of available CSR enrollment templates and their associated CA mappings that the calling user has permissions on
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.EnrollmentApi.NewGetEnrollmentCSRContextMyRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EnrollmentApi.GetEnrollmentCSRContextMy``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetEnrollmentCSRContextMy`: KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse
fmt.Fprintf(os.Stdout, "Response from `EnrollmentApi.GetEnrollmentCSRContextMy`: %v\n", resp)
}Other parameters are passed through a pointer to a apiGetEnrollmentCSRContextMyRequest 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 |
KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse
- 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]
KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse NewGetEnrollmentPFXContextMyRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
Returns the list of available PFX enrollment templates and their associated CA mappings that the calling user has permissions on
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.EnrollmentApi.NewGetEnrollmentPFXContextMyRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EnrollmentApi.GetEnrollmentPFXContextMy``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetEnrollmentPFXContextMy`: KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse
fmt.Fprintf(os.Stdout, "Response from `EnrollmentApi.GetEnrollmentPFXContextMy`: %v\n", resp)
}Other parameters are passed through a pointer to a apiGetEnrollmentPFXContextMyRequest 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 |
KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse
- 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]
TemplatesEnrollmentTemplateEnrollmentSettingsResponse NewGetEnrollmentSettingsByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
Gets the template settings to use during enrollment. The response will be the resolved values for the settings. If there is a template specific setting, the template specific setting will be used in the response. If there is not a template specific setting, the global setting will be used in the response.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := int32(56) // int32 |
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.EnrollmentApi.NewGetEnrollmentSettingsByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EnrollmentApi.GetEnrollmentSettingsById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetEnrollmentSettingsById`: TemplatesEnrollmentTemplateEnrollmentSettingsResponse
fmt.Fprintf(os.Stdout, "Response from `EnrollmentApi.GetEnrollmentSettingsById`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | int32 |
Other parameters are passed through a pointer to a apiGetEnrollmentSettingsByIdRequest 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 |
TemplatesEnrollmentTemplateEnrollmentSettingsResponse
- 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]