2
添加與gcloud DNS記錄刪除DNS條目都好與gcloud
gcloud dns record-sets transaction start -z my-zone
gcloud dns record-sets transaction add -z my-zone --name "some_domain.com" --ttl 0 --type TXT "test"
gcloud dns record-sets transaction execute -z my-zone
但是,當我嘗試刪除該條目
gcloud dns record-sets transaction start -z my-zone
gcloud dns record-sets transaction remove -z my-zone --name "some_domain.com" --ttl 300 --type TXT "test"
gcloud dns record-sets transaction execute -z my-zone
我總是得到這個錯誤
ERROR: (gcloud.dns.record-sets.transaction.remove) Invalid value for 'parameters.name': 'some_domain.com' (code: 400)
熱潮!和工作,謝謝 – Leon