All URIs are relative to http://keyfactor.example.com
| Method | HTTP request | Description |
|---|---|---|
| CreateCertificateAuthority | POST /CertificateAuthority | Creates a new CertificateAuthority object |
| CreateCertificateAuthorityAlertRecipientsCAHealthRecipients | POST /CertificateAuthority/AlertRecipients/CAHealthRecipients | Creates CA health monitoring recipients for the provided list of email addresses" |
| CreateCertificateAuthorityAlertRecipientsCAThresholdRecipients | POST /CertificateAuthority/AlertRecipients/CAThresholdRecipients | Creates CA threshold alert recipients for the provided list of emails |
| CreateCertificateAuthorityImport | POST /CertificateAuthority/Import | Imports any certificate authorities from the provided configuration tenant DNS |
| CreateCertificateAuthorityPublishCRL | POST /CertificateAuthority/PublishCRL | Publishes a CRL according to the provided request |
| CreateCertificateAuthorityTaskQueueTest | POST /CertificateAuthority/TaskQueue/Test | Tests the connection info for the TaskQueue Credentials. |
| CreateCertificateAuthorityTest | POST /CertificateAuthority/Test | Validates the connection info for the CA provided by the model. |
| DeleteCertificateAuthorityAlertRecipientsCAHealthRecipientsById | DELETE /CertificateAuthority/AlertRecipients/CAHealthRecipients/{id} | Deletes a CA health recipient for the provided ID |
| DeleteCertificateAuthorityAlertRecipientsCAThresholdRecipientsById | DELETE /CertificateAuthority/AlertRecipients/CAThresholdRecipients/{id} | Deletes a CA threshold recipient for the provided ID |
| DeleteCertificateAuthorityById | DELETE /CertificateAuthority/{id} | Deletes a CertificateAuthority from the system, specified by ID |
| GetCertificateAuthority | GET /CertificateAuthority | Returns all certificate authorities according to the provided filter |
| GetCertificateAuthorityAlertRecipientsCAHealthRecipients | GET /CertificateAuthority/AlertRecipients/CAHealthRecipients | Returns a list of all CA health recipients |
| GetCertificateAuthorityAlertRecipientsCAHealthRecipientsById | GET /CertificateAuthority/AlertRecipients/CAHealthRecipients/{id} | Returns a CA health recipient for the specified health recipient ID |
| GetCertificateAuthorityAlertRecipientsCAThresholdRecipients | GET /CertificateAuthority/AlertRecipients/CAThresholdRecipients | Returns a list of all CA threshold recipients |
| GetCertificateAuthorityAlertRecipientsCAThresholdRecipientsById | GET /CertificateAuthority/AlertRecipients/CAThresholdRecipients/{id} | Returns a CA threshold recipient for the specified threshold alert recipient ID |
| GetCertificateAuthorityAvailableForests | GET /CertificateAuthority/AvailableForests | Returns a list of available forests that are in active directory |
| GetCertificateAuthorityById | GET /CertificateAuthority/{id} | Returns details for a single CA, specified by ID |
| GetCertificateAuthorityHealthMonitoringSchedule | GET /CertificateAuthority/HealthMonitoring/Schedule | Retrieves the execution schedule for the CA health monitoring job |
| GetCertificateAuthoritySourceCount | GET /CertificateAuthority/SourceCount | Returns a count of certificate authorities with sync enabled |
| GetCertificateAuthorityTaskQueue | GET /CertificateAuthority/TaskQueue | Retrieves credentials and connection information |
| UpdateCertificateAuthority | PUT /CertificateAuthority | Updates a CertificateAuthority object |
| UpdateCertificateAuthorityAlertRecipientsCAHealthRecipientsById | PUT /CertificateAuthority/AlertRecipients/CAHealthRecipients/{id} | Updates a CA health alert recipient for the provided request object |
| UpdateCertificateAuthorityAlertRecipientsCAThresholdRecipientsById | PUT /CertificateAuthority/AlertRecipients/CAThresholdRecipients/{id} | Updates a CA threshold alert recipient for the provided request object |
| UpdateCertificateAuthorityTaskQueue | PUT /CertificateAuthority/TaskQueue | Updates credentials and connection information |
CertificateAuthoritiesCertificateAuthorityResponse NewCreateCertificateAuthorityRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).ForceSave(forceSave).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificateAuthoritiesCertificateAuthorityRequest(certificateAuthoritiesCertificateAuthorityRequest).Execute()
Creates a new CertificateAuthority object
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient]
forceSave := true // bool | (optional) (default to false)
xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional)
certificateAuthoritiesCertificateAuthorityRequest := *openapiclient.NewCertificateAuthoritiesCertificateAuthorityRequest() // CertificateAuthoritiesCertificateAuthorityRequest | (optional)
configuration := openapiclient.NewConfiguration(make(map[string]string))
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CertificateAuthorityApi.NewCreateCertificateAuthorityRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).ForceSave(forceSave).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificateAuthoritiesCertificateAuthorityRequest(certificateAuthoritiesCertificateAuthorityRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateAuthorityApi.CreateCertificateAuthority``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateCertificateAuthority`: CertificateAuthoritiesCertificateAuthorityResponse
fmt.Fprintf(os.Stdout, "Response from `CertificateAuthorityApi.CreateCertificateAuthority`: %v\n", resp)
}Other parameters are passed through a pointer to a apiCreateCertificateAuthorityRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| xKeyfactorRequestedWith | string | Type of the request [XMLHttpRequest, APIClient] | |
| forceSave | bool | [default to false] | |
| xKeyfactorApiVersion | string | Desired version of the api, if not provided defaults to v1 | |
| certificateAuthoritiesCertificateAuthorityRequest | CertificateAuthoritiesCertificateAuthorityRequest |
CertificateAuthoritiesCertificateAuthorityResponse
- 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]
[]CertificateAuthoritiesCAAlertRecipientResponse NewCreateCertificateAuthorityAlertRecipientsCAHealthRecipientsRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificateAuthoritiesCAAlertRecipientCreateRequest(certificateAuthoritiesCAAlertRecipientCreateRequest).Execute()
Creates CA health monitoring recipients for the provided list of email addresses"
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)
certificateAuthoritiesCAAlertRecipientCreateRequest := *openapiclient.NewCertificateAuthoritiesCAAlertRecipientCreateRequest([]string{"Emails_example"}) // CertificateAuthoritiesCAAlertRecipientCreateRequest | The request object holding the email(s) of the health monitoring recipient(s) to be created (optional)
configuration := openapiclient.NewConfiguration(make(map[string]string))
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CertificateAuthorityApi.NewCreateCertificateAuthorityAlertRecipientsCAHealthRecipientsRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificateAuthoritiesCAAlertRecipientCreateRequest(certificateAuthoritiesCAAlertRecipientCreateRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateAuthorityApi.CreateCertificateAuthorityAlertRecipientsCAHealthRecipients``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateCertificateAuthorityAlertRecipientsCAHealthRecipients`: []CertificateAuthoritiesCAAlertRecipientResponse
fmt.Fprintf(os.Stdout, "Response from `CertificateAuthorityApi.CreateCertificateAuthorityAlertRecipientsCAHealthRecipients`: %v\n", resp)
}Other parameters are passed through a pointer to a apiCreateCertificateAuthorityAlertRecipientsCAHealthRecipientsRequest 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 | |
| certificateAuthoritiesCAAlertRecipientCreateRequest | CertificateAuthoritiesCAAlertRecipientCreateRequest | The request object holding the email(s) of the health monitoring recipient(s) to be created |
[]CertificateAuthoritiesCAAlertRecipientResponse
- 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]
[]CertificateAuthoritiesCAAlertRecipientResponse NewCreateCertificateAuthorityAlertRecipientsCAThresholdRecipientsRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificateAuthoritiesCAAlertRecipientCreateRequest(certificateAuthoritiesCAAlertRecipientCreateRequest).Execute()
Creates CA threshold alert recipients for the provided list of emails
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)
certificateAuthoritiesCAAlertRecipientCreateRequest := *openapiclient.NewCertificateAuthoritiesCAAlertRecipientCreateRequest([]string{"Emails_example"}) // CertificateAuthoritiesCAAlertRecipientCreateRequest | The request object holding the email(s) of the alert recipient(s) to be created (optional)
configuration := openapiclient.NewConfiguration(make(map[string]string))
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CertificateAuthorityApi.NewCreateCertificateAuthorityAlertRecipientsCAThresholdRecipientsRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificateAuthoritiesCAAlertRecipientCreateRequest(certificateAuthoritiesCAAlertRecipientCreateRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateAuthorityApi.CreateCertificateAuthorityAlertRecipientsCAThresholdRecipients``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateCertificateAuthorityAlertRecipientsCAThresholdRecipients`: []CertificateAuthoritiesCAAlertRecipientResponse
fmt.Fprintf(os.Stdout, "Response from `CertificateAuthorityApi.CreateCertificateAuthorityAlertRecipientsCAThresholdRecipients`: %v\n", resp)
}Other parameters are passed through a pointer to a apiCreateCertificateAuthorityAlertRecipientsCAThresholdRecipientsRequest 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 | |
| certificateAuthoritiesCAAlertRecipientCreateRequest | CertificateAuthoritiesCAAlertRecipientCreateRequest | The request object holding the email(s) of the alert recipient(s) to be created |
[]CertificateAuthoritiesCAAlertRecipientResponse
- 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]
NewCreateCertificateAuthorityImportRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Dns(dns).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
Imports any certificate authorities from the provided configuration tenant DNS
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient]
dns := "dns_example" // string | The DNS of the configuration tenant from which to import certificate authorities (optional)
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.CertificateAuthorityApi.NewCreateCertificateAuthorityImportRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Dns(dns).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateAuthorityApi.CreateCertificateAuthorityImport``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}Other parameters are passed through a pointer to a apiCreateCertificateAuthorityImportRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| xKeyfactorRequestedWith | string | Type of the request [XMLHttpRequest, APIClient] | |
| dns | string | The DNS of the configuration tenant from which to import certificate authorities | |
| xKeyfactorApiVersion | string | Desired version of the api, if not provided defaults to v1 |
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
NewCreateCertificateAuthorityPublishCRLRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsCRLRequestModel(cSSCMSDataModelModelsCRLRequestModel).Execute()
Publishes a CRL according to the provided request
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)
cSSCMSDataModelModelsCRLRequestModel := *openapiclient.NewCSSCMSDataModelModelsCRLRequestModel("CertificateAuthorityLogicalName_example") // CSSCMSDataModelModelsCRLRequestModel | Host and logical name of the CA for which the CRL should be published (optional)
configuration := openapiclient.NewConfiguration(make(map[string]string))
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CertificateAuthorityApi.NewCreateCertificateAuthorityPublishCRLRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsCRLRequestModel(cSSCMSDataModelModelsCRLRequestModel).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateAuthorityApi.CreateCertificateAuthorityPublishCRL``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}Other parameters are passed through a pointer to a apiCreateCertificateAuthorityPublishCRLRequest 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 | |
| cSSCMSDataModelModelsCRLRequestModel | CSSCMSDataModelModelsCRLRequestModel | Host and logical name of the CA for which the CRL should be published |
(empty response body)
- Content-Type: application/json-patch+json, application/json, text/json, application/*+json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CertificateAuthoritiesCAJobQueueTestResponse NewCreateCertificateAuthorityTaskQueueTestRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).RabbitMQJobQueueRequest(rabbitMQJobQueueRequest).Execute()
Tests the connection info for the TaskQueue Credentials.
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)
rabbitMQJobQueueRequest := *openapiclient.NewRabbitMQJobQueueRequest() // RabbitMQJobQueueRequest | The TaskQueue Credentials being tested. (optional)
configuration := openapiclient.NewConfiguration(make(map[string]string))
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CertificateAuthorityApi.NewCreateCertificateAuthorityTaskQueueTestRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).RabbitMQJobQueueRequest(rabbitMQJobQueueRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateAuthorityApi.CreateCertificateAuthorityTaskQueueTest``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateCertificateAuthorityTaskQueueTest`: CertificateAuthoritiesCAJobQueueTestResponse
fmt.Fprintf(os.Stdout, "Response from `CertificateAuthorityApi.CreateCertificateAuthorityTaskQueueTest`: %v\n", resp)
}Other parameters are passed through a pointer to a apiCreateCertificateAuthorityTaskQueueTestRequest 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 | |
| rabbitMQJobQueueRequest | RabbitMQJobQueueRequest | The TaskQueue Credentials being tested. |
CertificateAuthoritiesCAJobQueueTestResponse
- 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]
CertificateAuthoritiesCertificateAuthorityTestResponse NewCreateCertificateAuthorityTestRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest(cSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest).Execute()
Validates the connection info for the CA provided by the model.
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)
cSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest := *openapiclient.NewCSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest() // CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest | The CA being tested. (optional)
configuration := openapiclient.NewConfiguration(make(map[string]string))
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CertificateAuthorityApi.NewCreateCertificateAuthorityTestRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest(cSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateAuthorityApi.CreateCertificateAuthorityTest``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateCertificateAuthorityTest`: CertificateAuthoritiesCertificateAuthorityTestResponse
fmt.Fprintf(os.Stdout, "Response from `CertificateAuthorityApi.CreateCertificateAuthorityTest`: %v\n", resp)
}Other parameters are passed through a pointer to a apiCreateCertificateAuthorityTestRequest 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 | |
| cSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest | CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest | The CA being tested. |
CertificateAuthoritiesCertificateAuthorityTestResponse
- 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]
NewDeleteCertificateAuthorityAlertRecipientsCAHealthRecipientsByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
Deletes a CA health recipient for the provided ID
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := int32(56) // int32 | The ID of the health monitoring recipient to delete
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.CertificateAuthorityApi.NewDeleteCertificateAuthorityAlertRecipientsCAHealthRecipientsByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateAuthorityApi.DeleteCertificateAuthorityAlertRecipientsCAHealthRecipientsById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | int32 | The ID of the health monitoring recipient to delete |
Other parameters are passed through a pointer to a apiDeleteCertificateAuthorityAlertRecipientsCAHealthRecipientsByIdRequest 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 |
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
NewDeleteCertificateAuthorityAlertRecipientsCAThresholdRecipientsByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
Deletes a CA threshold recipient for the provided ID
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := int32(56) // int32 | The ID of the threshold alert recipient to delete
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.CertificateAuthorityApi.NewDeleteCertificateAuthorityAlertRecipientsCAThresholdRecipientsByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateAuthorityApi.DeleteCertificateAuthorityAlertRecipientsCAThresholdRecipientsById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | int32 | The ID of the threshold alert recipient to delete |
Other parameters are passed through a pointer to a apiDeleteCertificateAuthorityAlertRecipientsCAThresholdRecipientsByIdRequest 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 |
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
NewDeleteCertificateAuthorityByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
Deletes a CertificateAuthority from the system, specified by ID
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.CertificateAuthorityApi.NewDeleteCertificateAuthorityByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateAuthorityApi.DeleteCertificateAuthorityById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}| 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 apiDeleteCertificateAuthorityByIdRequest 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 |
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]CertificateAuthoritiesCertificateAuthorityResponse NewGetCertificateAuthorityRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
Returns all certificate authorities according to the provided filter
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient]
queryString := "queryString_example" // string | (optional)
pageReturned := int32(56) // int32 | (optional)
returnLimit := int32(56) // int32 | (optional)
sortField := "sortField_example" // string | (optional)
sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | (optional)
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.CertificateAuthorityApi.NewGetCertificateAuthorityRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateAuthorityApi.GetCertificateAuthority``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetCertificateAuthority`: []CertificateAuthoritiesCertificateAuthorityResponse
fmt.Fprintf(os.Stdout, "Response from `CertificateAuthorityApi.GetCertificateAuthority`: %v\n", resp)
}Other parameters are passed through a pointer to a apiGetCertificateAuthorityRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| xKeyfactorRequestedWith | string | Type of the request [XMLHttpRequest, APIClient] | |
| queryString | string | ||
| pageReturned | int32 | ||
| returnLimit | int32 | ||
| sortField | string | ||
| sortAscending | KeyfactorCommonQueryableExtensionsSortOrder | ||
| xKeyfactorApiVersion | string | Desired version of the api, if not provided defaults to v1 |
[]CertificateAuthoritiesCertificateAuthorityResponse
- 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]
[]CertificateAuthoritiesCAAlertRecipientResponse NewGetCertificateAuthorityAlertRecipientsCAHealthRecipientsRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
Returns a list of all CA health recipients
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.CertificateAuthorityApi.NewGetCertificateAuthorityAlertRecipientsCAHealthRecipientsRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateAuthorityApi.GetCertificateAuthorityAlertRecipientsCAHealthRecipients``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetCertificateAuthorityAlertRecipientsCAHealthRecipients`: []CertificateAuthoritiesCAAlertRecipientResponse
fmt.Fprintf(os.Stdout, "Response from `CertificateAuthorityApi.GetCertificateAuthorityAlertRecipientsCAHealthRecipients`: %v\n", resp)
}Other parameters are passed through a pointer to a apiGetCertificateAuthorityAlertRecipientsCAHealthRecipientsRequest 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 |
[]CertificateAuthoritiesCAAlertRecipientResponse
- 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]
CertificateAuthoritiesCAAlertRecipientResponse NewGetCertificateAuthorityAlertRecipientsCAHealthRecipientsByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
Returns a CA health recipient for the specified health recipient ID
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := int32(56) // int32 | The ID of the health monitoring recipient to retrieve
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.CertificateAuthorityApi.NewGetCertificateAuthorityAlertRecipientsCAHealthRecipientsByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateAuthorityApi.GetCertificateAuthorityAlertRecipientsCAHealthRecipientsById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetCertificateAuthorityAlertRecipientsCAHealthRecipientsById`: CertificateAuthoritiesCAAlertRecipientResponse
fmt.Fprintf(os.Stdout, "Response from `CertificateAuthorityApi.GetCertificateAuthorityAlertRecipientsCAHealthRecipientsById`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | int32 | The ID of the health monitoring recipient to retrieve |
Other parameters are passed through a pointer to a apiGetCertificateAuthorityAlertRecipientsCAHealthRecipientsByIdRequest 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 |
CertificateAuthoritiesCAAlertRecipientResponse
- 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]
[]CertificateAuthoritiesCAAlertRecipientResponse NewGetCertificateAuthorityAlertRecipientsCAThresholdRecipientsRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
Returns a list of all CA threshold recipients
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.CertificateAuthorityApi.NewGetCertificateAuthorityAlertRecipientsCAThresholdRecipientsRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateAuthorityApi.GetCertificateAuthorityAlertRecipientsCAThresholdRecipients``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetCertificateAuthorityAlertRecipientsCAThresholdRecipients`: []CertificateAuthoritiesCAAlertRecipientResponse
fmt.Fprintf(os.Stdout, "Response from `CertificateAuthorityApi.GetCertificateAuthorityAlertRecipientsCAThresholdRecipients`: %v\n", resp)
}Other parameters are passed through a pointer to a apiGetCertificateAuthorityAlertRecipientsCAThresholdRecipientsRequest 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 |
[]CertificateAuthoritiesCAAlertRecipientResponse
- 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]
CertificateAuthoritiesCAAlertRecipientResponse NewGetCertificateAuthorityAlertRecipientsCAThresholdRecipientsByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
Returns a CA threshold recipient for the specified threshold alert recipient ID
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := int32(56) // int32 | The ID of the threshold alert recipient to retrieve
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.CertificateAuthorityApi.NewGetCertificateAuthorityAlertRecipientsCAThresholdRecipientsByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateAuthorityApi.GetCertificateAuthorityAlertRecipientsCAThresholdRecipientsById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetCertificateAuthorityAlertRecipientsCAThresholdRecipientsById`: CertificateAuthoritiesCAAlertRecipientResponse
fmt.Fprintf(os.Stdout, "Response from `CertificateAuthorityApi.GetCertificateAuthorityAlertRecipientsCAThresholdRecipientsById`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | int32 | The ID of the threshold alert recipient to retrieve |
Other parameters are passed through a pointer to a apiGetCertificateAuthorityAlertRecipientsCAThresholdRecipientsByIdRequest 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 |
CertificateAuthoritiesCAAlertRecipientResponse
- 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]
[]string NewGetCertificateAuthorityAvailableForestsRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
Returns a list of available forests that are in active directory
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.CertificateAuthorityApi.NewGetCertificateAuthorityAvailableForestsRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateAuthorityApi.GetCertificateAuthorityAvailableForests``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetCertificateAuthorityAvailableForests`: []string
fmt.Fprintf(os.Stdout, "Response from `CertificateAuthorityApi.GetCertificateAuthorityAvailableForests`: %v\n", resp)
}Other parameters are passed through a pointer to a apiGetCertificateAuthorityAvailableForestsRequest 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 |
[]string
- 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]
CertificateAuthoritiesCertificateAuthorityResponse NewGetCertificateAuthorityByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
Returns details for a single CA, specified by ID
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.CertificateAuthorityApi.NewGetCertificateAuthorityByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateAuthorityApi.GetCertificateAuthorityById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetCertificateAuthorityById`: CertificateAuthoritiesCertificateAuthorityResponse
fmt.Fprintf(os.Stdout, "Response from `CertificateAuthorityApi.GetCertificateAuthorityById`: %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 apiGetCertificateAuthorityByIdRequest 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 |
CertificateAuthoritiesCertificateAuthorityResponse
- 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]
SchedulingScheduledTaskResponse NewGetCertificateAuthorityHealthMonitoringScheduleRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
Retrieves the execution schedule for the CA health monitoring job
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.CertificateAuthorityApi.NewGetCertificateAuthorityHealthMonitoringScheduleRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateAuthorityApi.GetCertificateAuthorityHealthMonitoringSchedule``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetCertificateAuthorityHealthMonitoringSchedule`: SchedulingScheduledTaskResponse
fmt.Fprintf(os.Stdout, "Response from `CertificateAuthorityApi.GetCertificateAuthorityHealthMonitoringSchedule`: %v\n", resp)
}Other parameters are passed through a pointer to a apiGetCertificateAuthorityHealthMonitoringScheduleRequest 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 |
SchedulingScheduledTaskResponse
- 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]
int32 NewGetCertificateAuthoritySourceCountRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
Returns a count of certificate authorities with sync enabled
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.CertificateAuthorityApi.NewGetCertificateAuthoritySourceCountRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateAuthorityApi.GetCertificateAuthoritySourceCount``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetCertificateAuthoritySourceCount`: int32
fmt.Fprintf(os.Stdout, "Response from `CertificateAuthorityApi.GetCertificateAuthoritySourceCount`: %v\n", resp)
}Other parameters are passed through a pointer to a apiGetCertificateAuthoritySourceCountRequest 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 |
int32
- 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]
RabbitMQJobQueueResponse NewGetCertificateAuthorityTaskQueueRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
Retrieves credentials and connection information
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.CertificateAuthorityApi.NewGetCertificateAuthorityTaskQueueRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateAuthorityApi.GetCertificateAuthorityTaskQueue``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetCertificateAuthorityTaskQueue`: RabbitMQJobQueueResponse
fmt.Fprintf(os.Stdout, "Response from `CertificateAuthorityApi.GetCertificateAuthorityTaskQueue`: %v\n", resp)
}Other parameters are passed through a pointer to a apiGetCertificateAuthorityTaskQueueRequest 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 |
- 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]
CertificateAuthoritiesCertificateAuthorityResponse NewUpdateCertificateAuthorityRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).ForceSave(forceSave).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificateAuthoritiesCertificateAuthorityRequest(certificateAuthoritiesCertificateAuthorityRequest).Execute()
Updates a CertificateAuthority object
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient]
forceSave := true // bool | (optional) (default to false)
xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional)
certificateAuthoritiesCertificateAuthorityRequest := *openapiclient.NewCertificateAuthoritiesCertificateAuthorityRequest() // CertificateAuthoritiesCertificateAuthorityRequest | (optional)
configuration := openapiclient.NewConfiguration(make(map[string]string))
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CertificateAuthorityApi.NewUpdateCertificateAuthorityRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).ForceSave(forceSave).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificateAuthoritiesCertificateAuthorityRequest(certificateAuthoritiesCertificateAuthorityRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateAuthorityApi.UpdateCertificateAuthority``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateCertificateAuthority`: CertificateAuthoritiesCertificateAuthorityResponse
fmt.Fprintf(os.Stdout, "Response from `CertificateAuthorityApi.UpdateCertificateAuthority`: %v\n", resp)
}Other parameters are passed through a pointer to a apiUpdateCertificateAuthorityRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| xKeyfactorRequestedWith | string | Type of the request [XMLHttpRequest, APIClient] | |
| forceSave | bool | [default to false] | |
| xKeyfactorApiVersion | string | Desired version of the api, if not provided defaults to v1 | |
| certificateAuthoritiesCertificateAuthorityRequest | CertificateAuthoritiesCertificateAuthorityRequest |
CertificateAuthoritiesCertificateAuthorityResponse
- 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]
CertificateAuthoritiesCAAlertRecipientResponse NewUpdateCertificateAuthorityAlertRecipientsCAHealthRecipientsByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificateAuthoritiesCAAlertRecipientUpdateRequest(certificateAuthoritiesCAAlertRecipientUpdateRequest).Execute()
Updates a CA health alert recipient for the provided request object
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := int32(56) // int32 | The ID of the alert recipient to be updated
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)
certificateAuthoritiesCAAlertRecipientUpdateRequest := *openapiclient.NewCertificateAuthoritiesCAAlertRecipientUpdateRequest("Email_example") // CertificateAuthoritiesCAAlertRecipientUpdateRequest | The request object holding the ID and Email of the health monitoring recipient to be updated (optional)
configuration := openapiclient.NewConfiguration(make(map[string]string))
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CertificateAuthorityApi.NewUpdateCertificateAuthorityAlertRecipientsCAHealthRecipientsByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificateAuthoritiesCAAlertRecipientUpdateRequest(certificateAuthoritiesCAAlertRecipientUpdateRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateAuthorityApi.UpdateCertificateAuthorityAlertRecipientsCAHealthRecipientsById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateCertificateAuthorityAlertRecipientsCAHealthRecipientsById`: CertificateAuthoritiesCAAlertRecipientResponse
fmt.Fprintf(os.Stdout, "Response from `CertificateAuthorityApi.UpdateCertificateAuthorityAlertRecipientsCAHealthRecipientsById`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | int32 | The ID of the alert recipient to be updated |
Other parameters are passed through a pointer to a apiUpdateCertificateAuthorityAlertRecipientsCAHealthRecipientsByIdRequest 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 | certificateAuthoritiesCAAlertRecipientUpdateRequest | CertificateAuthoritiesCAAlertRecipientUpdateRequest | The request object holding the ID and Email of the health monitoring recipient to be updated |
CertificateAuthoritiesCAAlertRecipientResponse
- 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]
CertificateAuthoritiesCAAlertRecipientResponse NewUpdateCertificateAuthorityAlertRecipientsCAThresholdRecipientsByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificateAuthoritiesCAAlertRecipientUpdateRequest(certificateAuthoritiesCAAlertRecipientUpdateRequest).Execute()
Updates a CA threshold alert recipient for the provided request object
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := int32(56) // int32 | The ID of the alert recipient to be updated.
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)
certificateAuthoritiesCAAlertRecipientUpdateRequest := *openapiclient.NewCertificateAuthoritiesCAAlertRecipientUpdateRequest("Email_example") // CertificateAuthoritiesCAAlertRecipientUpdateRequest | The request object holding the Email of the alert recipient to be updated (optional)
configuration := openapiclient.NewConfiguration(make(map[string]string))
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CertificateAuthorityApi.NewUpdateCertificateAuthorityAlertRecipientsCAThresholdRecipientsByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificateAuthoritiesCAAlertRecipientUpdateRequest(certificateAuthoritiesCAAlertRecipientUpdateRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateAuthorityApi.UpdateCertificateAuthorityAlertRecipientsCAThresholdRecipientsById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateCertificateAuthorityAlertRecipientsCAThresholdRecipientsById`: CertificateAuthoritiesCAAlertRecipientResponse
fmt.Fprintf(os.Stdout, "Response from `CertificateAuthorityApi.UpdateCertificateAuthorityAlertRecipientsCAThresholdRecipientsById`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | int32 | The ID of the alert recipient to be updated. |
Other parameters are passed through a pointer to a apiUpdateCertificateAuthorityAlertRecipientsCAThresholdRecipientsByIdRequest 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 | certificateAuthoritiesCAAlertRecipientUpdateRequest | CertificateAuthoritiesCAAlertRecipientUpdateRequest | The request object holding the Email of the alert recipient to be updated |
CertificateAuthoritiesCAAlertRecipientResponse
- 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]
RabbitMQJobQueueResponse NewUpdateCertificateAuthorityTaskQueueRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).RabbitMQJobQueueRequest(rabbitMQJobQueueRequest).Execute()
Updates credentials and connection information
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)
rabbitMQJobQueueRequest := *openapiclient.NewRabbitMQJobQueueRequest() // RabbitMQJobQueueRequest | TaskQueue object with the provided information. (optional)
configuration := openapiclient.NewConfiguration(make(map[string]string))
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CertificateAuthorityApi.NewUpdateCertificateAuthorityTaskQueueRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).RabbitMQJobQueueRequest(rabbitMQJobQueueRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateAuthorityApi.UpdateCertificateAuthorityTaskQueue``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateCertificateAuthorityTaskQueue`: RabbitMQJobQueueResponse
fmt.Fprintf(os.Stdout, "Response from `CertificateAuthorityApi.UpdateCertificateAuthorityTaskQueue`: %v\n", resp)
}Other parameters are passed through a pointer to a apiUpdateCertificateAuthorityTaskQueueRequest 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 | |
| rabbitMQJobQueueRequest | RabbitMQJobQueueRequest | TaskQueue object with the provided information. |
- 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]