1. Packages
  2. Fortimanager Provider
  3. API Docs
  4. DvmdbScriptExecute
fortimanager 1.14.0 published on Tuesday, Apr 15, 2025 by fortinetdev

fortimanager.DvmdbScriptExecute

Explore with Pulumi AI

Import

Dvmdb ScriptExecute can be imported using any of these accepted formats:

$ export “FORTIMANAGER_IMPORT_TABLE”=“true”

$ pulumi import fortimanager:index/dvmdbScriptExecute:DvmdbScriptExecute labelname DvmdbScriptExecute
Copy

$ unset “FORTIMANAGER_IMPORT_TABLE”

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

Create DvmdbScriptExecute Resource

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

Constructor syntax

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

@overload
def DvmdbScriptExecute(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       adom: Optional[str] = None,
                       dvmdb_script_execute_id: Optional[str] = None,
                       dynamic_sort_subtable: Optional[str] = None,
                       fmgadom: Optional[str] = None,
                       force_recreate: Optional[str] = None,
                       package: Optional[str] = None,
                       pblock: Optional[str] = None,
                       scopes: Optional[Sequence[DvmdbScriptExecuteScopeArgs]] = None,
                       scopetype: Optional[str] = None,
                       script: Optional[str] = None)
func NewDvmdbScriptExecute(ctx *Context, name string, args *DvmdbScriptExecuteArgs, opts ...ResourceOption) (*DvmdbScriptExecute, error)
public DvmdbScriptExecute(string name, DvmdbScriptExecuteArgs? args = null, CustomResourceOptions? opts = null)
public DvmdbScriptExecute(String name, DvmdbScriptExecuteArgs args)
public DvmdbScriptExecute(String name, DvmdbScriptExecuteArgs args, CustomResourceOptions options)
type: fortimanager:DvmdbScriptExecute
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 DvmdbScriptExecuteArgs
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 DvmdbScriptExecuteArgs
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 DvmdbScriptExecuteArgs
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 DvmdbScriptExecuteArgs
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. DvmdbScriptExecuteArgs
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 dvmdbScriptExecuteResource = new Fortimanager.DvmdbScriptExecute("dvmdbScriptExecuteResource", new()
{
    Adom = "string",
    DvmdbScriptExecuteId = "string",
    DynamicSortSubtable = "string",
    Fmgadom = "string",
    ForceRecreate = "string",
    Package = "string",
    Pblock = "string",
    Scopes = new[]
    {
        new Fortimanager.Inputs.DvmdbScriptExecuteScopeArgs
        {
            Name = "string",
            Vdom = "string",
        },
    },
    Scopetype = "string",
    Script = "string",
});
Copy
example, err := fortimanager.NewDvmdbScriptExecute(ctx, "dvmdbScriptExecuteResource", &fortimanager.DvmdbScriptExecuteArgs{
	Adom:                 pulumi.String("string"),
	DvmdbScriptExecuteId: pulumi.String("string"),
	DynamicSortSubtable:  pulumi.String("string"),
	Fmgadom:              pulumi.String("string"),
	ForceRecreate:        pulumi.String("string"),
	Package:              pulumi.String("string"),
	Pblock:               pulumi.String("string"),
	Scopes: fortimanager.DvmdbScriptExecuteScopeArray{
		&fortimanager.DvmdbScriptExecuteScopeArgs{
			Name: pulumi.String("string"),
			Vdom: pulumi.String("string"),
		},
	},
	Scopetype: pulumi.String("string"),
	Script:    pulumi.String("string"),
})
Copy
var dvmdbScriptExecuteResource = new DvmdbScriptExecute("dvmdbScriptExecuteResource", DvmdbScriptExecuteArgs.builder()
    .adom("string")
    .dvmdbScriptExecuteId("string")
    .dynamicSortSubtable("string")
    .fmgadom("string")
    .forceRecreate("string")
    .package_("string")
    .pblock("string")
    .scopes(DvmdbScriptExecuteScopeArgs.builder()
        .name("string")
        .vdom("string")
        .build())
    .scopetype("string")
    .script("string")
    .build());
