-
Install Python
-
Add Python to your PATH environment variable
computer -> properties -> Environment variables -> System variables -> Path
add;C:\Python27;C:\Python27\Scriptsexport PATH=$PATH;YOUR-PYTHON-PATH -
(Option) Install git on your server/computer
https://git-scm.com/download/win
pip install git -
Download the source code from the GitHub website
Herehuawei-python-openstacksdkis your local directory.
git clone https://github.com/Huawei/python-openstacksdk huawei-python-openstacksdk -
Install the SDK
ATTENTION: If you have installed the OpenStack SDK from the Openstack community.Please uninstall it first.
Otherwise, the SDK for Open Telekom Cloud may work improperly.
Open a command line,
cd huawei-python-openstacksdk
git checkout master
pip install -r requirements.txt
python setup.py install
Then we need to get the credentials to access to the Open Telekom Cloud.
_auth = {
'auth_url': "https://iam.eu-de.otc.t-systems.com:443/v3",
'project_id': 'YOUR-PROJECT-ID',
'user_domain_id': 'YOUR-DOMAIN-ID',
'username': 'YOUR-USER-NAME',
'password': 'YOUR-PASSWORD'
}
-
How Do I Query a Project ID?
Please refer to https://docs.otc.t-systems.com/en-us/usermanual/ac/en-us_topic_0046606344.html -
How Do I Query a Domain ID?
Please refer to https://docs.otc.t-systems.com/en-us/usermanual/ac/en-us_topic_0048830758.html
ATTENTION: The value of Domain ID is just blow the Domain Name. -
How Do I Query Regions and Endpoints?
Please refer to https://docs.otc.t-systems.com/en-us/endpoint/index.html -
How Do I Query a API URI?
Please refer to https://docs.otc.t-systems.com/en-us/api_list/index.html