meraki.devices.LiveToolsPingDevice
Explore with Pulumi AI
~>Warning: This resource does not represent a real-world entity in Meraki Dashboard, therefore changing or deleting this resource on its own has no immediate effect. Instead, it is a task part of a Meraki Dashboard workflow. It is executed in Meraki without any additional verification. It does not check if it was executed before or if a similar configuration or action already existed previously.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as meraki from "@pulumi/meraki";
const example = new meraki.devices.LiveToolsPingDevice("example", {
serial: "string",
parameters: {
callback: {
httpServer: {
id: "aHR0cHM6Ly93d3cuZXhhbXBsZS5jb20vd2ViaG9va3M=",
},
payloadTemplate: {
id: "wpt_2100",
},
sharedSecret: "secret",
url: "https://webhook.site/28efa24e-f830-4d9f-a12b-fbb9e5035031",
},
count: 3,
},
});
export const merakiDevicesLiveToolsPingDeviceExample = example;
import pulumi
import pulumi_meraki as meraki
example = meraki.devices.LiveToolsPingDevice("example",
serial="string",
parameters={
"callback": {
"http_server": {
"id": "aHR0cHM6Ly93d3cuZXhhbXBsZS5jb20vd2ViaG9va3M=",
},
"payload_template": {
"id": "wpt_2100",
},
"shared_secret": "secret",
"url": "https://webhook.site/28efa24e-f830-4d9f-a12b-fbb9e5035031",
},
"count": 3,
})
pulumi.export("merakiDevicesLiveToolsPingDeviceExample", example)
package main
import (
"github.com/pulumi/pulumi-meraki/sdk/go/meraki/devices"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := devices.NewLiveToolsPingDevice(ctx, "example", &devices.LiveToolsPingDeviceArgs{
Serial: pulumi.String("string"),
Parameters: &devices.LiveToolsPingDeviceParametersArgs{
Callback: &devices.LiveToolsPingDeviceParametersCallbackArgs{
HttpServer: &devices.LiveToolsPingDeviceParametersCallbackHttpServerArgs{
Id: pulumi.String("aHR0cHM6Ly93d3cuZXhhbXBsZS5jb20vd2ViaG9va3M="),
},
PayloadTemplate: &devices.LiveToolsPingDeviceParametersCallbackPayloadTemplateArgs{
Id: pulumi.String("wpt_2100"),
},
SharedSecret: pulumi.String("secret"),
Url: pulumi.String("https://webhook.site/28efa24e-f830-4d9f-a12b-fbb9e5035031"),
},
Count: pulumi.Int(3),
},
})
if err != nil {
return err
}
ctx.Export("merakiDevicesLiveToolsPingDeviceExample", example)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Meraki = Pulumi.Meraki;
return await Deployment.RunAsync(() =>
{
var example = new Meraki.Devices.LiveToolsPingDevice("example", new()
{
Serial = "string",
Parameters = new Meraki.Devices.Inputs.LiveToolsPingDeviceParametersArgs
{
Callback = new Meraki.Devices.Inputs.LiveToolsPingDeviceParametersCallbackArgs
{
HttpServer = new Meraki.Devices.Inputs.LiveToolsPingDeviceParametersCallbackHttpServerArgs
{
Id = "aHR0cHM6Ly93d3cuZXhhbXBsZS5jb20vd2ViaG9va3M=",
},
PayloadTemplate = new Meraki.Devices.Inputs.LiveToolsPingDeviceParametersCallbackPayloadTemplateArgs
{
Id = "wpt_2100",
},
SharedSecret = "secret",
Url = "https://webhook.site/28efa24e-f830-4d9f-a12b-fbb9e5035031",
},
Count = 3,
},
});
return new Dictionary<string, object?>
{
["merakiDevicesLiveToolsPingDeviceExample"] = example,
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.meraki.devices.LiveToolsPingDevice;
import com.pulumi.meraki.devices.LiveToolsPingDeviceArgs;
import com.pulumi.meraki.devices.inputs.LiveToolsPingDeviceParametersArgs;
import com.pulumi.meraki.devices.inputs.LiveToolsPingDeviceParametersCallbackArgs;
import com.pulumi.meraki.devices.inputs.LiveToolsPingDeviceParametersCallbackHttpServerArgs;
import com.pulumi.meraki.devices.inputs.LiveToolsPingDeviceParametersCallbackPayloadTemplateArgs;
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 LiveToolsPingDevice("example", LiveToolsPingDeviceArgs.builder()
.serial("string")
.parameters(LiveToolsPingDeviceParametersArgs.builder()
.callback(LiveToolsPingDeviceParametersCallbackArgs.builder()
.httpServer(LiveToolsPingDeviceParametersCallbackHttpServerArgs.builder()
.id("aHR0cHM6Ly93d3cuZXhhbXBsZS5jb20vd2ViaG9va3M=")
.build())
.payloadTemplate(LiveToolsPingDeviceParametersCallbackPayloadTemplateArgs.builder()
.id("wpt_2100")
.build())
.sharedSecret("secret")
.url("https://webhook.site/28efa24e-f830-4d9f-a12b-fbb9e5035031")
.build())
.count(3)
.build())
.build());
ctx.export("merakiDevicesLiveToolsPingDeviceExample", example);
}
}
resources:
example:
type: meraki:devices:LiveToolsPingDevice
properties:
serial: string
parameters:
callback:
httpServer:
id: aHR0cHM6Ly93d3cuZXhhbXBsZS5jb20vd2ViaG9va3M=
payloadTemplate:
id: wpt_2100
sharedSecret: secret
url: https://webhook.site/28efa24e-f830-4d9f-a12b-fbb9e5035031
count: 3
outputs:
merakiDevicesLiveToolsPingDeviceExample: ${example}
Create LiveToolsPingDevice Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LiveToolsPingDevice(name: string, args: LiveToolsPingDeviceArgs, opts?: CustomResourceOptions);
@overload
def LiveToolsPingDevice(resource_name: str,
args: LiveToolsPingDeviceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def LiveToolsPingDevice(resource_name: str,
opts: Optional[ResourceOptions] = None,
parameters: Optional[LiveToolsPingDeviceParametersArgs] = None,
serial: Optional[str] = None)
func NewLiveToolsPingDevice(ctx *Context, name string, args LiveToolsPingDeviceArgs, opts ...ResourceOption) (*LiveToolsPingDevice, error)
public LiveToolsPingDevice(string name, LiveToolsPingDeviceArgs args, CustomResourceOptions? opts = null)
public LiveToolsPingDevice(String name, LiveToolsPingDeviceArgs args)
public LiveToolsPingDevice(String name, LiveToolsPingDeviceArgs args, CustomResourceOptions options)
type: meraki:devices:LiveToolsPingDevice
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 LiveToolsPingDeviceArgs
- 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 LiveToolsPingDeviceArgs
- 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 LiveToolsPingDeviceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LiveToolsPingDeviceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LiveToolsPingDeviceArgs
- 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 liveToolsPingDeviceResource = new Meraki.Devices.LiveToolsPingDevice("liveToolsPingDeviceResource", new()
{
Parameters = new Meraki.Devices.Inputs.LiveToolsPingDeviceParametersArgs
{
Callback = new Meraki.Devices.Inputs.LiveToolsPingDeviceParametersCallbackArgs
{
HttpServer = new Meraki.Devices.Inputs.LiveToolsPingDeviceParametersCallbackHttpServerArgs
{
Id = "string",
},
PayloadTemplate = new Meraki.Devices.Inputs.LiveToolsPingDeviceParametersCallbackPayloadTemplateArgs
{
Id = "string",
},
SharedSecret = "string",
Url = "string",
},
Count = 0,
},
Serial = "string",
});
example, err := devices.NewLiveToolsPingDevice(ctx, "liveToolsPingDeviceResource", &devices.LiveToolsPingDeviceArgs{
Parameters: &devices.LiveToolsPingDeviceParametersArgs{
Callback: &devices.LiveToolsPingDeviceParametersCallbackArgs{
HttpServer: &devices.LiveToolsPingDeviceParametersCallbackHttpServerArgs{
Id: pulumi.String("string"),
},
PayloadTemplate: &devices.LiveToolsPingDeviceParametersCallbackPayloadTemplateArgs{
Id: pulumi.String("string"),
},
SharedSecret: pulumi.String("string"),
Url: pulumi.String("string"),
},
Count: pulumi.Int(0),
},
Serial: pulumi.String("string"),
})
var liveToolsPingDeviceResource = new LiveToolsPingDevice("liveToolsPingDeviceResource", LiveToolsPingDeviceArgs.builder()
.parameters(LiveToolsPingDeviceParametersArgs.builder()
.callback(LiveToolsPingDeviceParametersCallbackArgs.builder()
.httpServer(LiveToolsPingDeviceParametersCallbackHttpServerArgs.builder()
.id("string")
.build())
.payloadTemplate(LiveToolsPingDeviceParametersCallbackPayloadTemplateArgs.builder()
.id("string")
.build())
.sharedSecret("string")
.url("string")
.build())
.count(0)
.build())
.serial("string")
.build());
live_tools_ping_device_resource = meraki.devices.LiveToolsPingDevice("liveToolsPingDeviceResource",
parameters={
"callback": {
"http_server": {
"id": "string",
},
"payload_template": {
"id": "string",
},
"shared_secret": "string",
"url": "string",
},
"count": 0,
},
serial="string")
const liveToolsPingDeviceResource = new meraki.devices.LiveToolsPingDevice("liveToolsPingDeviceResource", {
parameters: {
callback: {
httpServer: {
id: "string",
},
payloadTemplate: {
id: "string",
},
sharedSecret: "string",
url: "string",
},
count: 0,
},
serial: "string",
});
type: meraki:devices:LiveToolsPingDevice
properties:
parameters:
callback:
httpServer:
id: string
payloadTemplate:
id: string
sharedSecret: string
url: string
count: 0
serial: string
LiveToolsPingDevice 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 LiveToolsPingDevice resource accepts the following input properties:
- Parameters
Live
Tools Ping Device Parameters - Serial string
- serial path parameter.
- Parameters
Live
Tools Ping Device Parameters Args - Serial string
- serial path parameter.
- parameters
Live
Tools Ping Device Parameters - serial String
- serial path parameter.
- parameters
Live
Tools Ping Device Parameters - serial string
- serial path parameter.
- parameters
Live
Tools Ping Device Parameters Args - serial str
- serial path parameter.
- parameters Property Map
- serial String
- serial path parameter.
Outputs
All input properties are implicitly available as output properties. Additionally, the LiveToolsPingDevice resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Item
Live
Tools Ping Device Item
- Id string
- The provider-assigned unique ID for this managed resource.
- Item
Live
Tools Ping Device Item
- id String
- The provider-assigned unique ID for this managed resource.
- item
Live
Tools Ping Device Item
- id string
- The provider-assigned unique ID for this managed resource.
- item
Live
Tools Ping Device Item
- id str
- The provider-assigned unique ID for this managed resource.
- item
Live
Tools Ping Device Item
- id String
- The provider-assigned unique ID for this managed resource.
- item Property Map
Look up Existing LiveToolsPingDevice Resource
Get an existing LiveToolsPingDevice 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?: LiveToolsPingDeviceState, opts?: CustomResourceOptions): LiveToolsPingDevice
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
item: Optional[LiveToolsPingDeviceItemArgs] = None,
parameters: Optional[LiveToolsPingDeviceParametersArgs] = None,
serial: Optional[str] = None) -> LiveToolsPingDevice
func GetLiveToolsPingDevice(ctx *Context, name string, id IDInput, state *LiveToolsPingDeviceState, opts ...ResourceOption) (*LiveToolsPingDevice, error)
public static LiveToolsPingDevice Get(string name, Input<string> id, LiveToolsPingDeviceState? state, CustomResourceOptions? opts = null)
public static LiveToolsPingDevice get(String name, Output<String> id, LiveToolsPingDeviceState 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.
- Item
Live
Tools Ping Device Item - Parameters
Live
Tools Ping Device Parameters - Serial string
- serial path parameter.
- Item
Live
Tools Ping Device Item Args - Parameters
Live
Tools Ping Device Parameters Args - Serial string
- serial path parameter.
- item
Live
Tools Ping Device Item - parameters
Live
Tools Ping Device Parameters - serial String
- serial path parameter.
- item
Live
Tools Ping Device Item - parameters
Live
Tools Ping Device Parameters - serial string
- serial path parameter.
- item
Live
Tools Ping Device Item Args - parameters
Live
Tools Ping Device Parameters Args - serial str
- serial path parameter.
- item Property Map
- parameters Property Map
- serial String
- serial path parameter.
Supporting Types
LiveToolsPingDeviceItem, LiveToolsPingDeviceItemArgs
- Callback
Live
Tools Ping Device Item Callback - Information for callback used to send back results
- Ping
Id string - Id to check the status of your ping request.
- Request
Live
Tools Ping Device Item Request - Ping request parameters
- Status string
- Status of the ping request.
- Url string
- GET this url to check the status of your ping request.
- Callback
Live
Tools Ping Device Item Callback - Information for callback used to send back results
- Ping
Id string - Id to check the status of your ping request.
- Request
Live
Tools Ping Device Item Request - Ping request parameters
- Status string
- Status of the ping request.
- Url string
- GET this url to check the status of your ping request.
- callback
Live
Tools Ping Device Item Callback - Information for callback used to send back results
- ping
Id String - Id to check the status of your ping request.
- request
Live
Tools Ping Device Item Request - Ping request parameters
- status String
- Status of the ping request.
- url String
- GET this url to check the status of your ping request.
- callback
Live
Tools Ping Device Item Callback - Information for callback used to send back results
- ping
Id string - Id to check the status of your ping request.
- request
Live
Tools Ping Device Item Request - Ping request parameters
- status string
- Status of the ping request.
- url string
- GET this url to check the status of your ping request.
- callback
Live
Tools Ping Device Item Callback - Information for callback used to send back results
- ping_
id str - Id to check the status of your ping request.
- request
Live
Tools Ping Device Item Request - Ping request parameters
- status str
- Status of the ping request.
- url str
- GET this url to check the status of your ping request.
- callback Property Map
- Information for callback used to send back results
- ping
Id String - Id to check the status of your ping request.
- request Property Map
- Ping request parameters
- status String
- Status of the ping request.
- url String
- GET this url to check the status of your ping request.
LiveToolsPingDeviceItemCallback, LiveToolsPingDeviceItemCallbackArgs
- Id string
- The ID of the callback. To check the status of the callback, use this ID in a request to /webhooks/callbacks/statuses/{id}
- Status string
- The status of the callback
- Url string
- The callback URL for the webhook target. This was either provided in the original request or comes from a configured webhook receiver
- Id string
- The ID of the callback. To check the status of the callback, use this ID in a request to /webhooks/callbacks/statuses/{id}
- Status string
- The status of the callback
- Url string
- The callback URL for the webhook target. This was either provided in the original request or comes from a configured webhook receiver
- id String
- The ID of the callback. To check the status of the callback, use this ID in a request to /webhooks/callbacks/statuses/{id}
- status String
- The status of the callback
- url String
- The callback URL for the webhook target. This was either provided in the original request or comes from a configured webhook receiver
- id string
- The ID of the callback. To check the status of the callback, use this ID in a request to /webhooks/callbacks/statuses/{id}
- status string
- The status of the callback
- url string
- The callback URL for the webhook target. This was either provided in the original request or comes from a configured webhook receiver
- id str
- The ID of the callback. To check the status of the callback, use this ID in a request to /webhooks/callbacks/statuses/{id}
- status str
- The status of the callback
- url str
- The callback URL for the webhook target. This was either provided in the original request or comes from a configured webhook receiver
- id String
- The ID of the callback. To check the status of the callback, use this ID in a request to /webhooks/callbacks/statuses/{id}
- status String
- The status of the callback
- url String
- The callback URL for the webhook target. This was either provided in the original request or comes from a configured webhook receiver
LiveToolsPingDeviceItemRequest, LiveToolsPingDeviceItemRequestArgs
LiveToolsPingDeviceParameters, LiveToolsPingDeviceParametersArgs
- Callback
Live
Tools Ping Device Parameters Callback - Details for the callback. Please include either an httpServerId OR url and sharedSecret
- Count int
- Count parameter to pass to ping. [1..5], default 5
- Callback
Live
Tools Ping Device Parameters Callback - Details for the callback. Please include either an httpServerId OR url and sharedSecret
- Count int
- Count parameter to pass to ping. [1..5], default 5
- callback
Live
Tools Ping Device Parameters Callback - Details for the callback. Please include either an httpServerId OR url and sharedSecret
- count Integer
- Count parameter to pass to ping. [1..5], default 5
- callback
Live
Tools Ping Device Parameters Callback - Details for the callback. Please include either an httpServerId OR url and sharedSecret
- count number
- Count parameter to pass to ping. [1..5], default 5
- callback
Live
Tools Ping Device Parameters Callback - Details for the callback. Please include either an httpServerId OR url and sharedSecret
- count int
- Count parameter to pass to ping. [1..5], default 5
- callback Property Map
- Details for the callback. Please include either an httpServerId OR url and sharedSecret
- count Number
- Count parameter to pass to ping. [1..5], default 5
LiveToolsPingDeviceParametersCallback, LiveToolsPingDeviceParametersCallbackArgs
- Http
Server LiveTools Ping Device Parameters Callback Http Server - The webhook receiver used for the callback webhook.
- Payload
Template LiveTools Ping Device Parameters Callback Payload Template - The payload template of the webhook used for the callback
- string
- A shared secret that will be included in the requests sent to the callback URL. It can be used to verify that the request was sent by Meraki. If using this field, please also specify an url.
- Url string
- The callback URL for the webhook target. If using this field, please also specify a sharedSecret.
- Http
Server LiveTools Ping Device Parameters Callback Http Server - The webhook receiver used for the callback webhook.
- Payload
Template LiveTools Ping Device Parameters Callback Payload Template - The payload template of the webhook used for the callback
- string
- A shared secret that will be included in the requests sent to the callback URL. It can be used to verify that the request was sent by Meraki. If using this field, please also specify an url.
- Url string
- The callback URL for the webhook target. If using this field, please also specify a sharedSecret.
- http
Server LiveTools Ping Device Parameters Callback Http Server - The webhook receiver used for the callback webhook.
- payload
Template LiveTools Ping Device Parameters Callback Payload Template - The payload template of the webhook used for the callback
- String
- A shared secret that will be included in the requests sent to the callback URL. It can be used to verify that the request was sent by Meraki. If using this field, please also specify an url.
- url String
- The callback URL for the webhook target. If using this field, please also specify a sharedSecret.
- http
Server LiveTools Ping Device Parameters Callback Http Server - The webhook receiver used for the callback webhook.
- payload
Template LiveTools Ping Device Parameters Callback Payload Template - The payload template of the webhook used for the callback
- string
- A shared secret that will be included in the requests sent to the callback URL. It can be used to verify that the request was sent by Meraki. If using this field, please also specify an url.
- url string
- The callback URL for the webhook target. If using this field, please also specify a sharedSecret.
- http_
server LiveTools Ping Device Parameters Callback Http Server - The webhook receiver used for the callback webhook.
- payload_
template LiveTools Ping Device Parameters Callback Payload Template - The payload template of the webhook used for the callback
- str
- A shared secret that will be included in the requests sent to the callback URL. It can be used to verify that the request was sent by Meraki. If using this field, please also specify an url.
- url str
- The callback URL for the webhook target. If using this field, please also specify a sharedSecret.
- http
Server Property Map - The webhook receiver used for the callback webhook.
- payload
Template Property Map - The payload template of the webhook used for the callback
- String
- A shared secret that will be included in the requests sent to the callback URL. It can be used to verify that the request was sent by Meraki. If using this field, please also specify an url.
- url String
- The callback URL for the webhook target. If using this field, please also specify a sharedSecret.
LiveToolsPingDeviceParametersCallbackHttpServer, LiveToolsPingDeviceParametersCallbackHttpServerArgs
- Id string
- The webhook receiver ID that will receive information. If specifying this, please leave the url and sharedSecret fields blank.
- Id string
- The webhook receiver ID that will receive information. If specifying this, please leave the url and sharedSecret fields blank.
- id String
- The webhook receiver ID that will receive information. If specifying this, please leave the url and sharedSecret fields blank.
- id string
- The webhook receiver ID that will receive information. If specifying this, please leave the url and sharedSecret fields blank.
- id str
- The webhook receiver ID that will receive information. If specifying this, please leave the url and sharedSecret fields blank.
- id String
- The webhook receiver ID that will receive information. If specifying this, please leave the url and sharedSecret fields blank.
LiveToolsPingDeviceParametersCallbackPayloadTemplate, LiveToolsPingDeviceParametersCallbackPayloadTemplateArgs
- Id string
- The ID of the payload template. Defaults to 'wpt_00005' for the Callback (included) template.
- Id string
- The ID of the payload template. Defaults to 'wpt_00005' for the Callback (included) template.
- id String
- The ID of the payload template. Defaults to 'wpt_00005' for the Callback (included) template.
- id string
- The ID of the payload template. Defaults to 'wpt_00005' for the Callback (included) template.
- id str
- The ID of the payload template. Defaults to 'wpt_00005' for the Callback (included) template.
- id String
- The ID of the payload template. Defaults to 'wpt_00005' for the Callback (included) template.
Import
$ pulumi import meraki:devices/liveToolsPingDevice:LiveToolsPingDevice example "id,serial"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- meraki pulumi/pulumi-meraki
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
meraki
Terraform Provider.