Package: ionoscloud-dataplatform
Python API client for ionoscloud_dataplatformManaged Stackable Data Platform by IONOS Cloud provides a preconfigured Kubernetes cluster
with pre-installed and managed Stackable operators. After the provision of these Stackable operators,
the customer can interact with them directly
and build his desired application on top of the Stackable Platform.Managed Stackable Data Platform by IONOS Cloud can be configured through the IONOS Cloud API
in addition or as an alternative to the "Data Center Designer" (DCD).Getting StartedTo get your DataPlatformCluster up and running, the following steps needs to be performed.IONOS Cloud AccountThe first step is the creation of a IONOS Cloud account if not already existing.To register anew accountvisitcloud.ionos.com.Virtual Datacenter (VDC)The Managed Data Stack needs a virtual datacenter (VDC) hosting the cluster.
This could either be a VDC that already exists, especially if you want to connect the managed DataPlatform
to other services already running within your VDC. Otherwise, if you want to place the Managed Data Stack in
a new VDC or you have not yet created a VDC, you need to do so.A new VDC can be created via the IONOS Cloud API, the IONOS-CLI or the DCD Web interface.
For more information, see theofficial documentationGet a authentication tokenTo interact with this API a user specific authentication token is needed.
This token can be generated using the IONOS-CLI the following way:ionosctl token generateFor more informationseeCreate a new DataPlatformClusterBefore using Managed Stackable Data Platform, a new DataPlatformCluster must be created.To create a cluster, use theCreate DataPlatformClusterAPI endpoint.The provisioning of the cluster might take some time. To check the current provisioning status,
you can query the cluster by calling theGet Endpointwith the cluster ID
that was presented to you in the response of the create cluster call.Add a DataPlatformNodePoolTo deploy and run a Stackable service, the cluster must have enough computational resources. The node pool
that is provisioned along with the cluster is reserved for the Stackable operators.
You may create further node pools with resources tailored to your use-case.To create a new node pool use theCreate DataPlatformNodepoolendpoint.Receive KubeconfigOnce the DataPlatformCluster is created, the kubeconfig can be accessed by the API.
The kubeconfig allows the interaction with the provided cluster as with any regular Kubernetes cluster.The kubeconfig can be downloaded with theGet Kubeconfigendpoint
using the cluster ID of the created DataPlatformCluster.Create Stackable ServiceTo create the desired application, the Stackable service needs to be provided,
using the received kubeconfig anddeploy a Stackable serviceAuthorizationAll endpoints are secured, so only an authenticated user can access them.
As Authentication mechanism the default IONOS Cloud authentication mechanism
is used. A detailed description can be foundhere.Basic-AuthThe basic auth scheme uses the IONOS Cloud user credentials in form of a Basic Authentication Header
accordingly toRFC7617API-Key as Bearer TokenThe Bearer auth token used at the API-Gateway is a user related token created with the IONOS-CLI.
(See thedocumentationfor details)
For every request to be authenticated, the token is passed as 'Authorization Bearer' header along with the request.Permissions and access rolesCurrently, an admin can see and manipulate all resources in a contract.
A normal authenticated user can only see and manipulate resources he created.ComponentsThe Managed Stackable Data Platform by IONOS Cloud consists of two components.
The concept of a DataPlatformClusters and the backing DataPlatformNodePools the cluster is build on.DataPlatformClusterA DataPlatformCluster is the virtual instance of the customer services and operations running the managed Services like Stackable operators.
A DataPlatformCluster is a Kubernetes Cluster in the VDC of the customer.
Therefore, it's possible to integrate the cluster with other resources as vLANs e.G.
to shape the datacenter in the customer's need and integrate the cluster within the topology the customer wants to build.In addition to the Kubernetes cluster a small node pool is provided which is exclusively used to run the Stackable operators.DataPlatformNodePoolA DataPlatformNodePool represents the physical machines a DataPlatformCluster is build on top.
All nodes within a node pool are identical in setup.
The nodes of a pool are provisioned into virtual data centers at a location of your choice
and you can freely specify the properties of all the nodes at once before creation.Nodes in node pools provisioned by the Managed Stackable Data Platform Cloud API are readonly in the customer's VDC
and can only be modified or deleted via the API.ReferencesOverviewThe IONOS Cloud SDK for Python provides you with access to the IONOS Cloud Managed Stackable Data Platform API. The client library supports both simple and complex requests. It is designed for developers who are building applications in Python. All API operations are performed over SSL and authenticated using your IONOS Cloud portal credentials. The API can be accessed within an instance running in IONOS Cloud or directly over the Internet from any application that can send an HTTPS request and receive an HTTPS response.Installation & UsageRequirements:Python >= 3.5pip installSince this package is hosted onPypiyou can install it by using:pipinstallionoscloud-dataplatformIf the python package is hosted on a repository, you can install directly using:pipinstallgit+https://github.com/ionos-cloud/sdk-python-dataplatform.gitNote: you may need to runpipwith root permission:sudo pip install git+https://github.com/ionos-cloud/sdk-python-dataplatform.gitThen import the package:importionoscloud_dataplatformSetuptoolsInstall viaSetuptools.pythonsetup.pyinstall--userorsudo python setup.py installto install the package for all usersThen import the package:importionoscloud_dataplatformNOTE:The Python SDK does not support Python 2. It only supports Python >= 3.5.AuthenticationThe username and passwordorthe authentication token can be manually specified when initializing the SDK client:configuration=ionoscloud_dataplatform.Configuration(username='YOUR_USERNAME',password='YOUR_PASSWORD',token='YOUR_TOKEN')client=ionoscloud_dataplatform.ApiClient(configuration)Environment variables can also be used. This is an example of how one would do that:importosconfiguration=ionoscloud_dataplatform.Configuration(username=os.environ.get('IONOS_USERNAME'),password=os.environ.get('IONOS_PASSWORD'),token=os.environ.get('IONOS_TOKEN'))client=ionoscloud_dataplatform.ApiClient(configuration)Warning: Make sure to follow the Information Security Best Practices when using credentials within your code or storing them in a file.HTTP proxiesYou can use http proxies by setting the following environment variables:IONOS_HTTP_PROXY- proxy URLIONOS_HTTP_PROXY_HEADERS- proxy headersChanging the base URLBase URL for the HTTP operation can be changed in the following way:importosconfiguration=ionoscloud_dataplatform.Configuration(username=os.environ.get('IONOS_USERNAME'),password=os.environ.get('IONOS_PASSWORD'),host=os.environ.get('IONOS_API_URL'),server_index=None,)client=ionoscloud_dataplatform.ApiClient(configuration)Certificate pinning:You can enable certificate pinning if you want to bypass the normal certificate checking procedure,
by doing the following:Set env variable IONOS_PINNED_CERT=<insert_sha256_public_fingerprint_here>You can get the sha256 fingerprint most easily from the browser by inspecting the certificate.Documentation for API EndpointsAll URIs are relative tohttps://api.ionos.com/dataplatformAPI Endpoints tableClassMethodHTTP requestDescriptionDataPlatformClusterApicreate_clusterPOST/clustersCreate a DataPlatformClusterDataPlatformClusterApidelete_clusterDELETE/clusters/{clusterId}Delete DataPlatformClusterDataPlatformClusterApiget_clusterGET/clusters/{clusterId}Retrieve a DataPlatformClusterDataPlatformClusterApiget_cluster_kubeconfigGET/clusters/{clusterId}/kubeconfigRead the kubeconfigDataPlatformClusterApiget_clustersGET/clustersList DataPlatformClusterDataPlatformClusterApipatch_clusterPATCH/clusters/{clusterId}Partially modify a DataPlatformClusterDataPlatformMetaDataApiversions_getGET/versionsManaged Data Stack API versionDataPlatformNodePoolApicreate_cluster_nodepoolPOST/clusters/{clusterId}/nodepoolsCreate a DataPlatformNodePool for a distinct DataPlatformClusterDataPlatformNodePoolApidelete_cluster_nodepoolDELETE/clusters/{clusterId}/nodepools/{nodepoolId}Remove node pool from DataPlatformCluster.DataPlatformNodePoolApiget_cluster_nodepoolGET/clusters/{clusterId}/nodepools/{nodepoolId}Retrieve a DataPlatformNodePoolDataPlatformNodePoolApiget_cluster_nodepoolsGET/clusters/{clusterId}/nodepoolsList the DataPlatformNodePools of a  DataPlatformClusterDataPlatformNodePoolApipatch_cluster_nodepoolPATCH/clusters/{clusterId}/nodepools/{nodepoolId}Partially modify a DataPlatformNodePoolDocumentation For ModelsAll URIs are relative tohttps://api.ionos.com/dataplatformAPI models listAvailabilityZoneClusterClusterListResponseDataClusterResponseDataCreateClusterPropertiesCreateClusterRequestCreateNodePoolPropertiesCreateNodePoolRequestErrorMessageErrorResponseMaintenanceWindowMetadataNodePoolNodePoolListResponseDataNodePoolResponseDataPatchClusterPropertiesPatchClusterRequestPatchNodePoolPropertiesPatchNodePoolRequestStorageType[Back to API list][Back to Model list]