import * as pulumi from "@pulumi/pulumi"; /** * This resource provides the Http Probe resource in Oracle Cloud Infrastructure Health Checks service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/healthchecks/latest/HttpProbe * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/health_checks * * Creates an on-demand HTTP probe. The location response header contains the URL for * fetching the probe results. * * *Note:* On-demand probe configurations are not saved. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testHttpProbe = new oci.healthchecks.HttpProbe("test_http_probe", { * compartmentId: compartmentId, * protocol: httpProbeProtocol, * targets: httpProbeTargets, * headers: httpProbeHeaders, * method: httpProbeMethod, * path: httpProbePath, * port: Number(httpProbePort), * timeoutInSeconds: Number(httpProbeTimeoutInSeconds), * vantagePointNames: httpProbeVantagePointNames, * }); * ``` * * ## Import * * HttpProbes can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:HealthChecks/httpProbe:HttpProbe test_http_probe "id" * ``` */ export declare class HttpProbe extends pulumi.CustomResource { /** * Get an existing HttpProbe resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: HttpProbeState, opts?: pulumi.CustomResourceOptions): HttpProbe; /** * Returns true if the given object is an instance of HttpProbe. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is HttpProbe; /** * The OCID of the compartment. */ readonly compartmentId: pulumi.Output; /** * A dictionary of HTTP request headers. * * *Note:* Monitors and probes do not support the use of the `Authorization` HTTP header. */ readonly headers: pulumi.Output<{ [key: string]: string; }>; /** * The region where updates must be made and where results must be fetched from. */ readonly homeRegion: pulumi.Output; /** * The supported HTTP methods available for probes. */ readonly method: pulumi.Output; /** * The optional URL path to probe, including query parameters. */ readonly path: pulumi.Output; /** * The port on which to probe endpoints. If unspecified, probes will use the default port of their protocol. */ readonly port: pulumi.Output; /** * The supported protocols available for HTTP probes. */ readonly protocol: pulumi.Output; /** * A URL for fetching the probe results. */ readonly resultsUrl: pulumi.Output; /** * A list of targets (hostnames or IP addresses) of the probe. */ readonly targets: pulumi.Output; /** * The RFC 3339-formatted creation date and time of the probe. */ readonly timeCreated: pulumi.Output; /** * The probe timeout in seconds. Valid values: 10, 20, 30, and 60. The probe timeout must be less than or equal to `intervalInSeconds` for monitors. */ readonly timeoutInSeconds: pulumi.Output; /** * A list of names of vantage points from which to execute the probe. * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ readonly vantagePointNames: pulumi.Output; /** * Create a HttpProbe resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: HttpProbeArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering HttpProbe resources. */ export interface HttpProbeState { /** * The OCID of the compartment. */ compartmentId?: pulumi.Input; /** * A dictionary of HTTP request headers. * * *Note:* Monitors and probes do not support the use of the `Authorization` HTTP header. */ headers?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * The region where updates must be made and where results must be fetched from. */ homeRegion?: pulumi.Input; /** * The supported HTTP methods available for probes. */ method?: pulumi.Input; /** * The optional URL path to probe, including query parameters. */ path?: pulumi.Input; /** * The port on which to probe endpoints. If unspecified, probes will use the default port of their protocol. */ port?: pulumi.Input; /** * The supported protocols available for HTTP probes. */ protocol?: pulumi.Input; /** * A URL for fetching the probe results. */ resultsUrl?: pulumi.Input; /** * A list of targets (hostnames or IP addresses) of the probe. */ targets?: pulumi.Input[] | undefined>; /** * The RFC 3339-formatted creation date and time of the probe. */ timeCreated?: pulumi.Input; /** * The probe timeout in seconds. Valid values: 10, 20, 30, and 60. The probe timeout must be less than or equal to `intervalInSeconds` for monitors. */ timeoutInSeconds?: pulumi.Input; /** * A list of names of vantage points from which to execute the probe. * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ vantagePointNames?: pulumi.Input[] | undefined>; } /** * The set of arguments for constructing a HttpProbe resource. */ export interface HttpProbeArgs { /** * The OCID of the compartment. */ compartmentId: pulumi.Input; /** * A dictionary of HTTP request headers. * * *Note:* Monitors and probes do not support the use of the `Authorization` HTTP header. */ headers?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * The supported HTTP methods available for probes. */ method?: pulumi.Input; /** * The optional URL path to probe, including query parameters. */ path?: pulumi.Input; /** * The port on which to probe endpoints. If unspecified, probes will use the default port of their protocol. */ port?: pulumi.Input; /** * The supported protocols available for HTTP probes. */ protocol: pulumi.Input; /** * A list of targets (hostnames or IP addresses) of the probe. */ targets: pulumi.Input[]>; /** * The probe timeout in seconds. Valid values: 10, 20, 30, and 60. The probe timeout must be less than or equal to `intervalInSeconds` for monitors. */ timeoutInSeconds?: pulumi.Input; /** * A list of names of vantage points from which to execute the probe. * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ vantagePointNames?: pulumi.Input[] | undefined>; } //# sourceMappingURL=httpProbe.d.ts.map