Copy
dvmdb_script_execute_resource = fortimanager.DvmdbScriptExecute("dvmdbScriptExecuteResource",
    adom="string",
    dvmdb_script_execute_id="string",
    dynamic_sort_subtable="string",
    fmgadom="string",
    force_recreate="string",
    package="string",
    pblock="string",
    scopes=[{
        "name": "string",
        "vdom": "string",
    }],
    scopetype="string",
    script="string")
Copy
const dvmdbScriptExecuteResource = new fortimanager.DvmdbScriptExecute("dvmdbScriptExecuteResource", {
    adom: "string",
    dvmdbScriptExecuteId: "string",
    dynamicSortSubtable: "string",
    fmgadom: "string",
    forceRecreate: "string",
    "package": "string",
    pblock: "string",
    scopes: [{
        name: "string",
        vdom: "string",
    }],
    scopetype: "string",
    script: "string",
});
Copy
type: fortimanager:DvmdbScriptExecute
properties:
    adom: string
    dvmdbScriptExecuteId: string
    dynamicSortSubtable: string
    fmgadom: string
    forceRecreate: string
    package: string
    pblock: string
    scopes:
        - name: string
          vdom: string
    scopetype: string
    script: string
Copy

DvmdbScriptExecute 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 DvmdbScriptExecute 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.
DvmdbScriptExecuteId string
an identifier for the resource.
DynamicSortSubtable string
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.
Fmgadom string
Adom.
ForceRecreate string
The argument is optional, if it is set, when the value changes, the resource will be re-created.
Package string
Package.
Pblock string
Pblock.
Scopes List<DvmdbScriptExecuteScope>
Scope. The structure of scope block is documented below.
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.
Script string
Script name.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
DvmdbScriptExecuteId string
an identifier for the resource.
DynamicSortSubtable string
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.
Fmgadom string
Adom.
ForceRecreate string
The argument is optional, if it is set, when the value changes, the resource will be re-created.
Package string
Package.
Pblock string
Pblock.
Scopes []DvmdbScriptExecuteScopeArgs
Scope. The structure of scope block is documented below.
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.
Script string
Script name.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
dvmdbScriptExecuteId String
an identifier for the resource.
dynamicSortSubtable String
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.
fmgadom String
Adom.
forceRecreate String
The argument is optional, if it is set, when the value changes, the resource will be re-created.
package_ String
Package.
pblock String
Pblock.
scopes List<DvmdbScriptExecuteScope>
Scope. The structure of scope block is documented below.
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.
script String
Script name.
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
dvmdbScriptExecuteId string
an identifier for the resource.
dynamicSortSubtable string
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.
fmgadom string
Adom.
forceRecreate string
The argument is optional, if it is set, when the value changes, the resource will be re-created.
package string
Package.
pblock string
Pblock.
scopes DvmdbScriptExecuteScope[]
Scope. The structure of scope block is documented below.
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.
script string
Script name.
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
dvmdb_script_execute_id str
an identifier for the resource.
dynamic_sort_subtable str
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.
fmgadom str
Adom.
force_recreate str
The argument is optional, if it is set, when the value changes, the resource will be re-created.
package str
Package.
pblock str
Pblock.
scopes Sequence[DvmdbScriptExecuteScopeArgs]
Scope. The structure of scope block is documented below.
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.
script str
Script name.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
dvmdbScriptExecuteId String
an identifier for the resource.
dynamicSortSubtable String
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.
fmgadom String
Adom.
forceRecreate String
The argument is optional, if it is set, when the value changes, the resource will be re-created.
package String
Package.
pblock String
Pblock.
scopes List<Property Map>
Scope. The structure of scope block is documented below.
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.
script String
Script name.

Outputs

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

