1. Packages
  2. Fortimanager Provider
  3. API Docs
  4. ObjectCliTemplategroup
fortimanager 1.13.0 published on Thursday, Mar 13, 2025 by fortinetdev

fortimanager.ObjectCliTemplategroup

Explore with Pulumi AI

ObjectCli TemplateGroup

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as fortimanager from "@pulumi/fortimanager";

const trnameObjectCliTemplate = new fortimanager.ObjectCliTemplate("trnameObjectCliTemplate", {
    description: "This is a Terraform example",
    script: "terr-script",
});
const trnameObjectCliTemplategroup = new fortimanager.ObjectCliTemplategroup("trnameObjectCliTemplategroup", {
    description: "This is a Terraform example",
    members: ["terr-cli-template"],
}, {
    dependsOn: [trnameObjectCliTemplate],
});
Copy
import pulumi
import pulumi_fortimanager as fortimanager

trname_object_cli_template = fortimanager.ObjectCliTemplate("trnameObjectCliTemplate",
    description="This is a Terraform example",
    script="terr-script")
trname_object_cli_templategroup = fortimanager.ObjectCliTemplategroup("trnameObjectCliTemplategroup",
    description="This is a Terraform example",
    members=["terr-cli-template"],
    opts = pulumi.ResourceOptions(depends_on=[trname_object_cli_template]))
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/fortimanager/fortimanager"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		trnameObjectCliTemplate, err := fortimanager.NewObjectCliTemplate(ctx, "trnameObjectCliTemplate", &fortimanager.ObjectCliTemplateArgs{
			Description: pulumi.String("This is a Terraform example"),
			Script:      pulumi.String("terr-script"),
		})
		if err != nil {
			return err
		}
		_, err = fortimanager.NewObjectCliTemplategroup(ctx, "trnameObjectCliTemplategroup", &fortimanager.ObjectCliTemplategroupArgs{
			Description: pulumi.String("This is a Terraform example"),
			Members: pulumi.StringArray{
				pulumi.String("terr-cli-template"),
			},
		}, pulumi.DependsOn([]pulumi.Resource{
			trnameObjectCliTemplate,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Fortimanager = Pulumi.Fortimanager;

return await Deployment.RunAsync(() => 
{
    var trnameObjectCliTemplate = new Fortimanager.ObjectCliTemplate("trnameObjectCliTemplate", new()
    {
        Description = "This is a Terraform example",
        Script = "terr-script",
    });

    var trnameObjectCliTemplategroup = new Fortimanager.ObjectCliTemplategroup("trnameObjectCliTemplategroup", new()
    {
        Description = "This is a Terraform example",
        Members = new[]
        {
            "terr-cli-template",
        },
    }, new CustomResourceOptions
    {
        DependsOn =
        {
            trnameObjectCliTemplate,
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortimanager.ObjectCliTemplate;
import com.pulumi.fortimanager.ObjectCliTemplateArgs;
import com.pulumi.fortimanager.ObjectCliTemplategroup;
import com.pulumi.fortimanager.ObjectCliTemplategroupArgs;
import com.pulumi.resources.CustomResourceOptions;
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 trnameObjectCliTemplate = new ObjectCliTemplate("trnameObjectCliTemplate", ObjectCliTemplateArgs.builder()
            .description("This is a Terraform example")
            .script("terr-script")
            .build());

        var trnameObjectCliTemplategroup = new ObjectCliTemplategroup("trnameObjectCliTemplategroup", ObjectCliTemplategroupArgs.builder()
            .description("This is a Terraform example")
            .members("terr-cli-template")
            .build(), CustomResourceOptions.builder()
                .dependsOn(trnameObjectCliTemplate)
                .build());

    }
}
Copy
resources:
  trnameObjectCliTemplate:
    type: fortimanager:ObjectCliTemplate
    properties:
      description: This is a Terraform example
      script: terr-script
  trnameObjectCliTemplategroup:
    type: fortimanager:ObjectCliTemplategroup
    properties:
      description: This is a Terraform example
      members:
        - terr-cli-template
    options:
      dependsOn:
        - ${trnameObjectCliTemplate}
Copy

Create ObjectCliTemplategroup Resource

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

Constructor syntax

new ObjectCliTemplategroup(name: string, args?: ObjectCliTemplategroupArgs, opts?: CustomResourceOptions);
@overload
def ObjectCliTemplategroup(resource_name: str,
                           args: Optional[ObjectCliTemplategroupArgs] = None,
                           opts: Optional[ResourceOptions] = None)

@overload
def ObjectCliTemplategroup(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           adom: Optional[str] = None,
                           description: Optional[str] = None,
                           members: Optional[Sequence[str]] = None,
                           modification_time: Optional[str] = None,
                           name: Optional[str] = None,
                           object_cli_templategroup_id: Optional[str] = None,
                           options: Optional[Sequence[str]] = None,
                           scopetype: Optional[str] = None,
                           variables: Optional[Sequence[str]] = None)
func NewObjectCliTemplategroup(ctx *Context, name string, args *ObjectCliTemplategroupArgs, opts ...ResourceOption) (*ObjectCliTemplategroup, error)
public ObjectCliTemplategroup(string name, ObjectCliTemplategroupArgs? args = null, CustomResourceOptions? opts = null)
public ObjectCliTemplategroup(String name, ObjectCliTemplategroupArgs args)
public ObjectCliTemplategroup(String name, ObjectCliTemplategroupArgs args, CustomResourceOptions options)
type: fortimanager:ObjectCliTemplategroup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args ObjectCliTemplategroupArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args ObjectCliTemplategroupArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args ObjectCliTemplategroupArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args ObjectCliTemplategroupArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ObjectCliTemplategroupArgs
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 objectCliTemplategroupResource = new Fortimanager.ObjectCliTemplategroup("objectCliTemplategroupResource", new()
{
    Adom = "string",
    Description = "string",
    Members = new[]
    {
        "string",
    },
    ModificationTime = "string",
    Name = "string",
    ObjectCliTemplategroupId = "string",
    Options = new[]
    {
        "string",
    },
    Scopetype = "string",
    Variables = new[]
    {
        "string",
    },
});
Copy
example, err := fortimanager.NewObjectCliTemplategroup(ctx, "objectCliTemplategroupResource", &fortimanager.ObjectCliTemplategroupArgs{
Adom: pulumi.String("string"),
Description: pulumi.String("string"),
Members: pulumi.StringArray{
pulumi.String("string"),
},
ModificationTime: pulumi.String("string"),
Name: pulumi.String("string"),
ObjectCliTemplategroupId: pulumi.String("string"),
Options: pulumi.StringArray{
pulumi.String("string"),
},
Scopetype: pulumi.String("string"),
Variables: pulumi.StringArray{
pulumi.String("string"),
},
})
Copy
var objectCliTemplategroupResource = new ObjectCliTemplategroup("objectCliTemplategroupResource", ObjectCliTemplategroupArgs.builder()
    .adom("string")
    .description("string")
    .members("string")
    .modificationTime("string")
    .name("string")
    .objectCliTemplategroupId("string")
    .options("string")
    .scopetype("string")
    .variables("string")
    .build());
Copy
object_cli_templategroup_resource = fortimanager.ObjectCliTemplategroup("objectCliTemplategroupResource",
    adom="string",
    description="string",
    members=["string"],
    modification_time="string",
    name="string",
    object_cli_templategroup_id="string",
    options=["string"],
    scopetype="string",
    variables=["string"])
Copy
const objectCliTemplategroupResource = new fortimanager.ObjectCliTemplategroup("objectCliTemplategroupResource", {
    adom: "string",
    description: "string",
    members: ["string"],
    modificationTime: "string",
    name: "string",
    objectCliTemplategroupId: "string",
    options: ["string"],
    scopetype: "string",
    variables: ["string"],
});
Copy
type: fortimanager:ObjectCliTemplategroup
properties:
    adom: string
    description: string
    members:
        - string
    modificationTime: string
    name: string
    objectCliTemplategroupId: string
    options:
        - string
    scopetype: string
    variables:
        - string
Copy

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

Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Description string
Description.
Members List<string>
Member.
ModificationTime string
Modification-Time.
Name string
Name.
ObjectCliTemplategroupId string
an identifier for the resource with format {{name}}.
Options List<string>
Option. Valid values: sdwan-overlay, sdwan-manager.
Scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
Variables List<string>
Variables.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Description string
Description.
Members []string
Member.
ModificationTime string
Modification-Time.
Name string
Name.
ObjectCliTemplategroupId string
an identifier for the resource with format {{name}}.
Options []string
Option. Valid values: sdwan-overlay, sdwan-manager.
Scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
Variables []string
Variables.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
description String
Description.
members List<String>
Member.
modificationTime String
Modification-Time.
name String
Name.
objectCliTemplategroupId String
an identifier for the resource with format {{name}}.
options List<String>
Option. Valid values: sdwan-overlay, sdwan-manager.
scopetype String
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
variables List<String>
Variables.
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
description string
Description.
members string[]
Member.
modificationTime string
Modification-Time.
name string
Name.
objectCliTemplategroupId string
an identifier for the resource with format {{name}}.
options string[]
Option. Valid values: sdwan-overlay, sdwan-manager.
scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
variables string[]
Variables.
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
description str
Description.
members Sequence[str]
Member.
modification_time str
Modification-Time.
name str
Name.
object_cli_templategroup_id str
an identifier for the resource with format {{name}}.
options Sequence[str]
Option. Valid values: sdwan-overlay, sdwan-manager.
scopetype str
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
variables Sequence[str]
Variables.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
description String
Description.
members List<String>
Member.
modificationTime String
Modification-Time.
name String
Name.
objectCliTemplategroupId String
an identifier for the resource with format {{name}}.
options List<String>
Option. Valid values: sdwan-overlay, sdwan-manager.
scopetype String
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
variables List<String>
Variables.

Outputs

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

Get an existing ObjectCliTemplategroup 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?: ObjectCliTemplategroupState, opts?: CustomResourceOptions): ObjectCliTemplategroup
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        adom: Optional[str] = None,
        description: Optional[str] = None,
        members: Optional[Sequence[str]] = None,
        modification_time: Optional[str] = None,
        name: Optional[str] = None,
        object_cli_templategroup_id: Optional[str] = None,
        options: Optional[Sequence[str]] = None,
        scopetype: Optional[str] = None,
        variables: Optional[Sequence[str]] = None) -> ObjectCliTemplategroup
func GetObjectCliTemplategroup(ctx *Context, name string, id IDInput, state *ObjectCliTemplategroupState, opts ...ResourceOption) (*ObjectCliTemplategroup, error)
public static ObjectCliTemplategroup Get(string name, Input<string> id, ObjectCliTemplategroupState? state, CustomResourceOptions? opts = null)
public static ObjectCliTemplategroup get(String name, Output<String> id, ObjectCliTemplategroupState state, CustomResourceOptions options)
resources:  _:    type: fortimanager:ObjectCliTemplategroup    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Description string
Description.
Members List<string>
Member.
ModificationTime string
Modification-Time.
Name string
Name.
ObjectCliTemplategroupId string
an identifier for the resource with format {{name}}.
Options List<string>
Option. Valid values: sdwan-overlay, sdwan-manager.
Scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
Variables List<string>
Variables.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Description string
Description.
Members []string
Member.
ModificationTime string
Modification-Time.
Name string
Name.
ObjectCliTemplategroupId string
an identifier for the resource with format {{name}}.
Options []string
Option. Valid values: sdwan-overlay, sdwan-manager.
Scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
Variables []string
Variables.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
description String
Description.
members List<String>
Member.
modificationTime String
Modification-Time.
name String
Name.
objectCliTemplategroupId String
an identifier for the resource with format {{name}}.
options List<String>
Option. Valid values: sdwan-overlay, sdwan-manager.
scopetype String
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
variables List<String>
Variables.
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
description string
Description.
members string[]
Member.
modificationTime string
Modification-Time.
name string
Name.
objectCliTemplategroupId string
an identifier for the resource with format {{name}}.
options string[]
Option. Valid values: sdwan-overlay, sdwan-manager.
scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
variables string[]
Variables.
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
description str
Description.
members Sequence[str]
Member.
modification_time str
Modification-Time.
name str
Name.
object_cli_templategroup_id str
an identifier for the resource with format {{name}}.
options Sequence[str]
Option. Valid values: sdwan-overlay, sdwan-manager.
scopetype str
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
variables Sequence[str]
Variables.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
description String
Description.
members List<String>
Member.
modificationTime String
Modification-Time.
name String
Name.
objectCliTemplategroupId String
an identifier for the resource with format {{name}}.
options List<String>
Option. Valid values: sdwan-overlay, sdwan-manager.
scopetype String
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
variables List<String>
Variables.

Import

ObjectCli TemplateGroup can be imported using any of these accepted formats:

$ export “FORTIMANAGER_IMPORT_TABLE”=“true”

$ pulumi import fortimanager:index/objectCliTemplategroup:ObjectCliTemplategroup labelname {{name}}
Copy

$ unset “FORTIMANAGER_IMPORT_TABLE”

-> Hint: The scopetype and adom for import will directly inherit the scopetype and adom configuration of the provider.

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

Package Details

Repository
fortimanager fortinetdev/terraform-provider-fortimanager
License
Notes
This Pulumi package is based on the fortimanager Terraform Provider.