1. Packages
  2. Cisco Catalyst SD-WAN
  3. API Docs
  4. ServiceSwitchportFeature
Cisco Catalyst SD-WAN v0.1.3 published on Tuesday, Sep 24, 2024 by Pulumi

sdwan.ServiceSwitchportFeature

Explore with Pulumi AI

sdwan logo
Cisco Catalyst SD-WAN v0.1.3 published on Tuesday, Sep 24, 2024 by Pulumi

    This resource can manage a Service Switchport Feature.

    • Minimum SD-WAN Manager version: 20.12.0

    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.sdwan.ServiceSwitchportFeature;
    import com.pulumi.sdwan.ServiceSwitchportFeatureArgs;
    import com.pulumi.sdwan.inputs.ServiceSwitchportFeatureInterfaceArgs;
    import com.pulumi.sdwan.inputs.ServiceSwitchportFeatureStaticMacAddressArgs;
    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 ServiceSwitchportFeature("example", ServiceSwitchportFeatureArgs.builder()
                .name("Example")
                .description("My Example")
                .featureProfileId("f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac")
                .interfaces(ServiceSwitchportFeatureInterfaceArgs.builder()
                    .interface_name("GigabitEthernet")
                    .mode("access")
                    .shutdown(true)
                    .speed("10")
                    .duplex("full")
                    .switchport_access_vlan(1)
                    .switchport_trunk_allowed_vlans("1")
                    .switchport_trunk_native_vlan(1)
                    .port_control("auto")
                    .voice_vlan(1)
                    .pae_enable(true)
                    .mac_authentication_bypass(false)
                    .host_mode("single-host")
                    .enable_periodic_reauth(false)
                    .inactivity(60)
                    .reauthentication(1)
                    .control_direction("both")
                    .restricted_vlan(1)
                    .guest_vlan(1)
                    .critical_vlan(1)
                    .enable_voice(false)
                    .build())
                .ageOutTime(300)
                .staticMacAddresses(ServiceSwitchportFeatureStaticMacAddressArgs.builder()
                    .mac_address("01:02:03:04:05:06")
                    .vlan_id(1)
                    .interface_name("GigabitEthernet0/0/0")
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: sdwan:ServiceSwitchportFeature
        properties:
          name: Example
          description: My Example
          featureProfileId: f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac
          interfaces:
            - interface_name: GigabitEthernet
              mode: access
              shutdown: true
              speed: '10'
              duplex: full
              switchport_access_vlan: 1
              switchport_trunk_allowed_vlans: '1'
              switchport_trunk_native_vlan: 1
              port_control: auto
              voice_vlan: 1
              pae_enable: true
              mac_authentication_bypass: false
              host_mode: single-host
              enable_periodic_reauth: false
              inactivity: 60
              reauthentication: 1
              control_direction: both
              restricted_vlan: 1
              guest_vlan: 1
              critical_vlan: 1
              enable_voice: false
          ageOutTime: 300
          staticMacAddresses:
            - mac_address: 01:02:03:04:05:06
              vlan_id: 1
              interface_name: GigabitEthernet0/0/0
    

    Create ServiceSwitchportFeature Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ServiceSwitchportFeature(name: string, args: ServiceSwitchportFeatureArgs, opts?: CustomResourceOptions);
    @overload
    def ServiceSwitchportFeature(resource_name: str,
                                 args: ServiceSwitchportFeatureArgs,
                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def ServiceSwitchportFeature(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 feature_profile_id: Optional[str] = None,
                                 age_out_time: Optional[int] = None,
                                 age_out_time_variable: Optional[str] = None,
                                 description: Optional[str] = None,
                                 interfaces: Optional[Sequence[ServiceSwitchportFeatureInterfaceArgs]] = None,
                                 name: Optional[str] = None,
                                 static_mac_addresses: Optional[Sequence[ServiceSwitchportFeatureStaticMacAddressArgs]] = None)
    func NewServiceSwitchportFeature(ctx *Context, name string, args ServiceSwitchportFeatureArgs, opts ...ResourceOption) (*ServiceSwitchportFeature, error)
    public ServiceSwitchportFeature(string name, ServiceSwitchportFeatureArgs args, CustomResourceOptions? opts = null)
    public ServiceSwitchportFeature(String name, ServiceSwitchportFeatureArgs args)
    public ServiceSwitchportFeature(String name, ServiceSwitchportFeatureArgs args, CustomResourceOptions options)
    
    type: sdwan:ServiceSwitchportFeature
    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 ServiceSwitchportFeatureArgs
    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 ServiceSwitchportFeatureArgs
    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 ServiceSwitchportFeatureArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ServiceSwitchportFeatureArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ServiceSwitchportFeatureArgs
    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 serviceSwitchportFeatureResource = new Sdwan.ServiceSwitchportFeature("serviceSwitchportFeatureResource", new()
    {
        FeatureProfileId = "string",
        AgeOutTime = 0,
        AgeOutTimeVariable = "string",
        Description = "string",
        Interfaces = new[]
        {
            new Sdwan.Inputs.ServiceSwitchportFeatureInterfaceArgs
            {
                ControlDirection = "string",
                ControlDirectionVariable = "string",
                CriticalVlan = 0,
                CriticalVlanVariable = "string",
                Duplex = "string",
                DuplexVariable = "string",
                EnablePeriodicReauth = false,
                EnablePeriodicReauthVariable = "string",
                EnableVoice = false,
                EnableVoiceVariable = "string",
                GuestVlan = 0,
                GuestVlanVariable = "string",
                HostMode = "string",
                HostModeVariable = "string",
                Inactivity = 0,
                InactivityVariable = "string",
                InterfaceName = "string",
                InterfaceNameVariable = "string",
                MacAuthenticationBypass = false,
                MacAuthenticationBypassVariable = "string",
                Mode = "string",
                PaeEnable = false,
                PaeEnableVariable = "string",
                PortControl = "string",
                PortControlVariable = "string",
                Reauthentication = 0,
                ReauthenticationVariable = "string",
                RestrictedVlan = 0,
                RestrictedVlanVariable = "string",
                Shutdown = false,
                ShutdownVariable = "string",
                Speed = "string",
                SpeedVariable = "string",
                SwitchportAccessVlan = 0,
                SwitchportAccessVlanVariable = "string",
                SwitchportTrunkAllowedVlans = "string",
                SwitchportTrunkAllowedVlansVariable = "string",
                SwitchportTrunkNativeVlan = 0,
                SwitchportTrunkNativeVlanVariable = "string",
                VoiceVlan = 0,
                VoiceVlanVariable = "string",
            },
        },
        Name = "string",
        StaticMacAddresses = new[]
        {
            new Sdwan.Inputs.ServiceSwitchportFeatureStaticMacAddressArgs
            {
                InterfaceName = "string",
                InterfaceNameVariable = "string",
                MacAddress = "string",
                MacAddressVariable = "string",
                VlanId = 0,
                VlanIdVariable = "string",
            },
        },
    });
    
    example, err := sdwan.NewServiceSwitchportFeature(ctx, "serviceSwitchportFeatureResource", &sdwan.ServiceSwitchportFeatureArgs{
    	FeatureProfileId:   pulumi.String("string"),
    	AgeOutTime:         pulumi.Int(0),
    	AgeOutTimeVariable: pulumi.String("string"),
    	Description:        pulumi.String("string"),
    	Interfaces: sdwan.ServiceSwitchportFeatureInterfaceArray{
    		&sdwan.ServiceSwitchportFeatureInterfaceArgs{
    			ControlDirection:                    pulumi.String("string"),
    			ControlDirectionVariable:            pulumi.String("string"),
    			CriticalVlan:                        pulumi.Int(0),
    			CriticalVlanVariable:                pulumi.String("string"),
    			Duplex:                              pulumi.String("string"),
    			DuplexVariable:                      pulumi.String("string"),
    			EnablePeriodicReauth:                pulumi.Bool(false),
    			EnablePeriodicReauthVariable:        pulumi.String("string"),
    			EnableVoice:                         pulumi.Bool(false),
    			EnableVoiceVariable:                 pulumi.String("string"),
    			GuestVlan:                           pulumi.Int(0),
    			GuestVlanVariable:                   pulumi.String("string"),
    			HostMode:                            pulumi.String("string"),
    			HostModeVariable:                    pulumi.String("string"),
    			Inactivity:                          pulumi.Int(0),
    			InactivityVariable:                  pulumi.String("string"),
    			InterfaceName:                       pulumi.String("string"),
    			InterfaceNameVariable:               pulumi.String("string"),
    			MacAuthenticationBypass:             pulumi.Bool(false),
    			MacAuthenticationBypassVariable:     pulumi.String("string"),
    			Mode:                                pulumi.String("string"),
    			PaeEnable:                           pulumi.Bool(false),
    			PaeEnableVariable:                   pulumi.String("string"),
    			PortControl:                         pulumi.String("string"),
    			PortControlVariable:                 pulumi.String("string"),
    			Reauthentication:                    pulumi.Int(0),
    			ReauthenticationVariable:            pulumi.String("string"),
    			RestrictedVlan:                      pulumi.Int(0),
    			RestrictedVlanVariable:              pulumi.String("string"),
    			Shutdown:                            pulumi.Bool(false),
    			ShutdownVariable:                    pulumi.String("string"),
    			Speed:                               pulumi.String("string"),
    			SpeedVariable:                       pulumi.String("string"),
    			SwitchportAccessVlan:                pulumi.Int(0),
    			SwitchportAccessVlanVariable:        pulumi.String("string"),
    			SwitchportTrunkAllowedVlans:         pulumi.String("string"),
    			SwitchportTrunkAllowedVlansVariable: pulumi.String("string"),
    			SwitchportTrunkNativeVlan:           pulumi.Int(0),
    			SwitchportTrunkNativeVlanVariable:   pulumi.String("string"),
    			VoiceVlan:                           pulumi.Int(0),
    			VoiceVlanVariable:                   pulumi.String("string"),
    		},
    	},
    	Name: pulumi.String("string"),
    	StaticMacAddresses: sdwan.ServiceSwitchportFeatureStaticMacAddressArray{
    		&sdwan.ServiceSwitchportFeatureStaticMacAddressArgs{
    			InterfaceName:         pulumi.String("string"),
    			InterfaceNameVariable: pulumi.String("string"),
    			MacAddress:            pulumi.String("string"),
    			MacAddressVariable:    pulumi.String("string"),
    			VlanId:                pulumi.Int(0),
    			VlanIdVariable:        pulumi.String("string"),
    		},
    	},
    })
    
    var serviceSwitchportFeatureResource = new ServiceSwitchportFeature("serviceSwitchportFeatureResource", ServiceSwitchportFeatureArgs.builder()
        .featureProfileId("string")
        .ageOutTime(0)
        .ageOutTimeVariable("string")
        .description("string")
        .interfaces(ServiceSwitchportFeatureInterfaceArgs.builder()
            .controlDirection("string")
            .controlDirectionVariable("string")
            .criticalVlan(0)
            .criticalVlanVariable("string")
            .duplex("string")
            .duplexVariable("string")
            .enablePeriodicReauth(false)
            .enablePeriodicReauthVariable("string")
            .enableVoice(false)
            .enableVoiceVariable("string")
            .guestVlan(0)
            .guestVlanVariable("string")
            .hostMode("string")
            .hostModeVariable("string")
            .inactivity(0)
            .inactivityVariable("string")
            .interfaceName("string")
            .interfaceNameVariable("string")
            .macAuthenticationBypass(false)
            .macAuthenticationBypassVariable("string")
            .mode("string")
            .paeEnable(false)
            .paeEnableVariable("string")
            .portControl("string")
            .portControlVariable("string")
            .reauthentication(0)
            .reauthenticationVariable("string")
            .restrictedVlan(0)
            .restrictedVlanVariable("string")
            .shutdown(false)
            .shutdownVariable("string")
            .speed("string")
            .speedVariable("string")
            .switchportAccessVlan(0)
            .switchportAccessVlanVariable("string")
            .switchportTrunkAllowedVlans("string")
            .switchportTrunkAllowedVlansVariable("string")
            .switchportTrunkNativeVlan(0)
            .switchportTrunkNativeVlanVariable("string")
            .voiceVlan(0)
            .voiceVlanVariable("string")
            .build())
        .name("string")
        .staticMacAddresses(ServiceSwitchportFeatureStaticMacAddressArgs.builder()
            .interfaceName("string")
            .interfaceNameVariable("string")
            .macAddress("string")
            .macAddressVariable("string")
            .vlanId(0)
            .vlanIdVariable("string")
            .build())
        .build());
    
    service_switchport_feature_resource = sdwan.ServiceSwitchportFeature("serviceSwitchportFeatureResource",
        feature_profile_id="string",
        age_out_time=0,
        age_out_time_variable="string",
        description="string",
        interfaces=[sdwan.ServiceSwitchportFeatureInterfaceArgs(
            control_direction="string",
            control_direction_variable="string",
            critical_vlan=0,
            critical_vlan_variable="string",
            duplex="string",
            duplex_variable="string",
            enable_periodic_reauth=False,
            enable_periodic_reauth_variable="string",
            enable_voice=False,
            enable_voice_variable="string",
            guest_vlan=0,
            guest_vlan_variable="string",
            host_mode="string",
            host_mode_variable="string",
            inactivity=0,
            inactivity_variable="string",
            interface_name="string",
            interface_name_variable="string",
            mac_authentication_bypass=False,
            mac_authentication_bypass_variable="string",
            mode="string",
            pae_enable=False,
            pae_enable_variable="string",
            port_control="string",
            port_control_variable="string",
            reauthentication=0,
            reauthentication_variable="string",
            restricted_vlan=0,
            restricted_vlan_variable="string",
            shutdown=False,
            shutdown_variable="string",
            speed="string",
            speed_variable="string",
            switchport_access_vlan=0,
            switchport_access_vlan_variable="string",
            switchport_trunk_allowed_vlans="string",
            switchport_trunk_allowed_vlans_variable="string",
            switchport_trunk_native_vlan=0,
            switchport_trunk_native_vlan_variable="string",
            voice_vlan=0,
            voice_vlan_variable="string",
        )],
        name="string",
        static_mac_addresses=[sdwan.ServiceSwitchportFeatureStaticMacAddressArgs(
            interface_name="string",
            interface_name_variable="string",
            mac_address="string",
            mac_address_variable="string",
            vlan_id=0,
            vlan_id_variable="string",
        )])
    
    const serviceSwitchportFeatureResource = new sdwan.ServiceSwitchportFeature("serviceSwitchportFeatureResource", {
        featureProfileId: "string",
        ageOutTime: 0,
        ageOutTimeVariable: "string",
        description: "string",
        interfaces: [{
            controlDirection: "string",
            controlDirectionVariable: "string",
            criticalVlan: 0,
            criticalVlanVariable: "string",
            duplex: "string",
            duplexVariable: "string",
            enablePeriodicReauth: false,
            enablePeriodicReauthVariable: "string",
            enableVoice: false,
            enableVoiceVariable: "string",
            guestVlan: 0,
            guestVlanVariable: "string",
            hostMode: "string",
            hostModeVariable: "string",
            inactivity: 0,
            inactivityVariable: "string",
            interfaceName: "string",
            interfaceNameVariable: "string",
            macAuthenticationBypass: false,
            macAuthenticationBypassVariable: "string",
            mode: "string",
            paeEnable: false,
            paeEnableVariable: "string",
            portControl: "string",
            portControlVariable: "string",
            reauthentication: 0,
            reauthenticationVariable: "string",
            restrictedVlan: 0,
            restrictedVlanVariable: "string",
            shutdown: false,
            shutdownVariable: "string",
            speed: "string",
            speedVariable: "string",
            switchportAccessVlan: 0,
            switchportAccessVlanVariable: "string",
            switchportTrunkAllowedVlans: "string",
            switchportTrunkAllowedVlansVariable: "string",
            switchportTrunkNativeVlan: 0,
            switchportTrunkNativeVlanVariable: "string",
            voiceVlan: 0,
            voiceVlanVariable: "string",
        }],
        name: "string",
        staticMacAddresses: [{
            interfaceName: "string",
            interfaceNameVariable: "string",
            macAddress: "string",
            macAddressVariable: "string",
            vlanId: 0,
            vlanIdVariable: "string",
        }],
    });
    
    type: sdwan:ServiceSwitchportFeature
    properties:
        ageOutTime: 0
        ageOutTimeVariable: string
        description: string
        featureProfileId: string
        interfaces:
            - controlDirection: string
              controlDirectionVariable: string
              criticalVlan: 0
              criticalVlanVariable: string
              duplex: string
              duplexVariable: string
              enablePeriodicReauth: false
              enablePeriodicReauthVariable: string
              enableVoice: false
              enableVoiceVariable: string
              guestVlan: 0
              guestVlanVariable: string
              hostMode: string
              hostModeVariable: string
              inactivity: 0
              inactivityVariable: string
              interfaceName: string
              interfaceNameVariable: string
              macAuthenticationBypass: false
              macAuthenticationBypassVariable: string
              mode: string
              paeEnable: false
              paeEnableVariable: string
              portControl: string
              portControlVariable: string
              reauthentication: 0
              reauthenticationVariable: string
              restrictedVlan: 0
              restrictedVlanVariable: string
              shutdown: false
              shutdownVariable: string
              speed: string
              speedVariable: string
              switchportAccessVlan: 0
              switchportAccessVlanVariable: string
              switchportTrunkAllowedVlans: string
              switchportTrunkAllowedVlansVariable: string
              switchportTrunkNativeVlan: 0
              switchportTrunkNativeVlanVariable: string
              voiceVlan: 0
              voiceVlanVariable: string
        name: string
        staticMacAddresses:
            - interfaceName: string
              interfaceNameVariable: string
              macAddress: string
              macAddressVariable: string
              vlanId: 0
              vlanIdVariable: string
    

    ServiceSwitchportFeature 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 ServiceSwitchportFeature resource accepts the following input properties:

    FeatureProfileId string
    Feature Profile ID
    AgeOutTime int
    Set when a MAC table entry ages out (0 to disable, 10-1000000 otherwise) - Range: 0-1000000 - Default value: 300
    AgeOutTimeVariable string
    Variable name
    Description string
    The description of the Feature
    Interfaces List<ServiceSwitchportFeatureInterface>
    Interface name: GigabitEthernet0/<>/<> when present
    Name string
    The name of the Feature
    StaticMacAddresses List<ServiceSwitchportFeatureStaticMacAddress>
    Add static MAC address entries for interface
    FeatureProfileId string
    Feature Profile ID
    AgeOutTime int
    Set when a MAC table entry ages out (0 to disable, 10-1000000 otherwise) - Range: 0-1000000 - Default value: 300
    AgeOutTimeVariable string
    Variable name
    Description string
    The description of the Feature
    Interfaces []ServiceSwitchportFeatureInterfaceArgs
    Interface name: GigabitEthernet0/<>/<> when present
    Name string
    The name of the Feature
    StaticMacAddresses []ServiceSwitchportFeatureStaticMacAddressArgs
    Add static MAC address entries for interface
    featureProfileId String
    Feature Profile ID
    ageOutTime Integer
    Set when a MAC table entry ages out (0 to disable, 10-1000000 otherwise) - Range: 0-1000000 - Default value: 300
    ageOutTimeVariable String
    Variable name
    description String
    The description of the Feature
    interfaces List<ServiceSwitchportFeatureInterface>
    Interface name: GigabitEthernet0/<>/<> when present
    name String
    The name of the Feature
    staticMacAddresses List<ServiceSwitchportFeatureStaticMacAddress>
    Add static MAC address entries for interface
    featureProfileId string
    Feature Profile ID
    ageOutTime number
    Set when a MAC table entry ages out (0 to disable, 10-1000000 otherwise) - Range: 0-1000000 - Default value: 300
    ageOutTimeVariable string
    Variable name
    description string
    The description of the Feature
    interfaces ServiceSwitchportFeatureInterface[]
    Interface name: GigabitEthernet0/<>/<> when present
    name string
    The name of the Feature
    staticMacAddresses ServiceSwitchportFeatureStaticMacAddress[]
    Add static MAC address entries for interface
    feature_profile_id str
    Feature Profile ID
    age_out_time int
    Set when a MAC table entry ages out (0 to disable, 10-1000000 otherwise) - Range: 0-1000000 - Default value: 300
    age_out_time_variable str
    Variable name
    description str
    The description of the Feature
    interfaces Sequence[ServiceSwitchportFeatureInterfaceArgs]
    Interface name: GigabitEthernet0/<>/<> when present
    name str
    The name of the Feature
    static_mac_addresses Sequence[ServiceSwitchportFeatureStaticMacAddressArgs]
    Add static MAC address entries for interface
    featureProfileId String
    Feature Profile ID
    ageOutTime Number
    Set when a MAC table entry ages out (0 to disable, 10-1000000 otherwise) - Range: 0-1000000 - Default value: 300
    ageOutTimeVariable String
    Variable name
    description String
    The description of the Feature
    interfaces List<Property Map>
    Interface name: GigabitEthernet0/<>/<> when present
    name String
    The name of the Feature
    staticMacAddresses List<Property Map>
    Add static MAC address entries for interface

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ServiceSwitchportFeature resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Version int
    The version of the Feature
    Id string
    The provider-assigned unique ID for this managed resource.
    Version int
    The version of the Feature
    id String
    The provider-assigned unique ID for this managed resource.
    version Integer
    The version of the Feature
    id string
    The provider-assigned unique ID for this managed resource.
    version number
    The version of the Feature
    id str
    The provider-assigned unique ID for this managed resource.
    version int
    The version of the Feature
    id String
    The provider-assigned unique ID for this managed resource.
    version Number
    The version of the Feature

    Look up Existing ServiceSwitchportFeature Resource

    Get an existing ServiceSwitchportFeature 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?: ServiceSwitchportFeatureState, opts?: CustomResourceOptions): ServiceSwitchportFeature
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            age_out_time: Optional[int] = None,
            age_out_time_variable: Optional[str] = None,
            description: Optional[str] = None,
            feature_profile_id: Optional[str] = None,
            interfaces: Optional[Sequence[ServiceSwitchportFeatureInterfaceArgs]] = None,
            name: Optional[str] = None,
            static_mac_addresses: Optional[Sequence[ServiceSwitchportFeatureStaticMacAddressArgs]] = None,
            version: Optional[int] = None) -> ServiceSwitchportFeature
    func GetServiceSwitchportFeature(ctx *Context, name string, id IDInput, state *ServiceSwitchportFeatureState, opts ...ResourceOption) (*ServiceSwitchportFeature, error)
    public static ServiceSwitchportFeature Get(string name, Input<string> id, ServiceSwitchportFeatureState? state, CustomResourceOptions? opts = null)
    public static ServiceSwitchportFeature get(String name, Output<String> id, ServiceSwitchportFeatureState 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.
    The following state arguments are supported:
    AgeOutTime int
    Set when a MAC table entry ages out (0 to disable, 10-1000000 otherwise) - Range: 0-1000000 - Default value: 300
    AgeOutTimeVariable string
    Variable name
    Description string
    The description of the Feature
    FeatureProfileId string
    Feature Profile ID
    Interfaces List<ServiceSwitchportFeatureInterface>
    Interface name: GigabitEthernet0/<>/<> when present
    Name string
    The name of the Feature
    StaticMacAddresses List<ServiceSwitchportFeatureStaticMacAddress>
    Add static MAC address entries for interface
    Version int
    The version of the Feature
    AgeOutTime int
    Set when a MAC table entry ages out (0 to disable, 10-1000000 otherwise) - Range: 0-1000000 - Default value: 300
    AgeOutTimeVariable string
    Variable name
    Description string
    The description of the Feature
    FeatureProfileId string
    Feature Profile ID
    Interfaces []ServiceSwitchportFeatureInterfaceArgs
    Interface name: GigabitEthernet0/<>/<> when present
    Name string
    The name of the Feature
    StaticMacAddresses []ServiceSwitchportFeatureStaticMacAddressArgs
    Add static MAC address entries for interface
    Version int
    The version of the Feature
    ageOutTime Integer
    Set when a MAC table entry ages out (0 to disable, 10-1000000 otherwise) - Range: 0-1000000 - Default value: 300
    ageOutTimeVariable String
    Variable name
    description String
    The description of the Feature
    featureProfileId String
    Feature Profile ID
    interfaces List<ServiceSwitchportFeatureInterface>
    Interface name: GigabitEthernet0/<>/<> when present
    name String
    The name of the Feature
    staticMacAddresses List<ServiceSwitchportFeatureStaticMacAddress>
    Add static MAC address entries for interface
    version Integer
    The version of the Feature
    ageOutTime number
    Set when a MAC table entry ages out (0 to disable, 10-1000000 otherwise) - Range: 0-1000000 - Default value: 300
    ageOutTimeVariable string
    Variable name
    description string
    The description of the Feature
    featureProfileId string
    Feature Profile ID
    interfaces ServiceSwitchportFeatureInterface[]
    Interface name: GigabitEthernet0/<>/<> when present
    name string
    The name of the Feature
    staticMacAddresses ServiceSwitchportFeatureStaticMacAddress[]
    Add static MAC address entries for interface
    version number
    The version of the Feature
    age_out_time int
    Set when a MAC table entry ages out (0 to disable, 10-1000000 otherwise) - Range: 0-1000000 - Default value: 300
    age_out_time_variable str
    Variable name
    description str
    The description of the Feature
    feature_profile_id str
    Feature Profile ID
    interfaces Sequence[ServiceSwitchportFeatureInterfaceArgs]
    Interface name: GigabitEthernet0/<>/<> when present
    name str
    The name of the Feature
    static_mac_addresses Sequence[ServiceSwitchportFeatureStaticMacAddressArgs]
    Add static MAC address entries for interface
    version int
    The version of the Feature
    ageOutTime Number
    Set when a MAC table entry ages out (0 to disable, 10-1000000 otherwise) - Range: 0-1000000 - Default value: 300
    ageOutTimeVariable String
    Variable name
    description String
    The description of the Feature
    featureProfileId String
    Feature Profile ID
    interfaces List<Property Map>
    Interface name: GigabitEthernet0/<>/<> when present
    name String
    The name of the Feature
    staticMacAddresses List<Property Map>
    Add static MAC address entries for interface
    version Number
    The version of the Feature

    Supporting Types

    ServiceSwitchportFeatureInterface, ServiceSwitchportFeatureInterfaceArgs

    ControlDirection string
    Set uni or bi directional authorization mode

    • Choices: both, in
    ControlDirectionVariable string
    Variable name
    CriticalVlan int
    Set Critical VLAN

    • Range: 1-4094
    CriticalVlanVariable string
    Variable name
    Duplex string
    Duplex mode

    • Choices: full, half
    DuplexVariable string
    Variable name
    EnablePeriodicReauth bool
    Enable Periodic Reauthentication
    EnablePeriodicReauthVariable string
    Variable name
    EnableVoice bool
    Enable Critical Voice VLAN
    EnableVoiceVariable string
    Variable name
    GuestVlan int
    Set vlan to drop non-802.1x enabled clients into if client is not in MAB list

    • Range: 1-4094
    GuestVlanVariable string
    Variable name
    HostMode string
    Set host mode

    • Choices: single-host, multi-auth, multi-host, multi-domain
    HostModeVariable string
    Variable name
    Inactivity int
    Periodic Reauthentication Inactivity Timeout (in seconds)

    • Range: 1-65535
    InactivityVariable string
    Variable name
    InterfaceName string
    Set Interface name
    InterfaceNameVariable string
    Variable name
    MacAuthenticationBypass bool
    MAC Authentication Bypass
    MacAuthenticationBypassVariable string
    Variable name
    Mode string
    Set type of switch port: access/trunk

    • Choices: access, trunk
    PaeEnable bool
    Set 802.1x Interface Pae Type
    PaeEnableVariable string
    Variable name
    PortControl string
    Set Port-Control Mode

    • Choices: auto, force-unauthorized, force-authorized
    PortControlVariable string
    Variable name
    Reauthentication int
    Periodic Reauthentication Interval (in seconds)

    • Range: 1-1073741823
    • Default value: 3600
    ReauthenticationVariable string
    Variable name
    RestrictedVlan int
    Set Restricted VLAN ID

    • Range: 1-4094
    RestrictedVlanVariable string
    Variable name
    Shutdown bool
    Administrative state

    • Default value: true
    ShutdownVariable string
    Variable name
    Speed string
    Set interface speed

    • Choices: 10, 100, 1000, 2500, 10000
    SpeedVariable string
    Variable name
    SwitchportAccessVlan int
    Set VLAN identifier associated with bridging domain

    • Range: 1-4094
    SwitchportAccessVlanVariable string
    Variable name
    SwitchportTrunkAllowedVlans string
    Configure VLAN IDs used with the trunk
    SwitchportTrunkAllowedVlansVariable string
    Variable name
    SwitchportTrunkNativeVlan int
    Configure VLAN ID used for native VLAN

    • Range: 1-4094
    SwitchportTrunkNativeVlanVariable string
    Variable name
    VoiceVlan int
    Configure Voice Vlan

    • Range: 1-4094
    VoiceVlanVariable string
    Variable name
    ControlDirection string
    Set uni or bi directional authorization mode

    • Choices: both, in
    ControlDirectionVariable string
    Variable name
    CriticalVlan int
    Set Critical VLAN

    • Range: 1-4094
    CriticalVlanVariable string
    Variable name
    Duplex string
    Duplex mode

    • Choices: full, half
    DuplexVariable string
    Variable name
    EnablePeriodicReauth bool
    Enable Periodic Reauthentication
    EnablePeriodicReauthVariable string
    Variable name
    EnableVoice bool
    Enable Critical Voice VLAN
    EnableVoiceVariable string
    Variable name
    GuestVlan int
    Set vlan to drop non-802.1x enabled clients into if client is not in MAB list

    • Range: 1-4094
    GuestVlanVariable string
    Variable name
    HostMode string
    Set host mode

    • Choices: single-host, multi-auth, multi-host, multi-domain
    HostModeVariable string
    Variable name
    Inactivity int
    Periodic Reauthentication Inactivity Timeout (in seconds)

    • Range: 1-65535
    InactivityVariable string
    Variable name
    InterfaceName string
    Set Interface name
    InterfaceNameVariable string
    Variable name
    MacAuthenticationBypass bool
    MAC Authentication Bypass
    MacAuthenticationBypassVariable string
    Variable name
    Mode string
    Set type of switch port: access/trunk

    • Choices: access, trunk
    PaeEnable bool
    Set 802.1x Interface Pae Type
    PaeEnableVariable string
    Variable name
    PortControl string
    Set Port-Control Mode

    • Choices: auto, force-unauthorized, force-authorized
    PortControlVariable string
    Variable name
    Reauthentication int
    Periodic Reauthentication Interval (in seconds)

    • Range: 1-1073741823
    • Default value: 3600
    ReauthenticationVariable string
    Variable name
    RestrictedVlan int
    Set Restricted VLAN ID

    • Range: 1-4094
    RestrictedVlanVariable string
    Variable name
    Shutdown bool
    Administrative state

    • Default value: true
    ShutdownVariable string
    Variable name
    Speed string
    Set interface speed

    • Choices: 10, 100, 1000, 2500, 10000
    SpeedVariable string
    Variable name
    SwitchportAccessVlan int
    Set VLAN identifier associated with bridging domain

    • Range: 1-4094
    SwitchportAccessVlanVariable string
    Variable name
    SwitchportTrunkAllowedVlans string
    Configure VLAN IDs used with the trunk
    SwitchportTrunkAllowedVlansVariable string
    Variable name
    SwitchportTrunkNativeVlan int
    Configure VLAN ID used for native VLAN

    • Range: 1-4094
    SwitchportTrunkNativeVlanVariable string
    Variable name
    VoiceVlan int
    Configure Voice Vlan

    • Range: 1-4094
    VoiceVlanVariable string
    Variable name
    controlDirection String
    Set uni or bi directional authorization mode

    • Choices: both, in
    controlDirectionVariable String
    Variable name
    criticalVlan Integer
    Set Critical VLAN

    • Range: 1-4094
    criticalVlanVariable String
    Variable name
    duplex String
    Duplex mode

    • Choices: full, half
    duplexVariable String
    Variable name
    enablePeriodicReauth Boolean
    Enable Periodic Reauthentication
    enablePeriodicReauthVariable String
    Variable name
    enableVoice Boolean
    Enable Critical Voice VLAN
    enableVoiceVariable String
    Variable name
    guestVlan Integer
    Set vlan to drop non-802.1x enabled clients into if client is not in MAB list

    • Range: 1-4094
    guestVlanVariable String
    Variable name
    hostMode String
    Set host mode

    • Choices: single-host, multi-auth, multi-host, multi-domain
    hostModeVariable String
    Variable name
    inactivity Integer
    Periodic Reauthentication Inactivity Timeout (in seconds)

    • Range: 1-65535
    inactivityVariable String
    Variable name
    interfaceName String
    Set Interface name
    interfaceNameVariable String
    Variable name
    macAuthenticationBypass Boolean
    MAC Authentication Bypass
    macAuthenticationBypassVariable String
    Variable name
    mode String
    Set type of switch port: access/trunk

    • Choices: access, trunk
    paeEnable Boolean
    Set 802.1x Interface Pae Type
    paeEnableVariable String
    Variable name
    portControl String
    Set Port-Control Mode

    • Choices: auto, force-unauthorized, force-authorized
    portControlVariable String
    Variable name
    reauthentication Integer
    Periodic Reauthentication Interval (in seconds)

    • Range: 1-1073741823
    • Default value: 3600
    reauthenticationVariable String
    Variable name
    restrictedVlan Integer
    Set Restricted VLAN ID

    • Range: 1-4094
    restrictedVlanVariable String
    Variable name
    shutdown Boolean
    Administrative state

    • Default value: true
    shutdownVariable String
    Variable name
    speed String
    Set interface speed

    • Choices: 10, 100, 1000, 2500, 10000
    speedVariable String
    Variable name
    switchportAccessVlan Integer
    Set VLAN identifier associated with bridging domain

    • Range: 1-4094
    switchportAccessVlanVariable String
    Variable name
    switchportTrunkAllowedVlans String
    Configure VLAN IDs used with the trunk
    switchportTrunkAllowedVlansVariable String
    Variable name
    switchportTrunkNativeVlan Integer
    Configure VLAN ID used for native VLAN

    • Range: 1-4094
    switchportTrunkNativeVlanVariable String
    Variable name
    voiceVlan Integer
    Configure Voice Vlan

    • Range: 1-4094
    voiceVlanVariable String
    Variable name
    controlDirection string
    Set uni or bi directional authorization mode

    • Choices: both, in
    controlDirectionVariable string
    Variable name
    criticalVlan number
    Set Critical VLAN

    • Range: 1-4094
    criticalVlanVariable string
    Variable name
    duplex string
    Duplex mode

    • Choices: full, half
    duplexVariable string
    Variable name
    enablePeriodicReauth boolean
    Enable Periodic Reauthentication
    enablePeriodicReauthVariable string
    Variable name
    enableVoice boolean
    Enable Critical Voice VLAN
    enableVoiceVariable string
    Variable name
    guestVlan number
    Set vlan to drop non-802.1x enabled clients into if client is not in MAB list

    • Range: 1-4094
    guestVlanVariable string
    Variable name
    hostMode string
    Set host mode

    • Choices: single-host, multi-auth, multi-host, multi-domain
    hostModeVariable string
    Variable name
    inactivity number
    Periodic Reauthentication Inactivity Timeout (in seconds)

    • Range: 1-65535
    inactivityVariable string
    Variable name
    interfaceName string
    Set Interface name
    interfaceNameVariable string
    Variable name
    macAuthenticationBypass boolean
    MAC Authentication Bypass
    macAuthenticationBypassVariable string
    Variable name
    mode string
    Set type of switch port: access/trunk

    • Choices: access, trunk
    paeEnable boolean
    Set 802.1x Interface Pae Type
    paeEnableVariable string
    Variable name
    portControl string
    Set Port-Control Mode

    • Choices: auto, force-unauthorized, force-authorized
    portControlVariable string
    Variable name
    reauthentication number
    Periodic Reauthentication Interval (in seconds)

    • Range: 1-1073741823
    • Default value: 3600
    reauthenticationVariable string
    Variable name
    restrictedVlan number
    Set Restricted VLAN ID

    • Range: 1-4094
    restrictedVlanVariable string
    Variable name
    shutdown boolean
    Administrative state

    • Default value: true
    shutdownVariable string
    Variable name
    speed string
    Set interface speed

    • Choices: 10, 100, 1000, 2500, 10000
    speedVariable string
    Variable name
    switchportAccessVlan number
    Set VLAN identifier associated with bridging domain

    • Range: 1-4094
    switchportAccessVlanVariable string
    Variable name
    switchportTrunkAllowedVlans string
    Configure VLAN IDs used with the trunk
    switchportTrunkAllowedVlansVariable string
    Variable name
    switchportTrunkNativeVlan number
    Configure VLAN ID used for native VLAN

    • Range: 1-4094
    switchportTrunkNativeVlanVariable string
    Variable name
    voiceVlan number
    Configure Voice Vlan

    • Range: 1-4094
    voiceVlanVariable string
    Variable name
    control_direction str
    Set uni or bi directional authorization mode

    • Choices: both, in
    control_direction_variable str
    Variable name
    critical_vlan int
    Set Critical VLAN

    • Range: 1-4094
    critical_vlan_variable str
    Variable name
    duplex str
    Duplex mode

    • Choices: full, half
    duplex_variable str
    Variable name
    enable_periodic_reauth bool
    Enable Periodic Reauthentication
    enable_periodic_reauth_variable str
    Variable name
    enable_voice bool
    Enable Critical Voice VLAN
    enable_voice_variable str
    Variable name
    guest_vlan int
    Set vlan to drop non-802.1x enabled clients into if client is not in MAB list

    • Range: 1-4094
    guest_vlan_variable str
    Variable name
    host_mode str
    Set host mode

    • Choices: single-host, multi-auth, multi-host, multi-domain
    host_mode_variable str
    Variable name
    inactivity int
    Periodic Reauthentication Inactivity Timeout (in seconds)

    • Range: 1-65535
    inactivity_variable str
    Variable name
    interface_name str
    Set Interface name
    interface_name_variable str
    Variable name
    mac_authentication_bypass bool
    MAC Authentication Bypass
    mac_authentication_bypass_variable str
    Variable name
    mode str
    Set type of switch port: access/trunk

    • Choices: access, trunk
    pae_enable bool
    Set 802.1x Interface Pae Type
    pae_enable_variable str
    Variable name
    port_control str
    Set Port-Control Mode

    • Choices: auto, force-unauthorized, force-authorized
    port_control_variable str
    Variable name
    reauthentication int
    Periodic Reauthentication Interval (in seconds)

    • Range: 1-1073741823
    • Default value: 3600
    reauthentication_variable str
    Variable name
    restricted_vlan int
    Set Restricted VLAN ID

    • Range: 1-4094
    restricted_vlan_variable str
    Variable name
    shutdown bool
    Administrative state

    • Default value: true
    shutdown_variable str
    Variable name
    speed str
    Set interface speed

    • Choices: 10, 100, 1000, 2500, 10000
    speed_variable str
    Variable name
    switchport_access_vlan int
    Set VLAN identifier associated with bridging domain

    • Range: 1-4094
    switchport_access_vlan_variable str
    Variable name
    switchport_trunk_allowed_vlans str
    Configure VLAN IDs used with the trunk
    switchport_trunk_allowed_vlans_variable str
    Variable name
    switchport_trunk_native_vlan int
    Configure VLAN ID used for native VLAN

    • Range: 1-4094
    switchport_trunk_native_vlan_variable str
    Variable name
    voice_vlan int
    Configure Voice Vlan

    • Range: 1-4094
    voice_vlan_variable str
    Variable name
    controlDirection String
    Set uni or bi directional authorization mode

    • Choices: both, in
    controlDirectionVariable String
    Variable name
    criticalVlan Number
    Set Critical VLAN

    • Range: 1-4094
    criticalVlanVariable String
    Variable name
    duplex String
    Duplex mode

    • Choices: full, half
    duplexVariable String
    Variable name
    enablePeriodicReauth Boolean
    Enable Periodic Reauthentication
    enablePeriodicReauthVariable String
    Variable name
    enableVoice Boolean
    Enable Critical Voice VLAN
    enableVoiceVariable String
    Variable name
    guestVlan Number
    Set vlan to drop non-802.1x enabled clients into if client is not in MAB list

    • Range: 1-4094
    guestVlanVariable String
    Variable name
    hostMode String
    Set host mode

    • Choices: single-host, multi-auth, multi-host, multi-domain
    hostModeVariable String
    Variable name
    inactivity Number
    Periodic Reauthentication Inactivity Timeout (in seconds)

    • Range: 1-65535
    inactivityVariable String
    Variable name
    interfaceName String
    Set Interface name
    interfaceNameVariable String
    Variable name
    macAuthenticationBypass Boolean
    MAC Authentication Bypass
    macAuthenticationBypassVariable String
    Variable name
    mode String
    Set type of switch port: access/trunk

    • Choices: access, trunk
    paeEnable Boolean
    Set 802.1x Interface Pae Type
    paeEnableVariable String
    Variable name
    portControl String
    Set Port-Control Mode

    • Choices: auto, force-unauthorized, force-authorized
    portControlVariable String
    Variable name
    reauthentication Number
    Periodic Reauthentication Interval (in seconds)

    • Range: 1-1073741823
    • Default value: 3600
    reauthenticationVariable String
    Variable name
    restrictedVlan Number
    Set Restricted VLAN ID

    • Range: 1-4094
    restrictedVlanVariable String
    Variable name
    shutdown Boolean
    Administrative state

    • Default value: true
    shutdownVariable String
    Variable name
    speed String
    Set interface speed

    • Choices: 10, 100, 1000, 2500, 10000
    speedVariable String
    Variable name
    switchportAccessVlan Number
    Set VLAN identifier associated with bridging domain

    • Range: 1-4094
    switchportAccessVlanVariable String
    Variable name
    switchportTrunkAllowedVlans String
    Configure VLAN IDs used with the trunk
    switchportTrunkAllowedVlansVariable String
    Variable name
    switchportTrunkNativeVlan Number
    Configure VLAN ID used for native VLAN

    • Range: 1-4094
    switchportTrunkNativeVlanVariable String
    Variable name
    voiceVlan Number
    Configure Voice Vlan

    • Range: 1-4094
    voiceVlanVariable String
    Variable name

    ServiceSwitchportFeatureStaticMacAddress, ServiceSwitchportFeatureStaticMacAddressArgs

    InterfaceName string
    Interface name: GigabitEthernet0/<>/<>
    InterfaceNameVariable string
    Variable name
    MacAddress string
    Set MAC address in xxxx.xxxx.xxxx format
    MacAddressVariable string
    Variable name
    VlanId int
    Configure VLAN ID used with the mac and interface

    • Range: 1-4094
    VlanIdVariable string
    Variable name
    InterfaceName string
    Interface name: GigabitEthernet0/<>/<>
    InterfaceNameVariable string
    Variable name
    MacAddress string
    Set MAC address in xxxx.xxxx.xxxx format
    MacAddressVariable string
    Variable name
    VlanId int
    Configure VLAN ID used with the mac and interface

    • Range: 1-4094
    VlanIdVariable string
    Variable name
    interfaceName String
    Interface name: GigabitEthernet0/<>/<>
    interfaceNameVariable String
    Variable name
    macAddress String
    Set MAC address in xxxx.xxxx.xxxx format
    macAddressVariable String
    Variable name
    vlanId Integer
    Configure VLAN ID used with the mac and interface

    • Range: 1-4094
    vlanIdVariable String
    Variable name
    interfaceName string
    Interface name: GigabitEthernet0/<>/<>
    interfaceNameVariable string
    Variable name
    macAddress string
    Set MAC address in xxxx.xxxx.xxxx format
    macAddressVariable string
    Variable name
    vlanId number
    Configure VLAN ID used with the mac and interface

    • Range: 1-4094
    vlanIdVariable string
    Variable name
    interface_name str
    Interface name: GigabitEthernet0/<>/<>
    interface_name_variable str
    Variable name
    mac_address str
    Set MAC address in xxxx.xxxx.xxxx format
    mac_address_variable str
    Variable name
    vlan_id int
    Configure VLAN ID used with the mac and interface

    • Range: 1-4094
    vlan_id_variable str
    Variable name
    interfaceName String
    Interface name: GigabitEthernet0/<>/<>
    interfaceNameVariable String
    Variable name
    macAddress String
    Set MAC address in xxxx.xxxx.xxxx format
    macAddressVariable String
    Variable name
    vlanId Number
    Configure VLAN ID used with the mac and interface

    • Range: 1-4094
    vlanIdVariable String
    Variable name

    Import

    $ pulumi import sdwan:index/serviceSwitchportFeature:ServiceSwitchportFeature example "f6b2c44c-693c-4763-b010-895aa3d236bd"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    sdwan pulumi/pulumi-sdwan
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the sdwan Terraform Provider.
    sdwan logo
    Cisco Catalyst SD-WAN v0.1.3 published on Tuesday, Sep 24, 2024 by Pulumi