File tree 2 files changed +17
-2
lines changed
2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,11 @@ All Notable changes to `php-lxd` will be documented in this file.
5
5
Updates should follow the [ Keep a CHANGELOG] ( http://keepachangelog.com/ ) principles.
6
6
7
7
8
+ # [ 0.18.1]
9
+
10
+ ## Added
11
+ - Get volume info
12
+
8
13
# [ 0.18.0]
9
14
10
15
## Added
Original file line number Diff line number Diff line change @@ -11,10 +11,20 @@ protected function getEndpoint()
11
11
return '/storage-pools/ ' ;
12
12
}
13
13
14
+ public function all ($ pool )
15
+ {
16
+ return $ this ->get ($ this ->getEndpoint ().$ pool .'/volumes ' );
17
+ }
18
+
14
19
/**
20
+ * $path for /1.0/storage-pools/default/volumes/custom/test would be custom/test
15
21
*/
16
- public function info ($ name )
22
+ public function info (string $ pool , string $ path )
17
23
{
18
- return $ this ->get ($ this ->getEndpoint ().$ name .'/volumes ' );
24
+ $ config = [
25
+ "project " =>$ this ->client ->getProject ()
26
+ ];
27
+
28
+ return $ this ->get ($ this ->getEndpoint ().$ pool .'/volumes/ ' . $ path , $ config );
19
29
}
20
30
}
You can’t perform that action at this time.
0 commit comments