newrelic.synthetics.BrokenLinksMonitor
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as newrelic from "@pulumi/newrelic";
const foo = new newrelic.synthetics.BrokenLinksMonitor("foo", {
    name: "Sample Broken Links Monitor",
    uri: "https://www.one.example.com",
    locationsPublics: ["AP_SOUTH_1"],
    period: "EVERY_6_HOURS",
    status: "ENABLED",
    runtimeType: "NODE_API",
    runtimeTypeVersion: "16.10",
    tags: [{
        key: "some_key",
        values: ["some_value"],
    }],
});
import pulumi
import pulumi_newrelic as newrelic
foo = newrelic.synthetics.BrokenLinksMonitor("foo",
    name="Sample Broken Links Monitor",
    uri="https://www.one.example.com",
    locations_publics=["AP_SOUTH_1"],
    period="EVERY_6_HOURS",
    status="ENABLED",
    runtime_type="NODE_API",
    runtime_type_version="16.10",
    tags=[{
        "key": "some_key",
        "values": ["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.NewBrokenLinksMonitor(ctx, "foo", &synthetics.BrokenLinksMonitorArgs{
			Name: pulumi.String("Sample Broken Links Monitor"),
			Uri:  pulumi.String("https://www.one.example.com"),
			LocationsPublics: pulumi.StringArray{
				pulumi.String("AP_SOUTH_1"),
			},
			Period:             pulumi.String("EVERY_6_HOURS"),
			Status:             pulumi.String("ENABLED"),
			RuntimeType:        pulumi.String("NODE_API"),
			RuntimeTypeVersion: pulumi.String("16.10"),
			Tags: synthetics.BrokenLinksMonitorTagArray{
				&synthetics.BrokenLinksMonitorTagArgs{
					Key: pulumi.String("some_key"),
					Values: pulumi.StringArray{
						pulumi.String("some_value"),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using NewRelic = Pulumi.NewRelic;
return await Deployment.RunAsync(() => 
{
    var foo = new NewRelic.Synthetics.BrokenLinksMonitor("foo", new()
    {
        Name = "Sample Broken Links Monitor",
        Uri = "https://www.one.example.com",
        LocationsPublics = new[]
        {
            "AP_SOUTH_1",
        },
        Period = "EVERY_6_HOURS",
        Status = "ENABLED",
        RuntimeType = "NODE_API",
        RuntimeTypeVersion = "16.10",
        Tags = new[]
        {
            new NewRelic.Synthetics.Inputs.BrokenLinksMonitorTagArgs
            {
                Key = "some_key",
                Values = new[]
                {
                    "some_value",
                },
            },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.newrelic.synthetics.BrokenLinksMonitor;
import com.pulumi.newrelic.synthetics.BrokenLinksMonitorArgs;
import com.pulumi.newrelic.synthetics.inputs.BrokenLinksMonitorTagArgs;
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 foo = new BrokenLinksMonitor("foo", BrokenLinksMonitorArgs.builder()
            .name("Sample Broken Links Monitor")
            .uri("https://www.one.example.com")
            .locationsPublics("AP_SOUTH_1")
            .period("EVERY_6_HOURS")
            .status("ENABLED")
            .runtimeType("NODE_API")
            .runtimeTypeVersion("16.10")
            .tags(BrokenLinksMonitorTagArgs.builder()
                .key("some_key")
                .values("some_value")
                .build())
            .build());
    }
}
resources:
  foo:
    type: newrelic:synthetics:BrokenLinksMonitor
    properties:
      name: Sample Broken Links Monitor
      uri: https://www.one.example.com
      locationsPublics:
        - AP_SOUTH_1
      period: EVERY_6_HOURS
      status: ENABLED
      runtimeType: NODE_API
      runtimeTypeVersion: '16.10'
      tags:
        - key: some_key
          values:
            - some_value
See additional examples.
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 foo = new newrelic.synthetics.PrivateLocation("foo", {
    name: "Sample Private Location",
    description: "Sample Private Location Description",
    verifiedScriptExecution: false,
});
const fooBrokenLinksMonitor = new newrelic.synthetics.BrokenLinksMonitor("foo", {
    name: "Sample Broken Links Monitor",
    uri: "https://www.one.example.com",
    locationsPrivates: [foo.id],
    period: "EVERY_6_HOURS",
    status: "ENABLED",
    tags: [{
        key: "some_key",
        values: ["some_value"],
    }],
});
import pulumi
import pulumi_newrelic as newrelic
foo = newrelic.synthetics.PrivateLocation("foo",
    name="Sample Private Location",
    description="Sample Private Location Description",
    verified_script_execution=False)
foo_broken_links_monitor = newrelic.synthetics.BrokenLinksMonitor("foo",
    name="Sample Broken Links Monitor",
    uri="https://www.one.example.com",
    locations_privates=[foo.id],
    period="EVERY_6_HOURS",
    status="ENABLED",
    tags=[{
        "key": "some_key",
        "values": ["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 {
		foo, err := synthetics.NewPrivateLocation(ctx, "foo", &synthetics.PrivateLocationArgs{
			Name:                    pulumi.String("Sample Private Location"),
			Description:             pulumi.String("Sample Private Location Description"),
			VerifiedScriptExecution: pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		_, err = synthetics.NewBrokenLinksMonitor(ctx, "foo", &synthetics.BrokenLinksMonitorArgs{
			Name: pulumi.String("Sample Broken Links Monitor"),
			Uri:  pulumi.String("https://www.one.example.com"),
			LocationsPrivates: pulumi.StringArray{
				foo.ID(),
			},
			Period: pulumi.String("EVERY_6_HOURS"),
			Status: pulumi.String("ENABLED"),
			Tags: synthetics.BrokenLinksMonitorTagArray{
				&synthetics.BrokenLinksMonitorTagArgs{
					Key: pulumi.String("some_key"),
					Values: pulumi.StringArray{
						pulumi.String("some_value"),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using NewRelic = Pulumi.NewRelic;
return await Deployment.RunAsync(() => 
{
    var foo = new NewRelic.Synthetics.PrivateLocation("foo", new()
    {
        Name = "Sample Private Location",
        Description = "Sample Private Location Description",
        VerifiedScriptExecution = false,
    });
    var fooBrokenLinksMonitor = new NewRelic.Synthetics.BrokenLinksMonitor("foo", new()
    {
        Name = "Sample Broken Links Monitor",
        Uri = "https://www.one.example.com",
        LocationsPrivates = new[]
        {
            foo.Id,
        },
        Period = "EVERY_6_HOURS",
        Status = "ENABLED",
        Tags = new[]
        {
            new NewRelic.Synthetics.Inputs.BrokenLinksMonitorTagArgs
            {
                Key = "some_key",
                Values = new[]
                {
                    "some_value",
                },
            },
        },
    });
});
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.BrokenLinksMonitor;
import com.pulumi.newrelic.synthetics.BrokenLinksMonitorArgs;
import com.pulumi.newrelic.synthetics.inputs.BrokenLinksMonitorTagArgs;
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 foo = new PrivateLocation("foo", PrivateLocationArgs.builder()
            .name("Sample Private Location")
            .description("Sample Private Location Description")
            .verifiedScriptExecution(false)
            .build());
        var fooBrokenLinksMonitor = new BrokenLinksMonitor("fooBrokenLinksMonitor", BrokenLinksMonitorArgs.builder()
            .name("Sample Broken Links Monitor")
            .uri("https://www.one.example.com")
            .locationsPrivates(foo.id())
            .period("EVERY_6_HOURS")
            .status("ENABLED")
            .tags(BrokenLinksMonitorTagArgs.builder()
                .key("some_key")
                .values("some_value")
                .build())
            .build());
    }
}
resources:
  foo:
    type: newrelic:synthetics:PrivateLocation
    properties:
      name: Sample Private Location
      description: Sample Private Location Description
      verifiedScriptExecution: false
  fooBrokenLinksMonitor:
    type: newrelic:synthetics:BrokenLinksMonitor
    name: foo
    properties:
      name: Sample Broken Links Monitor
      uri: https://www.one.example.com
      locationsPrivates:
        - ${foo.id}
      period: EVERY_6_HOURS
      status: ENABLED
      tags:
        - key: some_key
          values:
            - some_value
Create BrokenLinksMonitor Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new BrokenLinksMonitor(name: string, args: BrokenLinksMonitorArgs, opts?: CustomResourceOptions);@overload
def BrokenLinksMonitor(resource_name: str,
                       args: BrokenLinksMonitorArgs,
                       opts: Optional[ResourceOptions] = None)
@overload
def BrokenLinksMonitor(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       period: Optional[str] = None,
                       status: Optional[str] = None,
                       uri: Optional[str] = None,
                       account_id: Optional[str] = None,
                       locations_privates: Optional[Sequence[str]] = None,
                       locations_publics: Optional[Sequence[str]] = None,
                       name: Optional[str] = None,
                       runtime_type: Optional[str] = None,
                       runtime_type_version: Optional[str] = None,
                       tags: Optional[Sequence[BrokenLinksMonitorTagArgs]] = None,
                       use_unsupported_legacy_runtime: Optional[bool] = None)func NewBrokenLinksMonitor(ctx *Context, name string, args BrokenLinksMonitorArgs, opts ...ResourceOption) (*BrokenLinksMonitor, error)public BrokenLinksMonitor(string name, BrokenLinksMonitorArgs args, CustomResourceOptions? opts = null)
public BrokenLinksMonitor(String name, BrokenLinksMonitorArgs args)
public BrokenLinksMonitor(String name, BrokenLinksMonitorArgs args, CustomResourceOptions options)
type: newrelic:synthetics:BrokenLinksMonitor
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 BrokenLinksMonitorArgs
- 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 BrokenLinksMonitorArgs
- 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 BrokenLinksMonitorArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BrokenLinksMonitorArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BrokenLinksMonitorArgs
- 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 brokenLinksMonitorResource = new NewRelic.Synthetics.BrokenLinksMonitor("brokenLinksMonitorResource", new()
{
    Period = "string",
    Status = "string",
    Uri = "string",
    AccountId = "string",
    LocationsPrivates = new[]
    {
        "string",
    },
    LocationsPublics = new[]
    {
        "string",
    },
    Name = "string",
    RuntimeType = "string",
    RuntimeTypeVersion = "string",
    Tags = new[]
    {
        new NewRelic.Synthetics.Inputs.BrokenLinksMonitorTagArgs
        {
            Key = "string",
            Values = new[]
            {
                "string",
            },
        },
    },
    UseUnsupportedLegacyRuntime = false,
});
example, err := synthetics.NewBrokenLinksMonitor(ctx, "brokenLinksMonitorResource", &synthetics.BrokenLinksMonitorArgs{
	Period:    pulumi.String("string"),
	Status:    pulumi.String("string"),
	Uri:       pulumi.String("string"),
	AccountId: pulumi.String("string"),
	LocationsPrivates: pulumi.StringArray{
		pulumi.String("string"),
	},
	LocationsPublics: pulumi.StringArray{
		pulumi.String("string"),
	},
	Name:               pulumi.String("string"),
	RuntimeType:        pulumi.String("string"),
	RuntimeTypeVersion: pulumi.String("string"),
	Tags: synthetics.BrokenLinksMonitorTagArray{
		&synthetics.BrokenLinksMonitorTagArgs{
			Key: pulumi.String("string"),
			Values: pulumi.StringArray{
				pulumi.String("string"),
			},
		},
	},
	UseUnsupportedLegacyRuntime: pulumi.Bool(false),
})
var brokenLinksMonitorResource = new BrokenLinksMonitor("brokenLinksMonitorResource", BrokenLinksMonitorArgs.builder()
    .period("string")
    .status("string")
    .uri("string")
    .accountId("string")
    .locationsPrivates("string")
    .locationsPublics("string")
    .name("string")
    .runtimeType("string")
    .runtimeTypeVersion("string")
    .tags(BrokenLinksMonitorTagArgs.builder()
        .key("string")
        .values("string")
        .build())
    .useUnsupportedLegacyRuntime(false)
    .build());
broken_links_monitor_resource = newrelic.synthetics.BrokenLinksMonitor("brokenLinksMonitorResource",
    period="string",
    status="string",
    uri="string",
    account_id="string",
    locations_privates=["string"],
    locations_publics=["string"],
    name="string",
    runtime_type="string",
    runtime_type_version="string",
    tags=[{
        "key": "string",
        "values": ["string"],
    }],
    use_unsupported_legacy_runtime=False)
const brokenLinksMonitorResource = new newrelic.synthetics.BrokenLinksMonitor("brokenLinksMonitorResource", {
    period: "string",
    status: "string",
    uri: "string",
    accountId: "string",
    locationsPrivates: ["string"],
    locationsPublics: ["string"],
    name: "string",
    runtimeType: "string",
    runtimeTypeVersion: "string",
    tags: [{
        key: "string",
        values: ["string"],
    }],
    useUnsupportedLegacyRuntime: false,
});
type: newrelic:synthetics:BrokenLinksMonitor
properties:
    accountId: string
    locationsPrivates:
        - string
    locationsPublics:
        - string
    name: string
    period: string
    runtimeType: string
    runtimeTypeVersion: string
    status: string
    tags:
        - key: string
          values:
            - string
    uri: string
    useUnsupportedLegacyRuntime: false
BrokenLinksMonitor Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The BrokenLinksMonitor resource accepts the following input properties:
- 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, orEVERY_DAY.
- Status string
- The run state of the monitor. (ENABLEDorDISABLED).
- Uri string
- The URI the monitor runs against.
- AccountId string
- The account in which the Synthetics monitor will be created.
- LocationsPrivates List<string>
- The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either locations_publicorlocations_privateis required.
- LocationsPublics List<string>
- The location the monitor will run from. Check out this page for a list of valid public locations. You don't need the AWS_prefix as the provider uses NerdGraph. At least one of eitherlocations_publicorlocation_privateis required.
- Name string
- The name for the monitor.
- RuntimeType string
- The runtime that the monitor will use to run jobs (NODE_API).
- RuntimeType stringVersion 
- The specific semver version of the runtime type.
- 
List<Pulumi.New Relic. Synthetics. Inputs. Broken Links Monitor Tag> 
- The tags that will be associated with the monitor. See Nested tag blocks below for details
- UseUnsupported boolLegacy Runtime 
- 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, orEVERY_DAY.
- Status string
- The run state of the monitor. (ENABLEDorDISABLED).
- Uri string
- The URI the monitor runs against.
- AccountId string
- The account in which the Synthetics monitor will be created.
- LocationsPrivates []string
- The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either locations_publicorlocations_privateis required.
- LocationsPublics []string
- The location the monitor will run from. Check out this page for a list of valid public locations. You don't need the AWS_prefix as the provider uses NerdGraph. At least one of eitherlocations_publicorlocation_privateis required.
- Name string
- The name for the monitor.
- RuntimeType string
- The runtime that the monitor will use to run jobs (NODE_API).
- RuntimeType stringVersion 
- The specific semver version of the runtime type.
- 
[]BrokenLinks Monitor Tag Args 
- The tags that will be associated with the monitor. See Nested tag blocks below for details
- UseUnsupported boolLegacy Runtime 
- 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, orEVERY_DAY.
- status String
- The run state of the monitor. (ENABLEDorDISABLED).
- uri String
- The URI the monitor runs against.
- accountId String
- The account in which the Synthetics monitor will be created.
- locationsPrivates List<String>
- The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either locations_publicorlocations_privateis required.
- locationsPublics List<String>
- The location the monitor will run from. Check out this page for a list of valid public locations. You don't need the AWS_prefix as the provider uses NerdGraph. At least one of eitherlocations_publicorlocation_privateis required.
- name String
- The name for the monitor.
- runtimeType String
- The runtime that the monitor will use to run jobs (NODE_API).
- runtimeType StringVersion 
- The specific semver version of the runtime type.
- 
List<BrokenLinks Monitor Tag> 
- The tags that will be associated with the monitor. See Nested tag blocks below for details
- useUnsupported BooleanLegacy Runtime 
- 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, orEVERY_DAY.
- status string
- The run state of the monitor. (ENABLEDorDISABLED).
- uri string
- The URI the monitor runs against.
- accountId string
- The account in which the Synthetics monitor will be created.
- locationsPrivates string[]
- The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either locations_publicorlocations_privateis required.
- locationsPublics string[]
- The location the monitor will run from. Check out this page for a list of valid public locations. You don't need the AWS_prefix as the provider uses NerdGraph. At least one of eitherlocations_publicorlocation_privateis required.
- name string
- The name for the monitor.
- runtimeType string
- The runtime that the monitor will use to run jobs (NODE_API).
- runtimeType stringVersion 
- The specific semver version of the runtime type.
- 
BrokenLinks Monitor Tag[] 
- The tags that will be associated with the monitor. See Nested tag blocks below for details
- useUnsupported booleanLegacy Runtime 
- 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, orEVERY_DAY.
- status str
- The run state of the monitor. (ENABLEDorDISABLED).
- uri str
- The URI the monitor runs against.
- account_id str
- 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_publicorlocations_privateis required.
- locations_publics Sequence[str]
- The location the monitor will run from. Check out this page for a list of valid public locations. You don't need the AWS_prefix as the provider uses NerdGraph. At least one of eitherlocations_publicorlocation_privateis required.
- name str
- The name for the monitor.
- runtime_type str
- The runtime that the monitor will use to run jobs (NODE_API).
- runtime_type_ strversion 
- The specific semver version of the runtime type.
- 
Sequence[BrokenLinks Monitor Tag Args] 
- The tags that will be associated with the monitor. See Nested tag blocks below for details
- use_unsupported_ boollegacy_ runtime 
- 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, orEVERY_DAY.
- status String
- The run state of the monitor. (ENABLEDorDISABLED).
- uri String
- The URI the monitor runs against.
- accountId String
- The account in which the Synthetics monitor will be created.
- locationsPrivates List<String>
- The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either locations_publicorlocations_privateis required.
- locationsPublics List<String>
- The location the monitor will run from. Check out this page for a list of valid public locations. You don't need the AWS_prefix as the provider uses NerdGraph. At least one of eitherlocations_publicorlocation_privateis required.
- name String
- The name for the monitor.
- runtimeType String
- The runtime that the monitor will use to run jobs (NODE_API).
- runtimeType StringVersion 
- The specific semver version of the runtime type.
- List<Property Map>
- The tags that will be associated with the monitor. See Nested tag blocks below for details
- useUnsupported BooleanLegacy Runtime 
Outputs
All input properties are implicitly available as output properties. Additionally, the BrokenLinksMonitor resource produces the following output properties:
- Guid string
- The unique entity identifier of the monitor in New Relic.
- Id string
- The provider-assigned unique ID for this managed resource.
- PeriodIn intMinutes 
- The interval in minutes at which Synthetic monitor should run.
- Guid string
- The unique entity identifier of the monitor in New Relic.
- Id string
- The provider-assigned unique ID for this managed resource.
- PeriodIn intMinutes 
- The interval in minutes at which Synthetic monitor should run.
- guid String
- The unique entity identifier of the monitor in New Relic.
- id String
- The provider-assigned unique ID for this managed resource.
- periodIn IntegerMinutes 
- The interval in minutes at which Synthetic monitor should run.
- guid string
- The unique entity identifier of the monitor in New Relic.
- id string
- The provider-assigned unique ID for this managed resource.
- periodIn numberMinutes 
- The interval in minutes at which Synthetic monitor should run.
- guid str
- The unique entity identifier of the monitor in New Relic.
- id str
- The provider-assigned unique ID for this managed resource.
- period_in_ intminutes 
- The interval in minutes at which Synthetic monitor should run.
- guid String
- The unique entity identifier of the monitor in New Relic.
- id String
- The provider-assigned unique ID for this managed resource.
- periodIn NumberMinutes 
- The interval in minutes at which Synthetic monitor should run.
Look up Existing BrokenLinksMonitor Resource
Get an existing BrokenLinksMonitor 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?: BrokenLinksMonitorState, opts?: CustomResourceOptions): BrokenLinksMonitor@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        account_id: Optional[str] = None,
        guid: 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,
        runtime_type: Optional[str] = None,
        runtime_type_version: Optional[str] = None,
        status: Optional[str] = None,
        tags: Optional[Sequence[BrokenLinksMonitorTagArgs]] = None,
        uri: Optional[str] = None,
        use_unsupported_legacy_runtime: Optional[bool] = None) -> BrokenLinksMonitorfunc GetBrokenLinksMonitor(ctx *Context, name string, id IDInput, state *BrokenLinksMonitorState, opts ...ResourceOption) (*BrokenLinksMonitor, error)public static BrokenLinksMonitor Get(string name, Input<string> id, BrokenLinksMonitorState? state, CustomResourceOptions? opts = null)public static BrokenLinksMonitor get(String name, Output<String> id, BrokenLinksMonitorState state, CustomResourceOptions options)resources:  _:    type: newrelic:synthetics:BrokenLinksMonitor    get:      id: ${id}- 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.
- AccountId string
- The account in which the Synthetics monitor will be created.
- Guid string
- The unique entity identifier of the monitor in New Relic.
- LocationsPrivates List<string>
- The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either locations_publicorlocations_privateis required.
- LocationsPublics List<string>
- The location the monitor will run from. Check out this page for a list of valid public locations. You don't need the AWS_prefix as the provider uses NerdGraph. At least one of eitherlocations_publicorlocation_privateis 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, orEVERY_DAY.
- PeriodIn intMinutes 
- The interval in minutes at which Synthetic monitor should run.
- RuntimeType string
- The runtime that the monitor will use to run jobs (NODE_API).
- RuntimeType stringVersion 
- The specific semver version of the runtime type.
- Status string
- The run state of the monitor. (ENABLEDorDISABLED).
- 
List<Pulumi.New Relic. Synthetics. Inputs. Broken Links Monitor Tag> 
- The tags that will be associated with the monitor. See Nested tag blocks below for details
- Uri string
- The URI the monitor runs against.
- UseUnsupported boolLegacy Runtime 
- AccountId string
- The account in which the Synthetics monitor will be created.
- Guid string
- The unique entity identifier of the monitor in New Relic.
- LocationsPrivates []string
- The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either locations_publicorlocations_privateis required.
- LocationsPublics []string
- The location the monitor will run from. Check out this page for a list of valid public locations. You don't need the AWS_prefix as the provider uses NerdGraph. At least one of eitherlocations_publicorlocation_privateis 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, orEVERY_DAY.
- PeriodIn intMinutes 
- The interval in minutes at which Synthetic monitor should run.
- RuntimeType string
- The runtime that the monitor will use to run jobs (NODE_API).
- RuntimeType stringVersion 
- The specific semver version of the runtime type.
- Status string
- The run state of the monitor. (ENABLEDorDISABLED).
- 
[]BrokenLinks Monitor Tag Args 
- The tags that will be associated with the monitor. See Nested tag blocks below for details
- Uri string
- The URI the monitor runs against.
- UseUnsupported boolLegacy Runtime 
- accountId String
- The account in which the Synthetics monitor will be created.
- guid String
- The unique entity identifier of the monitor in New Relic.
- locationsPrivates List<String>
- The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either locations_publicorlocations_privateis required.
- locationsPublics List<String>
- The location the monitor will run from. Check out this page for a list of valid public locations. You don't need the AWS_prefix as the provider uses NerdGraph. At least one of eitherlocations_publicorlocation_privateis 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, orEVERY_DAY.
- periodIn IntegerMinutes 
- The interval in minutes at which Synthetic monitor should run.
- runtimeType String
- The runtime that the monitor will use to run jobs (NODE_API).
- runtimeType StringVersion 
- The specific semver version of the runtime type.
- status String
- The run state of the monitor. (ENABLEDorDISABLED).
- 
List<BrokenLinks Monitor Tag> 
- The tags that will be associated with the monitor. See Nested tag blocks below for details
- uri String
- The URI the monitor runs against.
- useUnsupported BooleanLegacy Runtime 
- accountId string
- The account in which the Synthetics monitor will be created.
- guid string
- The unique entity identifier of the monitor in New Relic.
- locationsPrivates string[]
- The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either locations_publicorlocations_privateis required.
- locationsPublics string[]
- The location the monitor will run from. Check out this page for a list of valid public locations. You don't need the AWS_prefix as the provider uses NerdGraph. At least one of eitherlocations_publicorlocation_privateis 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, orEVERY_DAY.
- periodIn numberMinutes 
- The interval in minutes at which Synthetic monitor should run.
- runtimeType string
- The runtime that the monitor will use to run jobs (NODE_API).
- runtimeType stringVersion 
- The specific semver version of the runtime type.
- status string
- The run state of the monitor. (ENABLEDorDISABLED).
- 
BrokenLinks Monitor Tag[] 
- The tags that will be associated with the monitor. See Nested tag blocks below for details
- uri string
- The URI the monitor runs against.
- useUnsupported booleanLegacy Runtime 
- account_id str
- The account in which the Synthetics monitor will be created.
- guid str
- The unique entity identifier of the monitor in New Relic.
- locations_privates Sequence[str]
- The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either locations_publicorlocations_privateis required.
- locations_publics Sequence[str]
- The location the monitor will run from. Check out this page for a list of valid public locations. You don't need the AWS_prefix as the provider uses NerdGraph. At least one of eitherlocations_publicorlocation_privateis 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, orEVERY_DAY.
- period_in_ intminutes 
- The interval in minutes at which Synthetic monitor should run.
- runtime_type str
- The runtime that the monitor will use to run jobs (NODE_API).
- runtime_type_ strversion 
- The specific semver version of the runtime type.
- status str
- The run state of the monitor. (ENABLEDorDISABLED).
- 
Sequence[BrokenLinks Monitor Tag Args] 
- The tags that will be associated with the monitor. See Nested tag blocks below for details
- uri str
- The URI the monitor runs against.
- use_unsupported_ boollegacy_ runtime 
- accountId String
- The account in which the Synthetics monitor will be created.
- guid String
- The unique entity identifier of the monitor in New Relic.
- locationsPrivates List<String>
- The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either locations_publicorlocations_privateis required.
- locationsPublics List<String>
- The location the monitor will run from. Check out this page for a list of valid public locations. You don't need the AWS_prefix as the provider uses NerdGraph. At least one of eitherlocations_publicorlocation_privateis 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, orEVERY_DAY.
- periodIn NumberMinutes 
- The interval in minutes at which Synthetic monitor should run.
- runtimeType String
- The runtime that the monitor will use to run jobs (NODE_API).
- runtimeType StringVersion 
- The specific semver version of the runtime type.
- status String
- The run state of the monitor. (ENABLEDorDISABLED).
- List<Property Map>
- The tags that will be associated with the monitor. See Nested tag blocks below for details
- uri String
- The URI the monitor runs against.
- useUnsupported BooleanLegacy Runtime 
Supporting Types
BrokenLinksMonitorTag, BrokenLinksMonitorTagArgs        
Import
A broken links monitor can be imported using its GUID, using the following command.
bash
$ pulumi import newrelic:synthetics/brokenLinksMonitor:BrokenLinksMonitor monitor <guid>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- New Relic pulumi/pulumi-newrelic
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the newrelicTerraform Provider.