Cisco Meraki v0.3.2 published on Tuesday, Sep 24, 2024 by Pulumi
meraki.networks.getSmDevicesDeviceCommandLogs
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as meraki from "@pulumi/meraki";
const example = meraki.networks.getSmDevicesDeviceCommandLogs({
deviceId: "string",
endingBefore: "string",
networkId: "string",
perPage: 1,
startingAfter: "string",
});
export const merakiNetworksSmDevicesDeviceCommandLogsExample = example.then(example => example.items);
import pulumi
import pulumi_meraki as meraki
example = meraki.networks.get_sm_devices_device_command_logs(device_id="string",
ending_before="string",
network_id="string",
per_page=1,
starting_after="string")
pulumi.export("merakiNetworksSmDevicesDeviceCommandLogsExample", 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.GetSmDevicesDeviceCommandLogs(ctx, &networks.GetSmDevicesDeviceCommandLogsArgs{
DeviceId: "string",
EndingBefore: pulumi.StringRef("string"),
NetworkId: "string",
PerPage: pulumi.IntRef(1),
StartingAfter: pulumi.StringRef("string"),
}, nil)
if err != nil {
return err
}
ctx.Export("merakiNetworksSmDevicesDeviceCommandLogsExample", 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.GetSmDevicesDeviceCommandLogs.Invoke(new()
{
DeviceId = "string",
EndingBefore = "string",
NetworkId = "string",
PerPage = 1,
StartingAfter = "string",
});
return new Dictionary<string, object?>
{
["merakiNetworksSmDevicesDeviceCommandLogsExample"] = example.Apply(getSmDevicesDeviceCommandLogsResult => getSmDevicesDeviceCommandLogsResult.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.GetSmDevicesDeviceCommandLogsArgs;
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.getSmDevicesDeviceCommandLogs(GetSmDevicesDeviceCommandLogsArgs.builder()
.deviceId("string")
.endingBefore("string")
.networkId("string")
.perPage(1)
.startingAfter("string")
.build());
ctx.export("merakiNetworksSmDevicesDeviceCommandLogsExample", example.applyValue(getSmDevicesDeviceCommandLogsResult -> getSmDevicesDeviceCommandLogsResult.items()));
}
}
variables:
example:
fn::invoke:
Function: meraki:networks:getSmDevicesDeviceCommandLogs
Arguments:
deviceId: string
endingBefore: string
networkId: string
perPage: 1
startingAfter: string
outputs:
merakiNetworksSmDevicesDeviceCommandLogsExample: ${example.items}
Using getSmDevicesDeviceCommandLogs
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 getSmDevicesDeviceCommandLogs(args: GetSmDevicesDeviceCommandLogsArgs, opts?: InvokeOptions): Promise<GetSmDevicesDeviceCommandLogsResult>
function getSmDevicesDeviceCommandLogsOutput(args: GetSmDevicesDeviceCommandLogsOutputArgs, opts?: InvokeOptions): Output<GetSmDevicesDeviceCommandLogsResult>
def get_sm_devices_device_command_logs(device_id: Optional[str] = None,
ending_before: Optional[str] = None,
network_id: Optional[str] = None,
per_page: Optional[int] = None,
starting_after: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSmDevicesDeviceCommandLogsResult
def get_sm_devices_device_command_logs_output(device_id: Optional[pulumi.Input[str]] = None,
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[GetSmDevicesDeviceCommandLogsResult]
func GetSmDevicesDeviceCommandLogs(ctx *Context, args *GetSmDevicesDeviceCommandLogsArgs, opts ...InvokeOption) (*GetSmDevicesDeviceCommandLogsResult, error)
func GetSmDevicesDeviceCommandLogsOutput(ctx *Context, args *GetSmDevicesDeviceCommandLogsOutputArgs, opts ...InvokeOption) GetSmDevicesDeviceCommandLogsResultOutput
> Note: This function is named GetSmDevicesDeviceCommandLogs
in the Go SDK.
public static class GetSmDevicesDeviceCommandLogs
{
public static Task<GetSmDevicesDeviceCommandLogsResult> InvokeAsync(GetSmDevicesDeviceCommandLogsArgs args, InvokeOptions? opts = null)
public static Output<GetSmDevicesDeviceCommandLogsResult> Invoke(GetSmDevicesDeviceCommandLogsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSmDevicesDeviceCommandLogsResult> getSmDevicesDeviceCommandLogs(GetSmDevicesDeviceCommandLogsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: meraki:networks/getSmDevicesDeviceCommandLogs:getSmDevicesDeviceCommandLogs
arguments:
# arguments dictionary
The following arguments are supported:
- Device
Id string - deviceId path parameter. Device ID
- 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 1000.
- 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.
- Device
Id string - deviceId path parameter. Device ID
- 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 1000.
- 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.
- device
Id String - deviceId path parameter. Device ID
- 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 1000.
- 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.
- device
Id string - deviceId path parameter. Device ID
- 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 1000.
- 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.
- device_
id str - deviceId path parameter. Device ID
- 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 1000.
- 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.
- device
Id String - deviceId path parameter. Device ID
- 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 1000.
- 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.
getSmDevicesDeviceCommandLogs Result
The following output properties are available:
- Device
Id string - deviceId path parameter. Device ID
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
List<Get
Sm Devices Device Command Logs Item> - Array of ResponseSmGetNetworkSmDeviceDeviceCommandLogs
- 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 1000.
- 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.
- Device
Id string - deviceId path parameter. Device ID
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
[]Get
Sm Devices Device Command Logs Item - Array of ResponseSmGetNetworkSmDeviceDeviceCommandLogs
- 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 1000.
- 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.
- device
Id String - deviceId path parameter. Device ID
- id String
- The provider-assigned unique ID for this managed resource.
- items
List<Get
Sm Devices Device Command Logs Item> - Array of ResponseSmGetNetworkSmDeviceDeviceCommandLogs
- 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 1000.
- 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.
- device
Id string - deviceId path parameter. Device ID
- id string
- The provider-assigned unique ID for this managed resource.
- items
Get
Sm Devices Device Command Logs Item[] - Array of ResponseSmGetNetworkSmDeviceDeviceCommandLogs
- 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 1000.
- 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.
- device_
id str - deviceId path parameter. Device ID
- id str
- The provider-assigned unique ID for this managed resource.
- items
Sequence[Get
Sm Devices Device Command Logs Item] - Array of ResponseSmGetNetworkSmDeviceDeviceCommandLogs
- 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 1000.
- 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.
- device
Id String - deviceId path parameter. Device ID
- id String
- The provider-assigned unique ID for this managed resource.
- items List<Property Map>
- Array of ResponseSmGetNetworkSmDeviceDeviceCommandLogs
- 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 1000.
- 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
GetSmDevicesDeviceCommandLogsItem
- Action string
- The type of command sent to the device.
- Dashboard
User string - The Meraki dashboard user who initiated the command.
- Details string
- A JSON string object containing command details.
- Name string
- The name of the device to which the command is sent.
- Ts string
- The time the command was sent to the device.
- Action string
- The type of command sent to the device.
- Dashboard
User string - The Meraki dashboard user who initiated the command.
- Details string
- A JSON string object containing command details.
- Name string
- The name of the device to which the command is sent.
- Ts string
- The time the command was sent to the device.
- action String
- The type of command sent to the device.
- dashboard
User String - The Meraki dashboard user who initiated the command.
- details String
- A JSON string object containing command details.
- name String
- The name of the device to which the command is sent.
- ts String
- The time the command was sent to the device.
- action string
- The type of command sent to the device.
- dashboard
User string - The Meraki dashboard user who initiated the command.
- details string
- A JSON string object containing command details.
- name string
- The name of the device to which the command is sent.
- ts string
- The time the command was sent to the device.
- action str
- The type of command sent to the device.
- dashboard_
user str - The Meraki dashboard user who initiated the command.
- details str
- A JSON string object containing command details.
- name str
- The name of the device to which the command is sent.
- ts str
- The time the command was sent to the device.
- action String
- The type of command sent to the device.
- dashboard
User String - The Meraki dashboard user who initiated the command.
- details String
- A JSON string object containing command details.
- name String
- The name of the device to which the command is sent.
- ts String
- The time the command was sent to the device.
Package Details
- Repository
- meraki pulumi/pulumi-meraki
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
meraki
Terraform Provider.