AccesskeysApi

All URIs are relative to https://s3.ionos.com

Method
HTTP request
Description

Delete /accesskeys/{accesskeyId}

Delete AccessKey

Get /accesskeys/{accesskeyId}

Retrieve AccessKey

Get /accesskeys

Retrieve all Accesskeys

Post /accesskeys

Create AccessKey

Put /accesskeys/{accesskeyId}

Ensure AccessKey

Put /accesskeys/{accesskeyId}/renew

Ensure AccessKey

AccesskeysDelete

var result  = AccesskeysDelete(ctx, accesskeyId)
                      .Execute()

Delete AccessKey

Example

package main

import (
    "context"
    "fmt"
    "os"

    objectstoragemanagement "github.com/ionos-cloud/sdk-go-bundle/products/objectstoragemanagement"
    "github.com/ionos-cloud/sdk-go-bundle/shared"
)

func main() {
    accesskeyId := "fb68d39a-5706-51b4-b2b2-7b4bf9cbf0af" // string | The ID (UUID) of the AccessKey.

    configuration := shared.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL")
    apiClient := objectstoragemanagement.NewAPIClient(configuration)
    resp, err := apiClient.AccesskeysApi.AccesskeysDelete(context.Background(), accesskeyId).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `AccesskeysApi.AccesskeysDelete``: %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.

accesskeyId

string

The ID (UUID) of the AccessKey.

Other Parameters

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

Name

Type

Description

Notes

Return type

(empty response body)

HTTP request headers

  • Content-Type: Not defined

  • Accept: application/json

AccesskeysFindById

Retrieve AccessKey

Example

Path Parameters

Name
Type
Description
Notes

ctx

context.Context

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

accesskeyId

string

The ID (UUID) of the AccessKey.

Other Parameters

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

Name

Type

Description

Notes

Return type

AccessKeyRead

HTTP request headers

  • Content-Type: Not defined

  • Accept: application/json

AccesskeysGet

Retrieve all Accesskeys

Example

Path Parameters

Other Parameters

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

Name
Type
Description
Notes

offset

int32

The first element (of the total list of elements) to include in the response. Use together with limit for pagination.

[default to 0]

limit

int32

The maximum number of elements to return. Use together with offset for pagination.

[default to 100]

filterAccesskeyId

string

The accesskey ID to filter by.

Return type

AccessKeyReadList

HTTP request headers

  • Content-Type: Not defined

  • Accept: application/json

AccesskeysPost

Create AccessKey

Example

Path Parameters

Other Parameters

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

Name
Type
Description
Notes

accessKeyCreate

AccessKey to create.

Return type

AccessKeyRead

HTTP request headers

  • Content-Type: application/json

  • Accept: application/json

AccesskeysPut

Ensure AccessKey

Example

Path Parameters

Name
Type
Description
Notes

ctx

context.Context

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

accesskeyId

string

The ID (UUID) of the AccessKey.

Other Parameters

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

Name
Type
Description
Notes

accessKeyEnsure

update AccessKey

Return type

AccessKeyRead

HTTP request headers

  • Content-Type: application/json

  • Accept: application/json

AccesskeysRenew

Ensure AccessKey

Example

Path Parameters

Name
Type
Description
Notes

ctx

context.Context

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

accesskeyId

string

The ID (UUID) of the AccessKey that should be ensured.

Other Parameters

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

Name

Type

Description

Notes

Return type

AccessKeyRead

HTTP request headers

  • Content-Type: Not defined

  • Accept: application/json

Last updated