iosxe.Udld
Explore with Pulumi AI
This resource can manage the UDLD configuration.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Iosxe = Lbrlabs.PulumiPackage.Iosxe;
return await Deployment.RunAsync(() =>
{
var example = new Iosxe.Udld("example", new()
{
Aggressive = true,
Enable = true,
MessageTime = 77,
RecoveryInterval = 8640,
});
});
package main
import (
"github.com/lbrlabs/pulumi-iosxe/sdk/go/iosxe"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := iosxe.NewUdld(ctx, "example", &iosxe.UdldArgs{
Aggressive: pulumi.Bool(true),
Enable: pulumi.Bool(true),
MessageTime: pulumi.Int(77),
RecoveryInterval: pulumi.Int(8640),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.iosxe.Udld;
import com.pulumi.iosxe.UdldArgs;
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 Udld("example", UdldArgs.builder()
.aggressive(true)
.enable(true)
.messageTime(77)
.recoveryInterval(8640)
.build());
}
}
import pulumi
import lbrlabs_pulumi_iosxe as iosxe
example = iosxe.Udld("example",
aggressive=True,
enable=True,
message_time=77,
recovery_interval=8640)
import * as pulumi from "@pulumi/pulumi";
import * as iosxe from "@lbrlabs/pulumi-iosxe";
const example = new iosxe.Udld("example", {
aggressive: true,
enable: true,
messageTime: 77,
recoveryInterval: 8640,
});
resources:
example:
type: iosxe:Udld
properties:
aggressive: true
enable: true
messageTime: 77
recoveryInterval: 8640
Create Udld Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Udld(name: string, args?: UdldArgs, opts?: CustomResourceOptions);
@overload
def Udld(resource_name: str,
args: Optional[UdldArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Udld(resource_name: str,
opts: Optional[ResourceOptions] = None,
aggressive: Optional[bool] = None,
delete_mode: Optional[str] = None,
device: Optional[str] = None,
enable: Optional[bool] = None,
message_time: Optional[int] = None,
recovery_interval: Optional[int] = None)
func NewUdld(ctx *Context, name string, args *UdldArgs, opts ...ResourceOption) (*Udld, error)
public Udld(string name, UdldArgs? args = null, CustomResourceOptions? opts = null)
type: iosxe:Udld
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 UdldArgs
- 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 UdldArgs
- 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 UdldArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args UdldArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args UdldArgs
- 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 udldResource = new Iosxe.Udld("udldResource", new()
{
Aggressive = false,
DeleteMode = "string",
Device = "string",
Enable = false,
MessageTime = 0,
RecoveryInterval = 0,
});
example, err := iosxe.NewUdld(ctx, "udldResource", &iosxe.UdldArgs{
Aggressive: pulumi.Bool(false),
DeleteMode: pulumi.String("string"),
Device: pulumi.String("string"),
Enable: pulumi.Bool(false),
MessageTime: pulumi.Int(0),
RecoveryInterval: pulumi.Int(0),
})
var udldResource = new Udld("udldResource", UdldArgs.builder()
.aggressive(false)
.deleteMode("string")
.device("string")
.enable(false)
.messageTime(0)
.recoveryInterval(0)
.build());
udld_resource = iosxe.Udld("udldResource",
aggressive=False,
delete_mode="string",
device="string",
enable=False,
message_time=0,
recovery_interval=0)
const udldResource = new iosxe.Udld("udldResource", {
aggressive: false,
deleteMode: "string",
device: "string",
enable: false,
messageTime: 0,
recoveryInterval: 0,
});
type: iosxe:Udld
properties:
aggressive: false
deleteMode: string
device: string
enable: false
messageTime: 0
recoveryInterval: 0
Udld Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Udld resource accepts the following input properties:
- Aggressive bool
- Enable UDLD protocol in aggressive mode on fiber ports exceptwhere locally configured
- Delete
Mode string - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- Device string
- A device name from the provider configuration.
- Enable bool
- Enable UDLD protocol on fiber ports except where locally configured
- Message
Time int - Set UDLD message time period - Range:
1
-90
- Recovery
Interval int - timer-interval(sec) - Range:
30
-86400
- Aggressive bool
- Enable UDLD protocol in aggressive mode on fiber ports exceptwhere locally configured
- Delete
Mode string - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- Device string
- A device name from the provider configuration.
- Enable bool
- Enable UDLD protocol on fiber ports except where locally configured
- Message
Time int - Set UDLD message time period - Range:
1
-90
- Recovery
Interval int - timer-interval(sec) - Range:
30
-86400
- aggressive Boolean
- Enable UDLD protocol in aggressive mode on fiber ports exceptwhere locally configured
- delete
Mode String - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- device String
- A device name from the provider configuration.
- enable Boolean
- Enable UDLD protocol on fiber ports except where locally configured
- message
Time Integer - Set UDLD message time period - Range:
1
-90
- recovery
Interval Integer - timer-interval(sec) - Range:
30
-86400
- aggressive boolean
- Enable UDLD protocol in aggressive mode on fiber ports exceptwhere locally configured
- delete
Mode string - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- device string
- A device name from the provider configuration.
- enable boolean
- Enable UDLD protocol on fiber ports except where locally configured
- message
Time number - Set UDLD message time period - Range:
1
-90
- recovery
Interval number - timer-interval(sec) - Range:
30
-86400
- aggressive bool
- Enable UDLD protocol in aggressive mode on fiber ports exceptwhere locally configured
- delete_
mode str - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- device str
- A device name from the provider configuration.
- enable bool
- Enable UDLD protocol on fiber ports except where locally configured
- message_
time int - Set UDLD message time period - Range:
1
-90
- recovery_
interval int - timer-interval(sec) - Range:
30
-86400
- aggressive Boolean
- Enable UDLD protocol in aggressive mode on fiber ports exceptwhere locally configured
- delete
Mode String - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- device String
- A device name from the provider configuration.
- enable Boolean
- Enable UDLD protocol on fiber ports except where locally configured
- message
Time Number - Set UDLD message time period - Range:
1
-90
- recovery
Interval Number - timer-interval(sec) - Range:
30
-86400
Outputs
All input properties are implicitly available as output properties. Additionally, the Udld resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Udld Resource
Get an existing Udld 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?: UdldState, opts?: CustomResourceOptions): Udld
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
aggressive: Optional[bool] = None,
delete_mode: Optional[str] = None,
device: Optional[str] = None,
enable: Optional[bool] = None,
message_time: Optional[int] = None,
recovery_interval: Optional[int] = None) -> Udld
func GetUdld(ctx *Context, name string, id IDInput, state *UdldState, opts ...ResourceOption) (*Udld, error)
public static Udld Get(string name, Input<string> id, UdldState? state, CustomResourceOptions? opts = null)
public static Udld get(String name, Output<String> id, UdldState 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.
- Aggressive bool
- Enable UDLD protocol in aggressive mode on fiber ports exceptwhere locally configured
- Delete
Mode string - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- Device string
- A device name from the provider configuration.
- Enable bool
- Enable UDLD protocol on fiber ports except where locally configured
- Message
Time int - Set UDLD message time period - Range:
1
-90
- Recovery
Interval int - timer-interval(sec) - Range:
30
-86400
- Aggressive bool
- Enable UDLD protocol in aggressive mode on fiber ports exceptwhere locally configured
- Delete
Mode string - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- Device string
- A device name from the provider configuration.
- Enable bool
- Enable UDLD protocol on fiber ports except where locally configured
- Message
Time int - Set UDLD message time period - Range:
1
-90
- Recovery
Interval int - timer-interval(sec) - Range:
30
-86400
- aggressive Boolean
- Enable UDLD protocol in aggressive mode on fiber ports exceptwhere locally configured
- delete
Mode String - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- device String
- A device name from the provider configuration.
- enable Boolean
- Enable UDLD protocol on fiber ports except where locally configured
- message
Time Integer - Set UDLD message time period - Range:
1
-90
- recovery
Interval Integer - timer-interval(sec) - Range:
30
-86400
- aggressive boolean
- Enable UDLD protocol in aggressive mode on fiber ports exceptwhere locally configured
- delete
Mode string - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- device string
- A device name from the provider configuration.
- enable boolean
- Enable UDLD protocol on fiber ports except where locally configured
- message
Time number - Set UDLD message time period - Range:
1
-90
- recovery
Interval number - timer-interval(sec) - Range:
30
-86400
- aggressive bool
- Enable UDLD protocol in aggressive mode on fiber ports exceptwhere locally configured
- delete_
mode str - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- device str
- A device name from the provider configuration.
- enable bool
- Enable UDLD protocol on fiber ports except where locally configured
- message_
time int - Set UDLD message time period - Range:
1
-90
- recovery_
interval int - timer-interval(sec) - Range:
30
-86400
- aggressive Boolean
- Enable UDLD protocol in aggressive mode on fiber ports exceptwhere locally configured
- delete
Mode String - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- device String
- A device name from the provider configuration.
- enable Boolean
- Enable UDLD protocol on fiber ports except where locally configured
- message
Time Number - Set UDLD message time period - Range:
1
-90
- recovery
Interval Number - timer-interval(sec) - Range:
30
-86400
Import
$ pulumi import iosxe:index/udld:Udld example "Cisco-IOS-XE-native:native/udld"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- iosxe lbrlabs/pulumi-iosxe
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
iosxe
Terraform Provider.