Skip to content

pyfhero/python-openstack-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

python-openstack-examples

Configure your development environment

  1. Install Python

  2. Add Python to your PATH environment variable

    For Windows

    computer -> properties -> Environment variables -> System variables -> Path
    add ;C:\Python27;C:\Python27\Scripts

    For Linux

    export PATH=$PATH;YOUR-PYTHON-PATH

  3. (Option) Install git on your server/computer

    For Windows

    https://git-scm.com/download/win

    For Liunx

    pip install git

  4. Download the source code from the GitHub website
    Here huawei-python-openstacksdk is your local directory.
    git clone https://github.com/Huawei/python-openstacksdk huawei-python-openstacksdk

  5. 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

Configure your credentials

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'
}

  1. 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

  2. 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.

  3. How Do I Query Regions and Endpoints?
    Please refer to https://docs.otc.t-systems.com/en-us/endpoint/index.html

  4. How Do I Query a API URI?
    Please refer to https://docs.otc.t-systems.com/en-us/api_list/index.html

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages