Browse Source

update README.md

volixer 5 tháng trước cách đây
mục cha
commit
181cab93ef
1 tập tin đã thay đổi với 13 bổ sung1 xóa
  1. 13 1
      scripts/bash/README.md

+ 13 - 1
scripts/bash/README.md

@@ -13,7 +13,7 @@ And add the Application_key,secret_key and consumer_key to the [ovh.conf](/../go
 
 ## How to use
 
-**Example**
+**Examples**
 1. Get all VPS
 ```bash
 ./ovh-bash get vps
@@ -62,3 +62,15 @@ And add the Application_key,secret_key and consumer_key to the [ovh.conf](/../go
 
 ```
 
+4. List all details from all VPS
+```bash
+./ovh-bash get vps | jq -r '.[]' | while read vps;  do ./ovh-bash get vps/${vps} | jq   SIGINT , .model.name, .model.version, .model.disk, .model.memory]|@tsv' ; done | column -t
+vps-3e2da6b4.vps.ovh.net  vps-value-1-2-40    2019v1  40  2048
+vps-556c9180.vps.ovh.net  vps-value-1-2-40    2019v1  40  2048
+vps-59e2e922.vps.ovh.net  vps-value-1-2-40    2019v1  40  2048
+vps-76fdb68a.vps.ovh.net  vps-starter-1-2-20  2019v1  20  2048
+vps-89819518.vps.ovh.net  vps-value-1-2-40    2019v1  40  2048
+vps-b280dcff.vps.ovh.net  vps-value-1-2-40    2019v1  40  2048
+vps-f31d3392.vps.ovh.net  vps-starter-1-2-20  2019v1  20  2048
+```
+