1. Packages
  2. Cisco Catalyst SD-WAN
  3. API Docs
  4. AttachFeatureDeviceTemplate
Cisco Catalyst SD-WAN v0.2.0 published on Friday, Nov 1, 2024 by Pulumi

sdwan.AttachFeatureDeviceTemplate

Explore with Pulumi AI

sdwan logo
Cisco Catalyst SD-WAN v0.2.0 published on Friday, Nov 1, 2024 by Pulumi

    This resource can attach a feature device template. Due to limitations of the API, once a device template is attached to a device, only one change can be applied per pulumi up operation. More information is available here.

    Example Usage

    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    resources:
      example:
        type: sdwan:AttachFeatureDeviceTemplate
        properties:
          id: ${DT1.id}
          devices:
            - id: C8K-CC678D1C-8EDF-3966-4F51-ABFAB64F5ABE
              variables:
                systemSiteId: '1001'
                systemSystemIp: 1.1.1.1
                systemHostName: router1
                vpnIfNameDefaultVEdgeDHCPTunnelInterface: GigabitEthernet1
    

    Create AttachFeatureDeviceTemplate Resource

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

    Constructor syntax

    new AttachFeatureDeviceTemplate(name: string, args: AttachFeatureDeviceTemplateArgs, opts?: CustomResourceOptions);
    @overload
    def AttachFeatureDeviceTemplate(resource_name: str,
                                    args: AttachFeatureDeviceTemplateArgs,
                                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def AttachFeatureDeviceTemplate(resource_name: str,
                                    opts: Optional[ResourceOptions] = None,
                                    devices: Optional[Sequence[AttachFeatureDeviceTemplateDeviceArgs]] = None,
                                    version: Optional[int] = None)
    func NewAttachFeatureDeviceTemplate(ctx *Context, name string, args AttachFeatureDeviceTemplateArgs, opts ...ResourceOption) (*AttachFeatureDeviceTemplate, error)
    public AttachFeatureDeviceTemplate(string name, AttachFeatureDeviceTemplateArgs args, CustomResourceOptions? opts = null)
    public AttachFeatureDeviceTemplate(String name, AttachFeatureDeviceTemplateArgs args)
    public AttachFeatureDeviceTemplate(String name, AttachFeatureDeviceTemplateArgs args, CustomResourceOptions options)
    
    type: sdwan:AttachFeatureDeviceTemplate
    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 AttachFeatureDeviceTemplateArgs
    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 AttachFeatureDeviceTemplateArgs
    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 AttachFeatureDeviceTemplateArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AttachFeatureDeviceTemplateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AttachFeatureDeviceTemplateArgs
    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 attachFeatureDeviceTemplateResource = new Sdwan.AttachFeatureDeviceTemplate("attachFeatureDeviceTemplateResource", new()
    {
        Devices = new[]
        {
            new Sdwan.Inputs.AttachFeatureDeviceTemplateDeviceArgs
            {
                Id = "string",
                Variables = 
                {
                    { "string", "string" },
                },
            },
        },
        Version = 0,
    });
    
    example, err := sdwan.NewAttachFeatureDeviceTemplate(ctx, "attachFeatureDeviceTemplateResource", &sdwan.AttachFeatureDeviceTemplateArgs{
    	Devices: sdwan.AttachFeatureDeviceTemplateDeviceArray{
    		&sdwan.AttachFeatureDeviceTemplateDeviceArgs{
    			Id: pulumi.String("string"),
    			Variables: pulumi.StringMap{
    				"string": pulumi.String("string"),
    			},
    		},
    	},
    	Version: pulumi.Int(0),
    })
    
    var attachFeatureDeviceTemplateResource = new AttachFeatureDeviceTemplate("attachFeatureDeviceTemplateResource", AttachFeatureDeviceTemplateArgs.builder()
        .devices(AttachFeatureDeviceTemplateDeviceArgs.builder()
            .id("string")
            .variables(Map.of("string", "string"))
            .build())
        .version(0)
        .build());
    
    attach_feature_device_template_resource = sdwan.AttachFeatureDeviceTemplate("attachFeatureDeviceTemplateResource",
        devices=[{
            "id": "string",
            "variables": {
                "string": "string",
            },
        }],
        version=0)
    
    const attachFeatureDeviceTemplateResource = new sdwan.AttachFeatureDeviceTemplate("attachFeatureDeviceTemplateResource", {
        devices: [{
            id: "string",
            variables: {
                string: "string",
            },
        }],
        version: 0,
    });
    
    type: sdwan:AttachFeatureDeviceTemplate
    properties:
        devices:
            - id: string
              variables:
                string: string
        version: 0
    

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

    Devices List<AttachFeatureDeviceTemplateDevice>
    Devices
    Version int
    The version of the device template
    Devices []AttachFeatureDeviceTemplateDeviceArgs
    Devices
    Version int
    The version of the device template
    devices List<AttachFeatureDeviceTemplateDevice>
    Devices
    version Integer
    The version of the device template
    devices AttachFeatureDeviceTemplateDevice[]
    Devices
    version number
    The version of the device template
    devices Sequence[AttachFeatureDeviceTemplateDeviceArgs]
    Devices
    version int
    The version of the device template
    devices List<Property Map>
    Devices
    version Number
    The version of the device template

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AttachFeatureDeviceTemplate 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 AttachFeatureDeviceTemplate Resource

    Get an existing AttachFeatureDeviceTemplate 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?: AttachFeatureDeviceTemplateState, opts?: CustomResourceOptions): AttachFeatureDeviceTemplate
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            devices: Optional[Sequence[AttachFeatureDeviceTemplateDeviceArgs]] = None,
            version: Optional[int] = None) -> AttachFeatureDeviceTemplate
    func GetAttachFeatureDeviceTemplate(ctx *Context, name string, id IDInput, state *AttachFeatureDeviceTemplateState, opts ...ResourceOption) (*AttachFeatureDeviceTemplate, error)
    public static AttachFeatureDeviceTemplate Get(string name, Input<string> id, AttachFeatureDeviceTemplateState? state, CustomResourceOptions? opts = null)
    public static AttachFeatureDeviceTemplate get(String name, Output<String> id, AttachFeatureDeviceTemplateState 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:
    Devices List<AttachFeatureDeviceTemplateDevice>
    Devices
    Version int
    The version of the device template
    Devices []AttachFeatureDeviceTemplateDeviceArgs
    Devices
    Version int
    The version of the device template
    devices List<AttachFeatureDeviceTemplateDevice>
    Devices
    version Integer
    The version of the device template
    devices AttachFeatureDeviceTemplateDevice[]
    Devices
    version number
    The version of the device template
    devices Sequence[AttachFeatureDeviceTemplateDeviceArgs]
    Devices
    version int
    The version of the device template
    devices List<Property Map>
    Devices
    version Number
    The version of the device template

    Supporting Types

    AttachFeatureDeviceTemplateDevice, AttachFeatureDeviceTemplateDeviceArgs

    Id string
    Device ID
    Variables Dictionary<string, string>
    Device variables
    Id string
    Device ID
    Variables map[string]string
    Device variables
    id String
    Device ID
    variables Map<String,String>
    Device variables
    id string
    Device ID
    variables {[key: string]: string}
    Device variables
    id str
    Device ID
    variables Mapping[str, str]
    Device variables
    id String
    Device ID
    variables Map<String>
    Device variables

    Import

    One feature device template ID and a comma separated list containing at least one device ID must be included:

    $ pulumi import sdwan:index/attachFeatureDeviceTemplate:AttachFeatureDeviceTemplate example "f6b2c44c-693c-4763-b010-895aa3d236bd,[C8K-83E4B5EE-52AC-075F-B5E4-0050110680F3,C8K-C38D156C-34E4-909A-15BB-96D0E9D0E808]"
    

    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.2.0 published on Friday, Nov 1, 2024 by Pulumi