meraki.networks.FirmwareUpgradesStagedGroups
Explore with Pulumi AI
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.meraki.networks.FirmwareUpgradesStagedGroups;
import com.pulumi.meraki.networks.FirmwareUpgradesStagedGroupsArgs;
import com.pulumi.meraki.networks.inputs.FirmwareUpgradesStagedGroupsAssignedDevicesArgs;
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) {
var example = new FirmwareUpgradesStagedGroups("example", FirmwareUpgradesStagedGroupsArgs.builder()
.assignedDevices(FirmwareUpgradesStagedGroupsAssignedDevicesArgs.builder()
.devices(FirmwareUpgradesStagedGroupsAssignedDevicesDeviceArgs.builder()
.name("Device Name")
.serial("Q234-ABCD-5678")
.build())
.switch_stacks(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build())
.description("The description of the group")
.isDefault(false)
.name("My Staged Upgrade Group")
.networkId("string")
.build());
ctx.export("merakiNetworksFirmwareUpgradesStagedGroupsExample", example);
}
}
resources:
example:
type: meraki:networks:FirmwareUpgradesStagedGroups
properties:
assignedDevices:
devices:
- name: Device Name
serial: Q234-ABCD-5678
switch_stacks:
- id: '1234'
name: Stack Name
description: The description of the group
isDefault: false
name: My Staged Upgrade Group
networkId: string
outputs:
merakiNetworksFirmwareUpgradesStagedGroupsExample: ${example}
Create FirmwareUpgradesStagedGroups Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new FirmwareUpgradesStagedGroups(name: string, args: FirmwareUpgradesStagedGroupsArgs, opts?: CustomResourceOptions);
@overload
def FirmwareUpgradesStagedGroups(resource_name: str,
args: FirmwareUpgradesStagedGroupsArgs,
opts: Optional[ResourceOptions] = None)
@overload
def FirmwareUpgradesStagedGroups(resource_name: str,
opts: Optional[ResourceOptions] = None,
network_id: Optional[str] = None,
assigned_devices: Optional[FirmwareUpgradesStagedGroupsAssignedDevicesArgs] = None,
description: Optional[str] = None,
group_id: Optional[str] = None,
is_default: Optional[bool] = None,
name: Optional[str] = None)
func NewFirmwareUpgradesStagedGroups(ctx *Context, name string, args FirmwareUpgradesStagedGroupsArgs, opts ...ResourceOption) (*FirmwareUpgradesStagedGroups, error)
public FirmwareUpgradesStagedGroups(string name, FirmwareUpgradesStagedGroupsArgs args, CustomResourceOptions? opts = null)
public FirmwareUpgradesStagedGroups(String name, FirmwareUpgradesStagedGroupsArgs args)
public FirmwareUpgradesStagedGroups(String name, FirmwareUpgradesStagedGroupsArgs args, CustomResourceOptions options)
type: meraki:networks:FirmwareUpgradesStagedGroups
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args FirmwareUpgradesStagedGroupsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args FirmwareUpgradesStagedGroupsArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args FirmwareUpgradesStagedGroupsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FirmwareUpgradesStagedGroupsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FirmwareUpgradesStagedGroupsArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var firmwareUpgradesStagedGroupsResource = new Meraki.Networks.FirmwareUpgradesStagedGroups("firmwareUpgradesStagedGroupsResource", new()
{
NetworkId = "string",
AssignedDevices = new Meraki.Networks.Inputs.FirmwareUpgradesStagedGroupsAssignedDevicesArgs
{
Devices = new[]
{
new Meraki.Networks.Inputs.FirmwareUpgradesStagedGroupsAssignedDevicesDeviceArgs
{
Name = "string",
Serial = "string",
},
},
SwitchStacks = new[]
{
new Meraki.Networks.Inputs.FirmwareUpgradesStagedGroupsAssignedDevicesSwitchStackArgs
{
Id = "string",
Name = "string",
},
},
},
Description = "string",
GroupId = "string",
IsDefault = false,
Name = "string",
});
example, err := networks.NewFirmwareUpgradesStagedGroups(ctx, "firmwareUpgradesStagedGroupsResource", &networks.FirmwareUpgradesStagedGroupsArgs{
NetworkId: pulumi.String("string"),
AssignedDevices: &networks.FirmwareUpgradesStagedGroupsAssignedDevicesArgs{
Devices: networks.FirmwareUpgradesStagedGroupsAssignedDevicesDeviceArray{
&networks.FirmwareUpgradesStagedGroupsAssignedDevicesDeviceArgs{
Name: pulumi.String("string"),
Serial: pulumi.String("string"),
},
},
SwitchStacks: networks.FirmwareUpgradesStagedGroupsAssignedDevicesSwitchStackArray{
&networks.FirmwareUpgradesStagedGroupsAssignedDevicesSwitchStackArgs{
Id: pulumi.String("string"),
Name: pulumi.String("string"),
},
},
},
Description: pulumi.String("string"),
GroupId: pulumi.String("string"),
IsDefault: pulumi.Bool(false),
Name: pulumi.String("string"),
})
var firmwareUpgradesStagedGroupsResource = new FirmwareUpgradesStagedGroups("firmwareUpgradesStagedGroupsResource", FirmwareUpgradesStagedGroupsArgs.builder()
.networkId("string")
.assignedDevices(FirmwareUpgradesStagedGroupsAssignedDevicesArgs.builder()
.devices(FirmwareUpgradesStagedGroupsAssignedDevicesDeviceArgs.builder()
.name("string")
.serial("string")
.build())
.switchStacks(FirmwareUpgradesStagedGroupsAssignedDevicesSwitchStackArgs.builder()
.id("string")
.name("string")
.build())
.build())
.description("string")
.groupId("string")
.isDefault(false)
.name("string")
.build());
firmware_upgrades_staged_groups_resource = meraki.networks.FirmwareUpgradesStagedGroups("firmwareUpgradesStagedGroupsResource",
network_id="string",
assigned_devices=meraki.networks.FirmwareUpgradesStagedGroupsAssignedDevicesArgs(
devices=[meraki.networks.FirmwareUpgradesStagedGroupsAssignedDevicesDeviceArgs(
name="string",
serial="string",
)],
switch_stacks=[meraki.networks.FirmwareUpgradesStagedGroupsAssignedDevicesSwitchStackArgs(
id="string",
name="string",
)],
),
description="string",
group_id="string",
is_default=False,
name="string")
const firmwareUpgradesStagedGroupsResource = new meraki.networks.FirmwareUpgradesStagedGroups("firmwareUpgradesStagedGroupsResource", {
networkId: "string",
assignedDevices: {
devices: [{
name: "string",
serial: "string",
}],
switchStacks: [{
id: "string",
name: "string",
}],
},
description: "string",
groupId: "string",
isDefault: false,
name: "string",
});
type: meraki:networks:FirmwareUpgradesStagedGroups
properties:
assignedDevices:
devices:
- name: string
serial: string
switchStacks:
- id: string
name: string
description: string
groupId: string
isDefault: false
name: string
networkId: string
FirmwareUpgradesStagedGroups Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The FirmwareUpgradesStagedGroups resource accepts the following input properties:
- Network
Id string - networkId path parameter. Network ID
- Assigned
Devices FirmwareUpgrades Staged Groups Assigned Devices - The devices and Switch Stacks assigned to the Group
- Description string
- Description of the Staged Upgrade Group
- Group
Id string - Id of staged upgrade group
- Is
Default bool - Boolean indicating the default Group. Any device that does not have a group explicitly assigned will upgrade with this group
- Name string
- Name of the Staged Upgrade Group
- Network
Id string - networkId path parameter. Network ID
- Assigned
Devices FirmwareUpgrades Staged Groups Assigned Devices Args - The devices and Switch Stacks assigned to the Group
- Description string
- Description of the Staged Upgrade Group
- Group
Id string - Id of staged upgrade group
- Is
Default bool - Boolean indicating the default Group. Any device that does not have a group explicitly assigned will upgrade with this group
- Name string
- Name of the Staged Upgrade Group
- network
Id String - networkId path parameter. Network ID
- assigned
Devices FirmwareUpgrades Staged Groups Assigned Devices - The devices and Switch Stacks assigned to the Group
- description String
- Description of the Staged Upgrade Group
- group
Id String - Id of staged upgrade group
- is
Default Boolean - Boolean indicating the default Group. Any device that does not have a group explicitly assigned will upgrade with this group
- name String
- Name of the Staged Upgrade Group
- network
Id string - networkId path parameter. Network ID
- assigned
Devices FirmwareUpgrades Staged Groups Assigned Devices - The devices and Switch Stacks assigned to the Group
- description string
- Description of the Staged Upgrade Group
- group
Id string - Id of staged upgrade group
- is
Default boolean - Boolean indicating the default Group. Any device that does not have a group explicitly assigned will upgrade with this group
- name string
- Name of the Staged Upgrade Group
- network_
id str - networkId path parameter. Network ID
- assigned_
devices FirmwareUpgrades Staged Groups Assigned Devices Args - The devices and Switch Stacks assigned to the Group
- description str
- Description of the Staged Upgrade Group
- group_
id str - Id of staged upgrade group
- is_
default bool - Boolean indicating the default Group. Any device that does not have a group explicitly assigned will upgrade with this group
- name str
- Name of the Staged Upgrade Group
- network
Id String - networkId path parameter. Network ID
- assigned
Devices Property Map - The devices and Switch Stacks assigned to the Group
- description String
- Description of the Staged Upgrade Group
- group
Id String - Id of staged upgrade group
- is
Default Boolean - Boolean indicating the default Group. Any device that does not have a group explicitly assigned will upgrade with this group
- name String
- Name of the Staged Upgrade Group
Outputs
All input properties are implicitly available as output properties. Additionally, the FirmwareUpgradesStagedGroups resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing FirmwareUpgradesStagedGroups Resource
Get an existing FirmwareUpgradesStagedGroups resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: FirmwareUpgradesStagedGroupsState, opts?: CustomResourceOptions): FirmwareUpgradesStagedGroups
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
assigned_devices: Optional[FirmwareUpgradesStagedGroupsAssignedDevicesArgs] = None,
description: Optional[str] = None,
group_id: Optional[str] = None,
is_default: Optional[bool] = None,
name: Optional[str] = None,
network_id: Optional[str] = None) -> FirmwareUpgradesStagedGroups
func GetFirmwareUpgradesStagedGroups(ctx *Context, name string, id IDInput, state *FirmwareUpgradesStagedGroupsState, opts ...ResourceOption) (*FirmwareUpgradesStagedGroups, error)
public static FirmwareUpgradesStagedGroups Get(string name, Input<string> id, FirmwareUpgradesStagedGroupsState? state, CustomResourceOptions? opts = null)
public static FirmwareUpgradesStagedGroups get(String name, Output<String> id, FirmwareUpgradesStagedGroupsState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Assigned
Devices FirmwareUpgrades Staged Groups Assigned Devices - The devices and Switch Stacks assigned to the Group
- Description string
- Description of the Staged Upgrade Group
- Group
Id string - Id of staged upgrade group
- Is
Default bool - Boolean indicating the default Group. Any device that does not have a group explicitly assigned will upgrade with this group
- Name string
- Name of the Staged Upgrade Group
- Network
Id string - networkId path parameter. Network ID
- Assigned
Devices FirmwareUpgrades Staged Groups Assigned Devices Args - The devices and Switch Stacks assigned to the Group
- Description string
- Description of the Staged Upgrade Group
- Group
Id string - Id of staged upgrade group
- Is
Default bool - Boolean indicating the default Group. Any device that does not have a group explicitly assigned will upgrade with this group
- Name string
- Name of the Staged Upgrade Group
- Network
Id string - networkId path parameter. Network ID
- assigned
Devices FirmwareUpgrades Staged Groups Assigned Devices - The devices and Switch Stacks assigned to the Group
- description String
- Description of the Staged Upgrade Group
- group
Id String - Id of staged upgrade group
- is
Default Boolean - Boolean indicating the default Group. Any device that does not have a group explicitly assigned will upgrade with this group
- name String
- Name of the Staged Upgrade Group
- network
Id String - networkId path parameter. Network ID
- assigned
Devices FirmwareUpgrades Staged Groups Assigned Devices - The devices and Switch Stacks assigned to the Group
- description string
- Description of the Staged Upgrade Group
- group
Id string - Id of staged upgrade group
- is
Default boolean - Boolean indicating the default Group. Any device that does not have a group explicitly assigned will upgrade with this group
- name string
- Name of the Staged Upgrade Group
- network
Id string - networkId path parameter. Network ID
- assigned_
devices FirmwareUpgrades Staged Groups Assigned Devices Args - The devices and Switch Stacks assigned to the Group
- description str
- Description of the Staged Upgrade Group
- group_
id str - Id of staged upgrade group
- is_
default bool - Boolean indicating the default Group. Any device that does not have a group explicitly assigned will upgrade with this group
- name str
- Name of the Staged Upgrade Group
- network_
id str - networkId path parameter. Network ID
- assigned
Devices Property Map - The devices and Switch Stacks assigned to the Group
- description String
- Description of the Staged Upgrade Group
- group
Id String - Id of staged upgrade group
- is
Default Boolean - Boolean indicating the default Group. Any device that does not have a group explicitly assigned will upgrade with this group
- name String
- Name of the Staged Upgrade Group
- network
Id String - networkId path parameter. Network ID
Supporting Types
FirmwareUpgradesStagedGroupsAssignedDevices, FirmwareUpgradesStagedGroupsAssignedDevicesArgs
- Devices
List<Firmware
Upgrades Staged Groups Assigned Devices Device> - Data Array of Devices containing the name and serial
- Switch
Stacks List<FirmwareUpgrades Staged Groups Assigned Devices Switch Stack> - Data Array of Switch Stacks containing the name and id
- Devices
[]Firmware
Upgrades Staged Groups Assigned Devices Device - Data Array of Devices containing the name and serial
- Switch
Stacks []FirmwareUpgrades Staged Groups Assigned Devices Switch Stack - Data Array of Switch Stacks containing the name and id
- devices
List<Firmware
Upgrades Staged Groups Assigned Devices Device> - Data Array of Devices containing the name and serial
- switch
Stacks List<FirmwareUpgrades Staged Groups Assigned Devices Switch Stack> - Data Array of Switch Stacks containing the name and id
- devices
Firmware
Upgrades Staged Groups Assigned Devices Device[] - Data Array of Devices containing the name and serial
- switch
Stacks FirmwareUpgrades Staged Groups Assigned Devices Switch Stack[] - Data Array of Switch Stacks containing the name and id
- devices
Sequence[Firmware
Upgrades Staged Groups Assigned Devices Device] - Data Array of Devices containing the name and serial
- switch_
stacks Sequence[FirmwareUpgrades Staged Groups Assigned Devices Switch Stack] - Data Array of Switch Stacks containing the name and id
- devices List<Property Map>
- Data Array of Devices containing the name and serial
- switch
Stacks List<Property Map> - Data Array of Switch Stacks containing the name and id
FirmwareUpgradesStagedGroupsAssignedDevicesDevice, FirmwareUpgradesStagedGroupsAssignedDevicesDeviceArgs
FirmwareUpgradesStagedGroupsAssignedDevicesSwitchStack, FirmwareUpgradesStagedGroupsAssignedDevicesSwitchStackArgs
Import
$ pulumi import meraki:networks/firmwareUpgradesStagedGroups:FirmwareUpgradesStagedGroups example "group_id,network_id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- meraki pulumi/pulumi-meraki
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
meraki
Terraform Provider.