|
@@ -16,7 +16,7 @@ And add the Application_key,secret_key and consumer_key to the [ovh.conf](/../go
|
|
|
**Examples**
|
|
|
1. Get all VPS
|
|
|
```bash
|
|
|
-./ovh-bash get vps
|
|
|
+./ovhcli get vps
|
|
|
|
|
|
[
|
|
|
"vps-3e2da6b4.vps.ovh.net",
|
|
@@ -30,7 +30,7 @@ And add the Application_key,secret_key and consumer_key to the [ovh.conf](/../go
|
|
|
```
|
|
|
2. Get all records for a DNS Zone "linuxforward.com"
|
|
|
```bash
|
|
|
-./ovh-bash get domain/zone/linuxforward.com/record/
|
|
|
+./ovhcli get domain/zone/linuxforward.com/record/
|
|
|
[
|
|
|
5344790631,
|
|
|
5344790632,
|
|
@@ -50,7 +50,7 @@ And add the Application_key,secret_key and consumer_key to the [ovh.conf](/../go
|
|
|
3. Get info from a specific DNS Zone record
|
|
|
|
|
|
```bash
|
|
|
-./ovh-bash get domain/zone/linuxforward.com/record/5344790650
|
|
|
+./ovhcli get domain/zone/linuxforward.com/record/5344790650
|
|
|
{
|
|
|
"fieldType": "A",
|
|
|
"id": 5344790650,
|
|
@@ -64,7 +64,7 @@ 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 '[.name, .model.name, .model.version, .model.disk, .model.memory]|@tsv' ; done | column -t
|
|
|
+./ovhcli get vps | jq -r '.[]' | while read vps; do ./ovhcli get vps/${vps} | jq '[.name, .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
|
|
@@ -77,7 +77,7 @@ vps-f31d3392.vps.ovh.net vps-starter-1-2-20 2019v1 20 2048
|
|
|
5. If credentials are revoked
|
|
|
|
|
|
```bash
|
|
|
-./ovh-bash get vps
|
|
|
+./ovhcli get vps
|
|
|
{
|
|
|
"class": "Client::Forbidden",
|
|
|
"message": "This credential is not valid",
|