All URIs are relative to http://keyfactor.example.com
| Method | HTTP request | Description |
|---|---|---|
| CreateCertificateCollections | POST /CertificateCollections | Creates a new certificate collection with the provided properties |
| CreateCertificateCollectionsCopy | POST /CertificateCollections/Copy | Creates a new certificate collection from an existing collection. The permissions, query and description of the existing collection are copied when creating the new record, with the option to overwrite the query or description. |
| DeleteCertificateCollectionsById | DELETE /CertificateCollections/{id} | Delete one certificate collection |
| GetCertificateCollections | GET /CertificateCollections | Returns all certificate collections |
| GetCertificateCollectionsById | GET /CertificateCollections/{id} | Returns the certificate collection definition associated with the provided Keyfactor identifier |
| GetCertificateCollectionsCollectionList | GET /CertificateCollections/CollectionList | Get certificate collection list with duplication field name |
| GetCertificateCollectionsCollectionOrdering | GET /CertificateCollections/CollectionOrdering | Returns an array of collection Id's where the index in the array represents the collection ordering |
| GetCertificateCollectionsLastEstimated | GET /CertificateCollections/LastEstimated | Get the last time the timer service ran the job to process certificates in collections |
| GetCertificateCollectionsName | GET /CertificateCollections/{name} | Returns the certificate collection associated with the provided collection name |
| GetCertificateCollectionsNavItems | GET /CertificateCollections/NavItems | Get the list of navigation items for certificate collection |
| UpdateCertificateCollections | PUT /CertificateCollections | Updates an existing certificate collection with the provided properties |
| UpdateCertificateCollectionsByIdFavorite | PUT /CertificateCollections/{id}/Favorite | Update favorite for one collection |
CertificateCollectionsCertificateCollectionResponse NewCreateCertificateCollectionsRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificateCollectionsCertificateCollectionCreateRequest(certificateCollectionsCertificateCollectionCreateRequest).Execute()
Creates a new certificate collection with the provided properties
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient]
xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional)
certificateCollectionsCertificateCollectionCreateRequest := *openapiclient.NewCertificateCollectionsCertificateCollectionCreateRequest("Name_example") // CertificateCollectionsCertificateCollectionCreateRequest | Information related to the certificate collection query (optional)
configuration := openapiclient.NewConfiguration(make(map[string]string))
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CertificateCollectionApi.NewCreateCertificateCollectionsRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificateCollectionsCertificateCollectionCreateRequest(certificateCollectionsCertificateCollectionCreateRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateCollectionApi.CreateCertificateCollections``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateCertificateCollections`: CertificateCollectionsCertificateCollectionResponse
fmt.Fprintf(os.Stdout, "Response from `CertificateCollectionApi.CreateCertificateCollections`: %v\n", resp)
}Other parameters are passed through a pointer to a apiCreateCertificateCollectionsRequest 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 | |
| certificateCollectionsCertificateCollectionCreateRequest | CertificateCollectionsCertificateCollectionCreateRequest | Information related to the certificate collection query |
CertificateCollectionsCertificateCollectionResponse
- 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]
CertificateCollectionsCertificateCollectionResponse NewCreateCertificateCollectionsCopyRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificateCollectionsCertificateCollectionCopyRequest(certificateCollectionsCertificateCollectionCopyRequest).Execute()
Creates a new certificate collection from an existing collection. The permissions, query and description of the existing collection are copied when creating the new record, with the option to overwrite the query or description.
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)
certificateCollectionsCertificateCollectionCopyRequest := *openapiclient.NewCertificateCollectionsCertificateCollectionCopyRequest(int32(123), "Name_example") // CertificateCollectionsCertificateCollectionCopyRequest | Information related to the certificate collection query (optional)
configuration := openapiclient.NewConfiguration(make(map[string]string))
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CertificateCollectionApi.NewCreateCertificateCollectionsCopyRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificateCollectionsCertificateCollectionCopyRequest(certificateCollectionsCertificateCollectionCopyRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateCollectionApi.CreateCertificateCollectionsCopy``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateCertificateCollectionsCopy`: CertificateCollectionsCertificateCollectionResponse
fmt.Fprintf(os.Stdout, "Response from `CertificateCollectionApi.CreateCertificateCollectionsCopy`: %v\n", resp)
}Other parameters are passed through a pointer to a apiCreateCertificateCollectionsCopyRequest 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 | |
| certificateCollectionsCertificateCollectionCopyRequest | CertificateCollectionsCertificateCollectionCopyRequest | Information related to the certificate collection query |
CertificateCollectionsCertificateCollectionResponse
- 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]
NewDeleteCertificateCollectionsByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
Delete one certificate collection
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := int32(56) // int32 | The collection 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.CertificateCollectionApi.NewDeleteCertificateCollectionsByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateCollectionApi.DeleteCertificateCollectionsById``: %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 collection to delete |
Other parameters are passed through a pointer to a apiDeleteCertificateCollectionsByIdRequest 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]
[]CSSCMSDataModelModelsCertificateQuery NewGetCertificateCollectionsRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
Returns all certificate collections
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.CertificateCollectionApi.NewGetCertificateCollectionsRequest(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 `CertificateCollectionApi.GetCertificateCollections``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetCertificateCollections`: []CSSCMSDataModelModelsCertificateQuery
fmt.Fprintf(os.Stdout, "Response from `CertificateCollectionApi.GetCertificateCollections`: %v\n", resp)
}Other parameters are passed through a pointer to a apiGetCertificateCollectionsRequest 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 |
[]CSSCMSDataModelModelsCertificateQuery
- 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]
CSSCMSDataModelModelsCertificateQuery NewGetCertificateCollectionsByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
Returns the certificate collection definition associated with the provided Keyfactor identifier
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := int32(56) // int32 | Identifier of the certificate collection
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.CertificateCollectionApi.NewGetCertificateCollectionsByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateCollectionApi.GetCertificateCollectionsById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetCertificateCollectionsById`: CSSCMSDataModelModelsCertificateQuery
fmt.Fprintf(os.Stdout, "Response from `CertificateCollectionApi.GetCertificateCollectionsById`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | int32 | Identifier of the certificate collection |
Other parameters are passed through a pointer to a apiGetCertificateCollectionsByIdRequest 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 |
CSSCMSDataModelModelsCertificateQuery
- 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]
[]CertificateCollectionsCertificateCollectionListResponse NewGetCertificateCollectionsCollectionListRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
Get certificate collection list with duplication field name
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.CertificateCollectionApi.NewGetCertificateCollectionsCollectionListRequest(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 `CertificateCollectionApi.GetCertificateCollectionsCollectionList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetCertificateCollectionsCollectionList`: []CertificateCollectionsCertificateCollectionListResponse
fmt.Fprintf(os.Stdout, "Response from `CertificateCollectionApi.GetCertificateCollectionsCollectionList`: %v\n", resp)
}Other parameters are passed through a pointer to a apiGetCertificateCollectionsCollectionListRequest 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 |
[]CertificateCollectionsCertificateCollectionListResponse
- 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 NewGetCertificateCollectionsCollectionOrderingRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
Returns an array of collection Id's where the index in the array represents the collection ordering
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.CertificateCollectionApi.NewGetCertificateCollectionsCollectionOrderingRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateCollectionApi.GetCertificateCollectionsCollectionOrdering``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetCertificateCollectionsCollectionOrdering`: []int32
fmt.Fprintf(os.Stdout, "Response from `CertificateCollectionApi.GetCertificateCollectionsCollectionOrdering`: %v\n", resp)
}Other parameters are passed through a pointer to a apiGetCertificateCollectionsCollectionOrderingRequest 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]
SchedulingScheduledTaskScheduleResponse NewGetCertificateCollectionsLastEstimatedRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
Get the last time the timer service ran the job to process certificates in collections
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.CertificateCollectionApi.NewGetCertificateCollectionsLastEstimatedRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateCollectionApi.GetCertificateCollectionsLastEstimated``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetCertificateCollectionsLastEstimated`: SchedulingScheduledTaskScheduleResponse
fmt.Fprintf(os.Stdout, "Response from `CertificateCollectionApi.GetCertificateCollectionsLastEstimated`: %v\n", resp)
}Other parameters are passed through a pointer to a apiGetCertificateCollectionsLastEstimatedRequest 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 |
SchedulingScheduledTaskScheduleResponse
- 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]
CSSCMSDataModelModelsCertificateQuery NewGetCertificateCollectionsNameRequest(ctx, name).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
Returns the certificate collection associated with the provided collection name
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
name := "name_example" // string | Name of the Collection
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.CertificateCollectionApi.NewGetCertificateCollectionsNameRequest(context.Background(), name).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateCollectionApi.GetCertificateCollectionsName``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetCertificateCollectionsName`: CSSCMSDataModelModelsCertificateQuery
fmt.Fprintf(os.Stdout, "Response from `CertificateCollectionApi.GetCertificateCollectionsName`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| name | string | Name of the Collection |
Other parameters are passed through a pointer to a apiGetCertificateCollectionsNameRequest 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 |
CSSCMSDataModelModelsCertificateQuery
- 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]
[]CSSCMSDataModelModelsCertificateCollectionNavItem NewGetCertificateCollectionsNavItemsRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
Get the list of navigation items for certificate collection
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.CertificateCollectionApi.NewGetCertificateCollectionsNavItemsRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateCollectionApi.GetCertificateCollectionsNavItems``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetCertificateCollectionsNavItems`: []CSSCMSDataModelModelsCertificateCollectionNavItem
fmt.Fprintf(os.Stdout, "Response from `CertificateCollectionApi.GetCertificateCollectionsNavItems`: %v\n", resp)
}Other parameters are passed through a pointer to a apiGetCertificateCollectionsNavItemsRequest 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 |
[]CSSCMSDataModelModelsCertificateCollectionNavItem
- 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]
CertificateCollectionsCertificateCollectionResponse NewUpdateCertificateCollectionsRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificateCollectionsCertificateCollectionUpdateRequest(certificateCollectionsCertificateCollectionUpdateRequest).Execute()
Updates an existing certificate collection with the provided properties
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient]
xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional)
certificateCollectionsCertificateCollectionUpdateRequest := *openapiclient.NewCertificateCollectionsCertificateCollectionUpdateRequest(int32(123), "Name_example") // CertificateCollectionsCertificateCollectionUpdateRequest | Information related to the certificate collection query (optional)
configuration := openapiclient.NewConfiguration(make(map[string]string))
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CertificateCollectionApi.NewUpdateCertificateCollectionsRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificateCollectionsCertificateCollectionUpdateRequest(certificateCollectionsCertificateCollectionUpdateRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateCollectionApi.UpdateCertificateCollections``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateCertificateCollections`: CertificateCollectionsCertificateCollectionResponse
fmt.Fprintf(os.Stdout, "Response from `CertificateCollectionApi.UpdateCertificateCollections`: %v\n", resp)
}Other parameters are passed through a pointer to a apiUpdateCertificateCollectionsRequest 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 | |
| certificateCollectionsCertificateCollectionUpdateRequest | CertificateCollectionsCertificateCollectionUpdateRequest | Information related to the certificate collection query |
CertificateCollectionsCertificateCollectionResponse
- 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]
NewUpdateCertificateCollectionsByIdFavoriteRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificateCollectionsCertificateCollectionFavoriteRequest(certificateCollectionsCertificateCollectionFavoriteRequest).Execute()
Update favorite for one collection
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := int32(56) // int32 | The collection to update favorite with
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)
certificateCollectionsCertificateCollectionFavoriteRequest := *openapiclient.NewCertificateCollectionsCertificateCollectionFavoriteRequest(false) // CertificateCollectionsCertificateCollectionFavoriteRequest | Information for the certificate collection favorite update (optional)
configuration := openapiclient.NewConfiguration(make(map[string]string))
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CertificateCollectionApi.NewUpdateCertificateCollectionsByIdFavoriteRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificateCollectionsCertificateCollectionFavoriteRequest(certificateCollectionsCertificateCollectionFavoriteRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateCollectionApi.UpdateCertificateCollectionsByIdFavorite``: %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 collection to update favorite with |
Other parameters are passed through a pointer to a apiUpdateCertificateCollectionsByIdFavoriteRequest 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 | certificateCollectionsCertificateCollectionFavoriteRequest | CertificateCollectionsCertificateCollectionFavoriteRequest | Information for the certificate collection favorite update |
(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]