All URIs are relative to https://localhost:8080
Method | HTTP request | Description |
---|---|---|
CreateCertificates | Post /api/certs | Create a certificate in Tyk org cert store. |
DeleteCertificateDependencies | Delete /api/certs/dependencies/{certId} | Delete Certificate dependencies. |
DeleteCertificates | Delete /api/certs/{certId} | Delete Certificate. |
GetCertificate | Get /api/certs/{certId} | Get single certificate with ID. |
GetCertificateDependencies | Get /api/certs/dependencies/{certId} | Get Certificate Dependencies. |
ListCertificates | Get /api/certs | List Certificates. |
ListDetailedCertificates | Get /api/certs/details | List all certificates details. |
APICertificateStatusMessage CreateCertificates(ctx).File(file).Execute()
Create a certificate in Tyk org cert store.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/TykTechnologies/dashboard-sdk"
)
func main() {
file := os.NewFile(1234, "some_file") // *os.File |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CertificatesAPI.CreateCertificates(context.Background()).File(file).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificatesAPI.CreateCertificates``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateCertificates`: APICertificateStatusMessage
fmt.Fprintf(os.Stdout, "Response from `CertificatesAPI.CreateCertificates`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiCreateCertificatesRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
file | *os.File |
- Content-Type: multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiResponse DeleteCertificateDependencies(ctx, certId).Execute()
Delete Certificate dependencies.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/TykTechnologies/dashboard-sdk"
)
func main() {
certId := "5e9d9544a1dcd60001d0ed208edce514c2d0a866063550c64d6c90be99d01561ac5aa7e82b8610b7e273d37d" // string | ID of the certificate you want to delete dependencies for.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CertificatesAPI.DeleteCertificateDependencies(context.Background(), certId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificatesAPI.DeleteCertificateDependencies``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DeleteCertificateDependencies`: ApiResponse
fmt.Fprintf(os.Stdout, "Response from `CertificatesAPI.DeleteCertificateDependencies`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
certId | string | ID of the certificate you want to delete dependencies for. |
Other parameters are passed through a pointer to a apiDeleteCertificateDependenciesRequest 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]
ApiStatusMessage DeleteCertificates(ctx, certId).Execute()
Delete Certificate.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/TykTechnologies/dashboard-sdk"
)
func main() {
certId := "5e9d9544a1dcd60001d0ed208edce514c2d0a866063550c64d6c90be99d01561ac5aa7e82b8610b7e273d37d" // string | ID of the certificate you want to delete.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CertificatesAPI.DeleteCertificates(context.Background(), certId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificatesAPI.DeleteCertificates``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DeleteCertificates`: ApiStatusMessage
fmt.Fprintf(os.Stdout, "Response from `CertificatesAPI.DeleteCertificates`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
certId | string | ID of the certificate you want to delete. |
Other parameters are passed through a pointer to a apiDeleteCertificatesRequest 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]
CertsCertificateMeta GetCertificate(ctx, certId).Execute()
Get single certificate with ID.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/TykTechnologies/dashboard-sdk"
)
func main() {
certId := "5e9d9544a1dcd60001d0ed208edce514c2d0a866063550c64d6c90be99d01561ac5aa7e82b8610b7e273d37d" // string | ID of the certificate you want to fetch.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CertificatesAPI.GetCertificate(context.Background(), certId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificatesAPI.GetCertificate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetCertificate`: CertsCertificateMeta
fmt.Fprintf(os.Stdout, "Response from `CertificatesAPI.GetCertificate`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
certId | string | ID of the certificate you want to fetch. |
Other parameters are passed through a pointer to a apiGetCertificateRequest 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]
CertificateDependencies GetCertificateDependencies(ctx, certId).Execute()
Get Certificate Dependencies.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/TykTechnologies/dashboard-sdk"
)
func main() {
certId := "5e9d9544a1dcd60001d0ed208edce514c2d0a866063550c64d6c90be99d01561ac5aa7e82b8610b7e273d37d" // string | ID of the certificate you want to fetch dependencies for.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CertificatesAPI.GetCertificateDependencies(context.Background(), certId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificatesAPI.GetCertificateDependencies``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetCertificateDependencies`: CertificateDependencies
fmt.Fprintf(os.Stdout, "Response from `CertificatesAPI.GetCertificateDependencies`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
certId | string | ID of the certificate you want to fetch dependencies for. |
Other parameters are passed through a pointer to a apiGetCertificateDependenciesRequest 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]
ListCertificates200Response ListCertificates(ctx).P(p).Mode(mode).Execute()
List Certificates.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/TykTechnologies/dashboard-sdk"
)
func main() {
p := int32(1) // int32 | Use p query parameter to say which page you want returned. Send number less than 0 to return all items. (optional)
mode := "detailed" // string | Set to detailed to get certificates that are more with more details (Will contains certs basic details). To retrieve a list of certificates with all the certificate details use [this endpoint](#operation/listDetailedCertificates). (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CertificatesAPI.ListCertificates(context.Background()).P(p).Mode(mode).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificatesAPI.ListCertificates``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListCertificates`: ListCertificates200Response
fmt.Fprintf(os.Stdout, "Response from `CertificatesAPI.ListCertificates`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiListCertificatesRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
p | int32 | Use p query parameter to say which page you want returned. Send number less than 0 to return all items. | |
mode | string | Set to detailed to get certificates that are more with more details (Will contains certs basic details). To retrieve a list of certificates with all the certificate details use this endpoint. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CertificateDetailedList ListDetailedCertificates(ctx).P(p).Execute()
List all certificates details.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/TykTechnologies/dashboard-sdk"
)
func main() {
p := int32(1) // int32 | Use p query parameter to say which page you want returned. Send number less than 0 to return all items. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CertificatesAPI.ListDetailedCertificates(context.Background()).P(p).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CertificatesAPI.ListDetailedCertificates``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListDetailedCertificates`: CertificateDetailedList
fmt.Fprintf(os.Stdout, "Response from `CertificatesAPI.ListDetailedCertificates`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiListDetailedCertificatesRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
p | int32 | Use p query parameter to say which page you want returned. Send number less than 0 to return all items. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]