newrelic.synthetics.CertCheckMonitor
Explore with Pulumi AI
Use this resource to create, update, and delete a Synthetics Certificate Check monitor in New Relic.
Additional Examples
Create a monitor with a private location
The below example shows how you can define a private location and attach it to a monitor.
NOTE: It can take up to 10 minutes for a private location to become available.
import * as pulumi from "@pulumi/pulumi";
import * as newrelic from "@pulumi/newrelic";
const location = new newrelic.synthetics.PrivateLocation("location", {
description: "Test Description",
verifiedScriptExecution: false,
});
const monitor = new newrelic.synthetics.CertCheckMonitor("monitor", {
domain: "https://www.one.example.com",
locationsPrivates: [location.id],
period: "EVERY_6_HOURS",
status: "ENABLED",
tags: [{
key: "some_key",
values: ["some_value"],
}],
});
import pulumi
import pulumi_newrelic as newrelic
location = newrelic.synthetics.PrivateLocation("location",
description="Test Description",
verified_script_execution=False)
monitor = newrelic.synthetics.CertCheckMonitor("monitor",
domain="https://www.one.example.com",
locations_privates=[location.id],
period="EVERY_6_HOURS",
status="ENABLED",
tags=[newrelic.synthetics.CertCheckMonitorTagArgs(
key="some_key",
values=["some_value"],
)])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using NewRelic = Pulumi.NewRelic;
return await Deployment.RunAsync(() =>
{
var location = new NewRelic.Synthetics.PrivateLocation("location", new()
{
Description = "Test Description",
VerifiedScriptExecution = false,
});
var monitor = new NewRelic.Synthetics.CertCheckMonitor("monitor", new()
{
Domain = "https://www.one.example.com",
LocationsPrivates = new[]
{
location.Id,
},
Period = "EVERY_6_HOURS",
Status = "ENABLED",
Tags = new[]
{
new NewRelic.Synthetics.Inputs.CertCheckMonitorTagArgs
{
Key = "some_key",
Values = new[]
{
"some_value",
},
},
},
});
});
package main
import (
"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/synthetics"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
location, err := synthetics.NewPrivateLocation(ctx, "location", &synthetics.PrivateLocationArgs{
Description: pulumi.String("Test Description"),
VerifiedScriptExecution: pulumi.Bool(false),
})
if err != nil {
return err
}
_, err = synthetics.NewCertCheckMonitor(ctx, "monitor", &synthetics.CertCheckMonitorArgs{
Domain: pulumi.String("https://www.one.example.com"),
LocationsPrivates: pulumi.StringArray{
location.ID(),
},
Period: pulumi.String("EVERY_6_HOURS"),
Status: pulumi.String("ENABLED"),
Tags: synthetics.CertCheckMonitorTagArray{
&synthetics.CertCheckMonitorTagArgs{
Key: pulumi.String("some_key"),
Values: pulumi.StringArray{
pulumi.String("some_value"),
},
},
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.newrelic.synthetics.PrivateLocation;
import com.pulumi.newrelic.synthetics.PrivateLocationArgs;
import com.pulumi.newrelic.synthetics.CertCheckMonitor;
import com.pulumi.newrelic.synthetics.CertCheckMonitorArgs;
import com.pulumi.newrelic.synthetics.inputs.CertCheckMonitorTagArgs;
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 location = new PrivateLocation("location", PrivateLocationArgs.builder()
.description("Test Description")
.verifiedScriptExecution(false)
.build());
var monitor = new CertCheckMonitor("monitor", CertCheckMonitorArgs.builder()
.domain("https://www.one.example.com")
.locationsPrivates(location.id())
.period("EVERY_6_HOURS")
.status("ENABLED")
.tags(CertCheckMonitorTagArgs.builder()
.key("some_key")
.values("some_value")
.build())
.build());
}
}
resources:
location:
type: newrelic:synthetics:PrivateLocation
properties:
description: Test Description
verifiedScriptExecution: false
monitor:
type: newrelic:synthetics:CertCheckMonitor
properties:
domain: https://www.one.example.com
locationsPrivates:
- ${location.id}
period: EVERY_6_HOURS
status: ENABLED
tags:
- key: some_key
values:
- some_value
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using NewRelic = Pulumi.NewRelic;
return await Deployment.RunAsync(() =>
{
var cert_check_monitor = new NewRelic.Synthetics.CertCheckMonitor("cert-check-monitor", new()
{
CertificateExpiration = 10,
Domain = "www.example.com",
LocationsPublics = new[]
{
"AP_SOUTH_1",
},
Period = "EVERY_6_HOURS",
Status = "ENABLED",
Tags = new[]
{
new NewRelic.Synthetics.Inputs.CertCheckMonitorTagArgs
{
Key = "some_key",
Values = new[]
{
"some_value",
},
},
},
});
});
package main
import (
"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/synthetics"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := synthetics.NewCertCheckMonitor(ctx, "cert-check-monitor", &synthetics.CertCheckMonitorArgs{
CertificateExpiration: pulumi.Int(10),
Domain: pulumi.String("www.example.com"),
LocationsPublics: pulumi.StringArray{
pulumi.String("AP_SOUTH_1"),
},
Period: pulumi.String("EVERY_6_HOURS"),
Status: pulumi.String("ENABLED"),
Tags: synthetics.CertCheckMonitorTagArray{
&synthetics.CertCheckMonitorTagArgs{
Key: pulumi.String("some_key"),
Values: pulumi.StringArray{
pulumi.String("some_value"),
},
},
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.newrelic.synthetics.CertCheckMonitor;
import com.pulumi.newrelic.synthetics.CertCheckMonitorArgs;
import com.pulumi.newrelic.synthetics.inputs.CertCheckMonitorTagArgs;
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 cert_check_monitor = new CertCheckMonitor("cert-check-monitor", CertCheckMonitorArgs.builder()
.certificateExpiration("10")
.domain("www.example.com")
.locationsPublics("AP_SOUTH_1")
.period("EVERY_6_HOURS")
.status("ENABLED")
.tags(CertCheckMonitorTagArgs.builder()
.key("some_key")
.values("some_value")
.build())
.build());
}
}
import pulumi
import pulumi_newrelic as newrelic
cert_check_monitor = newrelic.synthetics.CertCheckMonitor("cert-check-monitor",
certificate_expiration=10,
domain="www.example.com",
locations_publics=["AP_SOUTH_1"],
period="EVERY_6_HOURS",
status="ENABLED",
tags=[newrelic.synthetics.CertCheckMonitorTagArgs(
key="some_key",
values=["some_value"],
)])
import * as pulumi from "@pulumi/pulumi";
import * as newrelic from "@pulumi/newrelic";
const cert_check_monitor = new newrelic.synthetics.CertCheckMonitor("cert-check-monitor", {
certificateExpiration: 10,
domain: "www.example.com",
locationsPublics: ["AP_SOUTH_1"],
period: "EVERY_6_HOURS",
status: "ENABLED",
tags: [{
key: "some_key",
values: ["some_value"],
}],
});
resources:
cert-check-monitor:
type: newrelic:synthetics:CertCheckMonitor
properties:
certificateExpiration: '10'
domain: www.example.com
locationsPublics:
- AP_SOUTH_1
period: EVERY_6_HOURS
status: ENABLED
tags:
- key: some_key
values:
- some_value
Create a monitor with a private location
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using NewRelic = Pulumi.NewRelic;
return await Deployment.RunAsync(() =>
{
var location = new NewRelic.Synthetics.PrivateLocation("location", new()
{
Description = "Test Description",
VerifiedScriptExecution = false,
});
var monitor = new NewRelic.Synthetics.CertCheckMonitor("monitor", new()
{
Domain = "https://www.one.example.com",
LocationsPrivates = new[]
{
location.Id,
},
Period = "EVERY_6_HOURS",
Status = "ENABLED",
Tags = new[]
{
new NewRelic.Synthetics.Inputs.CertCheckMonitorTagArgs
{
Key = "some_key",
Values = new[]
{
"some_value",
},
},
},
});
});
package main
import (
"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/synthetics"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
location, err := synthetics.NewPrivateLocation(ctx, "location", &synthetics.PrivateLocationArgs{
Description: pulumi.String("Test Description"),
VerifiedScriptExecution: pulumi.Bool(false),
})
if err != nil {
return err
}
_, err = synthetics.NewCertCheckMonitor(ctx, "monitor", &synthetics.CertCheckMonitorArgs{
Domain: pulumi.String("https://www.one.example.com"),
LocationsPrivates: pulumi.StringArray{
location.ID(),
},
Period: pulumi.String("EVERY_6_HOURS"),
Status: pulumi.String("ENABLED"),
Tags: synthetics.CertCheckMonitorTagArray{
&synthetics.CertCheckMonitorTagArgs{
Key: pulumi.String("some_key"),
Values: pulumi.StringArray{
pulumi.String("some_value"),
},
},
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.newrelic.synthetics.PrivateLocation;
import com.pulumi.newrelic.synthetics.PrivateLocationArgs;
import com.pulumi.newrelic.synthetics.CertCheckMonitor;
import com.pulumi.newrelic.synthetics.CertCheckMonitorArgs;
import com.pulumi.newrelic.synthetics.inputs.CertCheckMonitorTagArgs;
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 location = new PrivateLocation("location", PrivateLocationArgs.builder()
.description("Test Description")
.verifiedScriptExecution(false)
.build());
var monitor = new CertCheckMonitor("monitor", CertCheckMonitorArgs.builder()
.domain("https://www.one.example.com")
.locationsPrivates(location.id())
.period("EVERY_6_HOURS")
.status("ENABLED")
.tags(CertCheckMonitorTagArgs.builder()
.key("some_key")
.values("some_value")
.build())
.build());
}
}
import pulumi
import pulumi_newrelic as newrelic
location = newrelic.synthetics.PrivateLocation("location",
description="Test Description",
verified_script_execution=False)
monitor = newrelic.synthetics.CertCheckMonitor("monitor",
domain="https://www.one.example.com",
locations_privates=[location.id],
period="EVERY_6_HOURS",
status="ENABLED",
tags=[newrelic.synthetics.CertCheckMonitorTagArgs(
key="some_key",
values=["some_value"],
)])
import * as pulumi from "@pulumi/pulumi";
import * as newrelic from "@pulumi/newrelic";
const location = new newrelic.synthetics.PrivateLocation("location", {
description: "Test Description",
verifiedScriptExecution: false,
});
const monitor = new newrelic.synthetics.CertCheckMonitor("monitor", {
domain: "https://www.one.example.com",
locationsPrivates: [location.id],
period: "EVERY_6_HOURS",
status: "ENABLED",
tags: [{
key: "some_key",
values: ["some_value"],
}],
});
resources:
location:
type: newrelic:synthetics:PrivateLocation
properties:
description: Test Description
verifiedScriptExecution: false
monitor:
type: newrelic:synthetics:CertCheckMonitor
properties:
domain: https://www.one.example.com
locationsPrivates:
- ${location.id}
period: EVERY_6_HOURS
status: ENABLED
tags:
- key: some_key
values:
- some_value
Create CertCheckMonitor Resource
new CertCheckMonitor(name: string, args: CertCheckMonitorArgs, opts?: CustomResourceOptions);
@overload
def CertCheckMonitor(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[int] = None,
certificate_expiration: Optional[int] = None,
domain: Optional[str] = None,
locations_privates: Optional[Sequence[str]] = None,
locations_publics: Optional[Sequence[str]] = None,
name: Optional[str] = None,
period: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Sequence[CertCheckMonitorTagArgs]] = None)
@overload
def CertCheckMonitor(resource_name: str,
args: CertCheckMonitorArgs,
opts: Optional[ResourceOptions] = None)
func NewCertCheckMonitor(ctx *Context, name string, args CertCheckMonitorArgs, opts ...ResourceOption) (*CertCheckMonitor, error)
public CertCheckMonitor(string name, CertCheckMonitorArgs args, CustomResourceOptions? opts = null)
public CertCheckMonitor(String name, CertCheckMonitorArgs args)
public CertCheckMonitor(String name, CertCheckMonitorArgs args, CustomResourceOptions options)
type: newrelic:synthetics:CertCheckMonitor
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CertCheckMonitorArgs
- 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 CertCheckMonitorArgs
- 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 CertCheckMonitorArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CertCheckMonitorArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CertCheckMonitorArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
CertCheckMonitor 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 CertCheckMonitor resource accepts the following input properties:
- Certificate
Expiration int The desired number of remaining days until the certificate expires to trigger a monitor failure.
- Domain string
The domain of the host that will have its certificate checked.
- Period string
The interval at which this monitor should run. Valid values are EVERY_MINUTE, EVERY_5_MINUTES, EVERY_10_MINUTES, EVERY_15_MINUTES, EVERY_30_MINUTES, EVERY_HOUR, EVERY_6_HOURS, EVERY_12_HOURS, or EVERY_DAY.
- Status string
The run state of the monitor. (i.e.
ENABLED
,DISABLED
,MUTED
).- Account
Id int The account in which the Synthetics monitor will be created.
- Locations
Privates List<string> The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either
locations_public
orlocations_private
is required.- Locations
Publics List<string> The location the monitor will run from. Valid public locations are https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/. You don't need the
AWS_
prefix as the provider uses NerdGraph. At least one of eitherlocations_public
orlocation_private
is required.- Name string
The name for the monitor.
- List<Pulumi.
New Relic. Synthetics. Inputs. Cert Check Monitor Tag Args> The tags that will be associated with the monitor. See Nested tag blocks below for details
- Certificate
Expiration int The desired number of remaining days until the certificate expires to trigger a monitor failure.
- Domain string
The domain of the host that will have its certificate checked.
- Period string
The interval at which this monitor should run. Valid values are EVERY_MINUTE, EVERY_5_MINUTES, EVERY_10_MINUTES, EVERY_15_MINUTES, EVERY_30_MINUTES, EVERY_HOUR, EVERY_6_HOURS, EVERY_12_HOURS, or EVERY_DAY.
- Status string
The run state of the monitor. (i.e.
ENABLED
,DISABLED
,MUTED
).- Account
Id int The account in which the Synthetics monitor will be created.
- Locations
Privates []string The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either
locations_public
orlocations_private
is required.- Locations
Publics []string The location the monitor will run from. Valid public locations are https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/. You don't need the
AWS_
prefix as the provider uses NerdGraph. At least one of eitherlocations_public
orlocation_private
is required.- Name string
The name for the monitor.
- []Cert
Check Monitor Tag Args The tags that will be associated with the monitor. See Nested tag blocks below for details
- certificate
Expiration Integer The desired number of remaining days until the certificate expires to trigger a monitor failure.
- domain String
The domain of the host that will have its certificate checked.
- period String
The interval at which this monitor should run. Valid values are EVERY_MINUTE, EVERY_5_MINUTES, EVERY_10_MINUTES, EVERY_15_MINUTES, EVERY_30_MINUTES, EVERY_HOUR, EVERY_6_HOURS, EVERY_12_HOURS, or EVERY_DAY.
- status String
The run state of the monitor. (i.e.
ENABLED
,DISABLED
,MUTED
).- account
Id Integer The account in which the Synthetics monitor will be created.
- locations
Privates List<String> The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either
locations_public
orlocations_private
is required.- locations
Publics List<String> The location the monitor will run from. Valid public locations are https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/. You don't need the
AWS_
prefix as the provider uses NerdGraph. At least one of eitherlocations_public
orlocation_private
is required.- name String
The name for the monitor.
- List<Cert
Check Monitor Tag Args> The tags that will be associated with the monitor. See Nested tag blocks below for details
- certificate
Expiration number The desired number of remaining days until the certificate expires to trigger a monitor failure.
- domain string
The domain of the host that will have its certificate checked.
- period string
The interval at which this monitor should run. Valid values are EVERY_MINUTE, EVERY_5_MINUTES, EVERY_10_MINUTES, EVERY_15_MINUTES, EVERY_30_MINUTES, EVERY_HOUR, EVERY_6_HOURS, EVERY_12_HOURS, or EVERY_DAY.
- status string
The run state of the monitor. (i.e.
ENABLED
,DISABLED
,MUTED
).- account
Id number The account in which the Synthetics monitor will be created.
- locations
Privates string[] The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either
locations_public
orlocations_private
is required.- locations
Publics string[] The location the monitor will run from. Valid public locations are https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/. You don't need the
AWS_
prefix as the provider uses NerdGraph. At least one of eitherlocations_public
orlocation_private
is required.- name string
The name for the monitor.
- Cert
Check Monitor Tag Args[] The tags that will be associated with the monitor. See Nested tag blocks below for details
- certificate_
expiration int The desired number of remaining days until the certificate expires to trigger a monitor failure.
- domain str
The domain of the host that will have its certificate checked.
- period str
The interval at which this monitor should run. Valid values are EVERY_MINUTE, EVERY_5_MINUTES, EVERY_10_MINUTES, EVERY_15_MINUTES, EVERY_30_MINUTES, EVERY_HOUR, EVERY_6_HOURS, EVERY_12_HOURS, or EVERY_DAY.
- status str
The run state of the monitor. (i.e.
ENABLED
,DISABLED
,MUTED
).- account_
id int The account in which the Synthetics monitor will be created.
- locations_
privates Sequence[str] The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either
locations_public
orlocations_private
is required.- locations_
publics Sequence[str] The location the monitor will run from. Valid public locations are https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/. You don't need the
AWS_
prefix as the provider uses NerdGraph. At least one of eitherlocations_public
orlocation_private
is required.- name str
The name for the monitor.
- Sequence[Cert
Check Monitor Tag Args] The tags that will be associated with the monitor. See Nested tag blocks below for details
- certificate
Expiration Number The desired number of remaining days until the certificate expires to trigger a monitor failure.
- domain String
The domain of the host that will have its certificate checked.
- period String
The interval at which this monitor should run. Valid values are EVERY_MINUTE, EVERY_5_MINUTES, EVERY_10_MINUTES, EVERY_15_MINUTES, EVERY_30_MINUTES, EVERY_HOUR, EVERY_6_HOURS, EVERY_12_HOURS, or EVERY_DAY.
- status String
The run state of the monitor. (i.e.
ENABLED
,DISABLED
,MUTED
).- account
Id Number The account in which the Synthetics monitor will be created.
- locations
Privates List<String> The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either
locations_public
orlocations_private
is required.- locations
Publics List<String> The location the monitor will run from. Valid public locations are https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/. You don't need the
AWS_
prefix as the provider uses NerdGraph. At least one of eitherlocations_public
orlocation_private
is required.- name String
The name for the monitor.
- List<Property Map>
The tags that will be associated with the monitor. See Nested tag blocks below for details
Outputs
All input properties are implicitly available as output properties. Additionally, the CertCheckMonitor resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Period
In intMinutes The interval in minutes at which Synthetic monitor should run.
- Id string
The provider-assigned unique ID for this managed resource.
- Period
In intMinutes The interval in minutes at which Synthetic monitor should run.
- id String
The provider-assigned unique ID for this managed resource.
- period
In IntegerMinutes The interval in minutes at which Synthetic monitor should run.
- id string
The provider-assigned unique ID for this managed resource.
- period
In numberMinutes The interval in minutes at which Synthetic monitor should run.
- id str
The provider-assigned unique ID for this managed resource.
- period_
in_ intminutes The interval in minutes at which Synthetic monitor should run.
- id String
The provider-assigned unique ID for this managed resource.
- period
In NumberMinutes The interval in minutes at which Synthetic monitor should run.
Look up Existing CertCheckMonitor Resource
Get an existing CertCheckMonitor 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?: CertCheckMonitorState, opts?: CustomResourceOptions): CertCheckMonitor
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[int] = None,
certificate_expiration: Optional[int] = None,
domain: Optional[str] = None,
locations_privates: Optional[Sequence[str]] = None,
locations_publics: Optional[Sequence[str]] = None,
name: Optional[str] = None,
period: Optional[str] = None,
period_in_minutes: Optional[int] = None,
status: Optional[str] = None,
tags: Optional[Sequence[CertCheckMonitorTagArgs]] = None) -> CertCheckMonitor
func GetCertCheckMonitor(ctx *Context, name string, id IDInput, state *CertCheckMonitorState, opts ...ResourceOption) (*CertCheckMonitor, error)
public static CertCheckMonitor Get(string name, Input<string> id, CertCheckMonitorState? state, CustomResourceOptions? opts = null)
public static CertCheckMonitor get(String name, Output<String> id, CertCheckMonitorState 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.
- Account
Id int The account in which the Synthetics monitor will be created.
- Certificate
Expiration int The desired number of remaining days until the certificate expires to trigger a monitor failure.
- Domain string
The domain of the host that will have its certificate checked.
- Locations
Privates List<string> The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either
locations_public
orlocations_private
is required.- Locations
Publics List<string> The location the monitor will run from. Valid public locations are https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/. You don't need the
AWS_
prefix as the provider uses NerdGraph. At least one of eitherlocations_public
orlocation_private
is required.- Name string
The name for the monitor.
- Period string
The interval at which this monitor should run. Valid values are EVERY_MINUTE, EVERY_5_MINUTES, EVERY_10_MINUTES, EVERY_15_MINUTES, EVERY_30_MINUTES, EVERY_HOUR, EVERY_6_HOURS, EVERY_12_HOURS, or EVERY_DAY.
- Period
In intMinutes The interval in minutes at which Synthetic monitor should run.
- Status string
The run state of the monitor. (i.e.
ENABLED
,DISABLED
,MUTED
).- List<Pulumi.
New Relic. Synthetics. Inputs. Cert Check Monitor Tag Args> The tags that will be associated with the monitor. See Nested tag blocks below for details
- Account
Id int The account in which the Synthetics monitor will be created.
- Certificate
Expiration int The desired number of remaining days until the certificate expires to trigger a monitor failure.
- Domain string
The domain of the host that will have its certificate checked.
- Locations
Privates []string The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either
locations_public
orlocations_private
is required.- Locations
Publics []string The location the monitor will run from. Valid public locations are https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/. You don't need the
AWS_
prefix as the provider uses NerdGraph. At least one of eitherlocations_public
orlocation_private
is required.- Name string
The name for the monitor.
- Period string
The interval at which this monitor should run. Valid values are EVERY_MINUTE, EVERY_5_MINUTES, EVERY_10_MINUTES, EVERY_15_MINUTES, EVERY_30_MINUTES, EVERY_HOUR, EVERY_6_HOURS, EVERY_12_HOURS, or EVERY_DAY.
- Period
In intMinutes The interval in minutes at which Synthetic monitor should run.
- Status string
The run state of the monitor. (i.e.
ENABLED
,DISABLED
,MUTED
).- []Cert
Check Monitor Tag Args The tags that will be associated with the monitor. See Nested tag blocks below for details
- account
Id Integer The account in which the Synthetics monitor will be created.
- certificate
Expiration Integer The desired number of remaining days until the certificate expires to trigger a monitor failure.
- domain String
The domain of the host that will have its certificate checked.
- locations
Privates List<String> The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either
locations_public
orlocations_private
is required.- locations
Publics List<String> The location the monitor will run from. Valid public locations are https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/. You don't need the
AWS_
prefix as the provider uses NerdGraph. At least one of eitherlocations_public
orlocation_private
is required.- name String
The name for the monitor.
- period String
The interval at which this monitor should run. Valid values are EVERY_MINUTE, EVERY_5_MINUTES, EVERY_10_MINUTES, EVERY_15_MINUTES, EVERY_30_MINUTES, EVERY_HOUR, EVERY_6_HOURS, EVERY_12_HOURS, or EVERY_DAY.
- period
In IntegerMinutes The interval in minutes at which Synthetic monitor should run.
- status String
The run state of the monitor. (i.e.
ENABLED
,DISABLED
,MUTED
).- List<Cert
Check Monitor Tag Args> The tags that will be associated with the monitor. See Nested tag blocks below for details
- account
Id number The account in which the Synthetics monitor will be created.
- certificate
Expiration number The desired number of remaining days until the certificate expires to trigger a monitor failure.
- domain string
The domain of the host that will have its certificate checked.
- locations
Privates string[] The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either
locations_public
orlocations_private
is required.- locations
Publics string[] The location the monitor will run from. Valid public locations are https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/. You don't need the
AWS_
prefix as the provider uses NerdGraph. At least one of eitherlocations_public
orlocation_private
is required.- name string
The name for the monitor.
- period string
The interval at which this monitor should run. Valid values are EVERY_MINUTE, EVERY_5_MINUTES, EVERY_10_MINUTES, EVERY_15_MINUTES, EVERY_30_MINUTES, EVERY_HOUR, EVERY_6_HOURS, EVERY_12_HOURS, or EVERY_DAY.
- period
In numberMinutes The interval in minutes at which Synthetic monitor should run.
- status string
The run state of the monitor. (i.e.
ENABLED
,DISABLED
,MUTED
).- Cert
Check Monitor Tag Args[] The tags that will be associated with the monitor. See Nested tag blocks below for details
- account_
id int The account in which the Synthetics monitor will be created.
- certificate_
expiration int The desired number of remaining days until the certificate expires to trigger a monitor failure.
- domain str
The domain of the host that will have its certificate checked.
- locations_
privates Sequence[str] The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either
locations_public
orlocations_private
is required.- locations_
publics Sequence[str] The location the monitor will run from. Valid public locations are https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/. You don't need the
AWS_
prefix as the provider uses NerdGraph. At least one of eitherlocations_public
orlocation_private
is required.- name str
The name for the monitor.
- period str
The interval at which this monitor should run. Valid values are EVERY_MINUTE, EVERY_5_MINUTES, EVERY_10_MINUTES, EVERY_15_MINUTES, EVERY_30_MINUTES, EVERY_HOUR, EVERY_6_HOURS, EVERY_12_HOURS, or EVERY_DAY.
- period_
in_ intminutes The interval in minutes at which Synthetic monitor should run.
- status str
The run state of the monitor. (i.e.
ENABLED
,DISABLED
,MUTED
).- Sequence[Cert
Check Monitor Tag Args] The tags that will be associated with the monitor. See Nested tag blocks below for details
- account
Id Number The account in which the Synthetics monitor will be created.
- certificate
Expiration Number The desired number of remaining days until the certificate expires to trigger a monitor failure.
- domain String
The domain of the host that will have its certificate checked.
- locations
Privates List<String> The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either
locations_public
orlocations_private
is required.- locations
Publics List<String> The location the monitor will run from. Valid public locations are https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/. You don't need the
AWS_
prefix as the provider uses NerdGraph. At least one of eitherlocations_public
orlocation_private
is required.- name String
The name for the monitor.
- period String
The interval at which this monitor should run. Valid values are EVERY_MINUTE, EVERY_5_MINUTES, EVERY_10_MINUTES, EVERY_15_MINUTES, EVERY_30_MINUTES, EVERY_HOUR, EVERY_6_HOURS, EVERY_12_HOURS, or EVERY_DAY.
- period
In NumberMinutes The interval in minutes at which Synthetic monitor should run.
- status String
The run state of the monitor. (i.e.
ENABLED
,DISABLED
,MUTED
).- List<Property Map>
The tags that will be associated with the monitor. See Nested tag blocks below for details
Supporting Types
CertCheckMonitorTag
Import
Synthetics certificate check monitor scripts can be imported using the guid
, e.g. bash
$ pulumi import newrelic:synthetics/certCheckMonitor:CertCheckMonitor monitor <guid>
Package Details
- Repository
- New Relic pulumi/pulumi-newrelic
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
newrelic
Terraform Provider.