Skip to content

Latest commit

 

History

History
152 lines (96 loc) · 4.51 KB

JobDeploymentHistoryAPI.md

File metadata and controls

152 lines (96 loc) · 4.51 KB

\JobDeploymentHistoryAPI

All URIs are relative to https://api.qovery.com

Method HTTP request Description
ListJobDeploymentHistory Get /job/{jobId}/deploymentHistory List job deployments
ListJobDeploymentHistoryV2 Get /job/{jobId}/deploymentHistoryV2 List job deployments

ListJobDeploymentHistory

ListJobDeploymentHistory200Response ListJobDeploymentHistory(ctx, jobId).Execute()

List job deployments

Example

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.JobDeploymentHistoryAPI.ListJobDeploymentHistory(context.Background(), jobId).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `JobDeploymentHistoryAPI.ListJobDeploymentHistory``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `ListJobDeploymentHistory`: ListJobDeploymentHistory200Response
	fmt.Fprintf(os.Stdout, "Response from `JobDeploymentHistoryAPI.ListJobDeploymentHistory`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
jobId string Job ID

Other Parameters

Other parameters are passed through a pointer to a apiListJobDeploymentHistoryRequest struct via the builder pattern

Name Type Description Notes

Return type

ListJobDeploymentHistory200Response

Authorization

ApiKeyAuth, bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ListJobDeploymentHistoryV2

DeploymentHistoryServicePaginatedResponseListV2 ListJobDeploymentHistoryV2(ctx, jobId).PageSize(pageSize).Execute()

List job deployments

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/qovery/qovery-client-go"
)

func main() {
	jobId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | 
	pageSize := float32(8.14) // float32 | The number of deployments to return in the current page (optional) (default to 20)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.JobDeploymentHistoryAPI.ListJobDeploymentHistoryV2(context.Background(), jobId).PageSize(pageSize).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `JobDeploymentHistoryAPI.ListJobDeploymentHistoryV2``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `ListJobDeploymentHistoryV2`: DeploymentHistoryServicePaginatedResponseListV2
	fmt.Fprintf(os.Stdout, "Response from `JobDeploymentHistoryAPI.ListJobDeploymentHistoryV2`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
jobId string

Other Parameters

Other parameters are passed through a pointer to a apiListJobDeploymentHistoryV2Request struct via the builder pattern

Name Type Description Notes

pageSize | float32 | The number of deployments to return in the current page | [default to 20]

Return type

DeploymentHistoryServicePaginatedResponseListV2

Authorization

ApiKeyAuth, bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]