如何在Centos 7中设置OpenStack API配置?

时间:2018-10-26 10:46:36

标签: openstack

请告诉我哪种SDK更好地调用OpenStack API。

我没有找到太多有关此主题的信息或教程。

2 个答案:

答案 0 :(得分:0)

如果使用的是CLI;官方的Openstack客户是显而易见的选择。如果您要进行程序化API调用,则可以使用从简单的http请求到客户端库的任何内容,例如Python的shade或Golang的gophercloud

答案 1 :(得分:0)

<?php
get_footer();
?>
<?php 

 $msg = "mail from" .$name;

// use wordwrap() if lines are longer than 70 characters
$msg = wordwrap($msg,70);

// send email
mail("email@example.com","My subject",$msg);


if(isset($_POST['submit']))
{

    $name = $_POST['name'];

    $to = "email@example.com";
    $subject = $_POST['phone'];
    $body = $_POST['body'];
}
?>

<form action="" id="reservationform" method="POST">
                <div class="row">
                    <div class="col-md-4 col-sm-6">
                        <div class="form-group">
                        <label for="name">Name</label>
                        <input type="text" class="form-control" id="name" name="name" placeholder="Full Name" title="Your Full Name please" required>
                        <i class="fa fa-pencil-square-o"></i>
                        </div>
                    </div>
                    <div class="col-md-4 col-sm-6">
                        <div class="form-group">
                        <label for="phone">Phone</label>
                        <input type="text" class="form-control" id="phone" name="phone" placeholder="Enter your Phone Number" title="Please enter your phone number" required>
                        <i class="fa fa-phone"></i>
                        </div>
                    </div>
          </form>

连接到云:

pip install openstacksdk

Complete guide