1. Packages
  2. Meraki Provider
  3. API Docs
  4. organizations
  5. getWebhooksLogs
Cisco Meraki v0.3.2 published on Tuesday, Sep 24, 2024 by Pulumi

meraki.organizations.getWebhooksLogs

Explore with Pulumi AI

meraki logo
Cisco Meraki v0.3.2 published on Tuesday, Sep 24, 2024 by Pulumi

    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:

    OrganizationId string
    organizationId path parameter. Organization ID
    EndingBefore 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.
    PerPage int
    perPage query parameter. The number of entries per page returned. Acceptable range is 3 1000. Default is 50.
    StartingAfter 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
    OrganizationId string
    organizationId path parameter. Organization ID
    EndingBefore 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.
    PerPage int
    perPage query parameter. The number of entries per page returned. Acceptable range is 3 1000. Default is 50.
    StartingAfter 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
    organizationId String
    organizationId path parameter. Organization ID
    endingBefore 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.
    perPage Integer
    perPage query parameter. The number of entries per page returned. Acceptable range is 3 1000. Default is 50.
    startingAfter 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
    organizationId string
    organizationId path parameter. Organization ID
    endingBefore 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.
    perPage number
    perPage query parameter. The number of entries per page returned. Acceptable range is 3 1000. Default is 50.
    startingAfter 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
    organizationId String
    organizationId path parameter. Organization ID
    endingBefore 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.
    perPage Number
    perPage query parameter. The number of entries per page returned. Acceptable range is 3 1000. Default is 50.
    startingAfter 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<GetWebhooksLogsItem>
    Array of ResponseOrganizationsGetOrganizationWebhooksLogs
    OrganizationId string
    organizationId path parameter. Organization ID
    EndingBefore 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.
    PerPage int
    perPage query parameter. The number of entries per page returned. Acceptable range is 3 1000. Default is 50.
    StartingAfter 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 []GetWebhooksLogsItem
    Array of ResponseOrganizationsGetOrganizationWebhooksLogs
    OrganizationId string
    organizationId path parameter. Organization ID
    EndingBefore 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.
    PerPage int
    perPage query parameter. The number of entries per page returned. Acceptable range is 3 1000. Default is 50.
    StartingAfter 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<GetWebhooksLogsItem>
    Array of ResponseOrganizationsGetOrganizationWebhooksLogs
    organizationId String
    organizationId path parameter. Organization ID
    endingBefore 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.
    perPage Integer
    perPage query parameter. The number of entries per page returned. Acceptable range is 3 1000. Default is 50.
    startingAfter 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 GetWebhooksLogsItem[]
    Array of ResponseOrganizationsGetOrganizationWebhooksLogs
    organizationId string
    organizationId path parameter. Organization ID
    endingBefore 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.
    perPage number
    perPage query parameter. The number of entries per page returned. Acceptable range is 3 1000. Default is 50.
    startingAfter 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[GetWebhooksLogsItem]
    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
    organizationId String
    organizationId path parameter. Organization ID
    endingBefore 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.
    perPage Number
    perPage query parameter. The number of entries per page returned. Acceptable range is 3 1000. Default is 50.
    startingAfter 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

    AlertType string
    Type of alert that the webhook is delivering
    LoggedAt string
    When the webhook log was created, in ISO8601 format
    NetworkId string
    Network ID for the webhook log
    OrganizationId string
    ID for the webhook log's organization
    ResponseCode int
    Response code from the webhook
    ResponseDuration int
    Duration of the response, in milliseconds
    SentAt string
    When the webhook was sent, in ISO8601 format
    Url string
    URL where the webhook was sent
    AlertType string
    Type of alert that the webhook is delivering
    LoggedAt string
    When the webhook log was created, in ISO8601 format
    NetworkId string
    Network ID for the webhook log
    OrganizationId string
    ID for the webhook log's organization
    ResponseCode int
    Response code from the webhook
    ResponseDuration int
    Duration of the response, in milliseconds
    SentAt string
    When the webhook was sent, in ISO8601 format
    Url string
    URL where the webhook was sent
    alertType String
    Type of alert that the webhook is delivering
    loggedAt String
    When the webhook log was created, in ISO8601 format
    networkId String
    Network ID for the webhook log
    organizationId String
    ID for the webhook log's organization
    responseCode Integer
    Response code from the webhook
    responseDuration Integer
    Duration of the response, in milliseconds
    sentAt String
    When the webhook was sent, in ISO8601 format
    url String
    URL where the webhook was sent
    alertType string
    Type of alert that the webhook is delivering
    loggedAt string
    When the webhook log was created, in ISO8601 format
    networkId string
    Network ID for the webhook log
    organizationId string
    ID for the webhook log's organization
    responseCode number
    Response code from the webhook
    responseDuration number
    Duration of the response, in milliseconds
    sentAt 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
    alertType String
    Type of alert that the webhook is delivering
    loggedAt String
    When the webhook log was created, in ISO8601 format
    networkId String
    Network ID for the webhook log
    organizationId String
    ID for the webhook log's organization
    responseCode Number
    Response code from the webhook
    responseDuration Number
    Duration of the response, in milliseconds
    sentAt 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.
    meraki logo
    Cisco Meraki v0.3.2 published on Tuesday, Sep 24, 2024 by Pulumi