All URIs are relative to http://keyfactor.example.com
| Method | HTTP request | Description |
|---|---|---|
| CreateCertificatesAnalyze | POST /Certificates/Analyze | Returns the public information of the certificate |
| CreateCertificatesDownload | POST /Certificates/Download | Downloads the persisted certificate associated with the provided query |
| CreateCertificatesImport | POST /Certificates/Import | Imports the provided certificate into the Keyfactor instance, including any provided associated data |
| CreateCertificatesRecover | POST /Certificates/Recover | Recovers the persisted certificate associated with the provided query |
| CreateCertificatesRevoke | POST /Certificates/Revoke | Revokes the certificates associated with the provided identifiers and associates the provided data with the revocation |
| DeleteCertificates | DELETE /Certificates | Deletes multiple persisted certificates by their unique ids |
| DeleteCertificatesById | DELETE /Certificates/{id} | Deletes a persisted certificate by its unique id as well as the stored private key (if present) associated with it |
| DeleteCertificatesPrivateKey | DELETE /Certificates/PrivateKey | Deletes the persisted private keys of multiple certificates by the unique ids of the Certificates |
| DeleteCertificatesPrivateKeyById | DELETE /Certificates/PrivateKey/{id} | Deletes the persisted private keys of the certificate associated with the provided identifier |
| DeleteCertificatesQuery | DELETE /Certificates/Query | Deletes multiple persisted certificate entities selected by a given query |
| GetCertificates | GET /Certificates | Returns all certificates according to the provided filter and output parameters |
| GetCertificatesById | GET /Certificates/{id} | Returns a single certificate that matches the id |
| GetCertificatesByIdHistory | GET /Certificates/{id}/History | Gets the history of operations on a certificate |
| GetCertificatesByIdSecurity | GET /Certificates/{id}/Security | Gets the list of Security Identities and which permissions they have on the given certificate. |
| GetCertificatesByIdValidate | GET /Certificates/{id}/Validate | Validates the certificate chain can be built. |
| GetCertificatesCSV | GET /Certificates/CSV | Returns a comma-delimited CSV file containing all certificates in the database |
| GetCertificatesIdentityAuditById | GET /Certificates/IdentityAudit/{id} | Audit identity permissions for certificate |
| GetCertificatesLocationsById | GET /Certificates/Locations/{id} | Returns a list of locations the certificate is in |
| GetCertificatesMetadataCompare | GET /Certificates/Metadata/Compare | Compares the metadata value provided with the metadata value associated with the specified certificate |
| UpdateCertificatesByIdOwner | PUT /Certificates/{id}/Owner | Changes the certificate's owner. Users must be in the current owner's role and the new owner's role |
| UpdateCertificatesMetadata | PUT /Certificates/Metadata | Updates the metadata for the certificate associated with the identifier provided |
| UpdateCertificatesMetadataAll | PUT /Certificates/Metadata/All | Updates the metadata for certificates associated with the certificate identifiers or query provided |
[]CSSCMSDataModelModelsCertificateDetails NewCreateCertificatesAnalyzeRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificatesAnalyzeCertificateRequest(certificatesAnalyzeCertificateRequest).Execute()
Returns the public information of the 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)
certificatesAnalyzeCertificateRequest := *openapiclient.NewCertificatesAnalyzeCertificateRequest() // CertificatesAnalyzeCertificateRequest | The certificate to analyze (optional)
configuration := openapiclient.NewConfiguration(make(map[string]string))
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CertificateApi.NewCreateCertificatesAnalyzeRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificatesAnalyzeCertificateRequest(certificatesAnalyzeCertificateRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.CreateCertificatesAnalyze``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateCertificatesAnalyze`: []CSSCMSDataModelModelsCertificateDetails
fmt.Fprintf(os.Stdout, "Response from `CertificateApi.CreateCertificatesAnalyze`: %v\n", resp)
}Other parameters are passed through a pointer to a apiCreateCertificatesAnalyzeRequest 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 | |
| certificatesAnalyzeCertificateRequest | CertificatesAnalyzeCertificateRequest | The certificate to analyze |
[]CSSCMSDataModelModelsCertificateDetails
- 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]
CSSCMSDataModelModelsCertificateDownloadResponse NewCreateCertificatesDownloadRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XCertificateformat(xCertificateformat).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificatesCertificateDownloadRequest(certificatesCertificateDownloadRequest).Execute()
Downloads the persisted certificate associated with the provided query
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient]
xCertificateformat := "PEM" // string | Desired format [DER, PEM, P7B]
collectionId := int32(56) // int32 | Optional certificate collection identifier used to ensure user access to the certificate (optional) (default to 0)
xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional)
certificatesCertificateDownloadRequest := *openapiclient.NewCertificatesCertificateDownloadRequest() // CertificatesCertificateDownloadRequest | Query to filter the certificate to be recovered (optional)
configuration := openapiclient.NewConfiguration(make(map[string]string))
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CertificateApi.NewCreateCertificatesDownloadRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XCertificateformat(xCertificateformat).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificatesCertificateDownloadRequest(certificatesCertificateDownloadRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.CreateCertificatesDownload``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateCertificatesDownload`: CSSCMSDataModelModelsCertificateDownloadResponse
fmt.Fprintf(os.Stdout, "Response from `CertificateApi.CreateCertificatesDownload`: %v\n", resp)
}Other parameters are passed through a pointer to a apiCreateCertificatesDownloadRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| xKeyfactorRequestedWith | string | Type of the request [XMLHttpRequest, APIClient] | |
| xCertificateformat | string | Desired format [DER, PEM, P7B] | |
| collectionId | int32 | Optional certificate collection identifier used to ensure user access to the certificate | [default to 0] |
| xKeyfactorApiVersion | string | Desired version of the api, if not provided defaults to v1 | |
| certificatesCertificateDownloadRequest | CertificatesCertificateDownloadRequest | Query to filter the certificate to be recovered |
CSSCMSDataModelModelsCertificateDownloadResponse
- 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]
CSSCMSDataModelModelsCertificateImportResponseModel NewCreateCertificatesImportRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsCertificateImportRequestModel(cSSCMSDataModelModelsCertificateImportRequestModel).Execute()
Imports the provided certificate into the Keyfactor instance, including any provided associated data
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)
cSSCMSDataModelModelsCertificateImportRequestModel := *openapiclient.NewCSSCMSDataModelModelsCertificateImportRequestModel("Certificate_example") // CSSCMSDataModelModelsCertificateImportRequestModel | Request containing the base 64 encoded string and related certificate information, such as certificate stores, metadata, and password (optional)
configuration := openapiclient.NewConfiguration(make(map[string]string))
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CertificateApi.NewCreateCertificatesImportRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsCertificateImportRequestModel(cSSCMSDataModelModelsCertificateImportRequestModel).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.CreateCertificatesImport``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateCertificatesImport`: CSSCMSDataModelModelsCertificateImportResponseModel
fmt.Fprintf(os.Stdout, "Response from `CertificateApi.CreateCertificatesImport`: %v\n", resp)
}Other parameters are passed through a pointer to a apiCreateCertificatesImportRequest 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 | |
| cSSCMSDataModelModelsCertificateImportRequestModel | CSSCMSDataModelModelsCertificateImportRequestModel | Request containing the base 64 encoded string and related certificate information, such as certificate stores, metadata, and password |
CSSCMSDataModelModelsCertificateImportResponseModel
- 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]
CSSCMSDataModelModelsRecoveryResponse NewCreateCertificatesRecoverRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XCertificateformat(xCertificateformat).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificatesCertificateRecoveryRequest(certificatesCertificateRecoveryRequest).Execute()
Recovers the persisted certificate associated with the provided query
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, PEM, ZIP, JKS]
collectionId := int32(56) // int32 | Optional certificate collection identifier used to ensure user access to the certificate (optional) (default to 0)
xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional)
certificatesCertificateRecoveryRequest := *openapiclient.NewCertificatesCertificateRecoveryRequest("Password_example") // CertificatesCertificateRecoveryRequest | Query to filter the certificate to be recovered (optional)
configuration := openapiclient.NewConfiguration(make(map[string]string))
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CertificateApi.NewCreateCertificatesRecoverRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XCertificateformat(xCertificateformat).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificatesCertificateRecoveryRequest(certificatesCertificateRecoveryRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.CreateCertificatesRecover``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateCertificatesRecover`: CSSCMSDataModelModelsRecoveryResponse
fmt.Fprintf(os.Stdout, "Response from `CertificateApi.CreateCertificatesRecover`: %v\n", resp)
}Other parameters are passed through a pointer to a apiCreateCertificatesRecoverRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| xKeyfactorRequestedWith | string | Type of the request [XMLHttpRequest, APIClient] | |
| xCertificateformat | string | Desired format [PFX, PEM, ZIP, JKS] | |
| collectionId | int32 | Optional certificate collection identifier used to ensure user access to the certificate | [default to 0] |
| xKeyfactorApiVersion | string | Desired version of the api, if not provided defaults to v1 | |
| certificatesCertificateRecoveryRequest | CertificatesCertificateRecoveryRequest | Query to filter the certificate to be recovered |
CSSCMSDataModelModelsRecoveryResponse
- 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]
CertificatesRevocationResponse NewCreateCertificatesRevokeRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificatesRevokeCertificateRequest(certificatesRevokeCertificateRequest).Execute()
Revokes the certificates associated with the provided identifiers and associates the provided data with the revocation
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)
certificatesRevokeCertificateRequest := *openapiclient.NewCertificatesRevokeCertificateRequest() // CertificatesRevokeCertificateRequest | Contains the Keyfactor certificate identifiers and revocation data (optional)
configuration := openapiclient.NewConfiguration(make(map[string]string))
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CertificateApi.NewCreateCertificatesRevokeRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificatesRevokeCertificateRequest(certificatesRevokeCertificateRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.CreateCertificatesRevoke``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateCertificatesRevoke`: CertificatesRevocationResponse
fmt.Fprintf(os.Stdout, "Response from `CertificateApi.CreateCertificatesRevoke`: %v\n", resp)
}Other parameters are passed through a pointer to a apiCreateCertificatesRevokeRequest 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 | |
| certificatesRevokeCertificateRequest | CertificatesRevokeCertificateRequest | Contains the Keyfactor certificate identifiers and revocation data |
CertificatesRevocationResponse
- 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]
NewDeleteCertificatesRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).RequestBody(requestBody).Execute()
Deletes multiple persisted certificates by their unique ids
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient]
collectionId := int32(56) // int32 | Optional certificate collection identifier used to ensure user access to the certificate (optional) (default to 0)
xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional)
requestBody := []int32{int32(123)} // []int32 | The array of ids for certificate that are to be deleted (optional)
configuration := openapiclient.NewConfiguration(make(map[string]string))
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CertificateApi.NewDeleteCertificatesRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).RequestBody(requestBody).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.DeleteCertificates``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}Other parameters are passed through a pointer to a apiDeleteCertificatesRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| xKeyfactorRequestedWith | string | Type of the request [XMLHttpRequest, APIClient] | |
| collectionId | int32 | Optional certificate collection identifier used to ensure user access to the certificate | [default to 0] |
| xKeyfactorApiVersion | string | Desired version of the api, if not provided defaults to v1 | |
| requestBody | []int32 | The array of ids for certificate that are to be deleted |
(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]
NewDeleteCertificatesByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
Deletes a persisted certificate by its unique id as well as the stored private key (if present) associated with it
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := int32(56) // int32 | Keyfactor identifier of the certificate record
xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient]
collectionId := int32(56) // int32 | Optional certificate collection identifier used to ensure user access to the 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.CertificateApi.NewDeleteCertificatesByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.DeleteCertificatesById``: %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 | Keyfactor identifier of the certificate record |
Other parameters are passed through a pointer to a apiDeleteCertificatesByIdRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
xKeyfactorRequestedWith | string | Type of the request [XMLHttpRequest, APIClient] | collectionId | int32 | Optional certificate collection identifier used to ensure user access to the certificate | [default to 0] 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]
NewDeleteCertificatesPrivateKeyRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).RequestBody(requestBody).Execute()
Deletes the persisted private keys of multiple certificates by the unique ids of the Certificates
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient]
collectionId := int32(56) // int32 | Optional certificate collection identifier used to ensure user access to the certificate (optional) (default to 0)
xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional)
requestBody := []int32{int32(123)} // []int32 | Keyfactor identifiers of the cetficiates for which the associated private keys should be deleted (optional)
configuration := openapiclient.NewConfiguration(make(map[string]string))
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CertificateApi.NewDeleteCertificatesPrivateKeyRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).RequestBody(requestBody).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.DeleteCertificatesPrivateKey``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}Other parameters are passed through a pointer to a apiDeleteCertificatesPrivateKeyRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| xKeyfactorRequestedWith | string | Type of the request [XMLHttpRequest, APIClient] | |
| collectionId | int32 | Optional certificate collection identifier used to ensure user access to the certificate | [default to 0] |
| xKeyfactorApiVersion | string | Desired version of the api, if not provided defaults to v1 | |
| requestBody | []int32 | Keyfactor identifiers of the cetficiates for which the associated private keys should be deleted |
(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]
NewDeleteCertificatesPrivateKeyByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
Deletes the persisted private keys of the certificate associated with the provided identifier
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := int32(56) // int32 | Keyfactor identifier of the certificate for which the associated private keys should be deleted
xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient]
collectionId := int32(56) // int32 | Optional certificate collection identifier used to ensure user access to the 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.CertificateApi.NewDeleteCertificatesPrivateKeyByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.DeleteCertificatesPrivateKeyById``: %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 | Keyfactor identifier of the certificate for which the associated private keys should be deleted |
Other parameters are passed through a pointer to a apiDeleteCertificatesPrivateKeyByIdRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
xKeyfactorRequestedWith | string | Type of the request [XMLHttpRequest, APIClient] | collectionId | int32 | Optional certificate collection identifier used to ensure user access to the certificate | [default to 0] 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]
NewDeleteCertificatesQueryRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Body(body).Execute()
Deletes multiple persisted certificate entities selected by a given query
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient]
collectionId := int32(56) // int32 | Optional certificate collection identifier used to ensure user access to the certificate (optional) (default to 0)
xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional)
body := "body_example" // string | Query by which certificates should be filtered for deletion (optional)
configuration := openapiclient.NewConfiguration(make(map[string]string))
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CertificateApi.NewDeleteCertificatesQueryRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Body(body).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.DeleteCertificatesQuery``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}Other parameters are passed through a pointer to a apiDeleteCertificatesQueryRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| xKeyfactorRequestedWith | string | Type of the request [XMLHttpRequest, APIClient] | |
| collectionId | int32 | Optional certificate collection identifier used to ensure user access to the certificate | [default to 0] |
| xKeyfactorApiVersion | string | Desired version of the api, if not provided defaults to v1 | |
| body | string | Query by which certificates should be filtered for deletion |
(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]
[]CertificatesCertificateRetrievalResponse NewGetCertificatesRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).IncludeRevoked(includeRevoked).IncludeExpired(includeExpired).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).CollectionId(collectionId).IncludeLocations(includeLocations).IncludeMetadata(includeMetadata).IncludeHasPrivateKey(includeHasPrivateKey).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
Returns all certificates according to the provided filter and output parameters
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient]
includeRevoked := true // bool | Select 'true' to include revoked certificates in the results (optional)
includeExpired := true // bool | Select 'true' to include expired certificates in the results (optional)
queryString := "queryString_example" // string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) (optional)
pageReturned := int32(56) // int32 | The current page within the result set to be returned (optional)
returnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional)
sortField := "sortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional)
sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | Field sort direction [0=ascending, 1=descending] (optional)
collectionId := int32(56) // int32 | Optional certificate collection identifier used to ensure user access to the certificate (optional) (default to 0)
includeLocations := true // bool | Include locations data for the certificates to be returned (optional) (default to false)
includeMetadata := true // bool | Include metadata for the certificates to be returned (optional) (default to false)
includeHasPrivateKey := true // bool | Include whether the certificates to be returned have private keys stored in the Keyfactor database (optional) (default to false)
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.CertificateApi.NewGetCertificatesRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).IncludeRevoked(includeRevoked).IncludeExpired(includeExpired).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).CollectionId(collectionId).IncludeLocations(includeLocations).IncludeMetadata(includeMetadata).IncludeHasPrivateKey(includeHasPrivateKey).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.GetCertificates``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetCertificates`: []CertificatesCertificateRetrievalResponse
fmt.Fprintf(os.Stdout, "Response from `CertificateApi.GetCertificates`: %v\n", resp)
}Other parameters are passed through a pointer to a apiGetCertificatesRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| xKeyfactorRequestedWith | string | Type of the request [XMLHttpRequest, APIClient] | |
| includeRevoked | bool | Select 'true' to include revoked certificates in the results | |
| includeExpired | bool | Select 'true' to include expired certificates in the results | |
| queryString | string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | |
| pageReturned | int32 | The current page within the result set to be returned | |
| returnLimit | int32 | Maximum number of records to be returned in a single call | |
| sortField | string | Field by which the results should be sorted (view results via Management Portal for sortable columns) | |
| sortAscending | KeyfactorCommonQueryableExtensionsSortOrder | Field sort direction [0=ascending, 1=descending] | |
| collectionId | int32 | Optional certificate collection identifier used to ensure user access to the certificate | [default to 0] |
| includeLocations | bool | Include locations data for the certificates to be returned | [default to false] |
| includeMetadata | bool | Include metadata for the certificates to be returned | [default to false] |
| includeHasPrivateKey | bool | Include whether the certificates to be returned have private keys stored in the Keyfactor database | [default to false] |
| xKeyfactorApiVersion | string | Desired version of the api, if not provided defaults to v1 |
[]CertificatesCertificateRetrievalResponse
- 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]
CertificatesCertificateRetrievalResponse NewGetCertificatesByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).IncludeLocations(includeLocations).IncludeMetadata(includeMetadata).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
Returns a single certificate that matches the id
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := int32(56) // int32 | Keyfactor certificate identifier
xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient]
includeLocations := true // bool | Include locations data for the certificate to be returned (optional) (default to false)
includeMetadata := true // bool | Include metadata for the certificate to be returned (optional) (default to false)
collectionId := int32(56) // int32 | Optional certificate collection identifier used to ensure user access to the 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.CertificateApi.NewGetCertificatesByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).IncludeLocations(includeLocations).IncludeMetadata(includeMetadata).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.GetCertificatesById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetCertificatesById`: CertificatesCertificateRetrievalResponse
fmt.Fprintf(os.Stdout, "Response from `CertificateApi.GetCertificatesById`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | int32 | Keyfactor certificate identifier |
Other parameters are passed through a pointer to a apiGetCertificatesByIdRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
xKeyfactorRequestedWith | string | Type of the request [XMLHttpRequest, APIClient] | includeLocations | bool | Include locations data for the certificate to be returned | [default to false] includeMetadata | bool | Include metadata for the certificate to be returned | [default to false] collectionId | int32 | Optional certificate collection identifier used to ensure user access to the certificate | [default to 0] xKeyfactorApiVersion | string | Desired version of the api, if not provided defaults to v1 |
CertificatesCertificateRetrievalResponse
- 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]
[]CSSCMSDataModelModelsPKICertificateOperation NewGetCertificatesByIdHistoryRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
Gets the history of operations on a certificate
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := int32(56) // int32 | The Id of the certificate
xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient]
pageReturned := int32(56) // int32 | (optional)
returnLimit := int32(56) // int32 | (optional)
sortField := "sortField_example" // string | (optional)
sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | (optional)
collectionId := int32(56) // int32 | The collection the certificate could be in. Defaults to no collection. (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.CertificateApi.NewGetCertificatesByIdHistoryRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.GetCertificatesByIdHistory``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetCertificatesByIdHistory`: []CSSCMSDataModelModelsPKICertificateOperation
fmt.Fprintf(os.Stdout, "Response from `CertificateApi.GetCertificatesByIdHistory`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | int32 | The Id of the certificate |
Other parameters are passed through a pointer to a apiGetCertificatesByIdHistoryRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
xKeyfactorRequestedWith | string | Type of the request [XMLHttpRequest, APIClient] | pageReturned | int32 | | returnLimit | int32 | | sortField | string | | sortAscending | KeyfactorCommonQueryableExtensionsSortOrder | | collectionId | int32 | The collection the certificate could be in. Defaults to no collection. | [default to 0] xKeyfactorApiVersion | string | Desired version of the api, if not provided defaults to v1 |
[]CSSCMSDataModelModelsPKICertificateOperation
- 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]
CSSCMSDataModelModelsSecurityCertificatePermissions NewGetCertificatesByIdSecurityRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
Gets the list of Security Identities and which permissions they have on the given certificate.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := int32(56) // int32 | The Id of the certificate permissions are being checked on
xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient]
collectionId := int32(56) // int32 | The Id of the collection the certificate belongs in. Defaults to no collection (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.CertificateApi.NewGetCertificatesByIdSecurityRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.GetCertificatesByIdSecurity``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetCertificatesByIdSecurity`: CSSCMSDataModelModelsSecurityCertificatePermissions
fmt.Fprintf(os.Stdout, "Response from `CertificateApi.GetCertificatesByIdSecurity`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | int32 | The Id of the certificate permissions are being checked on |
Other parameters are passed through a pointer to a apiGetCertificatesByIdSecurityRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
xKeyfactorRequestedWith | string | Type of the request [XMLHttpRequest, APIClient] | collectionId | int32 | The Id of the collection the certificate belongs in. Defaults to no collection | [default to 0] xKeyfactorApiVersion | string | Desired version of the api, if not provided defaults to v1 |
CSSCMSDataModelModelsSecurityCertificatePermissions
- 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]
CSSCMSDataModelModelsCertificateValidationResponse NewGetCertificatesByIdValidateRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
Validates the certificate chain can be built.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := int32(56) // int32 | The Id of the certificate being checked
xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient]
collectionId := int32(56) // int32 | An optional parameter for the collection Id the certificate is in. Defaults to no collection (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.CertificateApi.NewGetCertificatesByIdValidateRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.GetCertificatesByIdValidate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetCertificatesByIdValidate`: CSSCMSDataModelModelsCertificateValidationResponse
fmt.Fprintf(os.Stdout, "Response from `CertificateApi.GetCertificatesByIdValidate`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | int32 | The Id of the certificate being checked |
Other parameters are passed through a pointer to a apiGetCertificatesByIdValidateRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
xKeyfactorRequestedWith | string | Type of the request [XMLHttpRequest, APIClient] | collectionId | int32 | An optional parameter for the collection Id the certificate is in. Defaults to no collection | [default to 0] xKeyfactorApiVersion | string | Desired version of the api, if not provided defaults to v1 |
CSSCMSDataModelModelsCertificateValidationResponse
- 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 NewGetCertificatesCSVRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).SortName(sortName).SortOrder(sortOrder).Query(query).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
Returns a comma-delimited CSV file containing all certificates in the database
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient]
sortName := "sortName_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional)
sortOrder := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | Field sort direction [0=ascending, 1=descending] (optional)
query := "query_example" // string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) (optional)
collectionId := int32(56) // int32 | Optional certificate collection identifier used to ensure user access to the certificat (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.CertificateApi.NewGetCertificatesCSVRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).SortName(sortName).SortOrder(sortOrder).Query(query).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.GetCertificatesCSV``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetCertificatesCSV`: string
fmt.Fprintf(os.Stdout, "Response from `CertificateApi.GetCertificatesCSV`: %v\n", resp)
}Other parameters are passed through a pointer to a apiGetCertificatesCSVRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| xKeyfactorRequestedWith | string | Type of the request [XMLHttpRequest, APIClient] | |
| sortName | string | Field by which the results should be sorted (view results via Management Portal for sortable columns) | |
| sortOrder | KeyfactorCommonQueryableExtensionsSortOrder | Field sort direction [0=ascending, 1=descending] | |
| query | string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | |
| collectionId | int32 | Optional certificate collection identifier used to ensure user access to the certificat | |
| 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]
[]CertificatesCertificateIdentityAuditResponse NewGetCertificatesIdentityAuditByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
Audit identity permissions for certificate
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := int32(56) // int32 | The Id of the certificate being checked
xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient]
collectionId := int32(56) // int32 | An optional parameter for the collection Id the certificate is in. Defaults to no collection (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.CertificateApi.NewGetCertificatesIdentityAuditByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.GetCertificatesIdentityAuditById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetCertificatesIdentityAuditById`: []CertificatesCertificateIdentityAuditResponse
fmt.Fprintf(os.Stdout, "Response from `CertificateApi.GetCertificatesIdentityAuditById`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | int32 | The Id of the certificate being checked |
Other parameters are passed through a pointer to a apiGetCertificatesIdentityAuditByIdRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
xKeyfactorRequestedWith | string | Type of the request [XMLHttpRequest, APIClient] | collectionId | int32 | An optional parameter for the collection Id the certificate is in. Defaults to no collection | [default to 0] xKeyfactorApiVersion | string | Desired version of the api, if not provided defaults to v1 |
[]CertificatesCertificateIdentityAuditResponse
- 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]
CertificatesCertificateLocationsResponse NewGetCertificatesLocationsByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
Returns a list of locations the certificate is in
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := int32(56) // int32 | Keyfactor certificate identifier
xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient]
collectionId := int32(56) // int32 | Optional certificate collection identifier used to ensure user access to the 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.CertificateApi.NewGetCertificatesLocationsByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.GetCertificatesLocationsById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetCertificatesLocationsById`: CertificatesCertificateLocationsResponse
fmt.Fprintf(os.Stdout, "Response from `CertificateApi.GetCertificatesLocationsById`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | int32 | Keyfactor certificate identifier |
Other parameters are passed through a pointer to a apiGetCertificatesLocationsByIdRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
xKeyfactorRequestedWith | string | Type of the request [XMLHttpRequest, APIClient] | collectionId | int32 | Optional certificate collection identifier used to ensure user access to the certificate | [default to 0] xKeyfactorApiVersion | string | Desired version of the api, if not provided defaults to v1 |
CertificatesCertificateLocationsResponse
- 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]
bool NewGetCertificatesMetadataCompareRequest(ctx).CertificateId(certificateId).MetadataFieldName(metadataFieldName).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Value(value).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
Compares the metadata value provided with the metadata value associated with the specified certificate
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
certificateId := int32(56) // int32 | Certificate identifier
metadataFieldName := "metadataFieldName_example" // string | Metadata field being compared
xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient]
value := "value_example" // string | Value to compare against (optional)
collectionId := int32(56) // int32 | Optional certificate collection identifier used to ensure user access to the 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.CertificateApi.NewGetCertificatesMetadataCompareRequest(context.Background()).CertificateId(certificateId).MetadataFieldName(metadataFieldName).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Value(value).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.GetCertificatesMetadataCompare``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetCertificatesMetadataCompare`: bool
fmt.Fprintf(os.Stdout, "Response from `CertificateApi.GetCertificatesMetadataCompare`: %v\n", resp)
}Other parameters are passed through a pointer to a apiGetCertificatesMetadataCompareRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| certificateId | int32 | Certificate identifier | |
| metadataFieldName | string | Metadata field being compared | |
| xKeyfactorRequestedWith | string | Type of the request [XMLHttpRequest, APIClient] | |
| value | string | Value to compare against | |
| collectionId | int32 | Optional certificate collection identifier used to ensure user access to the certificate | [default to 0] |
| xKeyfactorApiVersion | string | Desired version of the api, if not provided defaults to v1 |
bool
- 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]
NewUpdateCertificatesByIdOwnerRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificatesOwnerRequest(certificatesOwnerRequest).Execute()
Changes the certificate's owner. Users must be in the current owner's role and the new owner's role
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := int32(56) // int32 | Id of the certificate
xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient]
collectionId := int32(56) // int32 | An optional parameter for the collection Id the certificate is in. Defaults to no collection (optional) (default to 0)
xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional)
certificatesOwnerRequest := *openapiclient.NewCertificatesOwnerRequest() // CertificatesOwnerRequest | Security role identifier for the role to assign ownership. If removing the owner, leave both empty. (optional)
configuration := openapiclient.NewConfiguration(make(map[string]string))
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CertificateApi.NewUpdateCertificatesByIdOwnerRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificatesOwnerRequest(certificatesOwnerRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.UpdateCertificatesByIdOwner``: %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 | Id of the certificate |
Other parameters are passed through a pointer to a apiUpdateCertificatesByIdOwnerRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
xKeyfactorRequestedWith | string | Type of the request [XMLHttpRequest, APIClient] | collectionId | int32 | An optional parameter for the collection Id the certificate is in. Defaults to no collection | [default to 0] xKeyfactorApiVersion | string | Desired version of the api, if not provided defaults to v1 | certificatesOwnerRequest | CertificatesOwnerRequest | Security role identifier for the role to assign ownership. If removing the owner, leave both empty. |
(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]
NewUpdateCertificatesMetadataRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsMetadataUpdateRequest(cSSCMSDataModelModelsMetadataUpdateRequest).Execute()
Updates the metadata for the certificate associated with the identifier provided
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient]
collectionId := int32(56) // int32 | Optional certificate collection identifier used to ensure user access to the certificate (optional) (default to 0)
xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional)
cSSCMSDataModelModelsMetadataUpdateRequest := *openapiclient.NewCSSCMSDataModelModelsMetadataUpdateRequest(map[string]string{"key": "Inner_example"}) // CSSCMSDataModelModelsMetadataUpdateRequest | Contains the Keyfactor certificate identifier and the metadata to be updated (optional)
configuration := openapiclient.NewConfiguration(make(map[string]string))
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CertificateApi.NewUpdateCertificatesMetadataRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsMetadataUpdateRequest(cSSCMSDataModelModelsMetadataUpdateRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.UpdateCertificatesMetadata``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}Other parameters are passed through a pointer to a apiUpdateCertificatesMetadataRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| xKeyfactorRequestedWith | string | Type of the request [XMLHttpRequest, APIClient] | |
| collectionId | int32 | Optional certificate collection identifier used to ensure user access to the certificate | [default to 0] |
| xKeyfactorApiVersion | string | Desired version of the api, if not provided defaults to v1 | |
| cSSCMSDataModelModelsMetadataUpdateRequest | CSSCMSDataModelModelsMetadataUpdateRequest | Contains the Keyfactor certificate identifier and the metadata to be updated |
(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]
NewUpdateCertificatesMetadataAllRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsMetadataAllUpdateRequest(cSSCMSDataModelModelsMetadataAllUpdateRequest).Execute()
Updates the metadata for certificates associated with the certificate identifiers or query provided
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient]
collectionId := int32(56) // int32 | Optional certificate collection identifier used to ensure user access to the certificate (optional) (default to 0)
xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional)
cSSCMSDataModelModelsMetadataAllUpdateRequest := *openapiclient.NewCSSCMSDataModelModelsMetadataAllUpdateRequest([]openapiclient.CSSCMSDataModelModelsMetadataSingleUpdateRequest{*openapiclient.NewCSSCMSDataModelModelsMetadataSingleUpdateRequest()}) // CSSCMSDataModelModelsMetadataAllUpdateRequest | Contains the Keyfactor certificate identifier and the metadata to be updated (optional)
configuration := openapiclient.NewConfiguration(make(map[string]string))
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CertificateApi.NewUpdateCertificatesMetadataAllRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsMetadataAllUpdateRequest(cSSCMSDataModelModelsMetadataAllUpdateRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.UpdateCertificatesMetadataAll``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}Other parameters are passed through a pointer to a apiUpdateCertificatesMetadataAllRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| xKeyfactorRequestedWith | string | Type of the request [XMLHttpRequest, APIClient] | |
| collectionId | int32 | Optional certificate collection identifier used to ensure user access to the certificate | [default to 0] |
| xKeyfactorApiVersion | string | Desired version of the api, if not provided defaults to v1 | |
| cSSCMSDataModelModelsMetadataAllUpdateRequest | CSSCMSDataModelModelsMetadataAllUpdateRequest | Contains the Keyfactor certificate identifier and the metadata to be updated |
(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]