KeyApi
Method
HTTP request
Description
PipelinesKeyPost
var result KeyRead = PipelinesKeyPost(ctx, pipelineId)
.Body(body)
.Execute()Example
package main
import (
"context"
"fmt"
"os"
logging "github.com/ionos-cloud/sdk-go-bundle/products/logging"
"github.com/ionos-cloud/sdk-go-bundle/shared"
)
func main() {
pipelineId := "f72521ba-1590-5998-bf96-6eb997a5887d" // string | The ID (UUID) of the Pipeline.
body := map[string]interface{}{ ... } // map[string]interface{} | Key to create.
configuration := shared.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL")
apiClient := logging.NewAPIClient(configuration)
resource, resp, err := apiClient.KeyApi.PipelinesKeyPost(context.Background(), pipelineId).Body(body).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `KeyApi.PipelinesKeyPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp)
}
// response from `PipelinesKeyPost`: KeyRead
fmt.Fprintf(os.Stdout, "Response from `KeyApi.PipelinesKeyPost`: %v\n", resource)
}Path Parameters
Name
Type
Description
Notes
Other Parameters
Name
Type
Description
Notes
Return type
HTTP request headers
Last updated