Get an existing DvmdbScriptExecute 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?: DvmdbScriptExecuteState, opts?: CustomResourceOptions): DvmdbScriptExecute
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        adom: Optional[str] = None,
        dvmdb_script_execute_id: Optional[str] = None,
        dynamic_sort_subtable: Optional[str] = None,
        fmgadom: Optional[str] = None,
        force_recreate: Optional[str] = None,
        package: Optional[str] = None,
        pblock: Optional[str] = None,
        scopes: Optional[Sequence[DvmdbScriptExecuteScopeArgs]] = None,
        scopetype: Optional[str] = None,
        script: Optional[str] = None) -> DvmdbScriptExecute
func GetDvmdbScriptExecute(ctx *Context, name string, id IDInput, state *DvmdbScriptExecuteState, opts ...ResourceOption) (*DvmdbScriptExecute, error)
public static DvmdbScriptExecute Get(string name, Input<string> id, DvmdbScriptExecuteState? state, CustomResourceOptions? opts = null)
public static DvmdbScriptExecute get(String name, Output<String> id, DvmdbScriptExecuteState state, CustomResourceOptions options)
resources:  _:    type: fortimanager:DvmdbScriptExecute    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.
DvmdbScriptExecuteId string
an identifier for the resource.
DynamicSortSubtable string
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.
Fmgadom string
Adom.
ForceRecreate string
The argument is optional, if it is set, when the value changes, the resource will be re-created.
Package string
Package.
Pblock string
Pblock.
Scopes List<DvmdbScriptExecuteScope>
Scope. The structure of scope block is documented below.
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.
Script string
Script name.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
DvmdbScriptExecuteId string
an identifier for the resource.
DynamicSortSubtable string
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.
Fmgadom string
Adom.
ForceRecreate string
The argument is optional, if it is set, when the value changes, the resource will be re-created.
Package string
Package.
Pblock string
Pblock.
Scopes []DvmdbScriptExecuteScopeArgs
Scope. The structure of scope block is documented below.
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.
Script string
Script name.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
dvmdbScriptExecuteId String
an identifier for the resource.
dynamicSortSubtable String
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.
fmgadom String
Adom.
forceRecreate String
The argument is optional, if it is set, when the value changes, the resource will be re-created.
package_ String
Package.
pblock String
Pblock.
scopes List<DvmdbScriptExecuteScope>
Scope. The structure of scope block is documented below.
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.
script String
Script name.
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
dvmdbScriptExecuteId string
an identifier for the resource.
dynamicSortSubtable string
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.
fmgadom string
Adom.
forceRecreate string
The argument is optional, if it is set, when the value changes, the resource will be re-created.
package string
Package.
pblock string
Pblock.
scopes DvmdbScriptExecuteScope[]
Scope. The structure of scope block is documented below.
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.
script string
Script name.
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
dvmdb_script_execute_id str
an identifier for the resource.
dynamic_sort_subtable str
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.
fmgadom str
Adom.
force_recreate str
The argument is optional, if it is set, when the value changes, the resource will be re-created.
package str
Package.
pblock str
Pblock.
scopes Sequence[DvmdbScriptExecuteScopeArgs]
Scope. The structure of scope block is documented below.
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.
script str
Script name.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
dvmdbScriptExecuteId String
an identifier for the resource.
dynamicSortSubtable String
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.
fmgadom String
Adom.
forceRecreate String
The argument is optional, if it is set, when the value changes, the resource will be re-created.
package String
Package.
pblock String
Pblock.
scopes List<Property Map>
Scope. The structure of scope block is documented below.
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.
script String
Script name.

Supporting Types

DvmdbScriptExecuteScope
, DvmdbScriptExecuteScopeArgs

Name string
Name.
Vdom string
Vdom.
Name string
Name.
Vdom string
Vdom.
name String
Name.
vdom String
Vdom.
name string
Name.
vdom string
Vdom.
name str
Name.
vdom str
Vdom.
name String
Name.
vdom String
Vdom.

Package Details

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