PipelinesApi
All URIs are relative to https://monitoring.de-fra.ionos.com
PipelinesDelete
var result = PipelinesDelete(ctx, pipelineId)
.Execute()Delete Pipeline
Example
package main
import (
"context"
"fmt"
"os"
monitoring "github.com/ionos-cloud/sdk-go-bundle/products/monitoring"
"github.com/ionos-cloud/sdk-go-bundle/shared"
)
func main() {
pipelineId := "f72521ba-1590-5998-bf96-6eb997a5887d" // string | The ID (UUID) of the Pipeline.
configuration := shared.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL")
apiClient := monitoring.NewAPIClient(configuration)
resp, err := apiClient.PipelinesApi.PipelinesDelete(context.Background(), pipelineId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PipelinesApi.PipelinesDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp)
}
}Path Parameters
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
pipelineId
string
The ID (UUID) of the Pipeline.
Other Parameters
Other parameters are passed through a pointer to an apiPipelinesDeleteRequest struct via the builder pattern
Name
Type
Description
Notes
Return type
(empty response body)
HTTP request headers
Content-Type: Not defined
Accept: application/json
PipelinesFindById
var result PipelineRead = PipelinesFindById(ctx, pipelineId)
.Execute()Retrieve Pipeline
Example
package main
import (
"context"
"fmt"
"os"
monitoring "github.com/ionos-cloud/sdk-go-bundle/products/monitoring"
"github.com/ionos-cloud/sdk-go-bundle/shared"
)
func main() {
pipelineId := "f72521ba-1590-5998-bf96-6eb997a5887d" // string | The ID (UUID) of the Pipeline.
configuration := shared.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL")
apiClient := monitoring.NewAPIClient(configuration)
resource, resp, err := apiClient.PipelinesApi.PipelinesFindById(context.Background(), pipelineId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PipelinesApi.PipelinesFindById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp)
}
// response from `PipelinesFindById`: PipelineRead
fmt.Fprintf(os.Stdout, "Response from `PipelinesApi.PipelinesFindById`: %v\n", resource)
}Path Parameters
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
pipelineId
string
The ID (UUID) of the Pipeline.
Other Parameters
Other parameters are passed through a pointer to an apiPipelinesFindByIdRequest struct via the builder pattern
Name
Type
Description
Notes
Return type
HTTP request headers
Content-Type: Not defined
Accept: application/json
PipelinesGet
var result PipelineReadList = PipelinesGet(ctx)
.Offset(offset)
.Limit(limit)
.OrderBy(orderBy)
.Execute()Retrieve all Pipelines
Example
package main
import (
"context"
"fmt"
"os"
monitoring "github.com/ionos-cloud/sdk-go-bundle/products/monitoring"
"github.com/ionos-cloud/sdk-go-bundle/shared"
)
func main() {
offset := int32(0) // int32 | The first element (of the total list of elements) to include in the response. Use this parameter together with the limit for pagination. (optional) (default to 0)
limit := int32(100) // int32 | The maximum number of elements to return. Use this parameter together with the offset for pagination. (optional) (default to 100)
orderBy := "orderBy_example" // string | The field to order the results by. If not provided, the results will be ordered by the default field. (optional) (default to "-createdDate")
configuration := shared.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL")
apiClient := monitoring.NewAPIClient(configuration)
resource, resp, err := apiClient.PipelinesApi.PipelinesGet(context.Background()).Offset(offset).Limit(limit).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`: PipelineReadList
fmt.Fprintf(os.Stdout, "Response from `PipelinesApi.PipelinesGet`: %v\n", resource)
}Path Parameters
Other Parameters
Other parameters are passed through a pointer to an apiPipelinesGetRequest struct via the builder pattern
offset
int32
The first element (of the total list of elements) to include in the response. Use this parameter together with the limit for pagination.
[default to 0]
limit
int32
The maximum number of elements to return. Use this parameter together with the offset for pagination.
[default to 100]
orderBy
string
The field to order the results by. If not provided, the results will be ordered by the default field.
[default to "-createdDate"]
Return type
HTTP request headers
Content-Type: Not defined
Accept: application/json
PipelinesPost
var result PipelineRead = PipelinesPost(ctx)
.PipelineCreate(pipelineCreate)
.Execute()Create Pipeline
Example
package main
import (
"context"
"fmt"
"os"
monitoring "github.com/ionos-cloud/sdk-go-bundle/products/monitoring"
"github.com/ionos-cloud/sdk-go-bundle/shared"
)
func main() {
pipelineCreate := *openapiclient.NewPipelineCreate(*openapiclient.NewPipeline("Pipeline1")) // PipelineCreate | Pipeline to create.
configuration := shared.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL")
apiClient := monitoring.NewAPIClient(configuration)
resource, resp, err := apiClient.PipelinesApi.PipelinesPost(context.Background()).PipelineCreate(pipelineCreate).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PipelinesApi.PipelinesPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp)
}
// response from `PipelinesPost`: PipelineRead
fmt.Fprintf(os.Stdout, "Response from `PipelinesApi.PipelinesPost`: %v\n", resource)
}Path Parameters
Other Parameters
Other parameters are passed through a pointer to an apiPipelinesPostRequest struct via the builder pattern
Return type
HTTP request headers
Content-Type: application/json
Accept: application/json
PipelinesPut
var result PipelineRead = PipelinesPut(ctx, pipelineId)
.PipelineEnsure(pipelineEnsure)
.Execute()Ensure Pipeline
Example
package main
import (
"context"
"fmt"
"os"
monitoring "github.com/ionos-cloud/sdk-go-bundle/products/monitoring"
"github.com/ionos-cloud/sdk-go-bundle/shared"
)
func main() {
pipelineId := "f72521ba-1590-5998-bf96-6eb997a5887d" // string | The ID (UUID) of the Pipeline.
pipelineEnsure := *openapiclient.NewPipelineEnsure("f72521ba-1590-5998-bf96-6eb997a5887d", *openapiclient.NewPipeline("Pipeline1")) // PipelineEnsure | update Pipeline
configuration := shared.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL")
apiClient := monitoring.NewAPIClient(configuration)
resource, resp, err := apiClient.PipelinesApi.PipelinesPut(context.Background(), pipelineId).PipelineEnsure(pipelineEnsure).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PipelinesApi.PipelinesPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp)
}
// response from `PipelinesPut`: PipelineRead
fmt.Fprintf(os.Stdout, "Response from `PipelinesApi.PipelinesPut`: %v\n", resource)
}Path Parameters
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
pipelineId
string
The ID (UUID) of the Pipeline.
Other Parameters
Other parameters are passed through a pointer to an apiPipelinesPutRequest struct via the builder pattern
Return type
HTTP request headers
Content-Type: application/json
Accept: application/json
Last updated
