Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as edgecenter from "@pulumi/edgecenter";
const example = new edgecenter.RmonStatusPage("example", {
name: "Example Status",
slug: "example-status",
checks: [{
checkId: 12345,
}],
});
import pulumi
import pulumi_edgecenter as edgecenter
example = edgecenter.RmonStatusPage("example",
name="Example Status",
slug="example-status",
checks=[{
"check_id": 12345,
}])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/edgecenter/edgecenter"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := edgecenter.NewRmonStatusPage(ctx, "example", &edgecenter.RmonStatusPageArgs{
Name: pulumi.String("Example Status"),
Slug: pulumi.String("example-status"),
Checks: edgecenter.RmonStatusPageCheckArray{
&edgecenter.RmonStatusPageCheckArgs{
CheckId: pulumi.Float64(12345),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Edgecenter = Pulumi.Edgecenter;
return await Deployment.RunAsync(() =>
{
var example = new Edgecenter.RmonStatusPage("example", new()
{
Name = "Example Status",
Slug = "example-status",
Checks = new[]
{
new Edgecenter.Inputs.RmonStatusPageCheckArgs
{
CheckId = 12345,
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.edgecenter.RmonStatusPage;
import com.pulumi.edgecenter.RmonStatusPageArgs;
import com.pulumi.edgecenter.inputs.RmonStatusPageCheckArgs;
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 RmonStatusPage("example", RmonStatusPageArgs.builder()
.name("Example Status")
.slug("example-status")
.checks(RmonStatusPageCheckArgs.builder()
.checkId(12345.0)
.build())
.build());
}
}
resources:
example:
type: edgecenter:RmonStatusPage
properties:
name: Example Status
slug: example-status
checks:
- checkId: 12345
Create RmonStatusPage Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RmonStatusPage(name: string, args: RmonStatusPageArgs, opts?: CustomResourceOptions);@overload
def RmonStatusPage(resource_name: str,
args: RmonStatusPageArgs,
opts: Optional[ResourceOptions] = None)
@overload
def RmonStatusPage(resource_name: str,
opts: Optional[ResourceOptions] = None,
checks: Optional[Sequence[RmonStatusPageCheckArgs]] = None,
slug: Optional[str] = None,
custom_style: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
rmon_status_page_id: Optional[str] = None)func NewRmonStatusPage(ctx *Context, name string, args RmonStatusPageArgs, opts ...ResourceOption) (*RmonStatusPage, error)public RmonStatusPage(string name, RmonStatusPageArgs args, CustomResourceOptions? opts = null)
public RmonStatusPage(String name, RmonStatusPageArgs args)
public RmonStatusPage(String name, RmonStatusPageArgs args, CustomResourceOptions options)
type: edgecenter:RmonStatusPage
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 RmonStatusPageArgs
- 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 RmonStatusPageArgs
- 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 RmonStatusPageArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RmonStatusPageArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RmonStatusPageArgs
- 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 rmonStatusPageResource = new Edgecenter.RmonStatusPage("rmonStatusPageResource", new()
{
Checks = new[]
{
new Edgecenter.Inputs.RmonStatusPageCheckArgs
{
CheckId = 0,
},
},
Slug = "string",
CustomStyle = "string",
Description = "string",
Name = "string",
RmonStatusPageId = "string",
});
example, err := edgecenter.NewRmonStatusPage(ctx, "rmonStatusPageResource", &edgecenter.RmonStatusPageArgs{
Checks: edgecenter.RmonStatusPageCheckArray{
&edgecenter.RmonStatusPageCheckArgs{
CheckId: pulumi.Float64(0),
},
},
Slug: pulumi.String("string"),
CustomStyle: pulumi.String("string"),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
RmonStatusPageId: pulumi.String("string"),
})
var rmonStatusPageResource = new RmonStatusPage("rmonStatusPageResource", RmonStatusPageArgs.builder()
.checks(RmonStatusPageCheckArgs.builder()
.checkId(0.0)
.build())
.slug("string")
.customStyle("string")
.description("string")
.name("string")
.rmonStatusPageId("string")
.build());
rmon_status_page_resource = edgecenter.RmonStatusPage("rmonStatusPageResource",
checks=[{
"check_id": 0,
}],
slug="string",
custom_style="string",
description="string",
name="string",
rmon_status_page_id="string")
const rmonStatusPageResource = new edgecenter.RmonStatusPage("rmonStatusPageResource", {
checks: [{
checkId: 0,
}],
slug: "string",
customStyle: "string",
description: "string",
name: "string",
rmonStatusPageId: "string",
});
type: edgecenter:RmonStatusPage
properties:
checks:
- checkId: 0
customStyle: string
description: string
name: string
rmonStatusPageId: string
slug: string
RmonStatusPage 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 RmonStatusPage resource accepts the following input properties:
- Checks
List<Rmon
Status Page Check> - List of checks associated with the status page.
- Slug string
- The slug of the status page.
- Custom
Style string - Custom CSS style for the status page.
- Description string
- The description of the status page.
- Name string
- The name of the status page.
- Rmon
Status stringPage Id - The ID of this resource.
- Checks
[]Rmon
Status Page Check Args - List of checks associated with the status page.
- Slug string
- The slug of the status page.
- Custom
Style string - Custom CSS style for the status page.
- Description string
- The description of the status page.
- Name string
- The name of the status page.
- Rmon
Status stringPage Id - The ID of this resource.
- checks
List<Rmon
Status Page Check> - List of checks associated with the status page.
- slug String
- The slug of the status page.
- custom
Style String - Custom CSS style for the status page.
- description String
- The description of the status page.
- name String
- The name of the status page.
- rmon
Status StringPage Id - The ID of this resource.
- checks
Rmon
Status Page Check[] - List of checks associated with the status page.
- slug string
- The slug of the status page.
- custom
Style string - Custom CSS style for the status page.
- description string
- The description of the status page.
- name string
- The name of the status page.
- rmon
Status stringPage Id - The ID of this resource.
- checks
Sequence[Rmon
Status Page Check Args] - List of checks associated with the status page.
- slug str
- The slug of the status page.
- custom_
style str - Custom CSS style for the status page.
- description str
- The description of the status page.
- name str
- The name of the status page.
- rmon_
status_ strpage_ id - The ID of this resource.
- checks List<Property Map>
- List of checks associated with the status page.
- slug String
- The slug of the status page.
- custom
Style String - Custom CSS style for the status page.
- description String
- The description of the status page.
- name String
- The name of the status page.
- rmon
Status StringPage Id - The ID of this resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the RmonStatusPage 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 RmonStatusPage Resource
Get an existing RmonStatusPage 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?: RmonStatusPageState, opts?: CustomResourceOptions): RmonStatusPage@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
checks: Optional[Sequence[RmonStatusPageCheckArgs]] = None,
custom_style: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
rmon_status_page_id: Optional[str] = None,
slug: Optional[str] = None) -> RmonStatusPagefunc GetRmonStatusPage(ctx *Context, name string, id IDInput, state *RmonStatusPageState, opts ...ResourceOption) (*RmonStatusPage, error)public static RmonStatusPage Get(string name, Input<string> id, RmonStatusPageState? state, CustomResourceOptions? opts = null)public static RmonStatusPage get(String name, Output<String> id, RmonStatusPageState state, CustomResourceOptions options)resources: _: type: edgecenter:RmonStatusPage 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.
- Checks
List<Rmon
Status Page Check> - List of checks associated with the status page.
- Custom
Style string - Custom CSS style for the status page.
- Description string
- The description of the status page.
- Name string
- The name of the status page.
- Rmon
Status stringPage Id - The ID of this resource.
- Slug string
- The slug of the status page.
- Checks
[]Rmon
Status Page Check Args - List of checks associated with the status page.
- Custom
Style string - Custom CSS style for the status page.
- Description string
- The description of the status page.
- Name string
- The name of the status page.
- Rmon
Status stringPage Id - The ID of this resource.
- Slug string
- The slug of the status page.
- checks
List<Rmon
Status Page Check> - List of checks associated with the status page.
- custom
Style String - Custom CSS style for the status page.
- description String
- The description of the status page.
- name String
- The name of the status page.
- rmon
Status StringPage Id - The ID of this resource.
- slug String
- The slug of the status page.
- checks
Rmon
Status Page Check[] - List of checks associated with the status page.
- custom
Style string - Custom CSS style for the status page.
- description string
- The description of the status page.
- name string
- The name of the status page.
- rmon
Status stringPage Id - The ID of this resource.
- slug string
- The slug of the status page.
- checks
Sequence[Rmon
Status Page Check Args] - List of checks associated with the status page.
- custom_
style str - Custom CSS style for the status page.
- description str
- The description of the status page.
- name str
- The name of the status page.
- rmon_
status_ strpage_ id - The ID of this resource.
- slug str
- The slug of the status page.
- checks List<Property Map>
- List of checks associated with the status page.
- custom
Style String - Custom CSS style for the status page.
- description String
- The description of the status page.
- name String
- The name of the status page.
- rmon
Status StringPage Id - The ID of this resource.
- slug String
- The slug of the status page.
Supporting Types
RmonStatusPageCheck, RmonStatusPageCheckArgs
- Check
Id double - Check ID.
- Check
Id float64 - Check ID.
- check
Id Double - Check ID.
- check
Id number - Check ID.
- check_
id float - Check ID.
- check
Id Number - Check ID.
Package Details
- Repository
- edgecenter edge-center/terraform-provider-edgecenter
- License
- Notes
- This Pulumi package is based on the
edgecenterTerraform Provider.
