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

meraki.networks.getSwitchAlternateManagementInterface

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.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:

    NetworkId string
    networkId path parameter. Network ID
    NetworkId string
    networkId path parameter. Network ID
    networkId String
    networkId path parameter. Network ID
    networkId string
    networkId path parameter. Network ID
    network_id str
    networkId path parameter. Network ID
    networkId 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 GetSwitchAlternateManagementInterfaceItem
    NetworkId string
    networkId path parameter. Network ID
    Id string
    The provider-assigned unique ID for this managed resource.
    Item GetSwitchAlternateManagementInterfaceItem
    NetworkId string
    networkId path parameter. Network ID
    id String
    The provider-assigned unique ID for this managed resource.
    item GetSwitchAlternateManagementInterfaceItem
    networkId String
    networkId path parameter. Network ID
    id string
    The provider-assigned unique ID for this managed resource.
    item GetSwitchAlternateManagementInterfaceItem
    networkId string
    networkId path parameter. Network ID
    id str
    The provider-assigned unique ID for this managed resource.
    item GetSwitchAlternateManagementInterfaceItem
    network_id str
    networkId path parameter. Network ID
    id String
    The provider-assigned unique ID for this managed resource.
    item Property Map
    networkId 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<GetSwitchAlternateManagementInterfaceItemSwitch>
    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
    VlanId 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 []GetSwitchAlternateManagementInterfaceItemSwitch
    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
    VlanId 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<GetSwitchAlternateManagementInterfaceItemSwitch>
    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
    vlanId 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 GetSwitchAlternateManagementInterfaceItemSwitch[]
    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
    vlanId 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[GetSwitchAlternateManagementInterfaceItemSwitch]
    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
    vlanId Number
    Alternate management VLAN, must be between 1 and 4094

    GetSwitchAlternateManagementInterfaceItemSwitch

    AlternateManagementIp string
    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
    SubnetMask string
    Switch subnet mask must be in IP format. Only and must be specified for Polaris switches
    AlternateManagementIp string
    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
    SubnetMask string
    Switch subnet mask must be in IP format. Only and must be specified for Polaris switches
    alternateManagementIp String
    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
    subnetMask String
    Switch subnet mask must be in IP format. Only and must be specified for Polaris switches
    alternateManagementIp string
    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
    subnetMask string
    Switch subnet mask must be in IP format. Only and must be specified for Polaris switches
    alternate_management_ip str
    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
    alternateManagementIp String
    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
    subnetMask 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.
    meraki logo
    Cisco Meraki v0.3.2 published on Tuesday, Sep 24, 2024 by Pulumi