-
Hello @TomWright, I hope you can help me. Can I create the below json with Dasel?
Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hey @ws-way, There are a few ways you could put this together - dasel lets you put strings, ints and bools one at a time or you can put entire documents. The following will create the document for you. This is possible because dasel interprets the selectors and will create empty objects/arrays for you where possible.
{
"Changes": [
{
"Action": "UPSERT",
"ResourceRecordSet": {
"Name": "metrics.try.my.domain",
"ResourceRecords": [
{
"Value": "1 10 30901 metrics-peers.try.my.domain"
}
],
"TTL": 300,
"Type": "SRV"
}
}
],
"Comment": "CREATE/DELETE/UPSERT a record"
} On a side note, you may need to be on at least |
Beta Was this translation helpful? Give feedback.
-
Thanks @TomWright! |
Beta Was this translation helpful? Give feedback.
Hey @ws-way,
There are a few ways you could put this together - dasel lets you put strings, ints and bools one at a time or you can put entire documents.
The following will create the document for you. This is possible because dasel interprets the selectors and will create empty objects/arrays for you where possible.