Skip to main content

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

Documentation For Authorization

Authentication schemes defined for the API:

tokenAuth

  • Type: Bearer authentication (JWT)

Author

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ionoscloud_object_storage_management-2.0.0b1.tar.gz (36.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file ionoscloud_object_storage_management-2.0.0b1.tar.gz.

File metadata

File hashes

Hashes for ionoscloud_object_storage_management-2.0.0b1.tar.gz
Algorithm Hash digest
SHA256 343b27c314aeded1e90093ccd9b9e8fb6a8173c83c84b9515a41aa07c928b195
MD5 a940d220003ec736589728129186a25a
BLAKE2b-256 4027481b661f122ea8b3aca8971f340cc94ee9a6d37495180a470b56ad049f17

See more details on using hashes here.

File details

Details for the file ionoscloud_object_storage_management-2.0.0b1-py3-none-any.whl.

File metadata

File hashes

Hashes for ionoscloud_object_storage_management-2.0.0b1-py3-none-any.whl
Algorithm Hash digest
SHA256 a13ae8a422a712538e1e22c4cca2464179907278fcf8a42b25f728180a6746b4
MD5 986cf9a93abb3dae0719e7288ba19b2e
BLAKE2b-256 76fec6a26e4b858e6727b65259dd517df94e0fe1a3a2b60559dd554fcc9f5a5e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page