constellix 0.4.6 published on Friday, Mar 7, 2025 by constellix
constellix.getDnsCheck
Explore with Pulumi AI
constellix 0.4.6 published on Friday, Mar 7, 2025 by constellix
Data source for DNS check resource
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as constellix from "@pulumi/constellix";
const check = constellix.getDnsCheck({
name: "dns check",
});
import pulumi
import pulumi_constellix as constellix
check = constellix.get_dns_check(name="dns 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.LookupDnsCheck(ctx, &constellix.LookupDnsCheckArgs{
Name: "dns 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.GetDnsCheck.Invoke(new()
{
Name = "dns 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.GetDnsCheckArgs;
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.getDnsCheck(GetDnsCheckArgs.builder()
.name("dns check")
.build());
}
}
variables:
check:
fn::invoke:
function: constellix:getDnsCheck
arguments:
name: dns check
Argument Reference
name
- (Required) Name of resource. Name should be unique.
Attribute Reference
name
- (Required) name of the resource. Name should be unique.fqdn
- (Required) A website address. It can be set only onceresolver
- (Required) A website address. It can be set only oncecheck_sites
- (Required) Site ids to check.notification_groups
- (Optional) List of group IDs for the notification group of DNS 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
.expected_response
- (Optional) Ip Address where DNS provided in the FQDN should resolved to in ideal conditions.
Using getDnsCheck
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 getDnsCheck(args: GetDnsCheckArgs, opts?: InvokeOptions): Promise<GetDnsCheckResult>
function getDnsCheckOutput(args: GetDnsCheckOutputArgs, opts?: InvokeOptions): Output<GetDnsCheckResult>
def get_dns_check(check_sites: Optional[Sequence[float]] = None,
expected_response: Optional[str] = None,
fqdn: Optional[str] = None,
id: Optional[str] = None,
interval: Optional[str] = None,
interval_policy: Optional[str] = None,
name: Optional[str] = None,
notification_groups: Optional[Sequence[float]] = None,
notification_report_timeout: Optional[float] = None,
resolver: Optional[str] = None,
verification_policy: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDnsCheckResult
def get_dns_check_output(check_sites: Optional[pulumi.Input[Sequence[pulumi.Input[float]]]] = None,
expected_response: Optional[pulumi.Input[str]] = None,
fqdn: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
interval: Optional[pulumi.Input[str]] = None,
interval_policy: 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,
resolver: Optional[pulumi.Input[str]] = None,
verification_policy: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDnsCheckResult]
func LookupDnsCheck(ctx *Context, args *LookupDnsCheckArgs, opts ...InvokeOption) (*LookupDnsCheckResult, error)
func LookupDnsCheckOutput(ctx *Context, args *LookupDnsCheckOutputArgs, opts ...InvokeOption) LookupDnsCheckResultOutput
> Note: This function is named LookupDnsCheck
in the Go SDK.
public static class GetDnsCheck
{
public static Task<GetDnsCheckResult> InvokeAsync(GetDnsCheckArgs args, InvokeOptions? opts = null)
public static Output<GetDnsCheckResult> Invoke(GetDnsCheckInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDnsCheckResult> getDnsCheck(GetDnsCheckArgs args, InvokeOptions options)
public static Output<GetDnsCheckResult> getDnsCheck(GetDnsCheckArgs args, InvokeOptions options)
fn::invoke:
function: constellix:index/getDnsCheck:getDnsCheck
arguments:
# arguments dictionary
The following arguments are supported:
- Name string
- Check
Sites List<double> - Expected
Response string - Fqdn string
- Id string
- Interval string
- Interval
Policy string - Notification
Groups List<double> - Notification
Report doubleTimeout - Resolver string
- Verification
Policy string
- Name string
- Check
Sites []float64 - Expected
Response string - Fqdn string
- Id string
- Interval string
- Interval
Policy string - Notification
Groups []float64 - Notification
Report float64Timeout - Resolver string
- Verification
Policy string
- name String
- check
Sites List<Double> - expected
Response String - fqdn String
- id String
- interval String
- interval
Policy String - notification
Groups List<Double> - notification
Report DoubleTimeout - resolver String
- verification
Policy String
- name string
- check
Sites number[] - expected
Response string - fqdn string
- id string
- interval string
- interval
Policy string - notification
Groups number[] - notification
Report numberTimeout - resolver string
- verification
Policy string
- name str
- check_
sites Sequence[float] - expected_
response str - fqdn str
- id str
- interval str
- interval_
policy str - notification_
groups Sequence[float] - notification_
report_ floattimeout - resolver str
- verification_
policy str
- name String
- check
Sites List<Number> - expected
Response String - fqdn String
- id String
- interval String
- interval
Policy String - notification
Groups List<Number> - notification
Report NumberTimeout - resolver String
- verification
Policy String
getDnsCheck Result
The following output properties are available:
- Check
Sites List<double> - Expected
Response string - Fqdn string
- Id string
- Interval string
- Interval
Policy string - Name string
- Notification
Groups List<double> - Notification
Report doubleTimeout - Resolver string
- Verification
Policy string
- Check
Sites []float64 - Expected
Response string - Fqdn string
- Id string
- Interval string
- Interval
Policy string - Name string
- Notification
Groups []float64 - Notification
Report float64Timeout - Resolver string
- Verification
Policy string
- check
Sites List<Double> - expected
Response String - fqdn String
- id String
- interval String
- interval
Policy String - name String
- notification
Groups List<Double> - notification
Report DoubleTimeout - resolver String
- verification
Policy String
- check
Sites number[] - expected
Response string - fqdn string
- id string
- interval string
- interval
Policy string - name string
- notification
Groups number[] - notification
Report numberTimeout - resolver string
- verification
Policy string
- check_
sites Sequence[float] - expected_
response str - fqdn str
- id str
- interval str
- interval_
policy str - name str
- notification_
groups Sequence[float] - notification_
report_ floattimeout - resolver str
- verification_
policy str
- check
Sites List<Number> - expected
Response String - fqdn String
- id String
- interval String
- interval
Policy String - name String
- notification
Groups List<Number> - notification
Report NumberTimeout - resolver 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