GoogleCloudPlatform / GoogleCloudPlatform/deploymentmanager-samples
DNS recordset update/delete fails
- Dominant language
- Jinja
- Stars
- 951
- Forks
- 700
- PR merge metrics
- No merged PRs in 30d
Description
Mirroring the issue [466](https://github.com/GoogleCloudPlatform/cloud-foundation-toolkit/issues/466):
Unable to remove records or DM resource. Even when feeding an empty set of resources dm tries to POST and complains about missing entity.change parameter. When looking at the API reference it appears DM uses wrong method and should use DELETE:
```JSON
{"ResourceType":"gcp-types/dns-v1:resourceRecordSets","ResourceErrorCode": "400",
"ResourceErrorMessage": {
"code": 400,
"errors": [
{
"domain": "global",
"message": "The 'entity.change' parameter is required but was missing.","
reason":"required"}],"message":"The 'entity.change' parameter is required
but was missing.","statusMessage":"Bad Request","requestPath":"https: //dns.googleapis.com/dns/v1/projects/myproject/managedZones/myrecord-resource/changes" ,
"httpMethod": "POST"
}
}
```
Contributor guide
Assessment
This issue has not been assessed yet.