Skip to content

Commit 67cbccf

Browse files
committed
chore: update mapping
1 parent a94b97f commit 67cbccf

File tree

1 file changed

+67
-23
lines changed

1 file changed

+67
-23
lines changed

internal/app/cf-terraforming/cmd/resource_to_endpoint_mapping.go

Lines changed: 67 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,18 @@ var resourceToEndpoint = map[string]map[string]string{
115115
"list": "/zones/{zone_id}/dns_records",
116116
"get": "/zones/{zone_id}/dns_records/{dns_record_id}",
117117
},
118+
"cloudflare_zone_dns_settings": {
119+
"list": "",
120+
"get": "/zones/{zone_id}/dns_settings",
121+
},
122+
"cloudflare_account_dns_settings": {
123+
"list": "",
124+
"get": "/accounts/{account_id}/dns_settings",
125+
},
126+
"cloudflare_account_dns_settings_internal_view": {
127+
"list": "/accounts/{account_id}/dns_settings/views",
128+
"get": "/accounts/{account_id}/dns_settings/views/{view_id}",
129+
},
118130
"cloudflare_dns_zone_transfers_incoming": {
119131
"list": "",
120132
"get": "/zones/{zone_id}/secondary_dns/incoming",
@@ -176,8 +188,8 @@ var resourceToEndpoint = map[string]map[string]string{
176188
"get": "/zones/{zone_id}/firewall/lockdowns/{lock_downs_id}",
177189
},
178190
"cloudflare_access_rule": {
179-
"list": "/{account_or_zone}/{account_or_zone_id}/firewall/access_rules/rules",
180-
"get": "/{account_or_zone}/{account_or_zone_id}/firewall/access_rules/rules/{rule_id}",
191+
"list": "/{accounts_or_zones}/{account_or_zone_id}/firewall/access_rules/rules",
192+
"get": "/{accounts_or_zones}/{account_or_zone_id}/firewall/access_rules/rules/{rule_id}",
181193
},
182194
"cloudflare_user_agent_blocking_rule": {
183195
"list": "/zones/{zone_id}/firewall/ua_rules",
@@ -192,8 +204,8 @@ var resourceToEndpoint = map[string]map[string]string{
192204
"get": "/zones/{zone_id}/keyless_certificates/{keyless_certificate_id}",
193205
},
194206
"cloudflare_logpush_job": {
195-
"list": "/{account_or_zone}/{account_or_zone_id}/logpush/jobs",
196-
"get": "/{account_or_zone}/{account_or_zone_id}/logpush/jobs/{job_id}",
207+
"list": "/{accounts_or_zones}/{account_or_zone_id}/logpush/jobs",
208+
"get": "/{accounts_or_zones}/{account_or_zone_id}/logpush/jobs/{job_id}",
197209
},
198210
"cloudflare_logpush_ownership_challenge": {
199211
"list": "",
@@ -211,6 +223,10 @@ var resourceToEndpoint = map[string]map[string]string{
211223
"list": "",
212224
"get": "/zones/{zone_id}/origin_tls_client_auth/hostnames/{hostname}",
213225
},
226+
"cloudflare_authenticated_origin_pulls_settings": {
227+
"list": "",
228+
"get": "/zones/{zone_id}/origin_tls_client_auth/settings",
229+
},
214230
"cloudflare_page_rule": {
215231
"list": "/zones/{zone_id}/pagerules",
216232
"get": "/zones/{zone_id}/pagerules/{pagerule_id}",
@@ -220,7 +236,7 @@ var resourceToEndpoint = map[string]map[string]string{
220236
"get": "/zones/{zone_id}/rate_limits/{rate_limit_id}",
221237
},
222238
"cloudflare_waiting_room": {
223-
"list": "/zones/{zone_id}/waiting_rooms",
239+
"list": "/{accounts_or_zones}/{account_or_zone_id}/waiting_rooms",
224240
"get": "/zones/{zone_id}/waiting_rooms/{waiting_room_id}",
225241
},
226242
"cloudflare_waiting_room_event": {
@@ -239,6 +255,10 @@ var resourceToEndpoint = map[string]map[string]string{
239255
"list": "/zones/{zone_id}/web3/hostnames",
240256
"get": "/zones/{zone_id}/web3/hostnames/{identifier}",
241257
},
258+
"cloudflare_workers_route": {
259+
"list": "/zones/{zone_id}/workers/routes",
260+
"get": "/zones/{zone_id}/workers/routes/{route_id}",
261+
},
242262
"cloudflare_workers_script_subdomain": {
243263
"list": "",
244264
"get": "/accounts/{account_id}/workers/scripts/{script_name}/subdomain",
@@ -304,8 +324,8 @@ var resourceToEndpoint = map[string]map[string]string{
304324
"get": "/zones/{zone_id}/page_shield/policies/{policy_id}",
305325
},
306326
"cloudflare_ruleset": {
307-
"list": "/{account_or_zone}/{account_or_zone_id}/rulesets",
308-
"get": "/{account_or_zone}/{account_or_zone_id}/rulesets/{ruleset_id}",
327+
"list": "/{accounts_or_zones}/{account_or_zone_id}/rulesets",
328+
"get": "/{accounts_or_zones}/{account_or_zone_id}/rulesets/{ruleset_id}",
309329
},
310330
"cloudflare_url_normalization_settings": {
311331
"list": "",
@@ -447,14 +467,34 @@ var resourceToEndpoint = map[string]map[string]string{
447467
"list": "/accounts/{account_id}/r2/buckets",
448468
"get": "/accounts/{account_id}/r2/buckets/{bucket_name}",
449469
},
470+
"cloudflare_r2_bucket_lifecycle": {
471+
"list": "",
472+
"get": "/accounts/{account_id}/r2/buckets/{bucket_name}/lifecycle",
473+
},
474+
"cloudflare_r2_bucket_cors": {
475+
"list": "",
476+
"get": "/accounts/{account_id}/r2/buckets/{bucket_name}/cors",
477+
},
450478
"cloudflare_r2_custom_domain": {
451479
"list": "/accounts/{account_id}/r2/buckets/{bucket_name}/domains/custom",
452-
"get": "/accounts/{account_id}/r2/buckets/{bucket_name}/domains/custom/{domain_name}",
480+
"get": "/accounts/{account_id}/r2/buckets/{bucket_name}/domains/custom/{domain}",
453481
},
454482
"cloudflare_r2_managed_domain": {
455483
"list": "/accounts/{account_id}/r2/buckets/{bucket_name}/domains/managed",
456484
"get": "/accounts/{account_id}/r2/buckets/{bucket_name}/domains/managed",
457485
},
486+
"cloudflare_r2_bucket_event_notification": {
487+
"list": "",
488+
"get": "/accounts/{account_id}/event_notifications/r2/{bucket_name}/configuration",
489+
},
490+
"cloudflare_r2_bucket_lock": {
491+
"list": "",
492+
"get": "/accounts/{account_id}/r2/buckets/{bucket_name}/lock",
493+
},
494+
"cloudflare_r2_bucket_sippy": {
495+
"list": "",
496+
"get": "/accounts/{account_id}/r2/buckets/{bucket_name}/sippy",
497+
},
458498
"cloudflare_workers_for_platforms_dispatch_namespace": {
459499
"list": "/accounts/{account_id}/workers/dispatch/namespaces",
460500
"get": "/accounts/{account_id}/workers/dispatch/namespaces/{dispatch_namespace}",
@@ -500,40 +540,40 @@ var resourceToEndpoint = map[string]map[string]string{
500540
"get": "/accounts/{account_id}/devices/posture/integration/{integration_id}",
501541
},
502542
"cloudflare_zero_trust_access_identity_provider": {
503-
"list": "/{account_or_zone}/{account_or_zone_id}/access/identity_providers",
504-
"get": "/{account_or_zone}/{account_or_zone_id}/access/identity_providers/{identity_provider_id}",
543+
"list": "/{accounts_or_zones}/{account_or_zone_id}/access/identity_providers",
544+
"get": "/{accounts_or_zones}/{account_or_zone_id}/access/identity_providers/{identity_provider_id}",
505545
},
506546
"cloudflare_zero_trust_organization": {
507-
"list": "/{account_or_zone}/{account_or_zone_id}/access/organizations",
508-
"get": "/{account_or_zone}/{account_or_zone_id}/access/organizations",
547+
"list": "/{accounts_or_zones}/{account_or_zone_id}/access/organizations",
548+
"get": "/{accounts_or_zones}/{account_or_zone_id}/access/organizations",
509549
},
510550
"cloudflare_zero_trust_access_infrastructure_target": {
511551
"list": "/accounts/{account_id}/infrastructure/targets",
512552
"get": "/accounts/{account_id}/infrastructure/targets/{target_id}",
513553
},
514554
"cloudflare_zero_trust_access_application": {
515-
"list": "/{account_or_zone}/{account_or_zone_id}/access/apps",
516-
"get": "/{account_or_zone}/{account_or_zone_id}/access/apps/{app_id}",
555+
"list": "/{accounts_or_zones}/{account_or_zone_id}/access/apps",
556+
"get": "/{accounts_or_zones}/{account_or_zone_id}/access/apps/{app_id}",
517557
},
518558
"cloudflare_zero_trust_access_short_lived_certificate": {
519-
"list": "/{account_or_zone}/{account_or_zone_id}/access/apps/ca",
520-
"get": "/{account_or_zone}/{account_or_zone_id}/access/apps/{app_id}/ca",
559+
"list": "/{accounts_or_zones}/{account_or_zone_id}/access/apps/ca",
560+
"get": "/{accounts_or_zones}/{account_or_zone_id}/access/apps/{app_id}/ca",
521561
},
522562
"cloudflare_zero_trust_access_mtls_certificate": {
523-
"list": "/{account_or_zone}/{account_or_zone_id}/access/certificates",
524-
"get": "/{account_or_zone}/{account_or_zone_id}/access/certificates/{certificate_id}",
563+
"list": "/{accounts_or_zones}/{account_or_zone_id}/access/certificates",
564+
"get": "/{accounts_or_zones}/{account_or_zone_id}/access/certificates/{certificate_id}",
525565
},
526566
"cloudflare_zero_trust_access_mtls_hostname_settings": {
527567
"list": "",
528-
"get": "/{account_or_zone}/{account_or_zone_id}/access/certificates/settings",
568+
"get": "/{accounts_or_zones}/{account_or_zone_id}/access/certificates/settings",
529569
},
530570
"cloudflare_zero_trust_access_group": {
531-
"list": "/{account_or_zone}/{account_or_zone_id}/access/groups",
532-
"get": "/{account_or_zone}/{account_or_zone_id}/access/groups/{group_id}",
571+
"list": "/{accounts_or_zones}/{account_or_zone_id}/access/groups",
572+
"get": "/{accounts_or_zones}/{account_or_zone_id}/access/groups/{group_id}",
533573
},
534574
"cloudflare_zero_trust_access_service_token": {
535-
"list": "/{account_or_zone}/{account_or_zone_id}/access/service_tokens",
536-
"get": "/{account_or_zone}/{account_or_zone_id}/access/service_tokens/{service_token_id}",
575+
"list": "/{accounts_or_zones}/{account_or_zone_id}/access/service_tokens",
576+
"get": "/{accounts_or_zones}/{account_or_zone_id}/access/service_tokens/{service_token_id}",
537577
},
538578
"cloudflare_zero_trust_access_key_configuration": {
539579
"list": "",
@@ -595,6 +635,10 @@ var resourceToEndpoint = map[string]map[string]string{
595635
"list": "/accounts/{account_id}/gateway/locations",
596636
"get": "/accounts/{account_id}/gateway/locations/{location_id}",
597637
},
638+
"cloudflare_zero_trust_gateway_logging": {
639+
"list": "",
640+
"get": "/accounts/{account_id}/gateway/logging",
641+
},
598642
"cloudflare_zero_trust_gateway_proxy_endpoint": {
599643
"list": "/accounts/{account_id}/gateway/proxy_endpoints",
600644
"get": "/accounts/{account_id}/gateway/proxy_endpoints/{proxy_endpoint_id}",

0 commit comments

Comments
 (0)