All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
CreateSelfSignedCert | Post /api/v1/customers/{cUUID}/certificates/create_self_signed_cert | Create a self signed certificate |
DeleteCertificate | Delete /api/v1/customers/{cUUID}/certificates/{rUUID} | Delete a certificate |
EditCertificate | Post /api/v1/customers/{cUUID}/certificates/{rUUID}/edit | Edit TLS certificate config details |
GetCertificate | Get /api/v1/customers/{cUUID}/certificates/{name} | Get a certificate's UUID |
GetClientCert | Post /api/v1/customers/{cUUID}/certificates/{rUUID} | Add a client certificate |
GetListOfCertificate | Get /api/v1/customers/{cUUID}/certificates | List a customer's certificates |
GetRootCert | Get /api/v1/customers/{cUUID}/certificates/{rUUID}/download | Get a customer's root certificate |
UpdateEmptyCustomCert | Post /api/v1/customers/{cUUID}/certificates/{rUUID}/update_empty_cert | Update an empty certificate |
Upload | Post /api/v1/customers/{cUUID}/certificates | Restore a certificate from backup |
string CreateSelfSignedCert(ctx, cUUID).Label(label).Request(request).Execute()
Create a self signed certificate
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
cUUID := TODO // string |
label := "label_example" // string | certificate label
request := TODO // interface{} | (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.CertificateInfoApi.CreateSelfSignedCert(context.Background(), cUUID).Label(label).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateInfoApi.CreateSelfSignedCert``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateSelfSignedCert`: string
fmt.Fprintf(os.Stdout, "Response from `CertificateInfoApi.CreateSelfSignedCert`: %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 apiCreateSelfSignedCertRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
label | string | certificate label | 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 DeleteCertificate(ctx, cUUID, rUUID).Request(request).Execute()
Delete a certificate
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
cUUID := TODO // string |
rUUID := TODO // string |
request := TODO // interface{} | (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.CertificateInfoApi.DeleteCertificate(context.Background(), cUUID, rUUID).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateInfoApi.DeleteCertificate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DeleteCertificate`: YBPSuccess
fmt.Fprintf(os.Stdout, "Response from `CertificateInfoApi.DeleteCertificate`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
cUUID | string | ||
rUUID | string |
Other parameters are passed through a pointer to a apiDeleteCertificateRequest 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]
YBPSuccess EditCertificate(ctx, cUUID, rUUID).Certificate(certificate).Request(request).Execute()
Edit TLS certificate config details
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
cUUID := TODO // string |
rUUID := TODO // string |
certificate := *openapiclient.NewCertificateParams("CertContent_example", int64(123), int64(123), "CertType_example", "Label_example") // CertificateParams | certificate params to edit
request := TODO // interface{} | (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.CertificateInfoApi.EditCertificate(context.Background(), cUUID, rUUID).Certificate(certificate).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateInfoApi.EditCertificate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `EditCertificate`: YBPSuccess
fmt.Fprintf(os.Stdout, "Response from `CertificateInfoApi.EditCertificate`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
cUUID | string | ||
rUUID | string |
Other parameters are passed through a pointer to a apiEditCertificateRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
certificate | CertificateParams | certificate params to edit | request | interface{} | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string GetCertificate(ctx, cUUID, name).Execute()
Get a certificate's UUID
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
cUUID := TODO // string |
name := "name_example" // string |
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.CertificateInfoApi.GetCertificate(context.Background(), cUUID, name).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateInfoApi.GetCertificate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetCertificate`: string
fmt.Fprintf(os.Stdout, "Response from `CertificateInfoApi.GetCertificate`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
cUUID | string | ||
name | string |
Other parameters are passed through a pointer to a apiGetCertificateRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
string
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CertificateDetails GetClientCert(ctx, cUUID, rUUID).Certificate(certificate).Request(request).Execute()
Add a client certificate
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
cUUID := TODO // string |
rUUID := TODO // string |
certificate := *openapiclient.NewClientCertParams(int64(123), int64(123), "Username_example") // ClientCertParams | post certificate info
request := TODO // interface{} | (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.CertificateInfoApi.GetClientCert(context.Background(), cUUID, rUUID).Certificate(certificate).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateInfoApi.GetClientCert``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetClientCert`: CertificateDetails
fmt.Fprintf(os.Stdout, "Response from `CertificateInfoApi.GetClientCert`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
cUUID | string | ||
rUUID | string |
Other parameters are passed through a pointer to a apiGetClientCertRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
certificate | ClientCertParams | post certificate info | request | interface{} | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]CertificateInfoExt GetListOfCertificate(ctx, cUUID).Execute()
List a customer's certificates
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.CertificateInfoApi.GetListOfCertificate(context.Background(), cUUID).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateInfoApi.GetListOfCertificate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetListOfCertificate`: []CertificateInfoExt
fmt.Fprintf(os.Stdout, "Response from `CertificateInfoApi.GetListOfCertificate`: %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 apiGetListOfCertificateRequest 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]
map[string]interface{} GetRootCert(ctx, cUUID, rUUID).Request(request).Execute()
Get a customer's root certificate
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
cUUID := TODO // string |
rUUID := TODO // string |
request := TODO // interface{} | (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.CertificateInfoApi.GetRootCert(context.Background(), cUUID, rUUID).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateInfoApi.GetRootCert``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetRootCert`: map[string]interface{}
fmt.Fprintf(os.Stdout, "Response from `CertificateInfoApi.GetRootCert`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
cUUID | string | ||
rUUID | string |
Other parameters are passed through a pointer to a apiGetRootCertRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
request | interface{} | |
map[string]interface{}
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CertificateInfoExt UpdateEmptyCustomCert(ctx, cUUID, rUUID).Request(request).Execute()
Update an empty certificate
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
cUUID := TODO // string |
rUUID := TODO // string |
request := TODO // interface{} | (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.CertificateInfoApi.UpdateEmptyCustomCert(context.Background(), cUUID, rUUID).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateInfoApi.UpdateEmptyCustomCert``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateEmptyCustomCert`: CertificateInfoExt
fmt.Fprintf(os.Stdout, "Response from `CertificateInfoApi.UpdateEmptyCustomCert`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
cUUID | string | ||
rUUID | string |
Other parameters are passed through a pointer to a apiUpdateEmptyCustomCertRequest 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]
string Upload(ctx, cUUID).Certificate(certificate).Request(request).Execute()
Restore a certificate from backup
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
cUUID := TODO // string |
certificate := *openapiclient.NewCertificateParams("CertContent_example", int64(123), int64(123), "CertType_example", "Label_example") // CertificateParams | certificate params of the backup to be restored
request := TODO // interface{} | (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.CertificateInfoApi.Upload(context.Background(), cUUID).Certificate(certificate).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificateInfoApi.Upload``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Upload`: string
fmt.Fprintf(os.Stdout, "Response from `CertificateInfoApi.Upload`: %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 apiUploadRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
certificate | CertificateParams | certificate params of the backup to be restored | request | interface{} | |
string
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]