All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
AddCA | Post /api/v1/customers/{cUUID}/customCAStore | Add a named custom CA certificate |
DeleteCustomCACertificate | Delete /api/v1/customers/{cUUID}/customCAStoreCertificates/{certUUID} | Delete a named custom CA certificate |
GetAllCustomCaCertificates | Get /api/v1/customers/{cUUID}/customCAStoreCertificates/{certUUID} | Download a custom CA certificates of a customer |
ListAllCustomCaCertificates | Get /api/v1/customers/{cUUID}/customCAStoreCertificates | List all custom CA certificates of a customer |
UpdateCA | Post /api/v1/customers/{cUUID}/customCAStore/{certUUID} | Update a named custom CA certificate |
string AddCA(ctx, cUUID).X509CACertificate(x509CACertificate).Request(request).Execute()
Add a named custom CA certificate
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
cUUID := TODO // string |
x509CACertificate := *openapiclient.NewCustomCACertParams("Contents_example", "Name_example") // CustomCACertParams | CA certificate contents in 'X509' format
request := TODO // interface{} | (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.CustomCACertificatesApi.AddCA(context.Background(), cUUID).X509CACertificate(x509CACertificate).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CustomCACertificatesApi.AddCA``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AddCA`: string
fmt.Fprintf(os.Stdout, "Response from `CustomCACertificatesApi.AddCA`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
cUUID | string |
Other parameters are passed through a pointer to a apiAddCARequest struct via the builder pattern
Name | Type | Description | Notes |
---|
x509CACertificate | CustomCACertParams | CA certificate contents in 'X509' format | request | interface{} | |
string
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
YBPSuccess DeleteCustomCACertificate(ctx, cUUID, certUUID).Request(request).Execute()
Delete a named custom CA certificate
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
cUUID := TODO // string |
certUUID := TODO // string |
request := TODO // interface{} | (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.CustomCACertificatesApi.DeleteCustomCACertificate(context.Background(), cUUID, certUUID).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CustomCACertificatesApi.DeleteCustomCACertificate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DeleteCustomCACertificate`: YBPSuccess
fmt.Fprintf(os.Stdout, "Response from `CustomCACertificatesApi.DeleteCustomCACertificate`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
cUUID | string | ||
certUUID | string |
Other parameters are passed through a pointer to a apiDeleteCustomCACertificateRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
request | interface{} | |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CustomCaCertificateInfo GetAllCustomCaCertificates(ctx, cUUID, certUUID).Request(request).Execute()
Download a custom CA certificates of a customer
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
cUUID := TODO // string |
certUUID := TODO // string |
request := TODO // interface{} | (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.CustomCACertificatesApi.GetAllCustomCaCertificates(context.Background(), cUUID, certUUID).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CustomCACertificatesApi.GetAllCustomCaCertificates``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetAllCustomCaCertificates`: CustomCaCertificateInfo
fmt.Fprintf(os.Stdout, "Response from `CustomCACertificatesApi.GetAllCustomCaCertificates`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
cUUID | string | ||
certUUID | string |
Other parameters are passed through a pointer to a apiGetAllCustomCaCertificatesRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
request | interface{} | |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]CustomCaCertificateInfo ListAllCustomCaCertificates(ctx, cUUID).Execute()
List all custom CA certificates of a customer
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
cUUID := TODO // string |
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.CustomCACertificatesApi.ListAllCustomCaCertificates(context.Background(), cUUID).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CustomCACertificatesApi.ListAllCustomCaCertificates``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListAllCustomCaCertificates`: []CustomCaCertificateInfo
fmt.Fprintf(os.Stdout, "Response from `CustomCACertificatesApi.ListAllCustomCaCertificates`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
cUUID | string |
Other parameters are passed through a pointer to a apiListAllCustomCaCertificatesRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string UpdateCA(ctx, cUUID, certUUID).X509CACertificate(x509CACertificate).Request(request).Execute()
Update a named custom CA certificate
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
cUUID := TODO // string |
certUUID := TODO // string |
x509CACertificate := *openapiclient.NewCustomCACertParams("Contents_example", "Name_example") // CustomCACertParams | CA certificate contents in 'X509' format
request := TODO // interface{} | (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.CustomCACertificatesApi.UpdateCA(context.Background(), cUUID, certUUID).X509CACertificate(x509CACertificate).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CustomCACertificatesApi.UpdateCA``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateCA`: string
fmt.Fprintf(os.Stdout, "Response from `CustomCACertificatesApi.UpdateCA`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
cUUID | string | ||
certUUID | string |
Other parameters are passed through a pointer to a apiUpdateCARequest struct via the builder pattern
Name | Type | Description | Notes |
---|
x509CACertificate | CustomCACertParams | CA certificate contents in 'X509' format | request | interface{} | |
string
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]