UptimeCheckConfig
This message configures which resources and services to monitor for availability.
To get more information about UptimeCheckConfig, see:
- API documentation
- How-to Guides
Warning: All arguments including
http_check.auth_info.passwordwill be stored in the raw state as plain-text. Read more about secrets in state.
Create a UptimeCheckConfig Resource
new UptimeCheckConfig(name: string, args: UptimeCheckConfigArgs, opts?: CustomResourceOptions);def UptimeCheckConfig(resource_name, opts=None, content_matchers=None, display_name=None, http_check=None, monitored_resource=None, period=None, project=None, resource_group=None, selected_regions=None, tcp_check=None, timeout=None, __props__=None);func NewUptimeCheckConfig(ctx *Context, name string, args UptimeCheckConfigArgs, opts ...ResourceOption) (*UptimeCheckConfig, error)public UptimeCheckConfig(string name, UptimeCheckConfigArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args UptimeCheckConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args UptimeCheckConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args UptimeCheckConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
UptimeCheckConfig Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The UptimeCheckConfig resource accepts the following input properties:
- Display
Name string A human-friendly name for the uptime check configuration. The display name should be unique within a Stackdriver Workspace in order to make it easier to identify; however, uniqueness is not enforced.
- Timeout string
The maximum amount of time to wait for the request to complete (must be between 1 and 60 seconds). Accepted formats https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Duration
- Content
Matchers List<UptimeCheck Config Content Matcher Args> The expected content on the page the check is run against. Currently, only the first entry in the list is supported, and other entries will be ignored. The server will look for an exact match of the string in the page response’s content. This field is optional and should only be specified if a content match is required. Structure is documented below.
- Http
Check UptimeCheck Config Http Check Args Contains information needed to make an HTTP or HTTPS check. Structure is documented below.
- Monitored
Resource UptimeCheck Config Monitored Resource Args The monitored resource (https://cloud.google.com/monitoring/api/resources) associated with the configuration. The following monitored resource types are supported for uptime checks: uptime_url gce_instance gae_app aws_ec2_instance aws_elb_load_balancer Structure is documented below.
- Period string
How often, in seconds, the uptime check is performed. Currently, the only supported values are 60s (1 minute), 300s (5 minutes), 600s (10 minutes), and 900s (15 minutes). Optional, defaults to 300s.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Resource
Group UptimeCheck Config Resource Group Args The group resource associated with the configuration. Structure is documented below.
- Selected
Regions List<string> The list of regions from which the check will be run. Some regions contain one location, and others contain more than one. If this field is specified, enough regions to include a minimum of 3 locations must be provided, or an error message is returned. Not specifying this field will result in uptime checks running from all regions.
- Tcp
Check UptimeCheck Config Tcp Check Args Contains information needed to make a TCP check. Structure is documented below.
- Display
Name string A human-friendly name for the uptime check configuration. The display name should be unique within a Stackdriver Workspace in order to make it easier to identify; however, uniqueness is not enforced.
- Timeout string
The maximum amount of time to wait for the request to complete (must be between 1 and 60 seconds). Accepted formats https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Duration
- Content
Matchers []UptimeCheck Config Content Matcher The expected content on the page the check is run against. Currently, only the first entry in the list is supported, and other entries will be ignored. The server will look for an exact match of the string in the page response’s content. This field is optional and should only be specified if a content match is required. Structure is documented below.
- Http
Check UptimeCheck Config Http Check Contains information needed to make an HTTP or HTTPS check. Structure is documented below.
- Monitored
Resource UptimeCheck Config Monitored Resource The monitored resource (https://cloud.google.com/monitoring/api/resources) associated with the configuration. The following monitored resource types are supported for uptime checks: uptime_url gce_instance gae_app aws_ec2_instance aws_elb_load_balancer Structure is documented below.
- Period string
How often, in seconds, the uptime check is performed. Currently, the only supported values are 60s (1 minute), 300s (5 minutes), 600s (10 minutes), and 900s (15 minutes). Optional, defaults to 300s.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Resource
Group UptimeCheck Config Resource Group The group resource associated with the configuration. Structure is documented below.
- Selected
Regions []string The list of regions from which the check will be run. Some regions contain one location, and others contain more than one. If this field is specified, enough regions to include a minimum of 3 locations must be provided, or an error message is returned. Not specifying this field will result in uptime checks running from all regions.
- Tcp
Check UptimeCheck Config Tcp Check Contains information needed to make a TCP check. Structure is documented below.
- display
Name string A human-friendly name for the uptime check configuration. The display name should be unique within a Stackdriver Workspace in order to make it easier to identify; however, uniqueness is not enforced.
- timeout string
The maximum amount of time to wait for the request to complete (must be between 1 and 60 seconds). Accepted formats https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Duration
- content
Matchers UptimeCheck Config Content Matcher[] The expected content on the page the check is run against. Currently, only the first entry in the list is supported, and other entries will be ignored. The server will look for an exact match of the string in the page response’s content. This field is optional and should only be specified if a content match is required. Structure is documented below.
- http
Check UptimeCheck Config Http Check Contains information needed to make an HTTP or HTTPS check. Structure is documented below.
- monitored
Resource UptimeCheck Config Monitored Resource The monitored resource (https://cloud.google.com/monitoring/api/resources) associated with the configuration. The following monitored resource types are supported for uptime checks: uptime_url gce_instance gae_app aws_ec2_instance aws_elb_load_balancer Structure is documented below.
- period string
How often, in seconds, the uptime check is performed. Currently, the only supported values are 60s (1 minute), 300s (5 minutes), 600s (10 minutes), and 900s (15 minutes). Optional, defaults to 300s.
- project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- resource
Group UptimeCheck Config Resource Group The group resource associated with the configuration. Structure is documented below.
- selected
Regions string[] The list of regions from which the check will be run. Some regions contain one location, and others contain more than one. If this field is specified, enough regions to include a minimum of 3 locations must be provided, or an error message is returned. Not specifying this field will result in uptime checks running from all regions.
- tcp
Check UptimeCheck Config Tcp Check Contains information needed to make a TCP check. Structure is documented below.
- display_
name str A human-friendly name for the uptime check configuration. The display name should be unique within a Stackdriver Workspace in order to make it easier to identify; however, uniqueness is not enforced.
- timeout str
The maximum amount of time to wait for the request to complete (must be between 1 and 60 seconds). Accepted formats https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Duration
- content_
matchers List[UptimeCheck Config Content Matcher] The expected content on the page the check is run against. Currently, only the first entry in the list is supported, and other entries will be ignored. The server will look for an exact match of the string in the page response’s content. This field is optional and should only be specified if a content match is required. Structure is documented below.
- http_
check Dict[UptimeCheck Config Http Check] Contains information needed to make an HTTP or HTTPS check. Structure is documented below.
- monitored_
resource Dict[UptimeCheck Config Monitored Resource] The monitored resource (https://cloud.google.com/monitoring/api/resources) associated with the configuration. The following monitored resource types are supported for uptime checks: uptime_url gce_instance gae_app aws_ec2_instance aws_elb_load_balancer Structure is documented below.
- period str
How often, in seconds, the uptime check is performed. Currently, the only supported values are 60s (1 minute), 300s (5 minutes), 600s (10 minutes), and 900s (15 minutes). Optional, defaults to 300s.
- project str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- resource_
group Dict[UptimeCheck Config Resource Group] The group resource associated with the configuration. Structure is documented below.
- selected_
regions List[str] The list of regions from which the check will be run. Some regions contain one location, and others contain more than one. If this field is specified, enough regions to include a minimum of 3 locations must be provided, or an error message is returned. Not specifying this field will result in uptime checks running from all regions.
- tcp_
check Dict[UptimeCheck Config Tcp Check] Contains information needed to make a TCP check. Structure is documented below.
Outputs
All input properties are implicitly available as output properties. Additionally, the UptimeCheckConfig resource produces the following output properties:
Look up an Existing UptimeCheckConfig Resource
Get an existing UptimeCheckConfig resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: UptimeCheckConfigState, opts?: CustomResourceOptions): UptimeCheckConfigstatic get(resource_name, id, opts=None, content_matchers=None, display_name=None, http_check=None, monitored_resource=None, name=None, period=None, project=None, resource_group=None, selected_regions=None, tcp_check=None, timeout=None, uptime_check_id=None, __props__=None);func GetUptimeCheckConfig(ctx *Context, name string, id IDInput, state *UptimeCheckConfigState, opts ...ResourceOption) (*UptimeCheckConfig, error)public static UptimeCheckConfig Get(string name, Input<string> id, UptimeCheckConfigState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Content
Matchers List<UptimeCheck Config Content Matcher Args> The expected content on the page the check is run against. Currently, only the first entry in the list is supported, and other entries will be ignored. The server will look for an exact match of the string in the page response’s content. This field is optional and should only be specified if a content match is required. Structure is documented below.
- Display
Name string A human-friendly name for the uptime check configuration. The display name should be unique within a Stackdriver Workspace in order to make it easier to identify; however, uniqueness is not enforced.
- Http
Check UptimeCheck Config Http Check Args Contains information needed to make an HTTP or HTTPS check. Structure is documented below.
- Monitored
Resource UptimeCheck Config Monitored Resource Args The monitored resource (https://cloud.google.com/monitoring/api/resources) associated with the configuration. The following monitored resource types are supported for uptime checks: uptime_url gce_instance gae_app aws_ec2_instance aws_elb_load_balancer Structure is documented below.
- Name string
A unique resource name for this UptimeCheckConfig. The format is projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID].
- Period string
How often, in seconds, the uptime check is performed. Currently, the only supported values are 60s (1 minute), 300s (5 minutes), 600s (10 minutes), and 900s (15 minutes). Optional, defaults to 300s.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Resource
Group UptimeCheck Config Resource Group Args The group resource associated with the configuration. Structure is documented below.
- Selected
Regions List<string> The list of regions from which the check will be run. Some regions contain one location, and others contain more than one. If this field is specified, enough regions to include a minimum of 3 locations must be provided, or an error message is returned. Not specifying this field will result in uptime checks running from all regions.
- Tcp
Check UptimeCheck Config Tcp Check Args Contains information needed to make a TCP check. Structure is documented below.
- Timeout string
The maximum amount of time to wait for the request to complete (must be between 1 and 60 seconds). Accepted formats https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Duration
- Uptime
Check stringId The id of the uptime check
- Content
Matchers []UptimeCheck Config Content Matcher The expected content on the page the check is run against. Currently, only the first entry in the list is supported, and other entries will be ignored. The server will look for an exact match of the string in the page response’s content. This field is optional and should only be specified if a content match is required. Structure is documented below.
- Display
Name string A human-friendly name for the uptime check configuration. The display name should be unique within a Stackdriver Workspace in order to make it easier to identify; however, uniqueness is not enforced.
- Http
Check UptimeCheck Config Http Check Contains information needed to make an HTTP or HTTPS check. Structure is documented below.
- Monitored
Resource UptimeCheck Config Monitored Resource The monitored resource (https://cloud.google.com/monitoring/api/resources) associated with the configuration. The following monitored resource types are supported for uptime checks: uptime_url gce_instance gae_app aws_ec2_instance aws_elb_load_balancer Structure is documented below.
- Name string
A unique resource name for this UptimeCheckConfig. The format is projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID].
- Period string
How often, in seconds, the uptime check is performed. Currently, the only supported values are 60s (1 minute), 300s (5 minutes), 600s (10 minutes), and 900s (15 minutes). Optional, defaults to 300s.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Resource
Group UptimeCheck Config Resource Group The group resource associated with the configuration. Structure is documented below.
- Selected
Regions []string The list of regions from which the check will be run. Some regions contain one location, and others contain more than one. If this field is specified, enough regions to include a minimum of 3 locations must be provided, or an error message is returned. Not specifying this field will result in uptime checks running from all regions.
- Tcp
Check UptimeCheck Config Tcp Check Contains information needed to make a TCP check. Structure is documented below.
- Timeout string
The maximum amount of time to wait for the request to complete (must be between 1 and 60 seconds). Accepted formats https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Duration
- Uptime
Check stringId The id of the uptime check
- content
Matchers UptimeCheck Config Content Matcher[] The expected content on the page the check is run against. Currently, only the first entry in the list is supported, and other entries will be ignored. The server will look for an exact match of the string in the page response’s content. This field is optional and should only be specified if a content match is required. Structure is documented below.
- display
Name string A human-friendly name for the uptime check configuration. The display name should be unique within a Stackdriver Workspace in order to make it easier to identify; however, uniqueness is not enforced.
- http
Check UptimeCheck Config Http Check Contains information needed to make an HTTP or HTTPS check. Structure is documented below.
- monitored
Resource UptimeCheck Config Monitored Resource The monitored resource (https://cloud.google.com/monitoring/api/resources) associated with the configuration. The following monitored resource types are supported for uptime checks: uptime_url gce_instance gae_app aws_ec2_instance aws_elb_load_balancer Structure is documented below.
- name string
A unique resource name for this UptimeCheckConfig. The format is projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID].
- period string
How often, in seconds, the uptime check is performed. Currently, the only supported values are 60s (1 minute), 300s (5 minutes), 600s (10 minutes), and 900s (15 minutes). Optional, defaults to 300s.
- project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- resource
Group UptimeCheck Config Resource Group The group resource associated with the configuration. Structure is documented below.
- selected
Regions string[] The list of regions from which the check will be run. Some regions contain one location, and others contain more than one. If this field is specified, enough regions to include a minimum of 3 locations must be provided, or an error message is returned. Not specifying this field will result in uptime checks running from all regions.
- tcp
Check UptimeCheck Config Tcp Check Contains information needed to make a TCP check. Structure is documented below.
- timeout string
The maximum amount of time to wait for the request to complete (must be between 1 and 60 seconds). Accepted formats https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Duration
- uptime
Check stringId The id of the uptime check
- content_
matchers List[UptimeCheck Config Content Matcher] The expected content on the page the check is run against. Currently, only the first entry in the list is supported, and other entries will be ignored. The server will look for an exact match of the string in the page response’s content. This field is optional and should only be specified if a content match is required. Structure is documented below.
- display_
name str A human-friendly name for the uptime check configuration. The display name should be unique within a Stackdriver Workspace in order to make it easier to identify; however, uniqueness is not enforced.
- http_
check Dict[UptimeCheck Config Http Check] Contains information needed to make an HTTP or HTTPS check. Structure is documented below.
- monitored_
resource Dict[UptimeCheck Config Monitored Resource] The monitored resource (https://cloud.google.com/monitoring/api/resources) associated with the configuration. The following monitored resource types are supported for uptime checks: uptime_url gce_instance gae_app aws_ec2_instance aws_elb_load_balancer Structure is documented below.
- name str
A unique resource name for this UptimeCheckConfig. The format is projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID].
- period str
How often, in seconds, the uptime check is performed. Currently, the only supported values are 60s (1 minute), 300s (5 minutes), 600s (10 minutes), and 900s (15 minutes). Optional, defaults to 300s.
- project str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- resource_
group Dict[UptimeCheck Config Resource Group] The group resource associated with the configuration. Structure is documented below.
- selected_
regions List[str] The list of regions from which the check will be run. Some regions contain one location, and others contain more than one. If this field is specified, enough regions to include a minimum of 3 locations must be provided, or an error message is returned. Not specifying this field will result in uptime checks running from all regions.
- tcp_
check Dict[UptimeCheck Config Tcp Check] Contains information needed to make a TCP check. Structure is documented below.
- timeout str
The maximum amount of time to wait for the request to complete (must be between 1 and 60 seconds). Accepted formats https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Duration
- uptime_
check_ strid The id of the uptime check
Supporting Types
UptimeCheckConfigContentMatcher
UptimeCheckConfigHttpCheck
- Auth
Info UptimeCheck Config Http Check Auth Info Args The authentication information. Optional when creating an HTTP check; defaults to empty. Structure is documented below.
- Body string
The request body associated with the HTTP POST request. If contentType is URL_ENCODED, the body passed in must be URL-encoded. Users can provide a Content-Length header via the headers field or the API will do so. If the requestMethod is GET and body is not empty, the API will return an error. The maximum byte size is 1 megabyte. Note - As with all bytes fields JSON representations are base64 encoded. e.g. “foo=bar” in URL-encoded form is “foo%3Dbar” and in base64 encoding is “Zm9vJTI1M0RiYXI=”.
- Content
Type string The content type to use for the check.
- Headers Dictionary<string, string>
The list of headers to send as part of the uptime check request. If two headers have the same key and different values, they should be entered as a single header, with the value being a comma-separated list of all the desired values as described at https://www.w3.org/Protocols/rfc2616/rfc2616.txt (page 31). Entering two separate headers with the same key in a Create call will cause the first to be overwritten by the second. The maximum number of headers allowed is 100.
- Mask
Headers bool Boolean specifying whether to encrypt the header information. Encryption should be specified for any headers related to authentication that you do not wish to be seen when retrieving the configuration. The server will be responsible for encrypting the headers. On Get/List calls, if mask_headers is set to True then the headers will be obscured with ******.
- Path string
The path to the page to run the check against. Will be combined with the host (specified within the MonitoredResource) and port to construct the full URL. Optional (defaults to “/”).
- Port int
The port to the page to run the check against. Will be combined with host (specified within the MonitoredResource) to construct the full URL.
- Request
Method string The HTTP request method to use for the check. If set to METHOD_UNSPECIFIED then requestMethod defaults to GET.
- Use
Ssl bool If true, use HTTPS instead of HTTP to run the check.
- Validate
Ssl bool Boolean specifying whether to include SSL certificate validation as a part of the Uptime check. Only applies to checks where monitoredResource is set to uptime_url. If useSsl is false, setting validateSsl to true has no effect.
- Auth
Info UptimeCheck Config Http Check Auth Info The authentication information. Optional when creating an HTTP check; defaults to empty. Structure is documented below.
- Body string
The request body associated with the HTTP POST request. If contentType is URL_ENCODED, the body passed in must be URL-encoded. Users can provide a Content-Length header via the headers field or the API will do so. If the requestMethod is GET and body is not empty, the API will return an error. The maximum byte size is 1 megabyte. Note - As with all bytes fields JSON representations are base64 encoded. e.g. “foo=bar” in URL-encoded form is “foo%3Dbar” and in base64 encoding is “Zm9vJTI1M0RiYXI=”.
- Content
Type string The content type to use for the check.
- Headers map[string]string
The list of headers to send as part of the uptime check request. If two headers have the same key and different values, they should be entered as a single header, with the value being a comma-separated list of all the desired values as described at https://www.w3.org/Protocols/rfc2616/rfc2616.txt (page 31). Entering two separate headers with the same key in a Create call will cause the first to be overwritten by the second. The maximum number of headers allowed is 100.
- Mask
Headers bool Boolean specifying whether to encrypt the header information. Encryption should be specified for any headers related to authentication that you do not wish to be seen when retrieving the configuration. The server will be responsible for encrypting the headers. On Get/List calls, if mask_headers is set to True then the headers will be obscured with ******.
- Path string
The path to the page to run the check against. Will be combined with the host (specified within the MonitoredResource) and port to construct the full URL. Optional (defaults to “/”).
- Port int
The port to the page to run the check against. Will be combined with host (specified within the MonitoredResource) to construct the full URL.
- Request
Method string The HTTP request method to use for the check. If set to METHOD_UNSPECIFIED then requestMethod defaults to GET.
- Use
Ssl bool If true, use HTTPS instead of HTTP to run the check.
- Validate
Ssl bool Boolean specifying whether to include SSL certificate validation as a part of the Uptime check. Only applies to checks where monitoredResource is set to uptime_url. If useSsl is false, setting validateSsl to true has no effect.
- auth
Info UptimeCheck Config Http Check Auth Info The authentication information. Optional when creating an HTTP check; defaults to empty. Structure is documented below.
- body string
The request body associated with the HTTP POST request. If contentType is URL_ENCODED, the body passed in must be URL-encoded. Users can provide a Content-Length header via the headers field or the API will do so. If the requestMethod is GET and body is not empty, the API will return an error. The maximum byte size is 1 megabyte. Note - As with all bytes fields JSON representations are base64 encoded. e.g. “foo=bar” in URL-encoded form is “foo%3Dbar” and in base64 encoding is “Zm9vJTI1M0RiYXI=”.
- content
Type string The content type to use for the check.
- headers {[key: string]: string}
The list of headers to send as part of the uptime check request. If two headers have the same key and different values, they should be entered as a single header, with the value being a comma-separated list of all the desired values as described at https://www.w3.org/Protocols/rfc2616/rfc2616.txt (page 31). Entering two separate headers with the same key in a Create call will cause the first to be overwritten by the second. The maximum number of headers allowed is 100.
- mask
Headers boolean Boolean specifying whether to encrypt the header information. Encryption should be specified for any headers related to authentication that you do not wish to be seen when retrieving the configuration. The server will be responsible for encrypting the headers. On Get/List calls, if mask_headers is set to True then the headers will be obscured with ******.
- path string
The path to the page to run the check against. Will be combined with the host (specified within the MonitoredResource) and port to construct the full URL. Optional (defaults to “/”).
- port number
The port to the page to run the check against. Will be combined with host (specified within the MonitoredResource) to construct the full URL.
- request
Method string The HTTP request method to use for the check. If set to METHOD_UNSPECIFIED then requestMethod defaults to GET.
- use
Ssl boolean If true, use HTTPS instead of HTTP to run the check.
- validate
Ssl boolean Boolean specifying whether to include SSL certificate validation as a part of the Uptime check. Only applies to checks where monitoredResource is set to uptime_url. If useSsl is false, setting validateSsl to true has no effect.
- auth
Info Dict[UptimeCheck Config Http Check Auth Info] The authentication information. Optional when creating an HTTP check; defaults to empty. Structure is documented below.
- body str
The request body associated with the HTTP POST request. If contentType is URL_ENCODED, the body passed in must be URL-encoded. Users can provide a Content-Length header via the headers field or the API will do so. If the requestMethod is GET and body is not empty, the API will return an error. The maximum byte size is 1 megabyte. Note - As with all bytes fields JSON representations are base64 encoded. e.g. “foo=bar” in URL-encoded form is “foo%3Dbar” and in base64 encoding is “Zm9vJTI1M0RiYXI=”.
- content_
type str The content type to use for the check.
- headers Dict[str, str]
The list of headers to send as part of the uptime check request. If two headers have the same key and different values, they should be entered as a single header, with the value being a comma-separated list of all the desired values as described at https://www.w3.org/Protocols/rfc2616/rfc2616.txt (page 31). Entering two separate headers with the same key in a Create call will cause the first to be overwritten by the second. The maximum number of headers allowed is 100.
- mask
Headers bool Boolean specifying whether to encrypt the header information. Encryption should be specified for any headers related to authentication that you do not wish to be seen when retrieving the configuration. The server will be responsible for encrypting the headers. On Get/List calls, if mask_headers is set to True then the headers will be obscured with ******.
- path str
The path to the page to run the check against. Will be combined with the host (specified within the MonitoredResource) and port to construct the full URL. Optional (defaults to “/”).
- port float
The port to the page to run the check against. Will be combined with host (specified within the MonitoredResource) to construct the full URL.
- request
Method str The HTTP request method to use for the check. If set to METHOD_UNSPECIFIED then requestMethod defaults to GET.
- use
Ssl bool If true, use HTTPS instead of HTTP to run the check.
- validate
Ssl bool Boolean specifying whether to include SSL certificate validation as a part of the Uptime check. Only applies to checks where monitoredResource is set to uptime_url. If useSsl is false, setting validateSsl to true has no effect.
UptimeCheckConfigHttpCheckAuthInfo
UptimeCheckConfigMonitoredResource
- Labels Dictionary<string, string>
Values for all of the labels listed in the associated monitored resource descriptor. For example, Compute Engine VM instances use the labels “project_id”, “instance_id”, and “zone”.
- Type string
The monitored resource type. This field must match the type field of a MonitoredResourceDescriptor (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.monitoredResourceDescriptors#MonitoredResourceDescriptor) object. For example, the type of a Compute Engine VM instance is gce_instance. For a list of types, see Monitoring resource types (https://cloud.google.com/monitoring/api/resources) and Logging resource types (https://cloud.google.com/logging/docs/api/v2/resource-list).
- Labels map[string]string
Values for all of the labels listed in the associated monitored resource descriptor. For example, Compute Engine VM instances use the labels “project_id”, “instance_id”, and “zone”.
- Type string
The monitored resource type. This field must match the type field of a MonitoredResourceDescriptor (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.monitoredResourceDescriptors#MonitoredResourceDescriptor) object. For example, the type of a Compute Engine VM instance is gce_instance. For a list of types, see Monitoring resource types (https://cloud.google.com/monitoring/api/resources) and Logging resource types (https://cloud.google.com/logging/docs/api/v2/resource-list).
- labels {[key: string]: string}
Values for all of the labels listed in the associated monitored resource descriptor. For example, Compute Engine VM instances use the labels “project_id”, “instance_id”, and “zone”.
- type string
The monitored resource type. This field must match the type field of a MonitoredResourceDescriptor (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.monitoredResourceDescriptors#MonitoredResourceDescriptor) object. For example, the type of a Compute Engine VM instance is gce_instance. For a list of types, see Monitoring resource types (https://cloud.google.com/monitoring/api/resources) and Logging resource types (https://cloud.google.com/logging/docs/api/v2/resource-list).
- labels Dict[str, str]
Values for all of the labels listed in the associated monitored resource descriptor. For example, Compute Engine VM instances use the labels “project_id”, “instance_id”, and “zone”.
- type str
The monitored resource type. This field must match the type field of a MonitoredResourceDescriptor (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.monitoredResourceDescriptors#MonitoredResourceDescriptor) object. For example, the type of a Compute Engine VM instance is gce_instance. For a list of types, see Monitoring resource types (https://cloud.google.com/monitoring/api/resources) and Logging resource types (https://cloud.google.com/logging/docs/api/v2/resource-list).
UptimeCheckConfigResourceGroup
- Group
Id string The group of resources being monitored. Should be the
nameof a group- Resource
Type string The resource type of the group members.
- Group
Id string The group of resources being monitored. Should be the
nameof a group- Resource
Type string The resource type of the group members.
- group
Id string The group of resources being monitored. Should be the
nameof a group- resource
Type string The resource type of the group members.
- group
Id str The group of resources being monitored. Should be the
nameof a group- resource
Type str The resource type of the group members.
UptimeCheckConfigTcpCheck
Package Details
- Repository
- https://github.com/pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-betaTerraform Provider.