Cisco Meraki v0.2.4 published on Friday, Jun 14, 2024 by Pulumi
meraki.organizations.getFirmwareUpgrades
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as meraki from "@pulumi/meraki";
const example = meraki.organizations.getFirmwareUpgrades({
endingBefore: "string",
organizationId: "string",
perPage: 1,
productTypes: ["string"],
startingAfter: "string",
statuses: ["string"],
});
export const merakiOrganizationsFirmwareUpgradesExample = example.then(example => example.items);
import pulumi
import pulumi_meraki as meraki
example = meraki.organizations.get_firmware_upgrades(ending_before="string",
organization_id="string",
per_page=1,
product_types=["string"],
starting_after="string",
statuses=["string"])
pulumi.export("merakiOrganizationsFirmwareUpgradesExample", 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.GetFirmwareUpgrades(ctx, &organizations.GetFirmwareUpgradesArgs{
EndingBefore: pulumi.StringRef("string"),
OrganizationId: "string",
PerPage: pulumi.IntRef(1),
ProductTypes: []string{
"string",
},
StartingAfter: pulumi.StringRef("string"),
Statuses: []string{
"string",
},
}, nil)
if err != nil {
return err
}
ctx.Export("merakiOrganizationsFirmwareUpgradesExample", 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.GetFirmwareUpgrades.Invoke(new()
{
EndingBefore = "string",
OrganizationId = "string",
PerPage = 1,
ProductTypes = new[]
{
"string",
},
StartingAfter = "string",
Statuses = new[]
{
"string",
},
});
return new Dictionary<string, object?>
{
["merakiOrganizationsFirmwareUpgradesExample"] = example.Apply(getFirmwareUpgradesResult => getFirmwareUpgradesResult.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.GetFirmwareUpgradesArgs;
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.getFirmwareUpgrades(GetFirmwareUpgradesArgs.builder()
.endingBefore("string")
.organizationId("string")
.perPage(1)
.productTypes("string")
.startingAfter("string")
.statuses("string")
.build());
ctx.export("merakiOrganizationsFirmwareUpgradesExample", example.applyValue(getFirmwareUpgradesResult -> getFirmwareUpgradesResult.items()));
}
}
variables:
example:
fn::invoke:
Function: meraki:organizations:getFirmwareUpgrades
Arguments:
endingBefore: string
organizationId: string
perPage: 1
productTypes:
- string
startingAfter: string
statuses:
- string
outputs:
merakiOrganizationsFirmwareUpgradesExample: ${example.items}
Using getFirmwareUpgrades
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 getFirmwareUpgrades(args: GetFirmwareUpgradesArgs, opts?: InvokeOptions): Promise<GetFirmwareUpgradesResult>
function getFirmwareUpgradesOutput(args: GetFirmwareUpgradesOutputArgs, opts?: InvokeOptions): Output<GetFirmwareUpgradesResult>
def get_firmware_upgrades(ending_before: Optional[str] = None,
organization_id: Optional[str] = None,
per_page: Optional[int] = None,
product_types: Optional[Sequence[str]] = None,
starting_after: Optional[str] = None,
statuses: Optional[Sequence[str]] = None,
opts: Optional[InvokeOptions] = None) -> GetFirmwareUpgradesResult
def get_firmware_upgrades_output(ending_before: Optional[pulumi.Input[str]] = None,
organization_id: Optional[pulumi.Input[str]] = None,
per_page: Optional[pulumi.Input[int]] = None,
product_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
starting_after: Optional[pulumi.Input[str]] = None,
statuses: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetFirmwareUpgradesResult]
func GetFirmwareUpgrades(ctx *Context, args *GetFirmwareUpgradesArgs, opts ...InvokeOption) (*GetFirmwareUpgradesResult, error)
func GetFirmwareUpgradesOutput(ctx *Context, args *GetFirmwareUpgradesOutputArgs, opts ...InvokeOption) GetFirmwareUpgradesResultOutput
> Note: This function is named GetFirmwareUpgrades
in the Go SDK.
public static class GetFirmwareUpgrades
{
public static Task<GetFirmwareUpgradesResult> InvokeAsync(GetFirmwareUpgradesArgs args, InvokeOptions? opts = null)
public static Output<GetFirmwareUpgradesResult> Invoke(GetFirmwareUpgradesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetFirmwareUpgradesResult> getFirmwareUpgrades(GetFirmwareUpgradesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: meraki:organizations/getFirmwareUpgrades:getFirmwareUpgrades
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 1000.
- Product
Types List<string> - productTypes query parameter. Optional parameter to filter the upgrade by product type.
- 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.
- Statuses List<string>
- status query parameter. Optional parameter to filter the upgrade by status.
- 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 1000.
- Product
Types []string - productTypes query parameter. Optional parameter to filter the upgrade by product type.
- 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.
- Statuses []string
- status query parameter. Optional parameter to filter the upgrade by status.
- 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 1000.
- product
Types List<String> - productTypes query parameter. Optional parameter to filter the upgrade by product type.
- 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.
- statuses List<String>
- status query parameter. Optional parameter to filter the upgrade by status.
- 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 1000.
- product
Types string[] - productTypes query parameter. Optional parameter to filter the upgrade by product type.
- 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.
- statuses string[]
- status query parameter. Optional parameter to filter the upgrade by status.
- 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 1000.
- product_
types Sequence[str] - productTypes query parameter. Optional parameter to filter the upgrade by product type.
- 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.
- statuses Sequence[str]
- status query parameter. Optional parameter to filter the upgrade by status.
- 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 1000.
- product
Types List<String> - productTypes query parameter. Optional parameter to filter the upgrade by product type.
- 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.
- statuses List<String>
- status query parameter. Optional parameter to filter the upgrade by status.
getFirmwareUpgrades Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
List<Get
Firmware Upgrades Item> - Array of ResponseOrganizationsGetOrganizationFirmwareUpgrades
- 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 1000.
- Product
Types List<string> - productTypes query parameter. Optional parameter to filter the upgrade by product type.
- 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.
- Statuses List<string>
- status query parameter. Optional parameter to filter the upgrade by status.
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
[]Get
Firmware Upgrades Item - Array of ResponseOrganizationsGetOrganizationFirmwareUpgrades
- 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 1000.
- Product
Types []string - productTypes query parameter. Optional parameter to filter the upgrade by product type.
- 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.
- Statuses []string
- status query parameter. Optional parameter to filter the upgrade by status.
- id String
- The provider-assigned unique ID for this managed resource.
- items
List<Get
Firmware Upgrades Item> - Array of ResponseOrganizationsGetOrganizationFirmwareUpgrades
- 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 1000.
- product
Types List<String> - productTypes query parameter. Optional parameter to filter the upgrade by product type.
- 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.
- statuses List<String>
- status query parameter. Optional parameter to filter the upgrade by status.
- id string
- The provider-assigned unique ID for this managed resource.
- items
Get
Firmware Upgrades Item[] - Array of ResponseOrganizationsGetOrganizationFirmwareUpgrades
- 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 1000.
- product
Types string[] - productTypes query parameter. Optional parameter to filter the upgrade by product type.
- 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.
- statuses string[]
- status query parameter. Optional parameter to filter the upgrade by status.
- id str
- The provider-assigned unique ID for this managed resource.
- items
Sequence[Get
Firmware Upgrades Item] - Array of ResponseOrganizationsGetOrganizationFirmwareUpgrades
- 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 1000.
- product_
types Sequence[str] - productTypes query parameter. Optional parameter to filter the upgrade by product type.
- 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.
- statuses Sequence[str]
- status query parameter. Optional parameter to filter the upgrade by status.
- id String
- The provider-assigned unique ID for this managed resource.
- items List<Property Map>
- Array of ResponseOrganizationsGetOrganizationFirmwareUpgrades
- 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 1000.
- product
Types List<String> - productTypes query parameter. Optional parameter to filter the upgrade by product type.
- 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.
- statuses List<String>
- status query parameter. Optional parameter to filter the upgrade by status.
Supporting Types
GetFirmwareUpgradesItem
- Completed
At string - Timestamp when upgrade completed. Null if status pending.
- From
Version GetFirmware Upgrades Item From Version - ID of the upgrade's starting version
- Network
Get
Firmware Upgrades Item Network - Network of the upgrade
- Product
Types string - product upgraded [wireless, appliance, switch, systemsManager, camera, cellularGateway, sensor]
- Status string
- Status of upgrade event: [Cancelled, Completed]
- Time string
- Scheduled start time
- To
Version GetFirmware Upgrades Item To Version - ID of the upgrade's target version
- Upgrade
Batch stringId - The upgrade batch
- Upgrade
Id string - The upgrade
- Completed
At string - Timestamp when upgrade completed. Null if status pending.
- From
Version GetFirmware Upgrades Item From Version - ID of the upgrade's starting version
- Network
Get
Firmware Upgrades Item Network - Network of the upgrade
- Product
Types string - product upgraded [wireless, appliance, switch, systemsManager, camera, cellularGateway, sensor]
- Status string
- Status of upgrade event: [Cancelled, Completed]
- Time string
- Scheduled start time
- To
Version GetFirmware Upgrades Item To Version - ID of the upgrade's target version
- Upgrade
Batch stringId - The upgrade batch
- Upgrade
Id string - The upgrade
- completed
At String - Timestamp when upgrade completed. Null if status pending.
- from
Version GetFirmware Upgrades Item From Version - ID of the upgrade's starting version
- network
Get
Firmware Upgrades Item Network - Network of the upgrade
- product
Types String - product upgraded [wireless, appliance, switch, systemsManager, camera, cellularGateway, sensor]
- status String
- Status of upgrade event: [Cancelled, Completed]
- time String
- Scheduled start time
- to
Version GetFirmware Upgrades Item To Version - ID of the upgrade's target version
- upgrade
Batch StringId - The upgrade batch
- upgrade
Id String - The upgrade
- completed
At string - Timestamp when upgrade completed. Null if status pending.
- from
Version GetFirmware Upgrades Item From Version - ID of the upgrade's starting version
- network
Get
Firmware Upgrades Item Network - Network of the upgrade
- product
Types string - product upgraded [wireless, appliance, switch, systemsManager, camera, cellularGateway, sensor]
- status string
- Status of upgrade event: [Cancelled, Completed]
- time string
- Scheduled start time
- to
Version GetFirmware Upgrades Item To Version - ID of the upgrade's target version
- upgrade
Batch stringId - The upgrade batch
- upgrade
Id string - The upgrade
- completed_
at str - Timestamp when upgrade completed. Null if status pending.
- from_
version GetFirmware Upgrades Item From Version - ID of the upgrade's starting version
- network
Get
Firmware Upgrades Item Network - Network of the upgrade
- product_
types str - product upgraded [wireless, appliance, switch, systemsManager, camera, cellularGateway, sensor]
- status str
- Status of upgrade event: [Cancelled, Completed]
- time str
- Scheduled start time
- to_
version GetFirmware Upgrades Item To Version - ID of the upgrade's target version
- upgrade_
batch_ strid - The upgrade batch
- upgrade_
id str - The upgrade
- completed
At String - Timestamp when upgrade completed. Null if status pending.
- from
Version Property Map - ID of the upgrade's starting version
- network Property Map
- Network of the upgrade
- product
Types String - product upgraded [wireless, appliance, switch, systemsManager, camera, cellularGateway, sensor]
- status String
- Status of upgrade event: [Cancelled, Completed]
- time String
- Scheduled start time
- to
Version Property Map - ID of the upgrade's target version
- upgrade
Batch StringId - The upgrade batch
- upgrade
Id String - The upgrade
GetFirmwareUpgradesItemFromVersion
- Firmware string
- Firmware name
- Id string
- Firmware version ID
- Release
Date string - Release date of the firmware version
- Release
Type string - Release type of the firmware version
- Short
Name string - Firmware version short name
- Firmware string
- Firmware name
- Id string
- Firmware version ID
- Release
Date string - Release date of the firmware version
- Release
Type string - Release type of the firmware version
- Short
Name string - Firmware version short name
- firmware String
- Firmware name
- id String
- Firmware version ID
- release
Date String - Release date of the firmware version
- release
Type String - Release type of the firmware version
- short
Name String - Firmware version short name
- firmware string
- Firmware name
- id string
- Firmware version ID
- release
Date string - Release date of the firmware version
- release
Type string - Release type of the firmware version
- short
Name string - Firmware version short name
- firmware str
- Firmware name
- id str
- Firmware version ID
- release_
date str - Release date of the firmware version
- release_
type str - Release type of the firmware version
- short_
name str - Firmware version short name
- firmware String
- Firmware name
- id String
- Firmware version ID
- release
Date String - Release date of the firmware version
- release
Type String - Release type of the firmware version
- short
Name String - Firmware version short name
GetFirmwareUpgradesItemNetwork
GetFirmwareUpgradesItemToVersion
- Firmware string
- Firmware name
- Id string
- Firmware version ID
- Release
Date string - Release date of the firmware version
- Release
Type string - Release type of the firmware version
- Short
Name string - Firmware version short name
- Firmware string
- Firmware name
- Id string
- Firmware version ID
- Release
Date string - Release date of the firmware version
- Release
Type string - Release type of the firmware version
- Short
Name string - Firmware version short name
- firmware String
- Firmware name
- id String
- Firmware version ID
- release
Date String - Release date of the firmware version
- release
Type String - Release type of the firmware version
- short
Name String - Firmware version short name
- firmware string
- Firmware name
- id string
- Firmware version ID
- release
Date string - Release date of the firmware version
- release
Type string - Release type of the firmware version
- short
Name string - Firmware version short name
- firmware str
- Firmware name
- id str
- Firmware version ID
- release_
date str - Release date of the firmware version
- release_
type str - Release type of the firmware version
- short_
name str - Firmware version short name
- firmware String
- Firmware name
- id String
- Firmware version ID
- release
Date String - Release date of the firmware version
- release
Type String - Release type of the firmware version
- short
Name String - Firmware version short name
Package Details
- Repository
- meraki pulumi/pulumi-meraki
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
meraki
Terraform Provider.