Cisco Meraki v0.3.2 published on Tuesday, Sep 24, 2024 by Pulumi
meraki.organizations.getWebhooksLogs
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as meraki from "@pulumi/meraki";
const example = meraki.organizations.getWebhooksLogs({
endingBefore: "string",
organizationId: "string",
perPage: 1,
startingAfter: "string",
t0: "string",
t1: "string",
timespan: 1,
url: "string",
});
export const merakiOrganizationsWebhooksLogsExample = example.then(example => example.items);
import pulumi
import pulumi_meraki as meraki
example = meraki.organizations.get_webhooks_logs(ending_before="string",
organization_id="string",
per_page=1,
starting_after="string",
t0="string",
t1="string",
timespan=1,
url="string")
pulumi.export("merakiOrganizationsWebhooksLogsExample", example.items)
package main
import (
"github.com/pulumi/pulumi-meraki/sdk/go/meraki/organizations"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := organizations.GetWebhooksLogs(ctx, &organizations.GetWebhooksLogsArgs{
EndingBefore: pulumi.StringRef("string"),
OrganizationId: "string",
PerPage: pulumi.IntRef(1),
StartingAfter: pulumi.StringRef("string"),
T0: pulumi.StringRef("string"),
T1: pulumi.StringRef("string"),
Timespan: pulumi.Float64Ref(1),
Url: pulumi.StringRef("string"),
}, nil)
if err != nil {
return err
}
ctx.Export("merakiOrganizationsWebhooksLogsExample", example.Items)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Meraki = Pulumi.Meraki;
return await Deployment.RunAsync(() =>
{
var example = Meraki.Organizations.GetWebhooksLogs.Invoke(new()
{
EndingBefore = "string",
OrganizationId = "string",
PerPage = 1,
StartingAfter = "string",
T0 = "string",
T1 = "string",
Timespan = 1,
Url = "string",
});
return new Dictionary<string, object?>
{
["merakiOrganizationsWebhooksLogsExample"] = example.Apply(getWebhooksLogsResult => getWebhooksLogsResult.Items),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.meraki.organizations.OrganizationsFunctions;
import com.pulumi.meraki.organizations.inputs.GetWebhooksLogsArgs;
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 = OrganizationsFunctions.getWebhooksLogs(GetWebhooksLogsArgs.builder()
.endingBefore("string")
.organizationId("string")
.perPage(1)
.startingAfter("string")
.t0("string")
.t1("string")
.timespan(1)
.url("string")
.build());
ctx.export("merakiOrganizationsWebhooksLogsExample", example.applyValue(getWebhooksLogsResult -> getWebhooksLogsResult.items()));
}
}
variables:
example:
fn::invoke:
Function: meraki:organizations:getWebhooksLogs
Arguments:
endingBefore: string
organizationId: string
perPage: 1
startingAfter: string
t0: string
t1: string
timespan: 1
url: string
outputs:
merakiOrganizationsWebhooksLogsExample: ${example.items}
Using getWebhooksLogs
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 getWebhooksLogs(args: GetWebhooksLogsArgs, opts?: InvokeOptions): Promise<GetWebhooksLogsResult>
function getWebhooksLogsOutput(args: GetWebhooksLogsOutputArgs, opts?: InvokeOptions): Output<GetWebhooksLogsResult>
def get_webhooks_logs(ending_before: Optional[str] = None,
organization_id: Optional[str] = None,
per_page: Optional[int] = None,
starting_after: Optional[str] = None,
t0: Optional[str] = None,
t1: Optional[str] = None,
timespan: Optional[float] = None,
url: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetWebhooksLogsResult
def get_webhooks_logs_output(ending_before: Optional[pulumi.Input[str]] = None,
organization_id: Optional[pulumi.Input[str]] = None,
per_page: Optional[pulumi.Input[int]] = None,
starting_after: Optional[pulumi.Input[str]] = None,
t0: Optional[pulumi.Input[str]] = None,
t1: Optional[pulumi.Input[str]] = None,
timespan: Optional[pulumi.Input[float]] = None,
url: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetWebhooksLogsResult]
func GetWebhooksLogs(ctx *Context, args *GetWebhooksLogsArgs, opts ...InvokeOption) (*GetWebhooksLogsResult, error)
func GetWebhooksLogsOutput(ctx *Context, args *GetWebhooksLogsOutputArgs, opts ...InvokeOption) GetWebhooksLogsResultOutput
> Note: This function is named GetWebhooksLogs
in the Go SDK.
public static class GetWebhooksLogs
{
public static Task<GetWebhooksLogsResult> InvokeAsync(GetWebhooksLogsArgs args, InvokeOptions? opts = null)
public static Output<GetWebhooksLogsResult> Invoke(GetWebhooksLogsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetWebhooksLogsResult> getWebhooksLogs(GetWebhooksLogsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: meraki:organizations/getWebhooksLogs:getWebhooksLogs
arguments:
# arguments dictionary
The following arguments are supported:
- Organization
Id string - organizationId path parameter. Organization 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 50.
- 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.
- T0 string
- t0 query parameter. The beginning of the timespan for the data. The maximum lookback period is 90 days from today.
- T1 string
- t1 query parameter. The end of the timespan for the data. t1 can be a maximum of 31 days after t0.
- Timespan double
- timespan query parameter. The timespan for which the information will be fetched. If specifying timespan, do not specify parameters t0 and t1. The value must be in seconds and be less than or equal to 31 days. The default is 1 day.
- Url string
- url query parameter. The URL the webhook was sent to
- Organization
Id string - organizationId path parameter. Organization 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 50.
- 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.
- T0 string
- t0 query parameter. The beginning of the timespan for the data. The maximum lookback period is 90 days from today.
- T1 string
- t1 query parameter. The end of the timespan for the data. t1 can be a maximum of 31 days after t0.
- Timespan float64
- timespan query parameter. The timespan for which the information will be fetched. If specifying timespan, do not specify parameters t0 and t1. The value must be in seconds and be less than or equal to 31 days. The default is 1 day.
- Url string
- url query parameter. The URL the webhook was sent to
- organization
Id String - organizationId path parameter. Organization 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 50.
- 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.
- t0 String
- t0 query parameter. The beginning of the timespan for the data. The maximum lookback period is 90 days from today.
- t1 String
- t1 query parameter. The end of the timespan for the data. t1 can be a maximum of 31 days after t0.
- timespan Double
- timespan query parameter. The timespan for which the information will be fetched. If specifying timespan, do not specify parameters t0 and t1. The value must be in seconds and be less than or equal to 31 days. The default is 1 day.
- url String
- url query parameter. The URL the webhook was sent to
- organization
Id string - organizationId path parameter. Organization 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 50.
- 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.
- t0 string
- t0 query parameter. The beginning of the timespan for the data. The maximum lookback period is 90 days from today.
- t1 string
- t1 query parameter. The end of the timespan for the data. t1 can be a maximum of 31 days after t0.
- timespan number
- timespan query parameter. The timespan for which the information will be fetched. If specifying timespan, do not specify parameters t0 and t1. The value must be in seconds and be less than or equal to 31 days. The default is 1 day.
- url string
- url query parameter. The URL the webhook was sent to
- organization_
id str - organizationId path parameter. Organization 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 50.
- 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.
- t0 str
- t0 query parameter. The beginning of the timespan for the data. The maximum lookback period is 90 days from today.
- t1 str
- t1 query parameter. The end of the timespan for the data. t1 can be a maximum of 31 days after t0.
- timespan float
- timespan query parameter. The timespan for which the information will be fetched. If specifying timespan, do not specify parameters t0 and t1. The value must be in seconds and be less than or equal to 31 days. The default is 1 day.
- url str
- url query parameter. The URL the webhook was sent to
- organization
Id String - organizationId path parameter. Organization 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 50.
- 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.
- t0 String
- t0 query parameter. The beginning of the timespan for the data. The maximum lookback period is 90 days from today.
- t1 String
- t1 query parameter. The end of the timespan for the data. t1 can be a maximum of 31 days after t0.
- timespan Number
- timespan query parameter. The timespan for which the information will be fetched. If specifying timespan, do not specify parameters t0 and t1. The value must be in seconds and be less than or equal to 31 days. The default is 1 day.
- url String
- url query parameter. The URL the webhook was sent to
getWebhooksLogs Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
List<Get
Webhooks Logs Item> - Array of ResponseOrganizationsGetOrganizationWebhooksLogs
- Organization
Id string - organizationId path parameter. Organization 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 50.
- 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.
- T0 string
- t0 query parameter. The beginning of the timespan for the data. The maximum lookback period is 90 days from today.
- T1 string
- t1 query parameter. The end of the timespan for the data. t1 can be a maximum of 31 days after t0.
- Timespan double
- timespan query parameter. The timespan for which the information will be fetched. If specifying timespan, do not specify parameters t0 and t1. The value must be in seconds and be less than or equal to 31 days. The default is 1 day.
- Url string
- url query parameter. The URL the webhook was sent to
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
[]Get
Webhooks Logs Item - Array of ResponseOrganizationsGetOrganizationWebhooksLogs
- Organization
Id string - organizationId path parameter. Organization 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 50.
- 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.
- T0 string
- t0 query parameter. The beginning of the timespan for the data. The maximum lookback period is 90 days from today.
- T1 string
- t1 query parameter. The end of the timespan for the data. t1 can be a maximum of 31 days after t0.
- Timespan float64
- timespan query parameter. The timespan for which the information will be fetched. If specifying timespan, do not specify parameters t0 and t1. The value must be in seconds and be less than or equal to 31 days. The default is 1 day.
- Url string
- url query parameter. The URL the webhook was sent to
- id String
- The provider-assigned unique ID for this managed resource.
- items
List<Get
Webhooks Logs Item> - Array of ResponseOrganizationsGetOrganizationWebhooksLogs
- organization
Id String - organizationId path parameter. Organization 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 50.
- 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.
- t0 String
- t0 query parameter. The beginning of the timespan for the data. The maximum lookback period is 90 days from today.
- t1 String
- t1 query parameter. The end of the timespan for the data. t1 can be a maximum of 31 days after t0.
- timespan Double
- timespan query parameter. The timespan for which the information will be fetched. If specifying timespan, do not specify parameters t0 and t1. The value must be in seconds and be less than or equal to 31 days. The default is 1 day.
- url String
- url query parameter. The URL the webhook was sent to
- id string
- The provider-assigned unique ID for this managed resource.
- items
Get
Webhooks Logs Item[] - Array of ResponseOrganizationsGetOrganizationWebhooksLogs
- organization
Id string - organizationId path parameter. Organization 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 50.
- 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.
- t0 string
- t0 query parameter. The beginning of the timespan for the data. The maximum lookback period is 90 days from today.
- t1 string
- t1 query parameter. The end of the timespan for the data. t1 can be a maximum of 31 days after t0.
- timespan number
- timespan query parameter. The timespan for which the information will be fetched. If specifying timespan, do not specify parameters t0 and t1. The value must be in seconds and be less than or equal to 31 days. The default is 1 day.
- url string
- url query parameter. The URL the webhook was sent to
- id str
- The provider-assigned unique ID for this managed resource.
- items
Sequence[Get
Webhooks Logs Item] - Array of ResponseOrganizationsGetOrganizationWebhooksLogs
- organization_
id str - organizationId path parameter. Organization 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 50.
- 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.
- t0 str
- t0 query parameter. The beginning of the timespan for the data. The maximum lookback period is 90 days from today.
- t1 str
- t1 query parameter. The end of the timespan for the data. t1 can be a maximum of 31 days after t0.
- timespan float
- timespan query parameter. The timespan for which the information will be fetched. If specifying timespan, do not specify parameters t0 and t1. The value must be in seconds and be less than or equal to 31 days. The default is 1 day.
- url str
- url query parameter. The URL the webhook was sent to
- id String
- The provider-assigned unique ID for this managed resource.
- items List<Property Map>
- Array of ResponseOrganizationsGetOrganizationWebhooksLogs
- organization
Id String - organizationId path parameter. Organization 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 50.
- 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.
- t0 String
- t0 query parameter. The beginning of the timespan for the data. The maximum lookback period is 90 days from today.
- t1 String
- t1 query parameter. The end of the timespan for the data. t1 can be a maximum of 31 days after t0.
- timespan Number
- timespan query parameter. The timespan for which the information will be fetched. If specifying timespan, do not specify parameters t0 and t1. The value must be in seconds and be less than or equal to 31 days. The default is 1 day.
- url String
- url query parameter. The URL the webhook was sent to
Supporting Types
GetWebhooksLogsItem
- Alert
Type string - Type of alert that the webhook is delivering
- Logged
At string - When the webhook log was created, in ISO8601 format
- Network
Id string - Network ID for the webhook log
- Organization
Id string - ID for the webhook log's organization
- Response
Code int - Response code from the webhook
- Response
Duration int - Duration of the response, in milliseconds
- Sent
At string - When the webhook was sent, in ISO8601 format
- Url string
- URL where the webhook was sent
- Alert
Type string - Type of alert that the webhook is delivering
- Logged
At string - When the webhook log was created, in ISO8601 format
- Network
Id string - Network ID for the webhook log
- Organization
Id string - ID for the webhook log's organization
- Response
Code int - Response code from the webhook
- Response
Duration int - Duration of the response, in milliseconds
- Sent
At string - When the webhook was sent, in ISO8601 format
- Url string
- URL where the webhook was sent
- alert
Type String - Type of alert that the webhook is delivering
- logged
At String - When the webhook log was created, in ISO8601 format
- network
Id String - Network ID for the webhook log
- organization
Id String - ID for the webhook log's organization
- response
Code Integer - Response code from the webhook
- response
Duration Integer - Duration of the response, in milliseconds
- sent
At String - When the webhook was sent, in ISO8601 format
- url String
- URL where the webhook was sent
- alert
Type string - Type of alert that the webhook is delivering
- logged
At string - When the webhook log was created, in ISO8601 format
- network
Id string - Network ID for the webhook log
- organization
Id string - ID for the webhook log's organization
- response
Code number - Response code from the webhook
- response
Duration number - Duration of the response, in milliseconds
- sent
At string - When the webhook was sent, in ISO8601 format
- url string
- URL where the webhook was sent
- alert_
type str - Type of alert that the webhook is delivering
- logged_
at str - When the webhook log was created, in ISO8601 format
- network_
id str - Network ID for the webhook log
- organization_
id str - ID for the webhook log's organization
- response_
code int - Response code from the webhook
- response_
duration int - Duration of the response, in milliseconds
- sent_
at str - When the webhook was sent, in ISO8601 format
- url str
- URL where the webhook was sent
- alert
Type String - Type of alert that the webhook is delivering
- logged
At String - When the webhook log was created, in ISO8601 format
- network
Id String - Network ID for the webhook log
- organization
Id String - ID for the webhook log's organization
- response
Code Number - Response code from the webhook
- response
Duration Number - Duration of the response, in milliseconds
- sent
At String - When the webhook was sent, in ISO8601 format
- url String
- URL where the webhook was sent
Package Details
- Repository
- meraki pulumi/pulumi-meraki
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
meraki
Terraform Provider.