constellix 0.4.6 published on Friday, Mar 7, 2025 by constellix
constellix.getHttpCheck
Explore with Pulumi AI
constellix 0.4.6 published on Friday, Mar 7, 2025 by constellix
Data source for HTTP check resource
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as constellix from "@pulumi/constellix";
const check = constellix.getHttpCheck({
name: "http check",
});
import pulumi
import pulumi_constellix as constellix
check = constellix.get_http_check(name="http check")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/constellix/constellix"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := constellix.LookupHttpCheck(ctx, &constellix.LookupHttpCheckArgs{
Name: "http check",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Constellix = Pulumi.Constellix;
return await Deployment.RunAsync(() =>
{
var check = Constellix.GetHttpCheck.Invoke(new()
{
Name = "http check",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.constellix.ConstellixFunctions;
import com.pulumi.constellix.inputs.GetHttpCheckArgs;
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) {
final var check = ConstellixFunctions.getHttpCheck(GetHttpCheckArgs.builder()
.name("http check")
.build());
}
}
variables:
check:
fn::invoke:
function: constellix:getHttpCheck
arguments:
name: http check
Argument Reference
name
- (Required) Name of resource. Name should be unique.
Attribute Reference
name
- (Required) name of the resource. Name should be unique.host
- (Optional) Host for the resource, for example “constellix.com”. It can be set only once.ip_version
- (Optional) Specifies the version of IP. It can be set only once.port
- (Optional) Specifies the port number.protocol_type
- (Optional) Specifies upper layer protocol like HTTP, HTTPs, etc.check_sites
- (Optional) Site ids to check.notification_groups
- (Optional) List of group IDs for the notification group of HTTP Check.interval
- (Optional) Check Interval. Allowed values areTHIRTYSECONDS
,ONEMINUTE
,TWOMINUTES
,THREEMINUTES
,FOURMINUTES
,FIVEMINUTES
,TENMINUTES
,THIRTYMINUTES
,HALFDAY
andDAY
.interval_policy
- (Optional) Agent Interval Run Policy. It specifies whether you want to run checks from one location or all. Allowed values arePARALLEL
,ONCEPERSITE
andONCEPERREGION
.verification_policy
- (Optional) Specifies how the check should be validated. Allowed values areSIMPLE
andMAJORITY
. This parameter will only work with theinterval_policy
set toPARALLEL
.fqdn
- (Optional) Fully qualified domain name of the URL should be checked.path
- (Optional) In case of multi-page site, which path should be checked.search_string
- (Optional) String to search in the first 2KB of resonse received.expected_status_code
- (Optional) Expected HTTP status code for this check.
Using getHttpCheck
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getHttpCheck(args: GetHttpCheckArgs, opts?: InvokeOptions): Promise<GetHttpCheckResult>
function getHttpCheckOutput(args: GetHttpCheckOutputArgs, opts?: InvokeOptions): Output<GetHttpCheckResult>
def get_http_check(check_sites: Optional[Sequence[float]] = None,
expected_status_code: Optional[float] = None,
fqdn: Optional[str] = None,
host: Optional[str] = None,
id: Optional[str] = None,
interval: Optional[str] = None,
interval_policy: Optional[str] = None,
ip_version: Optional[str] = None,
name: Optional[str] = None,
notification_groups: Optional[Sequence[float]] = None,
notification_report_timeout: Optional[float] = None,
path: Optional[str] = None,
port: Optional[float] = None,
protocol_type: Optional[str] = None,
search_string: Optional[str] = None,
verification_policy: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetHttpCheckResult
def get_http_check_output(check_sites: Optional[pulumi.Input[Sequence[pulumi.Input[float]]]] = None,
expected_status_code: Optional[pulumi.Input[float]] = None,
fqdn: Optional[pulumi.Input[str]] = None,
host: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
interval: Optional[pulumi.Input[str]] = None,
interval_policy: Optional[pulumi.Input[str]] = None,
ip_version: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
notification_groups: Optional[pulumi.Input[Sequence[pulumi.Input[float]]]] = None,
notification_report_timeout: Optional[pulumi.Input[float]] = None,
path: Optional[pulumi.Input[str]] = None,
port: Optional[pulumi.Input[float]] = None,
protocol_type: Optional[pulumi.Input[str]] = None,
search_string: Optional[pulumi.Input[str]] = None,
verification_policy: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetHttpCheckResult]
func LookupHttpCheck(ctx *Context, args *LookupHttpCheckArgs, opts ...InvokeOption) (*LookupHttpCheckResult, error)
func LookupHttpCheckOutput(ctx *Context, args *LookupHttpCheckOutputArgs, opts ...InvokeOption) LookupHttpCheckResultOutput
> Note: This function is named LookupHttpCheck
in the Go SDK.
public static class GetHttpCheck
{
public static Task<GetHttpCheckResult> InvokeAsync(GetHttpCheckArgs args, InvokeOptions? opts = null)
public static Output<GetHttpCheckResult> Invoke(GetHttpCheckInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetHttpCheckResult> getHttpCheck(GetHttpCheckArgs args, InvokeOptions options)
public static Output<GetHttpCheckResult> getHttpCheck(GetHttpCheckArgs args, InvokeOptions options)
fn::invoke:
function: constellix:index/getHttpCheck:getHttpCheck
arguments:
# arguments dictionary
The following arguments are supported:
- Name string
- Check
Sites List<double> - Expected
Status doubleCode - Fqdn string
- Host string
- Id string
- Interval string
- Interval
Policy string - Ip
Version string - Notification
Groups List<double> - Notification
Report doubleTimeout - Path string
- Port double
- Protocol
Type string - Search
String string - Verification
Policy string
- Name string
- Check
Sites []float64 - Expected
Status float64Code - Fqdn string
- Host string
- Id string
- Interval string
- Interval
Policy string - Ip
Version string - Notification
Groups []float64 - Notification
Report float64Timeout - Path string
- Port float64
- Protocol
Type string - Search
String string - Verification
Policy string
- name String
- check
Sites List<Double> - expected
Status DoubleCode - fqdn String
- host String
- id String
- interval String
- interval
Policy String - ip
Version String - notification
Groups List<Double> - notification
Report DoubleTimeout - path String
- port Double
- protocol
Type String - search
String String - verification
Policy String
- name string
- check
Sites number[] - expected
Status numberCode - fqdn string
- host string
- id string
- interval string
- interval
Policy string - ip
Version string - notification
Groups number[] - notification
Report numberTimeout - path string
- port number
- protocol
Type string - search
String string - verification
Policy string
- name str
- check_
sites Sequence[float] - expected_
status_ floatcode - fqdn str
- host str
- id str
- interval str
- interval_
policy str - ip_
version str - notification_
groups Sequence[float] - notification_
report_ floattimeout - path str
- port float
- protocol_
type str - search_
string str - verification_
policy str
- name String
- check
Sites List<Number> - expected
Status NumberCode - fqdn String
- host String
- id String
- interval String
- interval
Policy String - ip
Version String - notification
Groups List<Number> - notification
Report NumberTimeout - path String
- port Number
- protocol
Type String - search
String String - verification
Policy String
getHttpCheck Result
The following output properties are available:
- Check
Sites List<double> - Expected
Status doubleCode - Fqdn string
- Host string
- Id string
- Interval string
- Interval
Policy string - Ip
Version string - Name string
- Notification
Groups List<double> - Notification
Report doubleTimeout - Path string
- Port double
- Protocol
Type string - Search
String string - Verification
Policy string
- Check
Sites []float64 - Expected
Status float64Code - Fqdn string
- Host string
- Id string
- Interval string
- Interval
Policy string - Ip
Version string - Name string
- Notification
Groups []float64 - Notification
Report float64Timeout - Path string
- Port float64
- Protocol
Type string - Search
String string - Verification
Policy string
- check
Sites List<Double> - expected
Status DoubleCode - fqdn String
- host String
- id String
- interval String
- interval
Policy String - ip
Version String - name String
- notification
Groups List<Double> - notification
Report DoubleTimeout - path String
- port Double
- protocol
Type String - search
String String - verification
Policy String
- check
Sites number[] - expected
Status numberCode - fqdn string
- host string
- id string
- interval string
- interval
Policy string - ip
Version string - name string
- notification
Groups number[] - notification
Report numberTimeout - path string
- port number
- protocol
Type string - search
String string - verification
Policy string
- check_
sites Sequence[float] - expected_
status_ floatcode - fqdn str
- host str
- id str
- interval str
- interval_
policy str - ip_
version str - name str
- notification_
groups Sequence[float] - notification_
report_ floattimeout - path str
- port float
- protocol_
type str - search_
string str - verification_
policy str
- check
Sites List<Number> - expected
Status NumberCode - fqdn String
- host String
- id String
- interval String
- interval
Policy String - ip
Version String - name String
- notification
Groups List<Number> - notification
Report NumberTimeout - path String
- port Number
- protocol
Type String - search
String String - verification
Policy String
Package Details
- Repository
- constellix constellix/terraform-provider-constellix
- License
- Notes
- This Pulumi package is based on the
constellix
Terraform Provider.
constellix 0.4.6 published on Friday, Mar 7, 2025 by constellix