Skip to content

Commit 7fb7849

Browse files
authored
Add "all" as a valid value for strategy in domain_record in http_service mode (#2137)
* Add "all" as a valid value for strategy in domain_record in http_service mode * update doc
1 parent ca27331 commit 7fb7849

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

docs/resources/domain_record.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ The following arguments are supported:
211211
- `must_contain` - (Required) Text to search
212212
- `url` - (Required) URL to match the `must_contain` text to validate an IP
213213
- `user_agent` - (Optional) User-agent used when checking the URL
214-
- `strategy` - (Required) Strategy to return an IP from the IPs list. Can be `random` or `hashed`
214+
- `strategy` - (Required) Strategy to return an IP from the IPs list. Can be `random`, `hashed` or `all`
215215

216216

217217
- `view` - (Optional) The answer to a DNS request is based on the client’s (resolver) subnet. *(Can be more than 1)* [Documentation and usage example](https://www.scaleway.com/en/docs/network/domains-and-dns/how-to/manage-dns-records/#views-records)

scaleway/resource_domain_record.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ func resourceScalewayDomainRecord() *schema.Resource {
188188
ValidateFunc: validation.StringInSlice([]string{
189189
domain.RecordHTTPServiceConfigStrategyRandom.String(),
190190
domain.RecordHTTPServiceConfigStrategyHashed.String(),
191+
domain.RecordHTTPServiceConfigStrategyAll.String(),
191192
}, false),
192193
},
193194
},

0 commit comments

Comments
 (0)