LoggingApi
Method
HTTP request
Description
GetBucketLogging
var result GetBucketLogging200Response = GetBucketLogging(ctx, bucket)
.Logging(logging)
.Execute()Example
package main
import (
"context"
"fmt"
"os"
userobjectstorage "github.com/ionos-cloud/sdk-go-bundle/userobjectstorage"
"github.com/ionos-cloud/sdk-go-bundle/shared"
)
func main() {
bucket := "bucket_example" // string | The bucket name for which to get the logging information.
logging := true // bool |
configuration := shared.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL")
apiClient := userobjectstorage.NewAPIClient(configuration)
resource, resp, err := apiClient.LoggingApi.GetBucketLogging(context.Background(), bucket).Logging(logging).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LoggingApi.GetBucketLogging``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp)
}
// response from `GetBucketLogging`: GetBucketLogging200Response
fmt.Fprintf(os.Stdout, "Response from `LoggingApi.GetBucketLogging`: %v\n", resource)
}Path Parameters
Name
Type
Description
Notes
Other Parameters
Name
Type
Description
Notes
Return type
HTTP request headers
URLs Configuration per Operation
PutBucketLogging
Example
Path Parameters
Name
Type
Description
Notes
Other Parameters
Name
Type
Description
Notes
Return type
HTTP request headers
URLs Configuration per Operation
Last updated
