All URIs are relative to https://api.qovery.com
| Method | HTTP request | Description |
|---|---|---|
| CreateJobSecret | Post /job/{jobId}/secret | Add a secret to the job |
| CreateJobSecretAlias | Post /job/{jobId}/secret/{secretId}/alias | Create a secret alias at the job level |
| CreateJobSecretOverride | Post /job/{jobId}/secret/{secretId}/override | Create a secret override at the job level |
| DeleteJobSecret | Delete /job/{jobId}/secret/{secretId} | Delete a secret from an job |
| EditJobSecret | Put /job/{jobId}/secret/{secretId} | Edit a secret belonging to the job |
| ListJobSecrets | Get /job/{jobId}/secret | List job secrets |
Secret CreateJobSecret(ctx, jobId).SecretRequest(secretRequest).Execute()
Add a secret to the job
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/qovery/qovery-client-go"
)
func main() {
jobId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Job ID
secretRequest := *openapiclient.NewSecretRequest("Key_example") // SecretRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.JobSecretAPI.CreateJobSecret(context.Background(), jobId).SecretRequest(secretRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `JobSecretAPI.CreateJobSecret``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateJobSecret`: Secret
fmt.Fprintf(os.Stdout, "Response from `JobSecretAPI.CreateJobSecret`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| jobId | string | Job ID |
Other parameters are passed through a pointer to a apiCreateJobSecretRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
secretRequest | SecretRequest | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Secret CreateJobSecretAlias(ctx, jobId, secretId).Key(key).Execute()
Create a secret alias at the job level
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/qovery/qovery-client-go"
)
func main() {
jobId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Job ID
secretId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Secret ID
key := *openapiclient.NewKey("Key_example") // Key | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.JobSecretAPI.CreateJobSecretAlias(context.Background(), jobId, secretId).Key(key).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `JobSecretAPI.CreateJobSecretAlias``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateJobSecretAlias`: Secret
fmt.Fprintf(os.Stdout, "Response from `JobSecretAPI.CreateJobSecretAlias`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| jobId | string | Job ID | |
| secretId | string | Secret ID |
Other parameters are passed through a pointer to a apiCreateJobSecretAliasRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
key | Key | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Secret CreateJobSecretOverride(ctx, jobId, secretId).Value(value).Execute()
Create a secret override at the job level
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/qovery/qovery-client-go"
)
func main() {
jobId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Job ID
secretId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Secret ID
value := *openapiclient.NewValue() // Value | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.JobSecretAPI.CreateJobSecretOverride(context.Background(), jobId, secretId).Value(value).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `JobSecretAPI.CreateJobSecretOverride``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateJobSecretOverride`: Secret
fmt.Fprintf(os.Stdout, "Response from `JobSecretAPI.CreateJobSecretOverride`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| jobId | string | Job ID | |
| secretId | string | Secret ID |
Other parameters are passed through a pointer to a apiCreateJobSecretOverrideRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
value | Value | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteJobSecret(ctx, jobId, secretId).Execute()
Delete a secret from an job
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/qovery/qovery-client-go"
)
func main() {
jobId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Job ID
secretId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Secret ID
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.JobSecretAPI.DeleteJobSecret(context.Background(), jobId, secretId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `JobSecretAPI.DeleteJobSecret``: %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. | |
| jobId | string | Job ID | |
| secretId | string | Secret ID |
Other parameters are passed through a pointer to a apiDeleteJobSecretRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Secret EditJobSecret(ctx, jobId, secretId).SecretEditRequest(secretEditRequest).Execute()
Edit a secret belonging to the job
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/qovery/qovery-client-go"
)
func main() {
jobId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Job ID
secretId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Secret ID
secretEditRequest := *openapiclient.NewSecretEditRequest("Key_example") // SecretEditRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.JobSecretAPI.EditJobSecret(context.Background(), jobId, secretId).SecretEditRequest(secretEditRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `JobSecretAPI.EditJobSecret``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `EditJobSecret`: Secret
fmt.Fprintf(os.Stdout, "Response from `JobSecretAPI.EditJobSecret`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| jobId | string | Job ID | |
| secretId | string | Secret ID |
Other parameters are passed through a pointer to a apiEditJobSecretRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
secretEditRequest | SecretEditRequest | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SecretResponseList ListJobSecrets(ctx, jobId).Execute()
List job secrets
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/qovery/qovery-client-go"
)
func main() {
jobId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Job ID
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.JobSecretAPI.ListJobSecrets(context.Background(), jobId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `JobSecretAPI.ListJobSecrets``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListJobSecrets`: SecretResponseList
fmt.Fprintf(os.Stdout, "Response from `JobSecretAPI.ListJobSecrets`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| jobId | string | Job ID |
Other parameters are passed through a pointer to a apiListJobSecretsRequest 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]