AccesskeysApi
All URIs are relative to https://s3.ionos.com
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
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
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
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
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
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
Return type
HTTP request headers
Content-Type: application/json
Accept: application/json
AccesskeysPut
Ensure AccessKey
Example
Path Parameters
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
Return type
HTTP request headers
Content-Type: application/json
Accept: application/json
AccesskeysRenew
Ensure AccessKey
Example
Path Parameters
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
HTTP request headers
Content-Type: Not defined
Accept: application/json
Last updated
