1. Packages
  2. Cloudflare
  3. API Docs
  4. ObservatoryScheduledTest
Cloudflare v5.33.1 published on Wednesday, Jun 26, 2024 by Pulumi

cloudflare.ObservatoryScheduledTest

Explore with Pulumi AI

cloudflare logo
Cloudflare v5.33.1 published on Wednesday, Jun 26, 2024 by Pulumi

    Provides a Cloudflare Observatory Scheduled Test resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const example = new cloudflare.ObservatoryScheduledTest("example", {
        zoneId: "0da42c8d2132a9ddaf714f9e7c920711",
        url: "example.com",
        region: "us-central1",
        frequency: "WEEKLY",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example = cloudflare.ObservatoryScheduledTest("example",
        zone_id="0da42c8d2132a9ddaf714f9e7c920711",
        url="example.com",
        region="us-central1",
        frequency="WEEKLY")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-cloudflare/sdk/v5/go/cloudflare"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudflare.NewObservatoryScheduledTest(ctx, "example", &cloudflare.ObservatoryScheduledTestArgs{
    			ZoneId:    pulumi.String("0da42c8d2132a9ddaf714f9e7c920711"),
    			Url:       pulumi.String("example.com"),
    			Region:    pulumi.String("us-central1"),
    			Frequency: pulumi.String("WEEKLY"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Cloudflare = Pulumi.Cloudflare;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Cloudflare.ObservatoryScheduledTest("example", new()
        {
            ZoneId = "0da42c8d2132a9ddaf714f9e7c920711",
            Url = "example.com",
            Region = "us-central1",
            Frequency = "WEEKLY",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudflare.ObservatoryScheduledTest;
    import com.pulumi.cloudflare.ObservatoryScheduledTestArgs;
    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 example = new ObservatoryScheduledTest("example", ObservatoryScheduledTestArgs.builder()
                .zoneId("0da42c8d2132a9ddaf714f9e7c920711")
                .url("example.com")
                .region("us-central1")
                .frequency("WEEKLY")
                .build());
    
        }
    }
    
    resources:
      example:
        type: cloudflare:ObservatoryScheduledTest
        properties:
          zoneId: 0da42c8d2132a9ddaf714f9e7c920711
          url: example.com
          region: us-central1
          frequency: WEEKLY
    

    Create ObservatoryScheduledTest Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ObservatoryScheduledTest(name: string, args: ObservatoryScheduledTestArgs, opts?: CustomResourceOptions);
    @overload
    def ObservatoryScheduledTest(resource_name: str,
                                 args: ObservatoryScheduledTestArgs,
                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def ObservatoryScheduledTest(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 frequency: Optional[str] = None,
                                 region: Optional[str] = None,
                                 url: Optional[str] = None,
                                 zone_id: Optional[str] = None)
    func NewObservatoryScheduledTest(ctx *Context, name string, args ObservatoryScheduledTestArgs, opts ...ResourceOption) (*ObservatoryScheduledTest, error)
    public ObservatoryScheduledTest(string name, ObservatoryScheduledTestArgs args, CustomResourceOptions? opts = null)
    public ObservatoryScheduledTest(String name, ObservatoryScheduledTestArgs args)
    public ObservatoryScheduledTest(String name, ObservatoryScheduledTestArgs args, CustomResourceOptions options)
    
    type: cloudflare:ObservatoryScheduledTest
    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 ObservatoryScheduledTestArgs
    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 ObservatoryScheduledTestArgs
    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 ObservatoryScheduledTestArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ObservatoryScheduledTestArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ObservatoryScheduledTestArgs
    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 observatoryScheduledTestResource = new Cloudflare.ObservatoryScheduledTest("observatoryScheduledTestResource", new()
    {
        Frequency = "string",
        Region = "string",
        Url = "string",
        ZoneId = "string",
    });
    
    example, err := cloudflare.NewObservatoryScheduledTest(ctx, "observatoryScheduledTestResource", &cloudflare.ObservatoryScheduledTestArgs{
    	Frequency: pulumi.String("string"),
    	Region:    pulumi.String("string"),
    	Url:       pulumi.String("string"),
    	ZoneId:    pulumi.String("string"),
    })
    
    var observatoryScheduledTestResource = new ObservatoryScheduledTest("observatoryScheduledTestResource", ObservatoryScheduledTestArgs.builder()
        .frequency("string")
        .region("string")
        .url("string")
        .zoneId("string")
        .build());
    
    observatory_scheduled_test_resource = cloudflare.ObservatoryScheduledTest("observatoryScheduledTestResource",
        frequency="string",
        region="string",
        url="string",
        zone_id="string")
    
    const observatoryScheduledTestResource = new cloudflare.ObservatoryScheduledTest("observatoryScheduledTestResource", {
        frequency: "string",
        region: "string",
        url: "string",
        zoneId: "string",
    });
    
    type: cloudflare:ObservatoryScheduledTest
    properties:
        frequency: string
        region: string
        url: string
        zoneId: string
    

    ObservatoryScheduledTest 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 ObservatoryScheduledTest resource accepts the following input properties:

    Frequency string
    The frequency to run the test. Available values: DAILY, WEEKLY. Modifying this attribute will force creation of a new resource.
    Region string
    The region to run the test in. Available values: us-central1, us-east1, us-east4, us-south1, us-west1, southamerica-east1, europe-north1, europe-southwest1, europe-west1, europe-west2, europe-west3, europe-west4, europe-west8, europe-west9, asia-east1, asia-south1, asia-southeast1, me-west1, australia-southeast1. Modifying this attribute will force creation of a new resource.
    Url string
    The page to run the test on. Modifying this attribute will force creation of a new resource.
    ZoneId string
    The zone identifier to target for the resource. Modifying this attribute will force creation of a new resource.
    Frequency string
    The frequency to run the test. Available values: DAILY, WEEKLY. Modifying this attribute will force creation of a new resource.
    Region string
    The region to run the test in. Available values: us-central1, us-east1, us-east4, us-south1, us-west1, southamerica-east1, europe-north1, europe-southwest1, europe-west1, europe-west2, europe-west3, europe-west4, europe-west8, europe-west9, asia-east1, asia-south1, asia-southeast1, me-west1, australia-southeast1. Modifying this attribute will force creation of a new resource.
    Url string
    The page to run the test on. Modifying this attribute will force creation of a new resource.
    ZoneId string
    The zone identifier to target for the resource. Modifying this attribute will force creation of a new resource.
    frequency String
    The frequency to run the test. Available values: DAILY, WEEKLY. Modifying this attribute will force creation of a new resource.
    region String
    The region to run the test in. Available values: us-central1, us-east1, us-east4, us-south1, us-west1, southamerica-east1, europe-north1, europe-southwest1, europe-west1, europe-west2, europe-west3, europe-west4, europe-west8, europe-west9, asia-east1, asia-south1, asia-southeast1, me-west1, australia-southeast1. Modifying this attribute will force creation of a new resource.
    url String
    The page to run the test on. Modifying this attribute will force creation of a new resource.
    zoneId String
    The zone identifier to target for the resource. Modifying this attribute will force creation of a new resource.
    frequency string
    The frequency to run the test. Available values: DAILY, WEEKLY. Modifying this attribute will force creation of a new resource.
    region string
    The region to run the test in. Available values: us-central1, us-east1, us-east4, us-south1, us-west1, southamerica-east1, europe-north1, europe-southwest1, europe-west1, europe-west2, europe-west3, europe-west4, europe-west8, europe-west9, asia-east1, asia-south1, asia-southeast1, me-west1, australia-southeast1. Modifying this attribute will force creation of a new resource.
    url string
    The page to run the test on. Modifying this attribute will force creation of a new resource.
    zoneId string
    The zone identifier to target for the resource. Modifying this attribute will force creation of a new resource.
    frequency str
    The frequency to run the test. Available values: DAILY, WEEKLY. Modifying this attribute will force creation of a new resource.
    region str
    The region to run the test in. Available values: us-central1, us-east1, us-east4, us-south1, us-west1, southamerica-east1, europe-north1, europe-southwest1, europe-west1, europe-west2, europe-west3, europe-west4, europe-west8, europe-west9, asia-east1, asia-south1, asia-southeast1, me-west1, australia-southeast1. Modifying this attribute will force creation of a new resource.
    url str
    The page to run the test on. Modifying this attribute will force creation of a new resource.
    zone_id str
    The zone identifier to target for the resource. Modifying this attribute will force creation of a new resource.
    frequency String
    The frequency to run the test. Available values: DAILY, WEEKLY. Modifying this attribute will force creation of a new resource.
    region String
    The region to run the test in. Available values: us-central1, us-east1, us-east4, us-south1, us-west1, southamerica-east1, europe-north1, europe-southwest1, europe-west1, europe-west2, europe-west3, europe-west4, europe-west8, europe-west9, asia-east1, asia-south1, asia-southeast1, me-west1, australia-southeast1. Modifying this attribute will force creation of a new resource.
    url String
    The page to run the test on. Modifying this attribute will force creation of a new resource.
    zoneId String
    The zone identifier to target for the resource. Modifying this attribute will force creation of a new resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ObservatoryScheduledTest resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing ObservatoryScheduledTest Resource

    Get an existing ObservatoryScheduledTest 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?: ObservatoryScheduledTestState, opts?: CustomResourceOptions): ObservatoryScheduledTest
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            frequency: Optional[str] = None,
            region: Optional[str] = None,
            url: Optional[str] = None,
            zone_id: Optional[str] = None) -> ObservatoryScheduledTest
    func GetObservatoryScheduledTest(ctx *Context, name string, id IDInput, state *ObservatoryScheduledTestState, opts ...ResourceOption) (*ObservatoryScheduledTest, error)
    public static ObservatoryScheduledTest Get(string name, Input<string> id, ObservatoryScheduledTestState? state, CustomResourceOptions? opts = null)
    public static ObservatoryScheduledTest get(String name, Output<String> id, ObservatoryScheduledTestState 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.
    The following state arguments are supported:
    Frequency string
    The frequency to run the test. Available values: DAILY, WEEKLY. Modifying this attribute will force creation of a new resource.
    Region string
    The region to run the test in. Available values: us-central1, us-east1, us-east4, us-south1, us-west1, southamerica-east1, europe-north1, europe-southwest1, europe-west1, europe-west2, europe-west3, europe-west4, europe-west8, europe-west9, asia-east1, asia-south1, asia-southeast1, me-west1, australia-southeast1. Modifying this attribute will force creation of a new resource.
    Url string
    The page to run the test on. Modifying this attribute will force creation of a new resource.
    ZoneId string
    The zone identifier to target for the resource. Modifying this attribute will force creation of a new resource.
    Frequency string
    The frequency to run the test. Available values: DAILY, WEEKLY. Modifying this attribute will force creation of a new resource.
    Region string
    The region to run the test in. Available values: us-central1, us-east1, us-east4, us-south1, us-west1, southamerica-east1, europe-north1, europe-southwest1, europe-west1, europe-west2, europe-west3, europe-west4, europe-west8, europe-west9, asia-east1, asia-south1, asia-southeast1, me-west1, australia-southeast1. Modifying this attribute will force creation of a new resource.
    Url string
    The page to run the test on. Modifying this attribute will force creation of a new resource.
    ZoneId string
    The zone identifier to target for the resource. Modifying this attribute will force creation of a new resource.
    frequency String
    The frequency to run the test. Available values: DAILY, WEEKLY. Modifying this attribute will force creation of a new resource.
    region String
    The region to run the test in. Available values: us-central1, us-east1, us-east4, us-south1, us-west1, southamerica-east1, europe-north1, europe-southwest1, europe-west1, europe-west2, europe-west3, europe-west4, europe-west8, europe-west9, asia-east1, asia-south1, asia-southeast1, me-west1, australia-southeast1. Modifying this attribute will force creation of a new resource.
    url String
    The page to run the test on. Modifying this attribute will force creation of a new resource.
    zoneId String
    The zone identifier to target for the resource. Modifying this attribute will force creation of a new resource.
    frequency string
    The frequency to run the test. Available values: DAILY, WEEKLY. Modifying this attribute will force creation of a new resource.
    region string
    The region to run the test in. Available values: us-central1, us-east1, us-east4, us-south1, us-west1, southamerica-east1, europe-north1, europe-southwest1, europe-west1, europe-west2, europe-west3, europe-west4, europe-west8, europe-west9, asia-east1, asia-south1, asia-southeast1, me-west1, australia-southeast1. Modifying this attribute will force creation of a new resource.
    url string
    The page to run the test on. Modifying this attribute will force creation of a new resource.
    zoneId string
    The zone identifier to target for the resource. Modifying this attribute will force creation of a new resource.
    frequency str
    The frequency to run the test. Available values: DAILY, WEEKLY. Modifying this attribute will force creation of a new resource.
    region str
    The region to run the test in. Available values: us-central1, us-east1, us-east4, us-south1, us-west1, southamerica-east1, europe-north1, europe-southwest1, europe-west1, europe-west2, europe-west3, europe-west4, europe-west8, europe-west9, asia-east1, asia-south1, asia-southeast1, me-west1, australia-southeast1. Modifying this attribute will force creation of a new resource.
    url str
    The page to run the test on. Modifying this attribute will force creation of a new resource.
    zone_id str
    The zone identifier to target for the resource. Modifying this attribute will force creation of a new resource.
    frequency String
    The frequency to run the test. Available values: DAILY, WEEKLY. Modifying this attribute will force creation of a new resource.
    region String
    The region to run the test in. Available values: us-central1, us-east1, us-east4, us-south1, us-west1, southamerica-east1, europe-north1, europe-southwest1, europe-west1, europe-west2, europe-west3, europe-west4, europe-west8, europe-west9, asia-east1, asia-south1, asia-southeast1, me-west1, australia-southeast1. Modifying this attribute will force creation of a new resource.
    url String
    The page to run the test on. Modifying this attribute will force creation of a new resource.
    zoneId String
    The zone identifier to target for the resource. Modifying this attribute will force creation of a new resource.

    Import

    $ pulumi import cloudflare:index/observatoryScheduledTest:ObservatoryScheduledTest example <zone_id>:<url>:<region>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Cloudflare pulumi/pulumi-cloudflare
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the cloudflare Terraform Provider.
    cloudflare logo
    Cloudflare v5.33.1 published on Wednesday, Jun 26, 2024 by Pulumi