TaggingApi

All URIs are relative to https://s3.eu-central-1.ionoscloud.com

Method
HTTP request
Description

Delete /{Bucket}?tagging

DeleteBucketTagging

Delete /{Bucket}/{Key}?tagging

DeleteObjectTagging

Get /{Bucket}?tagging

GetBucketTagging

Get /{Bucket}/{Key}?tagging

GetObjectTagging

Put /{Bucket}?tagging

PutBucketTagging

Put /{Bucket}/{Key}?tagging

PutObjectTagging

DeleteBucketTagging

var result  = DeleteBucketTagging(ctx, bucket)
                      .Tagging(tagging)
                      .Execute()

DeleteBucketTagging

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 | 
    tagging := true // bool | 

    configuration := shared.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL")
    apiClient := userobjectstorage.NewAPIClient(configuration)
    resource, resp, err := apiClient.TaggingApi.DeleteBucketTagging(context.Background(), bucket).Tagging(tagging).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `TaggingApi.DeleteBucketTagging``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp)
    }
}

Path Parameters

Name
Type
Description
Notes

ctx

context.Context

context for authentication, logging, cancellation, deadlines, tracing, etc.

bucket

string

Other Parameters

Other parameters are passed through a pointer to an apiDeleteBucketTaggingRequest struct via the builder pattern

Name
Type
Description
Notes

tagging

bool

Return type

(empty response body)

HTTP request headers

  • Content-Type: Not defined

  • Accept: Not defined

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "TaggingApiService.DeleteBucketTagging" string. Similar rules for overriding default operation server index and variables apply by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.

DeleteObjectTagging

DeleteObjectTagging

Example

Path Parameters

Name
Type
Description
Notes

ctx

context.Context

context for authentication, logging, cancellation, deadlines, tracing, etc.

bucket

string

key

string

The key that identifies the object in the bucket from which to remove all tags.

Other Parameters

Other parameters are passed through a pointer to an apiDeleteObjectTaggingRequest struct via the builder pattern

Name
Type
Description
Notes

tagging

bool

versionId

string

The versionId of the object that the tag-set will be removed from.

Return type

map[string]interface{}

HTTP request headers

  • Content-Type: Not defined

  • Accept: application/xml

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "TaggingApiService.DeleteObjectTagging" string. Similar rules for overriding default operation server index and variables apply by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.

GetBucketTagging

GetBucketTagging

Example

Path Parameters

Name
Type
Description
Notes

ctx

context.Context

context for authentication, logging, cancellation, deadlines, tracing, etc.

bucket

string

Other Parameters

Other parameters are passed through a pointer to an apiGetBucketTaggingRequest struct via the builder pattern

Name
Type
Description
Notes

tagging

bool

Return type

GetBucketTaggingOutput

HTTP request headers

  • Content-Type: Not defined

  • Accept: application/xml

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "TaggingApiService.GetBucketTagging" string. Similar rules for overriding default operation server index and variables apply by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.

GetObjectTagging

GetObjectTagging

Example

Path Parameters

Name
Type
Description
Notes

ctx

context.Context

context for authentication, logging, cancellation, deadlines, tracing, etc.

bucket

string

key

string

Object key for which to get the tagging information.

Other Parameters

Other parameters are passed through a pointer to an apiGetObjectTaggingRequest struct via the builder pattern

Name
Type
Description
Notes

tagging

bool

versionId

string

The versionId of the object for which to get the tagging information.

Return type

GetObjectTaggingOutput

HTTP request headers

  • Content-Type: Not defined

  • Accept: application/xml

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "TaggingApiService.GetObjectTagging" string. Similar rules for overriding default operation server index and variables apply by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.

PutBucketTagging

PutBucketTagging

Example

Path Parameters

Name
Type
Description
Notes

ctx

context.Context

context for authentication, logging, cancellation, deadlines, tracing, etc.

bucket

string

Other Parameters

Other parameters are passed through a pointer to an apiPutBucketTaggingRequest struct via the builder pattern

Name
Type
Description
Notes

tagging

bool

putBucketTaggingRequest

contentMD5

string

Return type

(empty response body)

HTTP request headers

  • Content-Type: application/xml

  • Accept: Not defined

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "TaggingApiService.PutBucketTagging" string. Similar rules for overriding default operation server index and variables apply by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.

PutObjectTagging

PutObjectTagging

Example

Path Parameters

Name
Type
Description
Notes

ctx

context.Context

context for authentication, logging, cancellation, deadlines, tracing, etc.

bucket

string

key

string

Name of the object key.

Other Parameters

Other parameters are passed through a pointer to an apiPutObjectTaggingRequest struct via the builder pattern

Name
Type
Description
Notes

tagging

bool

putBucketTaggingRequest

versionId

string

The versionId of the object that the tag-set will be added to.

contentMD5

string

Return type

map[string]interface{}

HTTP request headers

  • Content-Type: application/xml

  • Accept: application/xml

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "TaggingApiService.PutObjectTagging" string. Similar rules for overriding default operation server index and variables apply by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.

Last updated