Cloud computing uses Libcloud to shield the virtualization layer differences of OpenStack, AWS, Aliyun, and more

Source: Internet
Author: User
Tags aliyun mitm attack

Libcloud is a unified interface for accessing cloud computing services, a project that has become the top-level project of the Apache organization with Python development.

The Apache Foundation announced on May 25 that Libcloud has hatched and become a top-notch project.

One Interface to Rule them allPython Library for interacting with many of the popular cloud service providers using a unified API.

Basic example:

 fromlibcloud.compute.types Import Provider fromlibcloud.compute.providers Import Get_driverimport libcloud.security# This assumes you don'T has SSL set up.# Note:code like Thisposes a security risk (MITM attack) and# that's The reason why do you should never use it for anything else# besides testing. You have been Warned.libcloud.security.VERIFY_SSL_CERT=Falseopenstack=get_driver (provider.openstack) driver= OpenStack ('Your_auth_username','Your_auth_password', Ex_force_auth_url='http://192.168.1.101:5000', Ex_force_auth_version='2.0_password')

Resources:

Official website: https://libcloud.apache.org/

http://www.oschina.net/p/libcloud/

http://www.infoq.com/cn/news/2011/05/apachelibcloud/

Document: Https://libcloud.readthedocs.io/en/latest/compute/drivers/openstack.html

Https://libcloud.readthedocs.io/en/latest/compute/drivers/openstack.html

Https://libcloud.readthedocs.io/en/latest/apidocs/libcloud.common.html#module-libcloud.common.openstack_identity

Cloud computing uses Libcloud to shield the virtualization layer differences of OpenStack, AWS, Aliyun, and more

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.