WebsiteApi
Method
HTTP request
Description
DeleteBucketWebsite
var result = DeleteBucketWebsite(ctx, bucket)
.Execute()Example
package main
import (
"context"
"fmt"
"os"
objectstorage "github.com/ionos-cloud/sdk-go-bundle/objectstorage"
"github.com/ionos-cloud/sdk-go-bundle/shared"
)
func main() {
bucket := "bucket_example" // string |
configuration := shared.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL")
apiClient := objectstorage.NewAPIClient(configuration)
resource, resp, err := apiClient.WebsiteApi.DeleteBucketWebsite(context.Background(), bucket).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `WebsiteApi.DeleteBucketWebsite``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp)
}
}Path Parameters
Name
Type
Description
Notes
Other Parameters
Return type
HTTP request headers
URLs Configuration per Operation
GetBucketWebsite
Example
Path Parameters
Name
Type
Description
Notes
Other Parameters
Return type
HTTP request headers
URLs Configuration per Operation
PutBucketWebsite
Example
Path Parameters
Name
Type
Description
Notes
Other Parameters
Name
Type
Description
Notes
Return type
HTTP request headers
URLs Configuration per Operation
Last updated
