Cisco Meraki v0.3.2 published on Tuesday, Sep 24, 2024 by Pulumi
meraki.networks.getSwitchAlternateManagementInterface
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as meraki from "@pulumi/meraki";
const example = meraki.networks.getSwitchAlternateManagementInterface({
networkId: "string",
});
export const merakiNetworksSwitchAlternateManagementInterfaceExample = example.then(example => example.item);
import pulumi
import pulumi_meraki as meraki
example = meraki.networks.get_switch_alternate_management_interface(network_id="string")
pulumi.export("merakiNetworksSwitchAlternateManagementInterfaceExample", example.item)
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.LookupSwitchAlternateManagementInterface(ctx, &networks.LookupSwitchAlternateManagementInterfaceArgs{
NetworkId: "string",
}, nil)
if err != nil {
return err
}
ctx.Export("merakiNetworksSwitchAlternateManagementInterfaceExample", example.Item)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Meraki = Pulumi.Meraki;
return await Deployment.RunAsync(() =>
{
var example = Meraki.Networks.GetSwitchAlternateManagementInterface.Invoke(new()
{
NetworkId = "string",
});
return new Dictionary<string, object?>
{
["merakiNetworksSwitchAlternateManagementInterfaceExample"] = example.Apply(getSwitchAlternateManagementInterfaceResult => getSwitchAlternateManagementInterfaceResult.Item),
};
});
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.GetSwitchAlternateManagementInterfaceArgs;
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.getSwitchAlternateManagementInterface(GetSwitchAlternateManagementInterfaceArgs.builder()
.networkId("string")
.build());
ctx.export("merakiNetworksSwitchAlternateManagementInterfaceExample", example.applyValue(getSwitchAlternateManagementInterfaceResult -> getSwitchAlternateManagementInterfaceResult.item()));
}
}
variables:
example:
fn::invoke:
Function: meraki:networks:getSwitchAlternateManagementInterface
Arguments:
networkId: string
outputs:
merakiNetworksSwitchAlternateManagementInterfaceExample: ${example.item}
Using getSwitchAlternateManagementInterface
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 getSwitchAlternateManagementInterface(args: GetSwitchAlternateManagementInterfaceArgs, opts?: InvokeOptions): Promise<GetSwitchAlternateManagementInterfaceResult>
function getSwitchAlternateManagementInterfaceOutput(args: GetSwitchAlternateManagementInterfaceOutputArgs, opts?: InvokeOptions): Output<GetSwitchAlternateManagementInterfaceResult>
def get_switch_alternate_management_interface(network_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSwitchAlternateManagementInterfaceResult
def get_switch_alternate_management_interface_output(network_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSwitchAlternateManagementInterfaceResult]
func LookupSwitchAlternateManagementInterface(ctx *Context, args *LookupSwitchAlternateManagementInterfaceArgs, opts ...InvokeOption) (*LookupSwitchAlternateManagementInterfaceResult, error)
func LookupSwitchAlternateManagementInterfaceOutput(ctx *Context, args *LookupSwitchAlternateManagementInterfaceOutputArgs, opts ...InvokeOption) LookupSwitchAlternateManagementInterfaceResultOutput
> Note: This function is named LookupSwitchAlternateManagementInterface
in the Go SDK.
public static class GetSwitchAlternateManagementInterface
{
public static Task<GetSwitchAlternateManagementInterfaceResult> InvokeAsync(GetSwitchAlternateManagementInterfaceArgs args, InvokeOptions? opts = null)
public static Output<GetSwitchAlternateManagementInterfaceResult> Invoke(GetSwitchAlternateManagementInterfaceInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSwitchAlternateManagementInterfaceResult> getSwitchAlternateManagementInterface(GetSwitchAlternateManagementInterfaceArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: meraki:networks/getSwitchAlternateManagementInterface:getSwitchAlternateManagementInterface
arguments:
# arguments dictionary
The following arguments are supported:
- Network
Id string - networkId path parameter. Network ID
- Network
Id string - networkId path parameter. Network ID
- network
Id String - networkId path parameter. Network ID
- network
Id string - networkId path parameter. Network ID
- network_
id str - networkId path parameter. Network ID
- network
Id String - networkId path parameter. Network ID
getSwitchAlternateManagementInterface Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Item
Get
Switch Alternate Management Interface Item - Network
Id string - networkId path parameter. Network ID
- Id string
- The provider-assigned unique ID for this managed resource.
- Item
Get
Switch Alternate Management Interface Item - Network
Id string - networkId path parameter. Network ID
- id String
- The provider-assigned unique ID for this managed resource.
- item
Get
Switch Alternate Management Interface Item - network
Id String - networkId path parameter. Network ID
- id string
- The provider-assigned unique ID for this managed resource.
- item
Get
Switch Alternate Management Interface Item - network
Id string - networkId path parameter. Network ID
- id str
- The provider-assigned unique ID for this managed resource.
- item
Get
Switch Alternate Management Interface Item - network_
id str - networkId path parameter. Network ID
- id String
- The provider-assigned unique ID for this managed resource.
- item Property Map
- network
Id String - networkId path parameter. Network ID
Supporting Types
GetSwitchAlternateManagementInterfaceItem
- Enabled bool
- Boolean value to enable or disable AMI configuration. If enabled, VLAN and protocols must be set
- Protocols List<string>
- Can be one or more of the following values: 'radius', 'snmp' or 'syslog'
- Switches
List<Get
Switch Alternate Management Interface Item Switch> - Array of switch serial number and IP assignment. If parameter is present, it cannot have empty body. Note: switches parameter is not applicable for template networks, in other words, do not put 'switches' in the body when updating template networks. Also, an empty 'switches' array will remove all previous assignments
- Vlan
Id int - Alternate management VLAN, must be between 1 and 4094
- Enabled bool
- Boolean value to enable or disable AMI configuration. If enabled, VLAN and protocols must be set
- Protocols []string
- Can be one or more of the following values: 'radius', 'snmp' or 'syslog'
- Switches
[]Get
Switch Alternate Management Interface Item Switch - Array of switch serial number and IP assignment. If parameter is present, it cannot have empty body. Note: switches parameter is not applicable for template networks, in other words, do not put 'switches' in the body when updating template networks. Also, an empty 'switches' array will remove all previous assignments
- Vlan
Id int - Alternate management VLAN, must be between 1 and 4094
- enabled Boolean
- Boolean value to enable or disable AMI configuration. If enabled, VLAN and protocols must be set
- protocols List<String>
- Can be one or more of the following values: 'radius', 'snmp' or 'syslog'
- switches
List<Get
Switch Alternate Management Interface Item Switch> - Array of switch serial number and IP assignment. If parameter is present, it cannot have empty body. Note: switches parameter is not applicable for template networks, in other words, do not put 'switches' in the body when updating template networks. Also, an empty 'switches' array will remove all previous assignments
- vlan
Id Integer - Alternate management VLAN, must be between 1 and 4094
- enabled boolean
- Boolean value to enable or disable AMI configuration. If enabled, VLAN and protocols must be set
- protocols string[]
- Can be one or more of the following values: 'radius', 'snmp' or 'syslog'
- switches
Get
Switch Alternate Management Interface Item Switch[] - Array of switch serial number and IP assignment. If parameter is present, it cannot have empty body. Note: switches parameter is not applicable for template networks, in other words, do not put 'switches' in the body when updating template networks. Also, an empty 'switches' array will remove all previous assignments
- vlan
Id number - Alternate management VLAN, must be between 1 and 4094
- enabled bool
- Boolean value to enable or disable AMI configuration. If enabled, VLAN and protocols must be set
- protocols Sequence[str]
- Can be one or more of the following values: 'radius', 'snmp' or 'syslog'
- switches
Sequence[Get
Switch Alternate Management Interface Item Switch] - Array of switch serial number and IP assignment. If parameter is present, it cannot have empty body. Note: switches parameter is not applicable for template networks, in other words, do not put 'switches' in the body when updating template networks. Also, an empty 'switches' array will remove all previous assignments
- vlan_
id int - Alternate management VLAN, must be between 1 and 4094
- enabled Boolean
- Boolean value to enable or disable AMI configuration. If enabled, VLAN and protocols must be set
- protocols List<String>
- Can be one or more of the following values: 'radius', 'snmp' or 'syslog'
- switches List<Property Map>
- Array of switch serial number and IP assignment. If parameter is present, it cannot have empty body. Note: switches parameter is not applicable for template networks, in other words, do not put 'switches' in the body when updating template networks. Also, an empty 'switches' array will remove all previous assignments
- vlan
Id Number - Alternate management VLAN, must be between 1 and 4094
GetSwitchAlternateManagementInterfaceItemSwitch
- Alternate
Management stringIp - Switch alternative management IP. To remove a prior IP setting, provide an empty string
- Gateway string
- Switch gateway must be in IP format. Only and must be specified for Polaris switches
- Serial string
- Switch serial number
- Subnet
Mask string - Switch subnet mask must be in IP format. Only and must be specified for Polaris switches
- Alternate
Management stringIp - Switch alternative management IP. To remove a prior IP setting, provide an empty string
- Gateway string
- Switch gateway must be in IP format. Only and must be specified for Polaris switches
- Serial string
- Switch serial number
- Subnet
Mask string - Switch subnet mask must be in IP format. Only and must be specified for Polaris switches
- alternate
Management StringIp - Switch alternative management IP. To remove a prior IP setting, provide an empty string
- gateway String
- Switch gateway must be in IP format. Only and must be specified for Polaris switches
- serial String
- Switch serial number
- subnet
Mask String - Switch subnet mask must be in IP format. Only and must be specified for Polaris switches
- alternate
Management stringIp - Switch alternative management IP. To remove a prior IP setting, provide an empty string
- gateway string
- Switch gateway must be in IP format. Only and must be specified for Polaris switches
- serial string
- Switch serial number
- subnet
Mask string - Switch subnet mask must be in IP format. Only and must be specified for Polaris switches
- alternate_
management_ strip - Switch alternative management IP. To remove a prior IP setting, provide an empty string
- gateway str
- Switch gateway must be in IP format. Only and must be specified for Polaris switches
- serial str
- Switch serial number
- subnet_
mask str - Switch subnet mask must be in IP format. Only and must be specified for Polaris switches
- alternate
Management StringIp - Switch alternative management IP. To remove a prior IP setting, provide an empty string
- gateway String
- Switch gateway must be in IP format. Only and must be specified for Polaris switches
- serial String
- Switch serial number
- subnet
Mask String - Switch subnet mask must be in IP format. Only and must be specified for Polaris switches
Package Details
- Repository
- meraki pulumi/pulumi-meraki
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
meraki
Terraform Provider.