Cisco Catalyst SD-WAN v0.2.0 published on Friday, Nov 1, 2024 by Pulumi
sdwan.getServiceSwitchportFeature
Explore with Pulumi AI
This data source can read the Service Switchport Feature.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as sdwan from "@pulumi/sdwan";
const example = sdwan.getServiceSwitchportFeature({
id: "f6b2c44c-693c-4763-b010-895aa3d236bd",
featureProfileId: "f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac",
});
import pulumi
import pulumi_sdwan as sdwan
example = sdwan.get_service_switchport_feature(id="f6b2c44c-693c-4763-b010-895aa3d236bd",
feature_profile_id="f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac")
package main
import (
"github.com/pulumi/pulumi-sdwan/sdk/go/sdwan"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := sdwan.LookupServiceSwitchportFeature(ctx, &sdwan.LookupServiceSwitchportFeatureArgs{
Id: "f6b2c44c-693c-4763-b010-895aa3d236bd",
FeatureProfileId: "f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Sdwan = Pulumi.Sdwan;
return await Deployment.RunAsync(() =>
{
var example = Sdwan.GetServiceSwitchportFeature.Invoke(new()
{
Id = "f6b2c44c-693c-4763-b010-895aa3d236bd",
FeatureProfileId = "f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sdwan.SdwanFunctions;
import com.pulumi.sdwan.inputs.GetServiceSwitchportFeatureArgs;
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 = SdwanFunctions.getServiceSwitchportFeature(GetServiceSwitchportFeatureArgs.builder()
.id("f6b2c44c-693c-4763-b010-895aa3d236bd")
.featureProfileId("f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac")
.build());
}
}
variables:
example:
fn::invoke:
Function: sdwan:getServiceSwitchportFeature
Arguments:
id: f6b2c44c-693c-4763-b010-895aa3d236bd
featureProfileId: f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac
Using getServiceSwitchportFeature
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 getServiceSwitchportFeature(args: GetServiceSwitchportFeatureArgs, opts?: InvokeOptions): Promise<GetServiceSwitchportFeatureResult>
function getServiceSwitchportFeatureOutput(args: GetServiceSwitchportFeatureOutputArgs, opts?: InvokeOptions): Output<GetServiceSwitchportFeatureResult>
def get_service_switchport_feature(feature_profile_id: Optional[str] = None,
id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetServiceSwitchportFeatureResult
def get_service_switchport_feature_output(feature_profile_id: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetServiceSwitchportFeatureResult]
func LookupServiceSwitchportFeature(ctx *Context, args *LookupServiceSwitchportFeatureArgs, opts ...InvokeOption) (*LookupServiceSwitchportFeatureResult, error)
func LookupServiceSwitchportFeatureOutput(ctx *Context, args *LookupServiceSwitchportFeatureOutputArgs, opts ...InvokeOption) LookupServiceSwitchportFeatureResultOutput
> Note: This function is named LookupServiceSwitchportFeature
in the Go SDK.
public static class GetServiceSwitchportFeature
{
public static Task<GetServiceSwitchportFeatureResult> InvokeAsync(GetServiceSwitchportFeatureArgs args, InvokeOptions? opts = null)
public static Output<GetServiceSwitchportFeatureResult> Invoke(GetServiceSwitchportFeatureInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetServiceSwitchportFeatureResult> getServiceSwitchportFeature(GetServiceSwitchportFeatureArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: sdwan:index/getServiceSwitchportFeature:getServiceSwitchportFeature
arguments:
# arguments dictionary
The following arguments are supported:
- Feature
Profile stringId - Feature Profile ID
- Id string
- The id of the Feature
- Feature
Profile stringId - Feature Profile ID
- Id string
- The id of the Feature
- feature
Profile StringId - Feature Profile ID
- id String
- The id of the Feature
- feature
Profile stringId - Feature Profile ID
- id string
- The id of the Feature
- feature_
profile_ strid - Feature Profile ID
- id str
- The id of the Feature
- feature
Profile StringId - Feature Profile ID
- id String
- The id of the Feature
getServiceSwitchportFeature Result
The following output properties are available:
- Age
Out intTime - Set when a MAC table entry ages out (0 to disable, 10-1000000 otherwise)
- Age
Out stringTime Variable - Variable name
- Description string
- The description of the Feature
- Feature
Profile stringId - Feature Profile ID
- Id string
- The id of the Feature
- Interfaces
List<Get
Service Switchport Feature Interface> - Interface name: GigabitEthernet0/<>/<> when present
- Name string
- The name of the Feature
- Static
Mac List<GetAddresses Service Switchport Feature Static Mac Address> - Add static MAC address entries for interface
- Version int
- The version of the Feature
- Age
Out intTime - Set when a MAC table entry ages out (0 to disable, 10-1000000 otherwise)
- Age
Out stringTime Variable - Variable name
- Description string
- The description of the Feature
- Feature
Profile stringId - Feature Profile ID
- Id string
- The id of the Feature
- Interfaces
[]Get
Service Switchport Feature Interface - Interface name: GigabitEthernet0/<>/<> when present
- Name string
- The name of the Feature
- Static
Mac []GetAddresses Service Switchport Feature Static Mac Address - Add static MAC address entries for interface
- Version int
- The version of the Feature
- age
Out IntegerTime - Set when a MAC table entry ages out (0 to disable, 10-1000000 otherwise)
- age
Out StringTime Variable - Variable name
- description String
- The description of the Feature
- feature
Profile StringId - Feature Profile ID
- id String
- The id of the Feature
- interfaces
List<Get
Service Switchport Feature Interface> - Interface name: GigabitEthernet0/<>/<> when present
- name String
- The name of the Feature
- static
Mac List<GetAddresses Service Switchport Feature Static Mac Address> - Add static MAC address entries for interface
- version Integer
- The version of the Feature
- age
Out numberTime - Set when a MAC table entry ages out (0 to disable, 10-1000000 otherwise)
- age
Out stringTime Variable - Variable name
- description string
- The description of the Feature
- feature
Profile stringId - Feature Profile ID
- id string
- The id of the Feature
- interfaces
Get
Service Switchport Feature Interface[] - Interface name: GigabitEthernet0/<>/<> when present
- name string
- The name of the Feature
- static
Mac GetAddresses Service Switchport Feature Static Mac Address[] - Add static MAC address entries for interface
- version number
- The version of the Feature
- age_
out_ inttime - Set when a MAC table entry ages out (0 to disable, 10-1000000 otherwise)
- age_
out_ strtime_ variable - Variable name
- description str
- The description of the Feature
- feature_
profile_ strid - Feature Profile ID
- id str
- The id of the Feature
- interfaces
Sequence[Get
Service Switchport Feature Interface] - Interface name: GigabitEthernet0/<>/<> when present
- name str
- The name of the Feature
- static_
mac_ Sequence[Getaddresses Service Switchport Feature Static Mac Address] - Add static MAC address entries for interface
- version int
- The version of the Feature
- age
Out NumberTime - Set when a MAC table entry ages out (0 to disable, 10-1000000 otherwise)
- age
Out StringTime Variable - Variable name
- description String
- The description of the Feature
- feature
Profile StringId - Feature Profile ID
- id String
- The id of the Feature
- interfaces List<Property Map>
- Interface name: GigabitEthernet0/<>/<> when present
- name String
- The name of the Feature
- static
Mac List<Property Map>Addresses - Add static MAC address entries for interface
- version Number
- The version of the Feature
Supporting Types
GetServiceSwitchportFeatureInterface
- Control
Direction string - Set uni or bi directional authorization mode
- Control
Direction stringVariable - Variable name
- Critical
Vlan int - Set Critical VLAN
- Critical
Vlan stringVariable - Variable name
- Duplex string
- Duplex mode
- Duplex
Variable string - Variable name
- Enable
Periodic boolReauth - Enable Periodic Reauthentication
- Enable
Periodic stringReauth Variable - Variable name
- Enable
Voice bool - Enable Critical Voice VLAN
- Enable
Voice stringVariable - Variable name
- Guest
Vlan int - Set vlan to drop non-802.1x enabled clients into if client is not in MAB list
- Guest
Vlan stringVariable - Variable name
- Host
Mode string - Set host mode
- Host
Mode stringVariable - Variable name
- Inactivity int
- Periodic Reauthentication Inactivity Timeout (in seconds)
- Inactivity
Variable string - Variable name
- Interface
Name string - Set Interface name
- Interface
Name stringVariable - Variable name
- Mac
Authentication boolBypass - MAC Authentication Bypass
- Mac
Authentication stringBypass Variable - Variable name
- Mode string
- Set type of switch port: access/trunk
- Pae
Enable bool - Set 802.1x Interface Pae Type
- Pae
Enable stringVariable - Variable name
- Port
Control string - Set Port-Control Mode
- Port
Control stringVariable - Variable name
- Reauthentication int
- Periodic Reauthentication Interval (in seconds)
- Reauthentication
Variable string - Variable name
- Restricted
Vlan int - Set Restricted VLAN ID
- Restricted
Vlan stringVariable - Variable name
- Shutdown bool
- Administrative state
- Shutdown
Variable string - Variable name
- Speed string
- Set interface speed
- Speed
Variable string - Variable name
- Switchport
Access intVlan - Set VLAN identifier associated with bridging domain
- Switchport
Access stringVlan Variable - Variable name
- Switchport
Trunk stringAllowed Vlans - Configure VLAN IDs used with the trunk
- Switchport
Trunk stringAllowed Vlans Variable - Variable name
- Switchport
Trunk intNative Vlan - Configure VLAN ID used for native VLAN
- Switchport
Trunk stringNative Vlan Variable - Variable name
- Voice
Vlan int - Configure Voice Vlan
- Voice
Vlan stringVariable - Variable name
- Control
Direction string - Set uni or bi directional authorization mode
- Control
Direction stringVariable - Variable name
- Critical
Vlan int - Set Critical VLAN
- Critical
Vlan stringVariable - Variable name
- Duplex string
- Duplex mode
- Duplex
Variable string - Variable name
- Enable
Periodic boolReauth - Enable Periodic Reauthentication
- Enable
Periodic stringReauth Variable - Variable name
- Enable
Voice bool - Enable Critical Voice VLAN
- Enable
Voice stringVariable - Variable name
- Guest
Vlan int - Set vlan to drop non-802.1x enabled clients into if client is not in MAB list
- Guest
Vlan stringVariable - Variable name
- Host
Mode string - Set host mode
- Host
Mode stringVariable - Variable name
- Inactivity int
- Periodic Reauthentication Inactivity Timeout (in seconds)
- Inactivity
Variable string - Variable name
- Interface
Name string - Set Interface name
- Interface
Name stringVariable - Variable name
- Mac
Authentication boolBypass - MAC Authentication Bypass
- Mac
Authentication stringBypass Variable - Variable name
- Mode string
- Set type of switch port: access/trunk
- Pae
Enable bool - Set 802.1x Interface Pae Type
- Pae
Enable stringVariable - Variable name
- Port
Control string - Set Port-Control Mode
- Port
Control stringVariable - Variable name
- Reauthentication int
- Periodic Reauthentication Interval (in seconds)
- Reauthentication
Variable string - Variable name
- Restricted
Vlan int - Set Restricted VLAN ID
- Restricted
Vlan stringVariable - Variable name
- Shutdown bool
- Administrative state
- Shutdown
Variable string - Variable name
- Speed string
- Set interface speed
- Speed
Variable string - Variable name
- Switchport
Access intVlan - Set VLAN identifier associated with bridging domain
- Switchport
Access stringVlan Variable - Variable name
- Switchport
Trunk stringAllowed Vlans - Configure VLAN IDs used with the trunk
- Switchport
Trunk stringAllowed Vlans Variable - Variable name
- Switchport
Trunk intNative Vlan - Configure VLAN ID used for native VLAN
- Switchport
Trunk stringNative Vlan Variable - Variable name
- Voice
Vlan int - Configure Voice Vlan
- Voice
Vlan stringVariable - Variable name
- control
Direction String - Set uni or bi directional authorization mode
- control
Direction StringVariable - Variable name
- critical
Vlan Integer - Set Critical VLAN
- critical
Vlan StringVariable - Variable name
- duplex String
- Duplex mode
- duplex
Variable String - Variable name
- enable
Periodic BooleanReauth - Enable Periodic Reauthentication
- enable
Periodic StringReauth Variable - Variable name
- enable
Voice Boolean - Enable Critical Voice VLAN
- enable
Voice StringVariable - Variable name
- guest
Vlan Integer - Set vlan to drop non-802.1x enabled clients into if client is not in MAB list
- guest
Vlan StringVariable - Variable name
- host
Mode String - Set host mode
- host
Mode StringVariable - Variable name
- inactivity Integer
- Periodic Reauthentication Inactivity Timeout (in seconds)
- inactivity
Variable String - Variable name
- interface
Name String - Set Interface name
- interface
Name StringVariable - Variable name
- mac
Authentication BooleanBypass - MAC Authentication Bypass
- mac
Authentication StringBypass Variable - Variable name
- mode String
- Set type of switch port: access/trunk
- pae
Enable Boolean - Set 802.1x Interface Pae Type
- pae
Enable StringVariable - Variable name
- port
Control String - Set Port-Control Mode
- port
Control StringVariable - Variable name
- reauthentication Integer
- Periodic Reauthentication Interval (in seconds)
- reauthentication
Variable String - Variable name
- restricted
Vlan Integer - Set Restricted VLAN ID
- restricted
Vlan StringVariable - Variable name
- shutdown Boolean
- Administrative state
- shutdown
Variable String - Variable name
- speed String
- Set interface speed
- speed
Variable String - Variable name
- switchport
Access IntegerVlan - Set VLAN identifier associated with bridging domain
- switchport
Access StringVlan Variable - Variable name
- switchport
Trunk StringAllowed Vlans - Configure VLAN IDs used with the trunk
- switchport
Trunk StringAllowed Vlans Variable - Variable name
- switchport
Trunk IntegerNative Vlan - Configure VLAN ID used for native VLAN
- switchport
Trunk StringNative Vlan Variable - Variable name
- voice
Vlan Integer - Configure Voice Vlan
- voice
Vlan StringVariable - Variable name
- control
Direction string - Set uni or bi directional authorization mode
- control
Direction stringVariable - Variable name
- critical
Vlan number - Set Critical VLAN
- critical
Vlan stringVariable - Variable name
- duplex string
- Duplex mode
- duplex
Variable string - Variable name
- enable
Periodic booleanReauth - Enable Periodic Reauthentication
- enable
Periodic stringReauth Variable - Variable name
- enable
Voice boolean - Enable Critical Voice VLAN
- enable
Voice stringVariable - Variable name
- guest
Vlan number - Set vlan to drop non-802.1x enabled clients into if client is not in MAB list
- guest
Vlan stringVariable - Variable name
- host
Mode string - Set host mode
- host
Mode stringVariable - Variable name
- inactivity number
- Periodic Reauthentication Inactivity Timeout (in seconds)
- inactivity
Variable string - Variable name
- interface
Name string - Set Interface name
- interface
Name stringVariable - Variable name
- mac
Authentication booleanBypass - MAC Authentication Bypass
- mac
Authentication stringBypass Variable - Variable name
- mode string
- Set type of switch port: access/trunk
- pae
Enable boolean - Set 802.1x Interface Pae Type
- pae
Enable stringVariable - Variable name
- port
Control string - Set Port-Control Mode
- port
Control stringVariable - Variable name
- reauthentication number
- Periodic Reauthentication Interval (in seconds)
- reauthentication
Variable string - Variable name
- restricted
Vlan number - Set Restricted VLAN ID
- restricted
Vlan stringVariable - Variable name
- shutdown boolean
- Administrative state
- shutdown
Variable string - Variable name
- speed string
- Set interface speed
- speed
Variable string - Variable name
- switchport
Access numberVlan - Set VLAN identifier associated with bridging domain
- switchport
Access stringVlan Variable - Variable name
- switchport
Trunk stringAllowed Vlans - Configure VLAN IDs used with the trunk
- switchport
Trunk stringAllowed Vlans Variable - Variable name
- switchport
Trunk numberNative Vlan - Configure VLAN ID used for native VLAN
- switchport
Trunk stringNative Vlan Variable - Variable name
- voice
Vlan number - Configure Voice Vlan
- voice
Vlan stringVariable - Variable name
- control_
direction str - Set uni or bi directional authorization mode
- control_
direction_ strvariable - Variable name
- critical_
vlan int - Set Critical VLAN
- critical_
vlan_ strvariable - Variable name
- duplex str
- Duplex mode
- duplex_
variable str - Variable name
- enable_
periodic_ boolreauth - Enable Periodic Reauthentication
- enable_
periodic_ strreauth_ variable - Variable name
- enable_
voice bool - Enable Critical Voice VLAN
- enable_
voice_ strvariable - Variable name
- guest_
vlan int - Set vlan to drop non-802.1x enabled clients into if client is not in MAB list
- guest_
vlan_ strvariable - Variable name
- host_
mode str - Set host mode
- host_
mode_ strvariable - Variable name
- inactivity int
- Periodic Reauthentication Inactivity Timeout (in seconds)
- inactivity_
variable str - Variable name
- interface_
name str - Set Interface name
- interface_
name_ strvariable - Variable name
- mac_
authentication_ boolbypass - MAC Authentication Bypass
- mac_
authentication_ strbypass_ variable - Variable name
- mode str
- Set type of switch port: access/trunk
- pae_
enable bool - Set 802.1x Interface Pae Type
- pae_
enable_ strvariable - Variable name
- port_
control str - Set Port-Control Mode
- port_
control_ strvariable - Variable name
- reauthentication int
- Periodic Reauthentication Interval (in seconds)
- reauthentication_
variable str - Variable name
- restricted_
vlan int - Set Restricted VLAN ID
- restricted_
vlan_ strvariable - Variable name
- shutdown bool
- Administrative state
- shutdown_
variable str - Variable name
- speed str
- Set interface speed
- speed_
variable str - Variable name
- switchport_
access_ intvlan - Set VLAN identifier associated with bridging domain
- switchport_
access_ strvlan_ variable - Variable name
- switchport_
trunk_ strallowed_ vlans - Configure VLAN IDs used with the trunk
- switchport_
trunk_ strallowed_ vlans_ variable - Variable name
- switchport_
trunk_ intnative_ vlan - Configure VLAN ID used for native VLAN
- switchport_
trunk_ strnative_ vlan_ variable - Variable name
- voice_
vlan int - Configure Voice Vlan
- voice_
vlan_ strvariable - Variable name
- control
Direction String - Set uni or bi directional authorization mode
- control
Direction StringVariable - Variable name
- critical
Vlan Number - Set Critical VLAN
- critical
Vlan StringVariable - Variable name
- duplex String
- Duplex mode
- duplex
Variable String - Variable name
- enable
Periodic BooleanReauth - Enable Periodic Reauthentication
- enable
Periodic StringReauth Variable - Variable name
- enable
Voice Boolean - Enable Critical Voice VLAN
- enable
Voice StringVariable - Variable name
- guest
Vlan Number - Set vlan to drop non-802.1x enabled clients into if client is not in MAB list
- guest
Vlan StringVariable - Variable name
- host
Mode String - Set host mode
- host
Mode StringVariable - Variable name
- inactivity Number
- Periodic Reauthentication Inactivity Timeout (in seconds)
- inactivity
Variable String - Variable name
- interface
Name String - Set Interface name
- interface
Name StringVariable - Variable name
- mac
Authentication BooleanBypass - MAC Authentication Bypass
- mac
Authentication StringBypass Variable - Variable name
- mode String
- Set type of switch port: access/trunk
- pae
Enable Boolean - Set 802.1x Interface Pae Type
- pae
Enable StringVariable - Variable name
- port
Control String - Set Port-Control Mode
- port
Control StringVariable - Variable name
- reauthentication Number
- Periodic Reauthentication Interval (in seconds)
- reauthentication
Variable String - Variable name
- restricted
Vlan Number - Set Restricted VLAN ID
- restricted
Vlan StringVariable - Variable name
- shutdown Boolean
- Administrative state
- shutdown
Variable String - Variable name
- speed String
- Set interface speed
- speed
Variable String - Variable name
- switchport
Access NumberVlan - Set VLAN identifier associated with bridging domain
- switchport
Access StringVlan Variable - Variable name
- switchport
Trunk StringAllowed Vlans - Configure VLAN IDs used with the trunk
- switchport
Trunk StringAllowed Vlans Variable - Variable name
- switchport
Trunk NumberNative Vlan - Configure VLAN ID used for native VLAN
- switchport
Trunk StringNative Vlan Variable - Variable name
- voice
Vlan Number - Configure Voice Vlan
- voice
Vlan StringVariable - Variable name
GetServiceSwitchportFeatureStaticMacAddress
- Interface
Name string - Interface name: GigabitEthernet0/<>/<>
- Interface
Name stringVariable - Variable name
- Mac
Address string - Set MAC address in xxxx.xxxx.xxxx format
- Mac
Address stringVariable - Variable name
- Vlan
Id int - Configure VLAN ID used with the mac and interface
- Vlan
Id stringVariable - Variable name
- Interface
Name string - Interface name: GigabitEthernet0/<>/<>
- Interface
Name stringVariable - Variable name
- Mac
Address string - Set MAC address in xxxx.xxxx.xxxx format
- Mac
Address stringVariable - Variable name
- Vlan
Id int - Configure VLAN ID used with the mac and interface
- Vlan
Id stringVariable - Variable name
- interface
Name String - Interface name: GigabitEthernet0/<>/<>
- interface
Name StringVariable - Variable name
- mac
Address String - Set MAC address in xxxx.xxxx.xxxx format
- mac
Address StringVariable - Variable name
- vlan
Id Integer - Configure VLAN ID used with the mac and interface
- vlan
Id StringVariable - Variable name
- interface
Name string - Interface name: GigabitEthernet0/<>/<>
- interface
Name stringVariable - Variable name
- mac
Address string - Set MAC address in xxxx.xxxx.xxxx format
- mac
Address stringVariable - Variable name
- vlan
Id number - Configure VLAN ID used with the mac and interface
- vlan
Id stringVariable - Variable name
- interface_
name str - Interface name: GigabitEthernet0/<>/<>
- interface_
name_ strvariable - Variable name
- mac_
address str - Set MAC address in xxxx.xxxx.xxxx format
- mac_
address_ strvariable - Variable name
- vlan_
id int - Configure VLAN ID used with the mac and interface
- vlan_
id_ strvariable - Variable name
- interface
Name String - Interface name: GigabitEthernet0/<>/<>
- interface
Name StringVariable - Variable name
- mac
Address String - Set MAC address in xxxx.xxxx.xxxx format
- mac
Address StringVariable - Variable name
- vlan
Id Number - Configure VLAN ID used with the mac and interface
- vlan
Id StringVariable - Variable name
Package Details
- Repository
- sdwan pulumi/pulumi-sdwan
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
sdwan
Terraform Provider.