Cisco Meraki v0.2.4 published on Friday, Jun 14, 2024 by Pulumi
meraki.networks.getAlertsHistory
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as meraki from "@pulumi/meraki";
const example = meraki.networks.getAlertsHistory({
endingBefore: "string",
networkId: "string",
perPage: 1,
startingAfter: "string",
});
export const merakiNetworksAlertsHistoryExample = example.then(example => example.items);
import pulumi
import pulumi_meraki as meraki
example = meraki.networks.get_alerts_history(ending_before="string",
network_id="string",
per_page=1,
starting_after="string")
pulumi.export("merakiNetworksAlertsHistoryExample", example.items)
package main
import (
"github.com/pulumi/pulumi-meraki/sdk/go/meraki/networks"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := networks.GetAlertsHistory(ctx, &networks.GetAlertsHistoryArgs{
EndingBefore: pulumi.StringRef("string"),
NetworkId: "string",
PerPage: pulumi.IntRef(1),
StartingAfter: pulumi.StringRef("string"),
}, nil)
if err != nil {
return err
}
ctx.Export("merakiNetworksAlertsHistoryExample", example.Items)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Meraki = Pulumi.Meraki;
return await Deployment.RunAsync(() =>
{
var example = Meraki.Networks.GetAlertsHistory.Invoke(new()
{
EndingBefore = "string",
NetworkId = "string",
PerPage = 1,
StartingAfter = "string",
});
return new Dictionary<string, object?>
{
["merakiNetworksAlertsHistoryExample"] = example.Apply(getAlertsHistoryResult => getAlertsHistoryResult.Items),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.meraki.networks.NetworksFunctions;
import com.pulumi.meraki.networks.inputs.GetAlertsHistoryArgs;
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) {
final var example = NetworksFunctions.getAlertsHistory(GetAlertsHistoryArgs.builder()
.endingBefore("string")
.networkId("string")
.perPage(1)
.startingAfter("string")
.build());
ctx.export("merakiNetworksAlertsHistoryExample", example.applyValue(getAlertsHistoryResult -> getAlertsHistoryResult.items()));
}
}
variables:
example:
fn::invoke:
Function: meraki:networks:getAlertsHistory
Arguments:
endingBefore: string
networkId: string
perPage: 1
startingAfter: string
outputs:
merakiNetworksAlertsHistoryExample: ${example.items}
Using getAlertsHistory
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getAlertsHistory(args: GetAlertsHistoryArgs, opts?: InvokeOptions): Promise<GetAlertsHistoryResult>
function getAlertsHistoryOutput(args: GetAlertsHistoryOutputArgs, opts?: InvokeOptions): Output<GetAlertsHistoryResult>
def get_alerts_history(ending_before: Optional[str] = None,
network_id: Optional[str] = None,
per_page: Optional[int] = None,
starting_after: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAlertsHistoryResult
def get_alerts_history_output(ending_before: Optional[pulumi.Input[str]] = None,
network_id: Optional[pulumi.Input[str]] = None,
per_page: Optional[pulumi.Input[int]] = None,
starting_after: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAlertsHistoryResult]
func GetAlertsHistory(ctx *Context, args *GetAlertsHistoryArgs, opts ...InvokeOption) (*GetAlertsHistoryResult, error)
func GetAlertsHistoryOutput(ctx *Context, args *GetAlertsHistoryOutputArgs, opts ...InvokeOption) GetAlertsHistoryResultOutput
> Note: This function is named GetAlertsHistory
in the Go SDK.
public static class GetAlertsHistory
{
public static Task<GetAlertsHistoryResult> InvokeAsync(GetAlertsHistoryArgs args, InvokeOptions? opts = null)
public static Output<GetAlertsHistoryResult> Invoke(GetAlertsHistoryInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAlertsHistoryResult> getAlertsHistory(GetAlertsHistoryArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: meraki:networks/getAlertsHistory:getAlertsHistory
arguments:
# arguments dictionary
The following arguments are supported:
- Network
Id string - networkId path parameter. Network ID
- Ending
Before string - endingBefore query parameter. A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
- Per
Page int - perPage query parameter. The number of entries per page returned. Acceptable range is 3 1000. Default is 100.
- Starting
After string - startingAfter query parameter. A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
- Network
Id string - networkId path parameter. Network ID
- Ending
Before string - endingBefore query parameter. A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
- Per
Page int - perPage query parameter. The number of entries per page returned. Acceptable range is 3 1000. Default is 100.
- Starting
After string - startingAfter query parameter. A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
- network
Id String - networkId path parameter. Network ID
- ending
Before String - endingBefore query parameter. A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
- per
Page Integer - perPage query parameter. The number of entries per page returned. Acceptable range is 3 1000. Default is 100.
- starting
After String - startingAfter query parameter. A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
- network
Id string - networkId path parameter. Network ID
- ending
Before string - endingBefore query parameter. A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
- per
Page number - perPage query parameter. The number of entries per page returned. Acceptable range is 3 1000. Default is 100.
- starting
After string - startingAfter query parameter. A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
- network_
id str - networkId path parameter. Network ID
- ending_
before str - endingBefore query parameter. A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
- per_
page int - perPage query parameter. The number of entries per page returned. Acceptable range is 3 1000. Default is 100.
- starting_
after str - startingAfter query parameter. A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
- network
Id String - networkId path parameter. Network ID
- ending
Before String - endingBefore query parameter. A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
- per
Page Number - perPage query parameter. The number of entries per page returned. Acceptable range is 3 1000. Default is 100.
- starting
After String - startingAfter query parameter. A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
getAlertsHistory Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
List<Get
Alerts History Item> - Array of ResponseNetworksGetNetworkAlertsHistory
- Network
Id string - networkId path parameter. Network ID
- Ending
Before string - endingBefore query parameter. A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
- Per
Page int - perPage query parameter. The number of entries per page returned. Acceptable range is 3 1000. Default is 100.
- Starting
After string - startingAfter query parameter. A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
[]Get
Alerts History Item - Array of ResponseNetworksGetNetworkAlertsHistory
- Network
Id string - networkId path parameter. Network ID
- Ending
Before string - endingBefore query parameter. A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
- Per
Page int - perPage query parameter. The number of entries per page returned. Acceptable range is 3 1000. Default is 100.
- Starting
After string - startingAfter query parameter. A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
- id String
- The provider-assigned unique ID for this managed resource.
- items
List<Get
Alerts History Item> - Array of ResponseNetworksGetNetworkAlertsHistory
- network
Id String - networkId path parameter. Network ID
- ending
Before String - endingBefore query parameter. A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
- per
Page Integer - perPage query parameter. The number of entries per page returned. Acceptable range is 3 1000. Default is 100.
- starting
After String - startingAfter query parameter. A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
- id string
- The provider-assigned unique ID for this managed resource.
- items
Get
Alerts History Item[] - Array of ResponseNetworksGetNetworkAlertsHistory
- network
Id string - networkId path parameter. Network ID
- ending
Before string - endingBefore query parameter. A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
- per
Page number - perPage query parameter. The number of entries per page returned. Acceptable range is 3 1000. Default is 100.
- starting
After string - startingAfter query parameter. A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
- id str
- The provider-assigned unique ID for this managed resource.
- items
Sequence[Get
Alerts History Item] - Array of ResponseNetworksGetNetworkAlertsHistory
- network_
id str - networkId path parameter. Network ID
- ending_
before str - endingBefore query parameter. A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
- per_
page int - perPage query parameter. The number of entries per page returned. Acceptable range is 3 1000. Default is 100.
- starting_
after str - startingAfter query parameter. A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
- id String
- The provider-assigned unique ID for this managed resource.
- items List<Property Map>
- Array of ResponseNetworksGetNetworkAlertsHistory
- network
Id String - networkId path parameter. Network ID
- ending
Before String - endingBefore query parameter. A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
- per
Page Number - perPage query parameter. The number of entries per page returned. Acceptable range is 3 1000. Default is 100.
- starting
After String - startingAfter query parameter. A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
Supporting Types
GetAlertsHistoryItem
- Alert
Data string - relevant data about the event that caused the alert
- Alert
Type string - user friendly alert type
- Alert
Type stringId - type of alert
- Destinations
Get
Alerts History Item Destinations - the destinations this alert is configured to be delivered to
- Device
Get
Alerts History Item Device - info related to the device that caused the alert
- Occurred
At string - time when the event occurred
- Alert
Data string - relevant data about the event that caused the alert
- Alert
Type string - user friendly alert type
- Alert
Type stringId - type of alert
- Destinations
Get
Alerts History Item Destinations - the destinations this alert is configured to be delivered to
- Device
Get
Alerts History Item Device - info related to the device that caused the alert
- Occurred
At string - time when the event occurred
- alert
Data String - relevant data about the event that caused the alert
- alert
Type String - user friendly alert type
- alert
Type StringId - type of alert
- destinations
Get
Alerts History Item Destinations - the destinations this alert is configured to be delivered to
- device
Get
Alerts History Item Device - info related to the device that caused the alert
- occurred
At String - time when the event occurred
- alert
Data string - relevant data about the event that caused the alert
- alert
Type string - user friendly alert type
- alert
Type stringId - type of alert
- destinations
Get
Alerts History Item Destinations - the destinations this alert is configured to be delivered to
- device
Get
Alerts History Item Device - info related to the device that caused the alert
- occurred
At string - time when the event occurred
- alert_
data str - relevant data about the event that caused the alert
- alert_
type str - user friendly alert type
- alert_
type_ strid - type of alert
- destinations
Get
Alerts History Item Destinations - the destinations this alert is configured to be delivered to
- device
Get
Alerts History Item Device - info related to the device that caused the alert
- occurred_
at str - time when the event occurred
- alert
Data String - relevant data about the event that caused the alert
- alert
Type String - user friendly alert type
- alert
Type StringId - type of alert
- destinations Property Map
- the destinations this alert is configured to be delivered to
- device Property Map
- info related to the device that caused the alert
- occurred
At String - time when the event occurred
GetAlertsHistoryItemDestinations
- Email
Get
Alerts History Item Destinations Email - email destinations for this alert
- Push
Get
Alerts History Item Destinations Push - push destinations for this alert
- Sms
Get
Alerts History Item Destinations Sms - sms destinations for this alert
- Webhook
Get
Alerts History Item Destinations Webhook - webhook destinations for this alert
- Email
Get
Alerts History Item Destinations Email - email destinations for this alert
- Push
Get
Alerts History Item Destinations Push - push destinations for this alert
- Sms
Get
Alerts History Item Destinations Sms - sms destinations for this alert
- Webhook
Get
Alerts History Item Destinations Webhook - webhook destinations for this alert
- email
Get
Alerts History Item Destinations Email - email destinations for this alert
- push
Get
Alerts History Item Destinations Push - push destinations for this alert
- sms
Get
Alerts History Item Destinations Sms - sms destinations for this alert
- webhook
Get
Alerts History Item Destinations Webhook - webhook destinations for this alert
- email
Get
Alerts History Item Destinations Email - email destinations for this alert
- push
Get
Alerts History Item Destinations Push - push destinations for this alert
- sms
Get
Alerts History Item Destinations Sms - sms destinations for this alert
- webhook
Get
Alerts History Item Destinations Webhook - webhook destinations for this alert
- email
Get
Alerts History Item Destinations Email - email destinations for this alert
- push
Get
Alerts History Item Destinations Push - push destinations for this alert
- sms
Get
Alerts History Item Destinations Sms - sms destinations for this alert
- webhook
Get
Alerts History Item Destinations Webhook - webhook destinations for this alert
- email Property Map
- email destinations for this alert
- push Property Map
- push destinations for this alert
- sms Property Map
- sms destinations for this alert
- webhook Property Map
- webhook destinations for this alert
GetAlertsHistoryItemDestinationsEmail
- Sent
At string - time when the alert was sent to the user(s) for this channel
- Sent
At string - time when the alert was sent to the user(s) for this channel
- sent
At String - time when the alert was sent to the user(s) for this channel
- sent
At string - time when the alert was sent to the user(s) for this channel
- sent_
at str - time when the alert was sent to the user(s) for this channel
- sent
At String - time when the alert was sent to the user(s) for this channel
GetAlertsHistoryItemDestinationsPush
- Sent
At string - time when the alert was sent to the user(s) for this channel
- Sent
At string - time when the alert was sent to the user(s) for this channel
- sent
At String - time when the alert was sent to the user(s) for this channel
- sent
At string - time when the alert was sent to the user(s) for this channel
- sent_
at str - time when the alert was sent to the user(s) for this channel
- sent
At String - time when the alert was sent to the user(s) for this channel
GetAlertsHistoryItemDestinationsSms
- Sent
At string - time when the alert was sent to the user(s) for this channel
- Sent
At string - time when the alert was sent to the user(s) for this channel
- sent
At String - time when the alert was sent to the user(s) for this channel
- sent
At string - time when the alert was sent to the user(s) for this channel
- sent_
at str - time when the alert was sent to the user(s) for this channel
- sent
At String - time when the alert was sent to the user(s) for this channel
GetAlertsHistoryItemDestinationsWebhook
- Sent
At string - time when the alert was sent to the user(s) for this channel
- Sent
At string - time when the alert was sent to the user(s) for this channel
- sent
At String - time when the alert was sent to the user(s) for this channel
- sent
At string - time when the alert was sent to the user(s) for this channel
- sent_
at str - time when the alert was sent to the user(s) for this channel
- sent
At String - time when the alert was sent to the user(s) for this channel
GetAlertsHistoryItemDevice
- Serial string
- device serial
- Serial string
- device serial
- serial String
- device serial
- serial string
- device serial
- serial str
- device serial
- serial String
- device serial
Package Details
- Repository
- meraki pulumi/pulumi-meraki
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
meraki
Terraform Provider.