sdwan.CliTemplateFeatureTemplate
Explore with Pulumi AI
This resource can manage a CLI Template feature template.
- Minimum SD-WAN Manager version:
15.0.0
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as sdwan from "@pulumi/sdwan";
const example = new sdwan.CliTemplateFeatureTemplate("example", {
name: "Example",
description: "My Example",
deviceTypes: ["vedge-C8000V"],
cliConfig: `! Enable new BGP community format
ip bgp-community new-format
`,
});
import pulumi
import pulumi_sdwan as sdwan
example = sdwan.CliTemplateFeatureTemplate("example",
name="Example",
description="My Example",
device_types=["vedge-C8000V"],
cli_config="""! Enable new BGP community format
ip bgp-community new-format
""")
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.NewCliTemplateFeatureTemplate(ctx, "example", &sdwan.CliTemplateFeatureTemplateArgs{
Name: pulumi.String("Example"),
Description: pulumi.String("My Example"),
DeviceTypes: pulumi.StringArray{
pulumi.String("vedge-C8000V"),
},
CliConfig: pulumi.String("! Enable new BGP community format\nip bgp-community new-format\n"),
})
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 = new Sdwan.CliTemplateFeatureTemplate("example", new()
{
Name = "Example",
Description = "My Example",
DeviceTypes = new[]
{
"vedge-C8000V",
},
CliConfig = @"! Enable new BGP community format
ip bgp-community new-format
",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sdwan.CliTemplateFeatureTemplate;
import com.pulumi.sdwan.CliTemplateFeatureTemplateArgs;
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 CliTemplateFeatureTemplate("example", CliTemplateFeatureTemplateArgs.builder()
.name("Example")
.description("My Example")
.deviceTypes("vedge-C8000V")
.cliConfig("""
! Enable new BGP community format
ip bgp-community new-format
""")
.build());
}
}
resources:
example:
type: sdwan:CliTemplateFeatureTemplate
properties:
name: Example
description: My Example
deviceTypes:
- vedge-C8000V
cliConfig: |
! Enable new BGP community format
ip bgp-community new-format
Create CliTemplateFeatureTemplate Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CliTemplateFeatureTemplate(name: string, args: CliTemplateFeatureTemplateArgs, opts?: CustomResourceOptions);
@overload
def CliTemplateFeatureTemplate(resource_name: str,
args: CliTemplateFeatureTemplateArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CliTemplateFeatureTemplate(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
device_types: Optional[Sequence[str]] = None,
cli_config: Optional[str] = None,
name: Optional[str] = None)
func NewCliTemplateFeatureTemplate(ctx *Context, name string, args CliTemplateFeatureTemplateArgs, opts ...ResourceOption) (*CliTemplateFeatureTemplate, error)
public CliTemplateFeatureTemplate(string name, CliTemplateFeatureTemplateArgs args, CustomResourceOptions? opts = null)
public CliTemplateFeatureTemplate(String name, CliTemplateFeatureTemplateArgs args)
public CliTemplateFeatureTemplate(String name, CliTemplateFeatureTemplateArgs args, CustomResourceOptions options)
type: sdwan:CliTemplateFeatureTemplate
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 CliTemplateFeatureTemplateArgs
- 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 CliTemplateFeatureTemplateArgs
- 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 CliTemplateFeatureTemplateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CliTemplateFeatureTemplateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CliTemplateFeatureTemplateArgs
- 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 cliTemplateFeatureTemplateResource = new Sdwan.CliTemplateFeatureTemplate("cliTemplateFeatureTemplateResource", new()
{
Description = "string",
DeviceTypes = new[]
{
"string",
},
CliConfig = "string",
Name = "string",
});
example, err := sdwan.NewCliTemplateFeatureTemplate(ctx, "cliTemplateFeatureTemplateResource", &sdwan.CliTemplateFeatureTemplateArgs{
Description: pulumi.String("string"),
DeviceTypes: pulumi.StringArray{
pulumi.String("string"),
},
CliConfig: pulumi.String("string"),
Name: pulumi.String("string"),
})
var cliTemplateFeatureTemplateResource = new CliTemplateFeatureTemplate("cliTemplateFeatureTemplateResource", CliTemplateFeatureTemplateArgs.builder()
.description("string")
.deviceTypes("string")
.cliConfig("string")
.name("string")
.build());
cli_template_feature_template_resource = sdwan.CliTemplateFeatureTemplate("cliTemplateFeatureTemplateResource",
description="string",
device_types=["string"],
cli_config="string",
name="string")
const cliTemplateFeatureTemplateResource = new sdwan.CliTemplateFeatureTemplate("cliTemplateFeatureTemplateResource", {
description: "string",
deviceTypes: ["string"],
cliConfig: "string",
name: "string",
});
type: sdwan:CliTemplateFeatureTemplate
properties:
cliConfig: string
description: string
deviceTypes:
- string
name: string
CliTemplateFeatureTemplate 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 CliTemplateFeatureTemplate resource accepts the following input properties:
- Description string
- The description of the feature template
- Device
Types List<string> - List of supported device types - Choices:
vedge-C8000V
,vedge-C8300-1N1S-4T2X
,vedge-C8300-1N1S-6T
,vedge-C8300-2N2S-6T
,vedge-C8300-2N2S-4T2X
,vedge-C8500-12X4QC
,vedge-C8500-12X
,vedge-C8500-20X6C
,vedge-C8500L-8S4X
,vedge-C8200-1N-4T
,vedge-C8200L-1N-4T
- Cli
Config string - Cli config
- Name string
- The name of the feature template
- Description string
- The description of the feature template
- Device
Types []string - List of supported device types - Choices:
vedge-C8000V
,vedge-C8300-1N1S-4T2X
,vedge-C8300-1N1S-6T
,vedge-C8300-2N2S-6T
,vedge-C8300-2N2S-4T2X
,vedge-C8500-12X4QC
,vedge-C8500-12X
,vedge-C8500-20X6C
,vedge-C8500L-8S4X
,vedge-C8200-1N-4T
,vedge-C8200L-1N-4T
- Cli
Config string - Cli config
- Name string
- The name of the feature template
- description String
- The description of the feature template
- device
Types List<String> - List of supported device types - Choices:
vedge-C8000V
,vedge-C8300-1N1S-4T2X
,vedge-C8300-1N1S-6T
,vedge-C8300-2N2S-6T
,vedge-C8300-2N2S-4T2X
,vedge-C8500-12X4QC
,vedge-C8500-12X
,vedge-C8500-20X6C
,vedge-C8500L-8S4X
,vedge-C8200-1N-4T
,vedge-C8200L-1N-4T
- cli
Config String - Cli config
- name String
- The name of the feature template
- description string
- The description of the feature template
- device
Types string[] - List of supported device types - Choices:
vedge-C8000V
,vedge-C8300-1N1S-4T2X
,vedge-C8300-1N1S-6T
,vedge-C8300-2N2S-6T
,vedge-C8300-2N2S-4T2X
,vedge-C8500-12X4QC
,vedge-C8500-12X
,vedge-C8500-20X6C
,vedge-C8500L-8S4X
,vedge-C8200-1N-4T
,vedge-C8200L-1N-4T
- cli
Config string - Cli config
- name string
- The name of the feature template
- description str
- The description of the feature template
- device_
types Sequence[str] - List of supported device types - Choices:
vedge-C8000V
,vedge-C8300-1N1S-4T2X
,vedge-C8300-1N1S-6T
,vedge-C8300-2N2S-6T
,vedge-C8300-2N2S-4T2X
,vedge-C8500-12X4QC
,vedge-C8500-12X
,vedge-C8500-20X6C
,vedge-C8500L-8S4X
,vedge-C8200-1N-4T
,vedge-C8200L-1N-4T
- cli_
config str - Cli config
- name str
- The name of the feature template
- description String
- The description of the feature template
- device
Types List<String> - List of supported device types - Choices:
vedge-C8000V
,vedge-C8300-1N1S-4T2X
,vedge-C8300-1N1S-6T
,vedge-C8300-2N2S-6T
,vedge-C8300-2N2S-4T2X
,vedge-C8500-12X4QC
,vedge-C8500-12X
,vedge-C8500-20X6C
,vedge-C8500L-8S4X
,vedge-C8200-1N-4T
,vedge-C8200L-1N-4T
- cli
Config String - Cli config
- name String
- The name of the feature template
Outputs
All input properties are implicitly available as output properties. Additionally, the CliTemplateFeatureTemplate resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Template
Type string - The template type
- Version int
- The version of the feature template
- Id string
- The provider-assigned unique ID for this managed resource.
- Template
Type string - The template type
- Version int
- The version of the feature template
- id String
- The provider-assigned unique ID for this managed resource.
- template
Type String - The template type
- version Integer
- The version of the feature template
- id string
- The provider-assigned unique ID for this managed resource.
- template
Type string - The template type
- version number
- The version of the feature template
- id str
- The provider-assigned unique ID for this managed resource.
- template_
type str - The template type
- version int
- The version of the feature template
- id String
- The provider-assigned unique ID for this managed resource.
- template
Type String - The template type
- version Number
- The version of the feature template
Look up Existing CliTemplateFeatureTemplate Resource
Get an existing CliTemplateFeatureTemplate 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?: CliTemplateFeatureTemplateState, opts?: CustomResourceOptions): CliTemplateFeatureTemplate
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cli_config: Optional[str] = None,
description: Optional[str] = None,
device_types: Optional[Sequence[str]] = None,
name: Optional[str] = None,
template_type: Optional[str] = None,
version: Optional[int] = None) -> CliTemplateFeatureTemplate
func GetCliTemplateFeatureTemplate(ctx *Context, name string, id IDInput, state *CliTemplateFeatureTemplateState, opts ...ResourceOption) (*CliTemplateFeatureTemplate, error)
public static CliTemplateFeatureTemplate Get(string name, Input<string> id, CliTemplateFeatureTemplateState? state, CustomResourceOptions? opts = null)
public static CliTemplateFeatureTemplate get(String name, Output<String> id, CliTemplateFeatureTemplateState 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.
- Cli
Config string - Cli config
- Description string
- The description of the feature template
- Device
Types List<string> - List of supported device types - Choices:
vedge-C8000V
,vedge-C8300-1N1S-4T2X
,vedge-C8300-1N1S-6T
,vedge-C8300-2N2S-6T
,vedge-C8300-2N2S-4T2X
,vedge-C8500-12X4QC
,vedge-C8500-12X
,vedge-C8500-20X6C
,vedge-C8500L-8S4X
,vedge-C8200-1N-4T
,vedge-C8200L-1N-4T
- Name string
- The name of the feature template
- Template
Type string - The template type
- Version int
- The version of the feature template
- Cli
Config string - Cli config
- Description string
- The description of the feature template
- Device
Types []string - List of supported device types - Choices:
vedge-C8000V
,vedge-C8300-1N1S-4T2X
,vedge-C8300-1N1S-6T
,vedge-C8300-2N2S-6T
,vedge-C8300-2N2S-4T2X
,vedge-C8500-12X4QC
,vedge-C8500-12X
,vedge-C8500-20X6C
,vedge-C8500L-8S4X
,vedge-C8200-1N-4T
,vedge-C8200L-1N-4T
- Name string
- The name of the feature template
- Template
Type string - The template type
- Version int
- The version of the feature template
- cli
Config String - Cli config
- description String
- The description of the feature template
- device
Types List<String> - List of supported device types - Choices:
vedge-C8000V
,vedge-C8300-1N1S-4T2X
,vedge-C8300-1N1S-6T
,vedge-C8300-2N2S-6T
,vedge-C8300-2N2S-4T2X
,vedge-C8500-12X4QC
,vedge-C8500-12X
,vedge-C8500-20X6C
,vedge-C8500L-8S4X
,vedge-C8200-1N-4T
,vedge-C8200L-1N-4T
- name String
- The name of the feature template
- template
Type String - The template type
- version Integer
- The version of the feature template
- cli
Config string - Cli config
- description string
- The description of the feature template
- device
Types string[] - List of supported device types - Choices:
vedge-C8000V
,vedge-C8300-1N1S-4T2X
,vedge-C8300-1N1S-6T
,vedge-C8300-2N2S-6T
,vedge-C8300-2N2S-4T2X
,vedge-C8500-12X4QC
,vedge-C8500-12X
,vedge-C8500-20X6C
,vedge-C8500L-8S4X
,vedge-C8200-1N-4T
,vedge-C8200L-1N-4T
- name string
- The name of the feature template
- template
Type string - The template type
- version number
- The version of the feature template
- cli_
config str - Cli config
- description str
- The description of the feature template
- device_
types Sequence[str] - List of supported device types - Choices:
vedge-C8000V
,vedge-C8300-1N1S-4T2X
,vedge-C8300-1N1S-6T
,vedge-C8300-2N2S-6T
,vedge-C8300-2N2S-4T2X
,vedge-C8500-12X4QC
,vedge-C8500-12X
,vedge-C8500-20X6C
,vedge-C8500L-8S4X
,vedge-C8200-1N-4T
,vedge-C8200L-1N-4T
- name str
- The name of the feature template
- template_
type str - The template type
- version int
- The version of the feature template
- cli
Config String - Cli config
- description String
- The description of the feature template
- device
Types List<String> - List of supported device types - Choices:
vedge-C8000V
,vedge-C8300-1N1S-4T2X
,vedge-C8300-1N1S-6T
,vedge-C8300-2N2S-6T
,vedge-C8300-2N2S-4T2X
,vedge-C8500-12X4QC
,vedge-C8500-12X
,vedge-C8500-20X6C
,vedge-C8500L-8S4X
,vedge-C8200-1N-4T
,vedge-C8200L-1N-4T
- name String
- The name of the feature template
- template
Type String - The template type
- version Number
- The version of the feature template
Import
$ pulumi import sdwan:index/cliTemplateFeatureTemplate:CliTemplateFeatureTemplate 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.