ObjectCli TemplateGroup
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as fortimanager from "@pulumi/fortimanager";
const trname = new fortimanager.ObjectCliTemplate("trname", {
description: "This is a Terraform example",
name: "terr-cli-template",
script: "terr-script",
});
const trnameObjectCliTemplategroup = new fortimanager.ObjectCliTemplategroup("trname", {
description: "This is a Terraform example",
members: ["terr-cli-template"],
name: "terr-cli-tplt-grp",
}, {
dependsOn: [trname],
});
import pulumi
import pulumi_fortimanager as fortimanager
trname = fortimanager.ObjectCliTemplate("trname",
description="This is a Terraform example",
name="terr-cli-template",
script="terr-script")
trname_object_cli_templategroup = fortimanager.ObjectCliTemplategroup("trname",
description="This is a Terraform example",
members=["terr-cli-template"],
name="terr-cli-tplt-grp",
opts = pulumi.ResourceOptions(depends_on=[trname]))
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 {
trname, err := fortimanager.NewObjectCliTemplate(ctx, "trname", &fortimanager.ObjectCliTemplateArgs{
Description: pulumi.String("This is a Terraform example"),
Name: pulumi.String("terr-cli-template"),
Script: pulumi.String("terr-script"),
})
if err != nil {
return err
}
_, err = fortimanager.NewObjectCliTemplategroup(ctx, "trname", &fortimanager.ObjectCliTemplategroupArgs{
Description: pulumi.String("This is a Terraform example"),
Members: pulumi.StringArray{
pulumi.String("terr-cli-template"),
},
Name: pulumi.String("terr-cli-tplt-grp"),
}, pulumi.DependsOn([]pulumi.Resource{
trname,
}))
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Fortimanager = Pulumi.Fortimanager;
return await Deployment.RunAsync(() =>
{
var trname = new Fortimanager.ObjectCliTemplate("trname", new()
{
Description = "This is a Terraform example",
Name = "terr-cli-template",
Script = "terr-script",
});
var trnameObjectCliTemplategroup = new Fortimanager.ObjectCliTemplategroup("trname", new()
{
Description = "This is a Terraform example",
Members = new[]
{
"terr-cli-template",
},
Name = "terr-cli-tplt-grp",
}, new CustomResourceOptions
{
DependsOn =
{
trname,
},
});
});
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 trname = new ObjectCliTemplate("trname", ObjectCliTemplateArgs.builder()
.description("This is a Terraform example")
.name("terr-cli-template")
.script("terr-script")
.build());
var trnameObjectCliTemplategroup = new ObjectCliTemplategroup("trnameObjectCliTemplategroup", ObjectCliTemplategroupArgs.builder()
.description("This is a Terraform example")
.members("terr-cli-template")
.name("terr-cli-tplt-grp")
.build(), CustomResourceOptions.builder()
.dependsOn(trname)
.build());
}
}
resources:
trname:
type: fortimanager:ObjectCliTemplate
properties:
description: This is a Terraform example
name: terr-cli-template
script: terr-script
trnameObjectCliTemplategroup:
type: fortimanager:ObjectCliTemplategroup
name: trname
properties:
description: This is a Terraform example
members:
- terr-cli-template
name: terr-cli-tplt-grp
options:
dependsOn:
- ${trname}
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,
dynamic_sort_subtable: 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,
scopemembers: Optional[Sequence[ObjectCliTemplategroupScopememberArgs]] = 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 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 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 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 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 String
- The unique name of the resource.
- args 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",
DynamicSortSubtable = "string",
Members = new[]
{
"string",
},
ModificationTime = "string",
Name = "string",
ObjectCliTemplategroupId = "string",
Options = new[]
{
"string",
},
Scopemembers = new[]
{
new Fortimanager.Inputs.ObjectCliTemplategroupScopememberArgs
{
Name = "string",
Vdom = "string",
},
},
Scopetype = "string",
Variables = new[]
{
"string",
},
});
example, err := fortimanager.NewObjectCliTemplategroup(ctx, "objectCliTemplategroupResource", &fortimanager.ObjectCliTemplategroupArgs{
Adom: pulumi.String("string"),
Description: pulumi.String("string"),
DynamicSortSubtable: 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"),
},
Scopemembers: fortimanager.ObjectCliTemplategroupScopememberArray{
&fortimanager.ObjectCliTemplategroupScopememberArgs{
Name: pulumi.String("string"),
Vdom: pulumi.String("string"),
},
},
Scopetype: pulumi.String("string"),
Variables: pulumi.StringArray{
pulumi.String("string"),
},
})
var objectCliTemplategroupResource = new ObjectCliTemplategroup("objectCliTemplategroupResource", ObjectCliTemplategroupArgs.builder()
.adom("string")
.description("string")
.dynamicSortSubtable("string")
.members("string")
.modificationTime("string")
.name("string")
.objectCliTemplategroupId("string")
.options("string")
.scopemembers(ObjectCliTemplategroupScopememberArgs.builder()
.name("string")
.vdom("string")
.build())
.scopetype("string")
.variables("string")
.build());
object_cli_templategroup_resource = fortimanager.ObjectCliTemplategroup("objectCliTemplategroupResource",
adom="string",
description="string",
dynamic_sort_subtable="string",
members=["string"],
modification_time="string",
name="string",
object_cli_templategroup_id="string",
options=["string"],
scopemembers=[{
"name": "string",
"vdom": "string",
}],
scopetype="string",
variables=["string"])
const objectCliTemplategroupResource = new fortimanager.ObjectCliTemplategroup("objectCliTemplategroupResource", {
adom: "string",
description: "string",
dynamicSortSubtable: "string",
members: ["string"],
modificationTime: "string",
name: "string",
objectCliTemplategroupId: "string",
options: ["string"],
scopemembers: [{
name: "string",
vdom: "string",
}],
scopetype: "string",
variables: ["string"],
});
type: fortimanager:ObjectCliTemplategroup
properties:
adom: string
description: string
dynamicSortSubtable: string
members:
- string
modificationTime: string
name: string
objectCliTemplategroupId: string
options:
- string
scopemembers:
- name: string
vdom: string
scopetype: string
variables:
- string
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
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - Description string
- Description.
- Dynamic
Sort stringSubtable - true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
- Members List<string>
- Member.
- Modification
Time string - Modification-Time.
- Name string
- Name.
- Object
Cli stringTemplategroup Id - an identifier for the resource with format {{name}}.
- Options List<string>
- Option. Valid values:
sdwan-overlay,sdwan-manager. - Scopemembers
List<Object
Cli Templategroup Scopemember> - Scope Member. The structure of
scopememberblock is documented below. - Scopetype string
- The scope of application of the resource. Valid values:
inherit,adom,global. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit. - Variables List<string>
- Variables.
- Adom string
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - Description string
- Description.
- Dynamic
Sort stringSubtable - true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
- Members []string
- Member.
- Modification
Time string - Modification-Time.
- Name string
- Name.
- Object
Cli stringTemplategroup Id - an identifier for the resource with format {{name}}.
- Options []string
- Option. Valid values:
sdwan-overlay,sdwan-manager. - Scopemembers
[]Object
Cli Templategroup Scopemember Args - Scope Member. The structure of
scopememberblock is documented below. - Scopetype string
- The scope of application of the resource. Valid values:
inherit,adom,global. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit. - Variables []string
- Variables.
- adom String
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - description String
- Description.
- dynamic
Sort StringSubtable - true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
- members List<String>
- Member.
- modification
Time String - Modification-Time.
- name String
- Name.
- object
Cli StringTemplategroup Id - an identifier for the resource with format {{name}}.
- options List<String>
- Option. Valid values:
sdwan-overlay,sdwan-manager. - scopemembers
List<Object
Cli Templategroup Scopemember> - Scope Member. The structure of
scopememberblock is documented below. - scopetype String
- The scope of application of the resource. Valid values:
inherit,adom,global. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit. - variables List<String>
- Variables.
- adom string
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - description string
- Description.
- dynamic
Sort stringSubtable - true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
- members string[]
- Member.
- modification
Time string - Modification-Time.
- name string
- Name.
- object
Cli stringTemplategroup Id - an identifier for the resource with format {{name}}.
- options string[]
- Option. Valid values:
sdwan-overlay,sdwan-manager. - scopemembers
Object
Cli Templategroup Scopemember[] - Scope Member. The structure of
scopememberblock is documented below. - scopetype string
- The scope of application of the resource. Valid values:
inherit,adom,global. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit. - variables string[]
- Variables.
- adom str
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - description str
- Description.
- dynamic_
sort_ strsubtable - true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
- members Sequence[str]
- Member.
- modification_
time str - Modification-Time.
- name str
- Name.
- object_
cli_ strtemplategroup_ id - an identifier for the resource with format {{name}}.
- options Sequence[str]
- Option. Valid values:
sdwan-overlay,sdwan-manager. - scopemembers
Sequence[Object
Cli Templategroup Scopemember Args] - Scope Member. The structure of
scopememberblock is documented below. - scopetype str
- The scope of application of the resource. Valid values:
inherit,adom,global. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit. - variables Sequence[str]
- Variables.
- adom String
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - description String
- Description.
- dynamic
Sort StringSubtable - true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
- members List<String>
- Member.
- modification
Time String - Modification-Time.
- name String
- Name.
- object
Cli StringTemplategroup Id - an identifier for the resource with format {{name}}.
- options List<String>
- Option. Valid values:
sdwan-overlay,sdwan-manager. - scopemembers List<Property Map>
- Scope Member. The structure of
scopememberblock is documented below. - scopetype String
- The scope of application of the resource. Valid values:
inherit,adom,global. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit. - 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,
dynamic_sort_subtable: 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,
scopemembers: Optional[Sequence[ObjectCliTemplategroupScopememberArgs]] = None,
scopetype: Optional[str] = None,
variables: Optional[Sequence[str]] = None) -> ObjectCliTemplategroupfunc 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
- 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.
- Adom string
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - Description string
- Description.
- Dynamic
Sort stringSubtable - true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
- Members List<string>
- Member.
- Modification
Time string - Modification-Time.
- Name string
- Name.
- Object
Cli stringTemplategroup Id - an identifier for the resource with format {{name}}.
- Options List<string>
- Option. Valid values:
sdwan-overlay,sdwan-manager. - Scopemembers
List<Object
Cli Templategroup Scopemember> - Scope Member. The structure of
scopememberblock is documented below. - Scopetype string
- The scope of application of the resource. Valid values:
inherit,adom,global. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit. - Variables List<string>
- Variables.
- Adom string
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - Description string
- Description.
- Dynamic
Sort stringSubtable - true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
- Members []string
- Member.
- Modification
Time string - Modification-Time.
- Name string
- Name.
- Object
Cli stringTemplategroup Id - an identifier for the resource with format {{name}}.
- Options []string
- Option. Valid values:
sdwan-overlay,sdwan-manager. - Scopemembers
[]Object
Cli Templategroup Scopemember Args - Scope Member. The structure of
scopememberblock is documented below. - Scopetype string
- The scope of application of the resource. Valid values:
inherit,adom,global. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit. - Variables []string
- Variables.
- adom String
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - description String
- Description.
- dynamic
Sort StringSubtable - true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
- members List<String>
- Member.
- modification
Time String - Modification-Time.
- name String
- Name.
- object
Cli StringTemplategroup Id - an identifier for the resource with format {{name}}.
- options List<String>
- Option. Valid values:
sdwan-overlay,sdwan-manager. - scopemembers
List<Object
Cli Templategroup Scopemember> - Scope Member. The structure of
scopememberblock is documented below. - scopetype String
- The scope of application of the resource. Valid values:
inherit,adom,global. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit. - variables List<String>
- Variables.
- adom string
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - description string
- Description.
- dynamic
Sort stringSubtable - true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
- members string[]
- Member.
- modification
Time string - Modification-Time.
- name string
- Name.
- object
Cli stringTemplategroup Id - an identifier for the resource with format {{name}}.
- options string[]
- Option. Valid values:
sdwan-overlay,sdwan-manager. - scopemembers
Object
Cli Templategroup Scopemember[] - Scope Member. The structure of
scopememberblock is documented below. - scopetype string
- The scope of application of the resource. Valid values:
inherit,adom,global. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit. - variables string[]
- Variables.
- adom str
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - description str
- Description.
- dynamic_
sort_ strsubtable - true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
- members Sequence[str]
- Member.
- modification_
time str - Modification-Time.
- name str
- Name.
- object_
cli_ strtemplategroup_ id - an identifier for the resource with format {{name}}.
- options Sequence[str]
- Option. Valid values:
sdwan-overlay,sdwan-manager. - scopemembers
Sequence[Object
Cli Templategroup Scopemember Args] - Scope Member. The structure of
scopememberblock is documented below. - scopetype str
- The scope of application of the resource. Valid values:
inherit,adom,global. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit. - variables Sequence[str]
- Variables.
- adom String
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - description String
- Description.
- dynamic
Sort StringSubtable - true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
- members List<String>
- Member.
- modification
Time String - Modification-Time.
- name String
- Name.
- object
Cli StringTemplategroup Id - an identifier for the resource with format {{name}}.
- options List<String>
- Option. Valid values:
sdwan-overlay,sdwan-manager. - scopemembers List<Property Map>
- Scope Member. The structure of
scopememberblock is documented below. - scopetype String
- The scope of application of the resource. Valid values:
inherit,adom,global. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit. - variables List<String>
- Variables.
Supporting Types
ObjectCliTemplategroupScopemember, ObjectCliTemplategroupScopememberArgs
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}}
$ 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
fortimanagerTerraform Provider.
