@@ -9,10 +9,12 @@ resource "restapi_object" "container_registry_storage_quota" {
99 data = jsonencode ({
1010 " storage_megabytes" : var.storage_megabytes
1111 })
12- create_method = " PATCH"
13- create_path = " //${ var . container_registry_endpoint } /api/v1/quotas"
14- destroy_method = " PATCH"
15- destroy_path = " //${ var . container_registry_endpoint } /api/v1/quotas"
12+ id_attribute = " storage_megabytes"
13+ ignore_all_server_changes = true
14+ create_method = " PATCH"
15+ create_path = " //${ var . container_registry_endpoint } /api/v1/quotas"
16+ destroy_method = " PATCH"
17+ destroy_path = " //${ var . container_registry_endpoint } /api/v1/quotas"
1618 destroy_data = jsonencode ({
1719 " storage_megabytes" : 500 # set to default 500 MB
1820 })
@@ -30,10 +32,12 @@ resource "restapi_object" "container_registry_traffic_quota" {
3032 data = jsonencode ({
3133 " traffic_megabytes" : var.traffic_megabytes
3234 })
33- create_method = " PATCH"
34- create_path = " //${ var . container_registry_endpoint } /api/v1/quotas"
35- destroy_method = " PATCH"
36- destroy_path = " //${ var . container_registry_endpoint } /api/v1/quotas"
35+ id_attribute = " traffic_megabytes"
36+ ignore_all_server_changes = true
37+ create_method = " PATCH"
38+ create_path = " //${ var . container_registry_endpoint } /api/v1/quotas"
39+ destroy_method = " PATCH"
40+ destroy_path = " //${ var . container_registry_endpoint } /api/v1/quotas"
3741 destroy_data = jsonencode ({
3842 " traffic_megabytes" : 5120 # set to default 5GiB
3943 })
0 commit comments