fortios.fmg.DevicemanagerScriptExecute
Explore with Pulumi AI
This resource supports executing devicemanager script on Fortimanager.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as fortios from "@pulumiverse/fortios";
const test3 = new fortios.fmg.DevicemanagerScriptExecute("test3", {
scriptName: "config-intf3",
targetDevname: "devname",
timeout: 5,
});
import pulumi
import pulumiverse_fortios as fortios
test3 = fortios.fmg.DevicemanagerScriptExecute("test3",
script_name="config-intf3",
target_devname="devname",
timeout=5)
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-fortios/sdk/go/fortios/fmg"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := fmg.NewDevicemanagerScriptExecute(ctx, "test3", &fmg.DevicemanagerScriptExecuteArgs{
ScriptName: pulumi.String("config-intf3"),
TargetDevname: pulumi.String("devname"),
Timeout: pulumi.Int(5),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Fortios = Pulumiverse.Fortios;
return await Deployment.RunAsync(() =>
{
var test3 = new Fortios.Fmg.DevicemanagerScriptExecute("test3", new()
{
ScriptName = "config-intf3",
TargetDevname = "devname",
Timeout = 5,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortios.fmg.DevicemanagerScriptExecute;
import com.pulumi.fortios.fmg.DevicemanagerScriptExecuteArgs;
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 test3 = new DevicemanagerScriptExecute("test3", DevicemanagerScriptExecuteArgs.builder()
.scriptName("config-intf3")
.targetDevname("devname")
.timeout(5)
.build());
}
}
resources:
test3:
type: fortios:fmg:DevicemanagerScriptExecute
properties:
scriptName: config-intf3
targetDevname: devname
timeout: 5
Create DevicemanagerScriptExecute Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DevicemanagerScriptExecute(name: string, args: DevicemanagerScriptExecuteArgs, opts?: CustomResourceOptions);
@overload
def DevicemanagerScriptExecute(resource_name: str,
args: DevicemanagerScriptExecuteArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DevicemanagerScriptExecute(resource_name: str,
opts: Optional[ResourceOptions] = None,
script_name: Optional[str] = None,
adom: Optional[str] = None,
package: Optional[str] = None,
target_devname: Optional[str] = None,
timeout: Optional[int] = None,
vdom: Optional[str] = None)
func NewDevicemanagerScriptExecute(ctx *Context, name string, args DevicemanagerScriptExecuteArgs, opts ...ResourceOption) (*DevicemanagerScriptExecute, error)
public DevicemanagerScriptExecute(string name, DevicemanagerScriptExecuteArgs args, CustomResourceOptions? opts = null)
public DevicemanagerScriptExecute(String name, DevicemanagerScriptExecuteArgs args)
public DevicemanagerScriptExecute(String name, DevicemanagerScriptExecuteArgs args, CustomResourceOptions options)
type: fortios:fmg:DevicemanagerScriptExecute
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 DevicemanagerScriptExecuteArgs
- 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 DevicemanagerScriptExecuteArgs
- 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 DevicemanagerScriptExecuteArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DevicemanagerScriptExecuteArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DevicemanagerScriptExecuteArgs
- 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 devicemanagerScriptExecuteResource = new Fortios.Fmg.DevicemanagerScriptExecute("devicemanagerScriptExecuteResource", new()
{
ScriptName = "string",
Adom = "string",
Package = "string",
TargetDevname = "string",
Timeout = 0,
Vdom = "string",
});
example, err := fmg.NewDevicemanagerScriptExecute(ctx, "devicemanagerScriptExecuteResource", &fmg.DevicemanagerScriptExecuteArgs{
ScriptName: pulumi.String("string"),
Adom: pulumi.String("string"),
Package: pulumi.String("string"),
TargetDevname: pulumi.String("string"),
Timeout: pulumi.Int(0),
Vdom: pulumi.String("string"),
})
var devicemanagerScriptExecuteResource = new DevicemanagerScriptExecute("devicemanagerScriptExecuteResource", DevicemanagerScriptExecuteArgs.builder()
.scriptName("string")
.adom("string")
.package_("string")
.targetDevname("string")
.timeout(0)
.vdom("string")
.build());
devicemanager_script_execute_resource = fortios.fmg.DevicemanagerScriptExecute("devicemanagerScriptExecuteResource",
script_name="string",
adom="string",
package="string",
target_devname="string",
timeout=0,
vdom="string")
const devicemanagerScriptExecuteResource = new fortios.fmg.DevicemanagerScriptExecute("devicemanagerScriptExecuteResource", {
scriptName: "string",
adom: "string",
"package": "string",
targetDevname: "string",
timeout: 0,
vdom: "string",
});
type: fortios:fmg:DevicemanagerScriptExecute
properties:
adom: string
package: string
scriptName: string
targetDevname: string
timeout: 0
vdom: string
DevicemanagerScriptExecute Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The DevicemanagerScriptExecute resource accepts the following input properties:
- Script
Name string - Script name.
- Adom string
- Source ADOM name. default is 'root'
- Package string
- Policy package.
- Target
Devname string - Target device name, which the script will be installed.
- Timeout int
- Timeout(minute) for executing the script, default is 3 minutes.
- Vdom string
- Vdom of managed device. default is 'root'
- Script
Name string - Script name.
- Adom string
- Source ADOM name. default is 'root'
- Package string
- Policy package.
- Target
Devname string - Target device name, which the script will be installed.
- Timeout int
- Timeout(minute) for executing the script, default is 3 minutes.
- Vdom string
- Vdom of managed device. default is 'root'
- script
Name String - Script name.
- adom String
- Source ADOM name. default is 'root'
- package_ String
- Policy package.
- target
Devname String - Target device name, which the script will be installed.
- timeout Integer
- Timeout(minute) for executing the script, default is 3 minutes.
- vdom String
- Vdom of managed device. default is 'root'
- script
Name string - Script name.
- adom string
- Source ADOM name. default is 'root'
- package string
- Policy package.
- target
Devname string - Target device name, which the script will be installed.
- timeout number
- Timeout(minute) for executing the script, default is 3 minutes.
- vdom string
- Vdom of managed device. default is 'root'
- script_
name str - Script name.
- adom str
- Source ADOM name. default is 'root'
- package str
- Policy package.
- target_
devname str - Target device name, which the script will be installed.
- timeout int
- Timeout(minute) for executing the script, default is 3 minutes.
- vdom str
- Vdom of managed device. default is 'root'
- script
Name String - Script name.
- adom String
- Source ADOM name. default is 'root'
- package String
- Policy package.
- target
Devname String - Target device name, which the script will be installed.
- timeout Number
- Timeout(minute) for executing the script, default is 3 minutes.
- vdom String
- Vdom of managed device. default is 'root'
Outputs
All input properties are implicitly available as output properties. Additionally, the DevicemanagerScriptExecute 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 DevicemanagerScriptExecute Resource
Get an existing DevicemanagerScriptExecute 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?: DevicemanagerScriptExecuteState, opts?: CustomResourceOptions): DevicemanagerScriptExecute
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
adom: Optional[str] = None,
package: Optional[str] = None,
script_name: Optional[str] = None,
target_devname: Optional[str] = None,
timeout: Optional[int] = None,
vdom: Optional[str] = None) -> DevicemanagerScriptExecute
func GetDevicemanagerScriptExecute(ctx *Context, name string, id IDInput, state *DevicemanagerScriptExecuteState, opts ...ResourceOption) (*DevicemanagerScriptExecute, error)
public static DevicemanagerScriptExecute Get(string name, Input<string> id, DevicemanagerScriptExecuteState? state, CustomResourceOptions? opts = null)
public static DevicemanagerScriptExecute get(String name, Output<String> id, DevicemanagerScriptExecuteState 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.
- Adom string
- Source ADOM name. default is 'root'
- Package string
- Policy package.
- Script
Name string - Script name.
- Target
Devname string - Target device name, which the script will be installed.
- Timeout int
- Timeout(minute) for executing the script, default is 3 minutes.
- Vdom string
- Vdom of managed device. default is 'root'
- Adom string
- Source ADOM name. default is 'root'
- Package string
- Policy package.
- Script
Name string - Script name.
- Target
Devname string - Target device name, which the script will be installed.
- Timeout int
- Timeout(minute) for executing the script, default is 3 minutes.
- Vdom string
- Vdom of managed device. default is 'root'
- adom String
- Source ADOM name. default is 'root'
- package_ String
- Policy package.
- script
Name String - Script name.
- target
Devname String - Target device name, which the script will be installed.
- timeout Integer
- Timeout(minute) for executing the script, default is 3 minutes.
- vdom String
- Vdom of managed device. default is 'root'
- adom string
- Source ADOM name. default is 'root'
- package string
- Policy package.
- script
Name string - Script name.
- target
Devname string - Target device name, which the script will be installed.
- timeout number
- Timeout(minute) for executing the script, default is 3 minutes.
- vdom string
- Vdom of managed device. default is 'root'
- adom str
- Source ADOM name. default is 'root'
- package str
- Policy package.
- script_
name str - Script name.
- target_
devname str - Target device name, which the script will be installed.
- timeout int
- Timeout(minute) for executing the script, default is 3 minutes.
- vdom str
- Vdom of managed device. default is 'root'
- adom String
- Source ADOM name. default is 'root'
- package String
- Policy package.
- script
Name String - Script name.
- target
Devname String - Target device name, which the script will be installed.
- timeout Number
- Timeout(minute) for executing the script, default is 3 minutes.
- vdom String
- Vdom of managed device. default is 'root'
Package Details
- Repository
- fortios pulumiverse/pulumi-fortios
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
fortios
Terraform Provider.