oci.HealthChecks.HttpMonitor
Explore with Pulumi AI
This resource provides the Http Monitor resource in Oracle Cloud Infrastructure Health Checks service.
Creates an HTTP monitor. Vantage points will be automatically selected if not specified,
and probes will be initiated from each vantage point to each of the targets at the frequency
specified by intervalInSeconds
.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testHttpMonitor = new oci.healthchecks.HttpMonitor("test_http_monitor", {
compartmentId: compartmentId,
displayName: httpMonitorDisplayName,
intervalInSeconds: httpMonitorIntervalInSeconds,
protocol: httpMonitorProtocol,
targets: httpMonitorTargets,
definedTags: {
"Operations.CostCenter": "42",
},
freeformTags: {
Department: "Finance",
},
headers: httpMonitorHeaders,
isEnabled: httpMonitorIsEnabled,
method: httpMonitorMethod,
path: httpMonitorPath,
port: httpMonitorPort,
timeoutInSeconds: httpMonitorTimeoutInSeconds,
vantagePointNames: httpMonitorVantagePointNames,
});
import pulumi
import pulumi_oci as oci
test_http_monitor = oci.health_checks.HttpMonitor("test_http_monitor",
compartment_id=compartment_id,
display_name=http_monitor_display_name,
interval_in_seconds=http_monitor_interval_in_seconds,
protocol=http_monitor_protocol,
targets=http_monitor_targets,
defined_tags={
"Operations.CostCenter": "42",
},
freeform_tags={
"Department": "Finance",
},
headers=http_monitor_headers,
is_enabled=http_monitor_is_enabled,
method=http_monitor_method,
path=http_monitor_path,
port=http_monitor_port,
timeout_in_seconds=http_monitor_timeout_in_seconds,
vantage_point_names=http_monitor_vantage_point_names)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/HealthChecks"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := HealthChecks.NewHttpMonitor(ctx, "test_http_monitor", &HealthChecks.HttpMonitorArgs{
CompartmentId: pulumi.Any(compartmentId),
DisplayName: pulumi.Any(httpMonitorDisplayName),
IntervalInSeconds: pulumi.Any(httpMonitorIntervalInSeconds),
Protocol: pulumi.Any(httpMonitorProtocol),
Targets: pulumi.Any(httpMonitorTargets),
DefinedTags: pulumi.Map{
"Operations.CostCenter": pulumi.Any("42"),
},
FreeformTags: pulumi.Map{
"Department": pulumi.Any("Finance"),
},
Headers: pulumi.Any(httpMonitorHeaders),
IsEnabled: pulumi.Any(httpMonitorIsEnabled),
Method: pulumi.Any(httpMonitorMethod),
Path: pulumi.Any(httpMonitorPath),
Port: pulumi.Any(httpMonitorPort),
TimeoutInSeconds: pulumi.Any(httpMonitorTimeoutInSeconds),
VantagePointNames: pulumi.Any(httpMonitorVantagePointNames),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testHttpMonitor = new Oci.HealthChecks.HttpMonitor("test_http_monitor", new()
{
CompartmentId = compartmentId,
DisplayName = httpMonitorDisplayName,
IntervalInSeconds = httpMonitorIntervalInSeconds,
Protocol = httpMonitorProtocol,
Targets = httpMonitorTargets,
DefinedTags =
{
{ "Operations.CostCenter", "42" },
},
FreeformTags =
{
{ "Department", "Finance" },
},
Headers = httpMonitorHeaders,
IsEnabled = httpMonitorIsEnabled,
Method = httpMonitorMethod,
Path = httpMonitorPath,
Port = httpMonitorPort,
TimeoutInSeconds = httpMonitorTimeoutInSeconds,
VantagePointNames = httpMonitorVantagePointNames,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.HealthChecks.HttpMonitor;
import com.pulumi.oci.HealthChecks.HttpMonitorArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var testHttpMonitor = new HttpMonitor("testHttpMonitor", HttpMonitorArgs.builder()
.compartmentId(compartmentId)
.displayName(httpMonitorDisplayName)
.intervalInSeconds(httpMonitorIntervalInSeconds)
.protocol(httpMonitorProtocol)
.targets(httpMonitorTargets)
.definedTags(Map.of("Operations.CostCenter", "42"))
.freeformTags(Map.of("Department", "Finance"))
.headers(httpMonitorHeaders)
.isEnabled(httpMonitorIsEnabled)
.method(httpMonitorMethod)
.path(httpMonitorPath)
.port(httpMonitorPort)
.timeoutInSeconds(httpMonitorTimeoutInSeconds)
.vantagePointNames(httpMonitorVantagePointNames)
.build());
}
}
resources:
testHttpMonitor:
type: oci:HealthChecks:HttpMonitor
name: test_http_monitor
properties:
compartmentId: ${compartmentId}
displayName: ${httpMonitorDisplayName}
intervalInSeconds: ${httpMonitorIntervalInSeconds}
protocol: ${httpMonitorProtocol}
targets: ${httpMonitorTargets}
definedTags:
Operations.CostCenter: '42'
freeformTags:
Department: Finance
headers: ${httpMonitorHeaders}
isEnabled: ${httpMonitorIsEnabled}
method: ${httpMonitorMethod}
path: ${httpMonitorPath}
port: ${httpMonitorPort}
timeoutInSeconds: ${httpMonitorTimeoutInSeconds}
vantagePointNames: ${httpMonitorVantagePointNames}
Create HttpMonitor Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new HttpMonitor(name: string, args: HttpMonitorArgs, opts?: CustomResourceOptions);
@overload
def HttpMonitor(resource_name: str,
args: HttpMonitorArgs,
opts: Optional[ResourceOptions] = None)
@overload
def HttpMonitor(resource_name: str,
opts: Optional[ResourceOptions] = None,
interval_in_seconds: Optional[int] = None,
targets: Optional[Sequence[str]] = None,
display_name: Optional[str] = None,
protocol: Optional[str] = None,
compartment_id: Optional[str] = None,
is_enabled: Optional[bool] = None,
headers: Optional[Mapping[str, Any]] = None,
method: Optional[str] = None,
path: Optional[str] = None,
port: Optional[int] = None,
freeform_tags: Optional[Mapping[str, Any]] = None,
defined_tags: Optional[Mapping[str, Any]] = None,
timeout_in_seconds: Optional[int] = None,
vantage_point_names: Optional[Sequence[str]] = None)
func NewHttpMonitor(ctx *Context, name string, args HttpMonitorArgs, opts ...ResourceOption) (*HttpMonitor, error)
public HttpMonitor(string name, HttpMonitorArgs args, CustomResourceOptions? opts = null)
public HttpMonitor(String name, HttpMonitorArgs args)
public HttpMonitor(String name, HttpMonitorArgs args, CustomResourceOptions options)
type: oci:HealthChecks:HttpMonitor
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args HttpMonitorArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args HttpMonitorArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args HttpMonitorArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args HttpMonitorArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args HttpMonitorArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var httpMonitorResource = new Oci.HealthChecks.HttpMonitor("httpMonitorResource", new()
{
IntervalInSeconds = 0,
Targets = new[]
{
"string",
},
DisplayName = "string",
Protocol = "string",
CompartmentId = "string",
IsEnabled = false,
Headers =
{
{ "string", "any" },
},
Method = "string",
Path = "string",
Port = 0,
FreeformTags =
{
{ "string", "any" },
},
DefinedTags =
{
{ "string", "any" },
},
TimeoutInSeconds = 0,
VantagePointNames = new[]
{
"string",
},
});
example, err := HealthChecks.NewHttpMonitor(ctx, "httpMonitorResource", &HealthChecks.HttpMonitorArgs{
IntervalInSeconds: pulumi.Int(0),
Targets: pulumi.StringArray{
pulumi.String("string"),
},
DisplayName: pulumi.String("string"),
Protocol: pulumi.String("string"),
CompartmentId: pulumi.String("string"),
IsEnabled: pulumi.Bool(false),
Headers: pulumi.Map{
"string": pulumi.Any("any"),
},
Method: pulumi.String("string"),
Path: pulumi.String("string"),
Port: pulumi.Int(0),
FreeformTags: pulumi.Map{
"string": pulumi.Any("any"),
},
DefinedTags: pulumi.Map{
"string": pulumi.Any("any"),
},
TimeoutInSeconds: pulumi.Int(0),
VantagePointNames: pulumi.StringArray{
pulumi.String("string"),
},
})
var httpMonitorResource = new HttpMonitor("httpMonitorResource", HttpMonitorArgs.builder()
.intervalInSeconds(0)
.targets("string")
.displayName("string")
.protocol("string")
.compartmentId("string")
.isEnabled(false)
.headers(Map.of("string", "any"))
.method("string")
.path("string")
.port(0)
.freeformTags(Map.of("string", "any"))
.definedTags(Map.of("string", "any"))
.timeoutInSeconds(0)
.vantagePointNames("string")
.build());
http_monitor_resource = oci.health_checks.HttpMonitor("httpMonitorResource",
interval_in_seconds=0,
targets=["string"],
display_name="string",
protocol="string",
compartment_id="string",
is_enabled=False,
headers={
"string": "any",
},
method="string",
path="string",
port=0,
freeform_tags={
"string": "any",
},
defined_tags={
"string": "any",
},
timeout_in_seconds=0,
vantage_point_names=["string"])
const httpMonitorResource = new oci.healthchecks.HttpMonitor("httpMonitorResource", {
intervalInSeconds: 0,
targets: ["string"],
displayName: "string",
protocol: "string",
compartmentId: "string",
isEnabled: false,
headers: {
string: "any",
},
method: "string",
path: "string",
port: 0,
freeformTags: {
string: "any",
},
definedTags: {
string: "any",
},
timeoutInSeconds: 0,
vantagePointNames: ["string"],
});
type: oci:HealthChecks:HttpMonitor
properties:
compartmentId: string
definedTags:
string: any
displayName: string
freeformTags:
string: any
headers:
string: any
intervalInSeconds: 0
isEnabled: false
method: string
path: string
port: 0
protocol: string
targets:
- string
timeoutInSeconds: 0
vantagePointNames:
- string
HttpMonitor Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The HttpMonitor resource accepts the following input properties:
- Compartment
Id string - (Updatable) The OCID of the compartment.
- Display
Name string - (Updatable) A user-friendly and mutable name suitable for display in a user interface.
- Interval
In intSeconds - (Updatable) The monitor interval in seconds. Valid values: 10, 30, and 60.
- Protocol string
- (Updatable) The supported protocols available for HTTP probes.
- Targets List<string>
- (Updatable) A list of targets (hostnames or IP addresses) of the probe.
- Dictionary<string, object>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Dictionary<string, object>
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Headers Dictionary<string, object>
(Updatable) A dictionary of HTTP request headers.
Note: Monitors and probes do not support the use of the
Authorization
HTTP header.- Is
Enabled bool - (Updatable) Enables or disables the monitor. Set to 'true' to launch monitoring.
- Method string
- (Updatable) The supported HTTP methods available for probes.
- Path string
- (Updatable) The optional URL path to probe, including query parameters.
- Port int
- (Updatable) The port on which to probe endpoints. If unspecified, probes will use the default port of their protocol.
- Timeout
In intSeconds - (Updatable) 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. - Vantage
Point List<string>Names (Updatable) 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
- Compartment
Id string - (Updatable) The OCID of the compartment.
- Display
Name string - (Updatable) A user-friendly and mutable name suitable for display in a user interface.
- Interval
In intSeconds - (Updatable) The monitor interval in seconds. Valid values: 10, 30, and 60.
- Protocol string
- (Updatable) The supported protocols available for HTTP probes.
- Targets []string
- (Updatable) A list of targets (hostnames or IP addresses) of the probe.
- map[string]interface{}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- map[string]interface{}
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Headers map[string]interface{}
(Updatable) A dictionary of HTTP request headers.
Note: Monitors and probes do not support the use of the
Authorization
HTTP header.- Is
Enabled bool - (Updatable) Enables or disables the monitor. Set to 'true' to launch monitoring.
- Method string
- (Updatable) The supported HTTP methods available for probes.
- Path string
- (Updatable) The optional URL path to probe, including query parameters.
- Port int
- (Updatable) The port on which to probe endpoints. If unspecified, probes will use the default port of their protocol.
- Timeout
In intSeconds - (Updatable) 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. - Vantage
Point []stringNames (Updatable) 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
- compartment
Id String - (Updatable) The OCID of the compartment.
- display
Name String - (Updatable) A user-friendly and mutable name suitable for display in a user interface.
- interval
In IntegerSeconds - (Updatable) The monitor interval in seconds. Valid values: 10, 30, and 60.
- protocol String
- (Updatable) The supported protocols available for HTTP probes.
- targets List<String>
- (Updatable) A list of targets (hostnames or IP addresses) of the probe.
- Map<String,Object>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Map<String,Object>
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- headers Map<String,Object>
(Updatable) A dictionary of HTTP request headers.
Note: Monitors and probes do not support the use of the
Authorization
HTTP header.- is
Enabled Boolean - (Updatable) Enables or disables the monitor. Set to 'true' to launch monitoring.
- method String
- (Updatable) The supported HTTP methods available for probes.
- path String
- (Updatable) The optional URL path to probe, including query parameters.
- port Integer
- (Updatable) The port on which to probe endpoints. If unspecified, probes will use the default port of their protocol.
- timeout
In IntegerSeconds - (Updatable) 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. - vantage
Point List<String>Names (Updatable) 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
- compartment
Id string - (Updatable) The OCID of the compartment.
- display
Name string - (Updatable) A user-friendly and mutable name suitable for display in a user interface.
- interval
In numberSeconds - (Updatable) The monitor interval in seconds. Valid values: 10, 30, and 60.
- protocol string
- (Updatable) The supported protocols available for HTTP probes.
- targets string[]
- (Updatable) A list of targets (hostnames or IP addresses) of the probe.
- {[key: string]: any}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- {[key: string]: any}
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- headers {[key: string]: any}
(Updatable) A dictionary of HTTP request headers.
Note: Monitors and probes do not support the use of the
Authorization
HTTP header.- is
Enabled boolean - (Updatable) Enables or disables the monitor. Set to 'true' to launch monitoring.
- method string
- (Updatable) The supported HTTP methods available for probes.
- path string
- (Updatable) The optional URL path to probe, including query parameters.
- port number
- (Updatable) The port on which to probe endpoints. If unspecified, probes will use the default port of their protocol.
- timeout
In numberSeconds - (Updatable) 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. - vantage
Point string[]Names (Updatable) 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
- compartment_
id str - (Updatable) The OCID of the compartment.
- display_
name str - (Updatable) A user-friendly and mutable name suitable for display in a user interface.
- interval_
in_ intseconds - (Updatable) The monitor interval in seconds. Valid values: 10, 30, and 60.
- protocol str
- (Updatable) The supported protocols available for HTTP probes.
- targets Sequence[str]
- (Updatable) A list of targets (hostnames or IP addresses) of the probe.
- Mapping[str, Any]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Mapping[str, Any]
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- headers Mapping[str, Any]
(Updatable) A dictionary of HTTP request headers.
Note: Monitors and probes do not support the use of the
Authorization
HTTP header.- is_
enabled bool - (Updatable) Enables or disables the monitor. Set to 'true' to launch monitoring.
- method str
- (Updatable) The supported HTTP methods available for probes.
- path str
- (Updatable) The optional URL path to probe, including query parameters.
- port int
- (Updatable) The port on which to probe endpoints. If unspecified, probes will use the default port of their protocol.
- timeout_
in_ intseconds - (Updatable) 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. - vantage_
point_ Sequence[str]names (Updatable) 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
- compartment
Id String - (Updatable) The OCID of the compartment.
- display
Name String - (Updatable) A user-friendly and mutable name suitable for display in a user interface.
- interval
In NumberSeconds - (Updatable) The monitor interval in seconds. Valid values: 10, 30, and 60.
- protocol String
- (Updatable) The supported protocols available for HTTP probes.
- targets List<String>
- (Updatable) A list of targets (hostnames or IP addresses) of the probe.
- Map<Any>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Map<Any>
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- headers Map<Any>
(Updatable) A dictionary of HTTP request headers.
Note: Monitors and probes do not support the use of the
Authorization
HTTP header.- is
Enabled Boolean - (Updatable) Enables or disables the monitor. Set to 'true' to launch monitoring.
- method String
- (Updatable) The supported HTTP methods available for probes.
- path String
- (Updatable) The optional URL path to probe, including query parameters.
- port Number
- (Updatable) The port on which to probe endpoints. If unspecified, probes will use the default port of their protocol.
- timeout
In NumberSeconds - (Updatable) 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. - vantage
Point List<String>Names (Updatable) 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
Outputs
All input properties are implicitly available as output properties. Additionally, the HttpMonitor resource produces the following output properties:
- Home
Region string - The region where updates must be made and where results must be fetched from.
- Id string
- The provider-assigned unique ID for this managed resource.
- Results
Url string - A URL for fetching the probe results.
- Time
Created string - The RFC 3339-formatted creation date and time of the probe.
- Home
Region string - The region where updates must be made and where results must be fetched from.
- Id string
- The provider-assigned unique ID for this managed resource.
- Results
Url string - A URL for fetching the probe results.
- Time
Created string - The RFC 3339-formatted creation date and time of the probe.
- home
Region String - The region where updates must be made and where results must be fetched from.
- id String
- The provider-assigned unique ID for this managed resource.
- results
Url String - A URL for fetching the probe results.
- time
Created String - The RFC 3339-formatted creation date and time of the probe.
- home
Region string - The region where updates must be made and where results must be fetched from.
- id string
- The provider-assigned unique ID for this managed resource.
- results
Url string - A URL for fetching the probe results.
- time
Created string - The RFC 3339-formatted creation date and time of the probe.
- home_
region str - The region where updates must be made and where results must be fetched from.
- id str
- The provider-assigned unique ID for this managed resource.
- results_
url str - A URL for fetching the probe results.
- time_
created str - The RFC 3339-formatted creation date and time of the probe.
- home
Region String - The region where updates must be made and where results must be fetched from.
- id String
- The provider-assigned unique ID for this managed resource.
- results
Url String - A URL for fetching the probe results.
- time
Created String - The RFC 3339-formatted creation date and time of the probe.
Look up Existing HttpMonitor Resource
Get an existing HttpMonitor 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?: HttpMonitorState, opts?: CustomResourceOptions): HttpMonitor
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
compartment_id: Optional[str] = None,
defined_tags: Optional[Mapping[str, Any]] = None,
display_name: Optional[str] = None,
freeform_tags: Optional[Mapping[str, Any]] = None,
headers: Optional[Mapping[str, Any]] = None,
home_region: Optional[str] = None,
interval_in_seconds: Optional[int] = None,
is_enabled: Optional[bool] = None,
method: Optional[str] = None,
path: Optional[str] = None,
port: Optional[int] = None,
protocol: Optional[str] = None,
results_url: Optional[str] = None,
targets: Optional[Sequence[str]] = None,
time_created: Optional[str] = None,
timeout_in_seconds: Optional[int] = None,
vantage_point_names: Optional[Sequence[str]] = None) -> HttpMonitor
func GetHttpMonitor(ctx *Context, name string, id IDInput, state *HttpMonitorState, opts ...ResourceOption) (*HttpMonitor, error)
public static HttpMonitor Get(string name, Input<string> id, HttpMonitorState? state, CustomResourceOptions? opts = null)
public static HttpMonitor get(String name, Output<String> id, HttpMonitorState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- 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.
- Compartment
Id string - (Updatable) The OCID of the compartment.
- Dictionary<string, object>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Display
Name string - (Updatable) A user-friendly and mutable name suitable for display in a user interface.
- Dictionary<string, object>
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Headers Dictionary<string, object>
(Updatable) A dictionary of HTTP request headers.
Note: Monitors and probes do not support the use of the
Authorization
HTTP header.- Home
Region string - The region where updates must be made and where results must be fetched from.
- Interval
In intSeconds - (Updatable) The monitor interval in seconds. Valid values: 10, 30, and 60.
- Is
Enabled bool - (Updatable) Enables or disables the monitor. Set to 'true' to launch monitoring.
- Method string
- (Updatable) The supported HTTP methods available for probes.
- Path string
- (Updatable) The optional URL path to probe, including query parameters.
- Port int
- (Updatable) The port on which to probe endpoints. If unspecified, probes will use the default port of their protocol.
- Protocol string
- (Updatable) The supported protocols available for HTTP probes.
- Results
Url string - A URL for fetching the probe results.
- Targets List<string>
- (Updatable) A list of targets (hostnames or IP addresses) of the probe.
- Time
Created string - The RFC 3339-formatted creation date and time of the probe.
- Timeout
In intSeconds - (Updatable) 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. - Vantage
Point List<string>Names (Updatable) 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
- Compartment
Id string - (Updatable) The OCID of the compartment.
- map[string]interface{}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Display
Name string - (Updatable) A user-friendly and mutable name suitable for display in a user interface.
- map[string]interface{}
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Headers map[string]interface{}
(Updatable) A dictionary of HTTP request headers.
Note: Monitors and probes do not support the use of the
Authorization
HTTP header.- Home
Region string - The region where updates must be made and where results must be fetched from.
- Interval
In intSeconds - (Updatable) The monitor interval in seconds. Valid values: 10, 30, and 60.
- Is
Enabled bool - (Updatable) Enables or disables the monitor. Set to 'true' to launch monitoring.
- Method string
- (Updatable) The supported HTTP methods available for probes.
- Path string
- (Updatable) The optional URL path to probe, including query parameters.
- Port int
- (Updatable) The port on which to probe endpoints. If unspecified, probes will use the default port of their protocol.
- Protocol string
- (Updatable) The supported protocols available for HTTP probes.
- Results
Url string - A URL for fetching the probe results.
- Targets []string
- (Updatable) A list of targets (hostnames or IP addresses) of the probe.
- Time
Created string - The RFC 3339-formatted creation date and time of the probe.
- Timeout
In intSeconds - (Updatable) 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. - Vantage
Point []stringNames (Updatable) 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
- compartment
Id String - (Updatable) The OCID of the compartment.
- Map<String,Object>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name String - (Updatable) A user-friendly and mutable name suitable for display in a user interface.
- Map<String,Object>
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- headers Map<String,Object>
(Updatable) A dictionary of HTTP request headers.
Note: Monitors and probes do not support the use of the
Authorization
HTTP header.- home
Region String - The region where updates must be made and where results must be fetched from.
- interval
In IntegerSeconds - (Updatable) The monitor interval in seconds. Valid values: 10, 30, and 60.
- is
Enabled Boolean - (Updatable) Enables or disables the monitor. Set to 'true' to launch monitoring.
- method String
- (Updatable) The supported HTTP methods available for probes.
- path String
- (Updatable) The optional URL path to probe, including query parameters.
- port Integer
- (Updatable) The port on which to probe endpoints. If unspecified, probes will use the default port of their protocol.
- protocol String
- (Updatable) The supported protocols available for HTTP probes.
- results
Url String - A URL for fetching the probe results.
- targets List<String>
- (Updatable) A list of targets (hostnames or IP addresses) of the probe.
- time
Created String - The RFC 3339-formatted creation date and time of the probe.
- timeout
In IntegerSeconds - (Updatable) 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. - vantage
Point List<String>Names (Updatable) 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
- compartment
Id string - (Updatable) The OCID of the compartment.
- {[key: string]: any}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name string - (Updatable) A user-friendly and mutable name suitable for display in a user interface.
- {[key: string]: any}
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- headers {[key: string]: any}
(Updatable) A dictionary of HTTP request headers.
Note: Monitors and probes do not support the use of the
Authorization
HTTP header.- home
Region string - The region where updates must be made and where results must be fetched from.
- interval
In numberSeconds - (Updatable) The monitor interval in seconds. Valid values: 10, 30, and 60.
- is
Enabled boolean - (Updatable) Enables or disables the monitor. Set to 'true' to launch monitoring.
- method string
- (Updatable) The supported HTTP methods available for probes.
- path string
- (Updatable) The optional URL path to probe, including query parameters.
- port number
- (Updatable) The port on which to probe endpoints. If unspecified, probes will use the default port of their protocol.
- protocol string
- (Updatable) The supported protocols available for HTTP probes.
- results
Url string - A URL for fetching the probe results.
- targets string[]
- (Updatable) A list of targets (hostnames or IP addresses) of the probe.
- time
Created string - The RFC 3339-formatted creation date and time of the probe.
- timeout
In numberSeconds - (Updatable) 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. - vantage
Point string[]Names (Updatable) 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
- compartment_
id str - (Updatable) The OCID of the compartment.
- Mapping[str, Any]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display_
name str - (Updatable) A user-friendly and mutable name suitable for display in a user interface.
- Mapping[str, Any]
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- headers Mapping[str, Any]
(Updatable) A dictionary of HTTP request headers.
Note: Monitors and probes do not support the use of the
Authorization
HTTP header.- home_
region str - The region where updates must be made and where results must be fetched from.
- interval_
in_ intseconds - (Updatable) The monitor interval in seconds. Valid values: 10, 30, and 60.
- is_
enabled bool - (Updatable) Enables or disables the monitor. Set to 'true' to launch monitoring.
- method str
- (Updatable) The supported HTTP methods available for probes.
- path str
- (Updatable) The optional URL path to probe, including query parameters.
- port int
- (Updatable) The port on which to probe endpoints. If unspecified, probes will use the default port of their protocol.
- protocol str
- (Updatable) The supported protocols available for HTTP probes.
- results_
url str - A URL for fetching the probe results.
- targets Sequence[str]
- (Updatable) A list of targets (hostnames or IP addresses) of the probe.
- time_
created str - The RFC 3339-formatted creation date and time of the probe.
- timeout_
in_ intseconds - (Updatable) 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. - vantage_
point_ Sequence[str]names (Updatable) 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
- compartment
Id String - (Updatable) The OCID of the compartment.
- Map<Any>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name String - (Updatable) A user-friendly and mutable name suitable for display in a user interface.
- Map<Any>
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- headers Map<Any>
(Updatable) A dictionary of HTTP request headers.
Note: Monitors and probes do not support the use of the
Authorization
HTTP header.- home
Region String - The region where updates must be made and where results must be fetched from.
- interval
In NumberSeconds - (Updatable) The monitor interval in seconds. Valid values: 10, 30, and 60.
- is
Enabled Boolean - (Updatable) Enables or disables the monitor. Set to 'true' to launch monitoring.
- method String
- (Updatable) The supported HTTP methods available for probes.
- path String
- (Updatable) The optional URL path to probe, including query parameters.
- port Number
- (Updatable) The port on which to probe endpoints. If unspecified, probes will use the default port of their protocol.
- protocol String
- (Updatable) The supported protocols available for HTTP probes.
- results
Url String - A URL for fetching the probe results.
- targets List<String>
- (Updatable) A list of targets (hostnames or IP addresses) of the probe.
- time
Created String - The RFC 3339-formatted creation date and time of the probe.
- timeout
In NumberSeconds - (Updatable) 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. - vantage
Point List<String>Names (Updatable) 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
Import
HttpMonitors can be imported using the id
, e.g.
$ pulumi import oci:HealthChecks/httpMonitor:HttpMonitor test_http_monitor "id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.