Skip to content

Commit 18360bc

Browse files
add extra host_rule to example (#3240) (#1845)
Signed-off-by: Modular Magician <[email protected]>
1 parent ecba8cf commit 18360bc

File tree

3 files changed

+27
-4
lines changed

3 files changed

+27
-4
lines changed

.changelog/3240.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:none
2+
3+
```

google-beta/resource_compute_url_map_generated_test.go

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,16 @@ resource "google_compute_url_map" "urlmap" {
5858
5959
host_rule {
6060
hosts = ["mysite.com"]
61-
path_matcher = "allpaths"
61+
path_matcher = "mysite"
62+
}
63+
64+
host_rule {
65+
hosts = ["myothersite.com"]
66+
path_matcher = "otherpaths"
6267
}
6368
6469
path_matcher {
65-
name = "allpaths"
70+
name = "mysite"
6671
default_service = google_compute_backend_service.home.self_link
6772
6873
path_rule {
@@ -81,6 +86,11 @@ resource "google_compute_url_map" "urlmap" {
8186
}
8287
}
8388
89+
path_matcher {
90+
name = "otherpaths"
91+
default_service = google_compute_backend_service.home.self_link
92+
}
93+
8494
test {
8595
service = google_compute_backend_service.home.self_link
8696
host = "hi.com"

website/docs/r/compute_url_map.html.markdown

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,16 @@ resource "google_compute_url_map" "urlmap" {
4848
4949
host_rule {
5050
hosts = ["mysite.com"]
51-
path_matcher = "allpaths"
51+
path_matcher = "mysite"
52+
}
53+
54+
host_rule {
55+
hosts = ["myothersite.com"]
56+
path_matcher = "otherpaths"
5257
}
5358
5459
path_matcher {
55-
name = "allpaths"
60+
name = "mysite"
5661
default_service = google_compute_backend_service.home.self_link
5762
5863
path_rule {
@@ -71,6 +76,11 @@ resource "google_compute_url_map" "urlmap" {
7176
}
7277
}
7378
79+
path_matcher {
80+
name = "otherpaths"
81+
default_service = google_compute_backend_service.home.self_link
82+
}
83+
7484
test {
7585
service = google_compute_backend_service.home.self_link
7686
host = "hi.com"

0 commit comments

Comments
 (0)