diff options
| author | root <root@kabir-PC> | 2016-02-23 20:34:59 +0100 |
|---|---|---|
| committer | root <root@kabir-PC> | 2016-02-23 20:34:59 +0100 |
| commit | d2f5ae5c83ef5bc41cf430ace79769459b4acbf8 (patch) | |
| tree | b48882db52687bdd64a398c7d1844d05dbc01343 /server/test.php | |
| parent | 1eff9ee90bf26127463cae0ae2cb2e1951527591 (diff) | |
| parent | ff1832adcfe10fadb6cbf738c874611f77f6dd43 (diff) | |
Merge branch 'develop' of https://github.com/manzerbredes/istic-openstack into othmane
Diffstat (limited to 'server/test.php')
| -rw-r--r-- | server/test.php | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/server/test.php b/server/test.php deleted file mode 100644 index 16555e4..0000000 --- a/server/test.php +++ /dev/null @@ -1,36 +0,0 @@ -<?php -ini_set('display_errors', 1); -date_default_timezone_set("Europe/Paris"); -require 'vendor/autoload.php'; - -$options = Array(); -$options["user"] = Array("name"=>"admin", "password"=>"ae5or6cn", "domain"=>["id"=>"Default"]); -$options["scope"] = Array("project"=>Array("name"=>"admin", "domain"=>["id"=>"Default"])); -$options["authUrl"] = "http://148.60.11.31:5000/v3"; - -$openstack = new OpenStack\OpenStack($options); - -//$identity = $openstack->identityV3(); -//var_dump($identity); -// Since usernames will not be unique across an entire OpenStack installation, -// when authenticating with them you must also provide your domain ID. You do -// not have to do this if you authenticate with a user ID. - -/*$token = $identity->generateToken([ - 'user' => [ - 'name' => 'admin', - 'password' => 'ae5or6cn', - 'domain' => [ - 'id' => 'Default' - ] - ] - ]); - */ -$compute = $openstack->computeV2(["region" => "RegionOne"]); -//var_dump($compute->client); -//$servers = $compute->listServers(true); - -//foreach($servers as $server){ -// echo $server->id." !!! "; -// echo $server->name." !!! "; -//} |
