Creating an HTTP On-Demand Probe

Create an HTTP on-demand probe in Health Checks.

On-demand probes are available through SDK, CLI, and API.

  • This task can't be performed using the Console.

  • Use the oci health-checks http-probe create-on-demand command and required parameters to create an HTTP on-demand probe:

    oci health-checks http-probe create-on-demand [OPTIONS]

    For a complete list of flags and variable options for CLI commands, see the CLI for Health Checks.

  • Run the CreateOnDemandHttpProbe operation to create an HTTP on-demand probe.


    The following example request creates an HTTP on-demand probe to check the health of using GET requests over HTTP protocol.

    POST /20180501/httpProbeResults
      "compartmentId": "ocid1.compartment.oc1..<unique_ID>",
      "method": "GET",
      "protocol": "HTTP",
      "targets": [""],
      "timeoutInSeconds": 30

    Following is an example 200 response for successful creation of the previously defined HTTP on-demand probe. The resultsUrl field indicates the URL for retrieving results.