IONOS Cloud - Object Storage Management API
Project description
ionoscloud-object-storage-management
Object Storage Management API is a RESTful API that manages the object storage service configuration for IONOS Cloud.
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 0.1.0
- Package version: 2.0.0-beta.1
- Generator version: 7.13.0-SNAPSHOT
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Requirements.
Python 3.9+
Installation & Usage
pip install
If the python package is hosted on a repository, you can install directly using:
pip install git+https://github.com/ionos-cloud/sdk-python.git
(you may need to run pip with root permission: sudo pip install git+https://github.com/ionos-cloud/sdk-python.git)
Then import the package:
import ionoscloud_object_storage_management
Setuptools
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install to install the package for all users)
Then import the package:
import ionoscloud_object_storage_management
Tests
Execute pytest to run the tests.
Getting Started
Please follow the installation procedure and then run the following:
import ionoscloud_object_storage_management
from ionoscloud_object_storage_management.rest import ApiException
from pprint import pprint
import os
# Defining the host is optional and defaults to https://s3.ionos.com
# See configuration.py for a list of all supported configuration parameters.
configuration = ionoscloud_object_storage_management.Configuration(
host = "https://s3.ionos.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization (JWT): tokenAuth
configuration = ionoscloud_object_storage_management.Configuration(
token = os.environ["IONOS_TOKEN"]
)
# Enter a context with an instance of the API client
with ionoscloud_object_storage_management.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = ionoscloud_object_storage_management.AccesskeysApi(api_client)
accesskey_id = 'fb68d39a-5706-51b4-b2b2-7b4bf9cbf0af' # str | The ID (UUID) of the AccessKey.
try:
# Delete AccessKey
api_instance.accesskeys_delete(accesskey_id)
except ApiException as e:
print("Exception when calling AccesskeysApi->accesskeys_delete: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to https://s3.ionos.com
| Class | Method | HTTP request | Description |
|---|---|---|---|
| AccesskeysApi | accesskeys_delete | DELETE /accesskeys/{accesskeyId} | Delete AccessKey |
| AccesskeysApi | accesskeys_find_by_id | GET /accesskeys/{accesskeyId} | Retrieve AccessKey |
| AccesskeysApi | accesskeys_get | GET /accesskeys | Retrieve all Accesskeys |
| AccesskeysApi | accesskeys_post | POST /accesskeys | Create AccessKey |
| AccesskeysApi | accesskeys_put | PUT /accesskeys/{accesskeyId} | Ensure AccessKey |
| AccesskeysApi | accesskeys_renew | PUT /accesskeys/{accesskeyId}/renew | Ensure AccessKey |
| RegionsApi | regions_find_by_region | GET /regions/{region} | Retrieve Region |
| RegionsApi | regions_get | GET /regions | Retrieve all Regions |
Documentation For Models
- AccessKey
- AccessKeyCreate
- AccessKeyEnsure
- AccessKeyRead
- AccessKeyReadList
- Bucket
- BucketCreate
- BucketEnsure
- BucketRead
- BucketReadList
- Error
- ErrorMessagesInner
- Links
- Metadata
- MetadataWithStatus
- MetadataWithSupportedRegions
- Pagination
- Region
- RegionCapability
- RegionCreate
- RegionEnsure
- RegionRead
- RegionReadList
- StorageClass
- StorageClassCreate
- StorageClassEnsure
- StorageClassRead
- StorageClassReadList
Documentation For Authorization
Authentication schemes defined for the API:
tokenAuth
- Type: Bearer authentication (JWT)
Author
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ionoscloud_object_storage_management-2.0.0b1.tar.gz.
File metadata
- Download URL: ionoscloud_object_storage_management-2.0.0b1.tar.gz
- Upload date:
- Size: 36.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
343b27c314aeded1e90093ccd9b9e8fb6a8173c83c84b9515a41aa07c928b195
|
|
| MD5 |
a940d220003ec736589728129186a25a
|
|
| BLAKE2b-256 |
4027481b661f122ea8b3aca8971f340cc94ee9a6d37495180a470b56ad049f17
|
File details
Details for the file ionoscloud_object_storage_management-2.0.0b1-py3-none-any.whl.
File metadata
- Download URL: ionoscloud_object_storage_management-2.0.0b1-py3-none-any.whl
- Upload date:
- Size: 77.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a13ae8a422a712538e1e22c4cca2464179907278fcf8a42b25f728180a6746b4
|
|
| MD5 |
986cf9a93abb3dae0719e7288ba19b2e
|
|
| BLAKE2b-256 |
76fec6a26e4b858e6727b65259dd517df94e0fe1a3a2b60559dd554fcc9f5a5e
|