packagemainimport("context""fmt""os"ionoscloud"github.com/ionos-cloud/sdk-go-logging")funcmain(){pipelineId:="pipelineId_example"// string | The unique ID of the pipelineconfiguration:=ionoscloud.NewConfiguration("USERNAME","PASSWORD","TOKEN","HOST_URL")apiClient:=ionoscloud.NewAPIClient(configuration)resp,err:=apiClient.PipelinesApi.PipelinesDelete(context.Background(),pipelineId).Execute()iferr!=nil{fmt.Fprintf(os.Stderr,"Error when calling `PipelinesApi.PipelinesDelete``: %v\n",err)fmt.Fprintf(os.Stderr,"Full HTTP response: %v\n",resp)}// response from `PipelinesDelete`: Pipelinefmt.Fprintf(os.Stdout,"Response from `PipelinesApi.PipelinesDelete`: %v\n",resource)}
Path Parameters
Name
Type
Description
Notes
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
pipelineId
string
The unique ID of the pipeline
Other Parameters
Other parameters are passed through a pointer to an apiPipelinesDeleteRequest struct via the builder pattern
Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "PipelinesApiService.PipelinesDelete" string. Similar rules for overriding default operation server index and variables apply by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.
PipelinesFindById
Fetch a pipeline
Example
Path Parameters
Name
Type
Description
Notes
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
pipelineId
string
The unique ID of the pipeline
Other Parameters
Other parameters are passed through a pointer to an apiPipelinesFindByIdRequest struct via the builder pattern
Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "PipelinesApiService.PipelinesFindById" string. Similar rules for overriding default operation server index and variables apply by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.
PipelinesGet
List pipelines
Example
Path Parameters
Other Parameters
Other parameters are passed through a pointer to an apiPipelinesGetRequest struct via the builder pattern
Name
Type
Description
Notes
limit
int32
the maximum number of elements to return (use together with offset for pagination). Default to 100
[default to 0]
offset
int32
the first element (of the total list of elements) to include in the response (use together with limit for pagination). Default to 0
[default to 0]
orderBy
string
Sorts the results alphanumerically in ascending order based on the specified property
Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "PipelinesApiService.PipelinesGet" string. Similar rules for overriding default operation server index and variables apply by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.
PipelinesKeyPost
Renews the key of a Pipeline
Example
Path Parameters
Name
Type
Description
Notes
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
pipelineId
string
The unique ID of the pipeline
Other Parameters
Other parameters are passed through a pointer to an apiPipelinesKeyPostRequest struct via the builder pattern
Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "PipelinesApiService.PipelinesKeyPost" string. Similar rules for overriding default operation server index and variables apply by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.
PipelinesPatch
Patch a pipeline
Example
Path Parameters
Name
Type
Description
Notes
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
pipelineId
string
The unique ID of the pipeline
Other Parameters
Other parameters are passed through a pointer to an apiPipelinesPatchRequest struct via the builder pattern
Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "PipelinesApiService.PipelinesPatch" string. Similar rules for overriding default operation server index and variables apply by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.
PipelinesPost
Create a pipeline
Example
Path Parameters
Other Parameters
Other parameters are passed through a pointer to an apiPipelinesPostRequest struct via the builder pattern
Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "PipelinesApiService.PipelinesPost" string. Similar rules for overriding default operation server index and variables apply by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.
var result PipelineListResponse = PipelinesGet(ctx)
.Limit(limit)
.Offset(offset)
.OrderBy(orderBy)
.Execute()
package main
import (
"context"
"fmt"
"os"
ionoscloud "github.com/ionos-cloud/sdk-go-logging"
)
func main() {
limit := int32(56) // int32 | the maximum number of elements to return (use together with offset for pagination). Default to 100 (optional) (default to 0)
offset := int32(56) // int32 | the first element (of the total list of elements) to include in the response (use together with limit for pagination). Default to 0 (optional) (default to 0)
orderBy := "orderBy_example" // string | Sorts the results alphanumerically in ascending order based on the specified property (optional)
configuration := ionoscloud.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL")
apiClient := ionoscloud.NewAPIClient(configuration)
resource, resp, err := apiClient.PipelinesApi.PipelinesGet(context.Background()).Limit(limit).Offset(offset).OrderBy(orderBy).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PipelinesApi.PipelinesGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp)
}
// response from `PipelinesGet`: PipelineListResponse
fmt.Fprintf(os.Stdout, "Response from `PipelinesApi.PipelinesGet`: %v\n", resource)
}