We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 66950e8 commit 212bc62Copy full SHA for 212bc62
1 file changed
samples/compute/v2/limits/get_limits.php
@@ -0,0 +1,18 @@
1
+<?php
2
+
3
+require 'vendor/autoload.php';
4
5
+$openstack = new OpenStack\OpenStack([
6
+ 'authUrl' => '{authUrl}',
7
+ 'region' => '{region}',
8
+ 'user' => [
9
+ 'id' => '{userId}',
10
+ 'password' => '{password}'
11
+ ],
12
+ 'scope' => ['project' => ['id' => '{projectId}']]
13
+]);
14
15
+$compute = $openstack->computeV2(['region' => '{region}']);
16
17
+/** @var \OpenStack\Compute\v2\Models\Limit $limit */
18
+$limit = $compute->getLimits();
0 commit comments