Skip to content

Commit 5ae5656

Browse files
authored
doc(cookbook): add ipam example to find with exact match (#4389)
1 parent 3cf1e63 commit 5ae5656

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/cookbook.md

+8
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,11 @@ scw instance server list zone=all -o template="{{.ID}} zone={{.Zone}}" | xargs -
8787
# Get all backup older than 7 days
8888
scw rdb backup list -ojson | jq --arg d "$(date -d "7 days ago" --utc --iso-8601=ns)" '.[] | select (.created_at < $d)'
8989
```
90+
91+
## IPAM
92+
93+
### Find resource ipv4 with exact name using jq
94+
95+
```bash
96+
scw ipam ip list resource-name=<server-name> is-ipv6=false -ojson | jq '.[] | select(.resource.name == "<server-name>")'
97+
```

0 commit comments

Comments
 (0)