Skip to content

Commit a369303

Browse files
fix(PDNS): Add GLB healthcheck 3XX, 4XX and 5XX responses (IBM-Cloud#6139)
1 parent 5995c04 commit a369303

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ibm/service/dnsservices/resource_ibm_private_dns_glb_monitor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ func ResourceIBMPrivateDNSGLBMonitor() *schema.Resource {
192192
func ResourceIBMPrivateDNSGLBMonitorValidator() *validate.ResourceValidator {
193193
monitorCheckTypes := "HTTP, HTTPS, TCP"
194194
methods := "GET, HEAD"
195-
expectedcode := "200,201,202,203,204,205,206,207,208,226,2xx"
195+
expectedcode := "200,201,202,203,204,205,206,207,208,226,2xx,3xx,4xx,5xx"
196196

197197
validateSchema := make([]validate.ValidateSchema, 0)
198198
validateSchema = append(validateSchema,

website/docs/r/dns_glb_monitor.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Review the argument reference that you can specify for your resource.
4141
- `allow_insecure` - (Optional, String) Do not validate the certificate when monitor use HTTPS. This parameter is currently only valid for HTTPS monitors.
4242
- `description` - (Optional, String) Descriptive text of the Load Balancer monitor.
4343
- `expected_body` - (Optional, String) A case-insensitive sub-string to look in the response body. If the string is not found, the origin will be marked as unhealthy. This parameter is only valid for HTTP and HTTPS monitors.
44-
- `expected_codes` - (Optional, String) The expected HTTP response code or code range of the health check. This parameter is only valid for HTTP and HTTPS monitors. Allowable values are `200, 201, 202, 203, 204,205, 206, 207, 208, 226, xx`.
44+
- `expected_codes` - (Optional, String) The expected HTTP response code or code range of the health check. This parameter is only valid for HTTP and HTTPS monitors. Allowable values are `200, 201, 202, 203, 204, 205, 206, 207, 208, 226, 2xx, 3xx, 4xx, 5xx`.
4545
- `headers` - (Optional, Set) The HTTP request headers to send in the health check. It is recommended you set a host header by default. The `User-Agent` header cannot be overridden. This parameter is only valid for HTTP and HTTPS monitors.
4646

4747
Nested scheme for `headers`:

0 commit comments

Comments
 (0)