All URIs are relative to https://api.qovery.com
Method | HTTP request | Description |
---|---|---|
CreateApplicationDeploymentRestriction | Post /application/{applicationId}/deploymentRestriction | Create an application deployment restriction |
DeleteApplicationDeploymentRestriction | Delete /application/{applicationId}/deploymentRestriction/{deploymentRestrictionId} | Delete an application deployment restriction |
EditApplicationDeploymentRestriction | Put /application/{applicationId}/deploymentRestriction/{deploymentRestrictionId} | Edit an application deployment restriction |
GetApplicationDeploymentRestrictions | Get /application/{applicationId}/deploymentRestriction | Get application deployment restrictions |
ApplicationDeploymentRestriction CreateApplicationDeploymentRestriction(ctx, applicationId).ApplicationDeploymentRestrictionRequest(applicationDeploymentRestrictionRequest).Execute()
Create an application deployment restriction
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/qovery/qovery-client-go"
)
func main() {
applicationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Application ID
applicationDeploymentRestrictionRequest := *openapiclient.NewApplicationDeploymentRestrictionRequest(openapiclient.DeploymentRestrictionModeEnum("EXCLUDE"), openapiclient.DeploymentRestrictionTypeEnum("PATH"), "application1/src/") // ApplicationDeploymentRestrictionRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ApplicationDeploymentRestrictionAPI.CreateApplicationDeploymentRestriction(context.Background(), applicationId).ApplicationDeploymentRestrictionRequest(applicationDeploymentRestrictionRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ApplicationDeploymentRestrictionAPI.CreateApplicationDeploymentRestriction``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateApplicationDeploymentRestriction`: ApplicationDeploymentRestriction
fmt.Fprintf(os.Stdout, "Response from `ApplicationDeploymentRestrictionAPI.CreateApplicationDeploymentRestriction`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
applicationId | string | Application ID |
Other parameters are passed through a pointer to a apiCreateApplicationDeploymentRestrictionRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
applicationDeploymentRestrictionRequest | ApplicationDeploymentRestrictionRequest | |
ApplicationDeploymentRestriction
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteApplicationDeploymentRestriction(ctx, applicationId, deploymentRestrictionId).Execute()
Delete an application deployment restriction
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/qovery/qovery-client-go"
)
func main() {
applicationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Application ID
deploymentRestrictionId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Deployment Restriction ID
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.ApplicationDeploymentRestrictionAPI.DeleteApplicationDeploymentRestriction(context.Background(), applicationId, deploymentRestrictionId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ApplicationDeploymentRestrictionAPI.DeleteApplicationDeploymentRestriction``: %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. | |
applicationId | string | Application ID | |
deploymentRestrictionId | string | Deployment Restriction ID |
Other parameters are passed through a pointer to a apiDeleteApplicationDeploymentRestrictionRequest 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]
ApplicationDeploymentRestriction EditApplicationDeploymentRestriction(ctx, applicationId, deploymentRestrictionId).ApplicationDeploymentRestrictionRequest(applicationDeploymentRestrictionRequest).Execute()
Edit an application deployment restriction
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/qovery/qovery-client-go"
)
func main() {
applicationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Application ID
deploymentRestrictionId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Deployment Restriction ID
applicationDeploymentRestrictionRequest := *openapiclient.NewApplicationDeploymentRestrictionRequest(openapiclient.DeploymentRestrictionModeEnum("EXCLUDE"), openapiclient.DeploymentRestrictionTypeEnum("PATH"), "application1/src/") // ApplicationDeploymentRestrictionRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ApplicationDeploymentRestrictionAPI.EditApplicationDeploymentRestriction(context.Background(), applicationId, deploymentRestrictionId).ApplicationDeploymentRestrictionRequest(applicationDeploymentRestrictionRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ApplicationDeploymentRestrictionAPI.EditApplicationDeploymentRestriction``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `EditApplicationDeploymentRestriction`: ApplicationDeploymentRestriction
fmt.Fprintf(os.Stdout, "Response from `ApplicationDeploymentRestrictionAPI.EditApplicationDeploymentRestriction`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
applicationId | string | Application ID | |
deploymentRestrictionId | string | Deployment Restriction ID |
Other parameters are passed through a pointer to a apiEditApplicationDeploymentRestrictionRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
applicationDeploymentRestrictionRequest | ApplicationDeploymentRestrictionRequest | |
ApplicationDeploymentRestriction
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApplicationDeploymentRestrictionResponseList GetApplicationDeploymentRestrictions(ctx, applicationId).Execute()
Get application deployment restrictions
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/qovery/qovery-client-go"
)
func main() {
applicationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Application ID
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ApplicationDeploymentRestrictionAPI.GetApplicationDeploymentRestrictions(context.Background(), applicationId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ApplicationDeploymentRestrictionAPI.GetApplicationDeploymentRestrictions``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetApplicationDeploymentRestrictions`: ApplicationDeploymentRestrictionResponseList
fmt.Fprintf(os.Stdout, "Response from `ApplicationDeploymentRestrictionAPI.GetApplicationDeploymentRestrictions`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
applicationId | string | Application ID |
Other parameters are passed through a pointer to a apiGetApplicationDeploymentRestrictionsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
ApplicationDeploymentRestrictionResponseList
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]