1. Packages
  2. Fortios
  3. API Docs
  4. fmg
  5. DevicemanagerInstallDevice
Fortios v0.0.6 published on Tuesday, Jul 9, 2024 by pulumiverse

fortios.fmg.DevicemanagerInstallDevice

Explore with Pulumi AI

fortios logo
Fortios v0.0.6 published on Tuesday, Jul 9, 2024 by pulumiverse

    This resource supports installing devicemanager script from FortiManager to the related device

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as fortios from "@pulumiverse/fortios";
    
    const test1 = new fortios.fmg.DevicemanagerInstallDevice("test1", {
        targetDevname: "FGVM64-test",
        timeout: 5,
    });
    
    import pulumi
    import pulumiverse_fortios as fortios
    
    test1 = fortios.fmg.DevicemanagerInstallDevice("test1",
        target_devname="FGVM64-test",
        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.NewDevicemanagerInstallDevice(ctx, "test1", &fmg.DevicemanagerInstallDeviceArgs{
    			TargetDevname: pulumi.String("FGVM64-test"),
    			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 test1 = new Fortios.Fmg.DevicemanagerInstallDevice("test1", new()
        {
            TargetDevname = "FGVM64-test",
            Timeout = 5,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.fortios.fmg.DevicemanagerInstallDevice;
    import com.pulumi.fortios.fmg.DevicemanagerInstallDeviceArgs;
    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 test1 = new DevicemanagerInstallDevice("test1", DevicemanagerInstallDeviceArgs.builder()
                .targetDevname("FGVM64-test")
                .timeout(5)
                .build());
    
        }
    }
    
    resources:
      test1:
        type: fortios:fmg:DevicemanagerInstallDevice
        properties:
          targetDevname: FGVM64-test
          timeout: 5
    

    Create DevicemanagerInstallDevice Resource

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

    Constructor syntax

    new DevicemanagerInstallDevice(name: string, args: DevicemanagerInstallDeviceArgs, opts?: CustomResourceOptions);
    @overload
    def DevicemanagerInstallDevice(resource_name: str,
                                   args: DevicemanagerInstallDeviceArgs,
                                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def DevicemanagerInstallDevice(resource_name: str,
                                   opts: Optional[ResourceOptions] = None,
                                   target_devname: Optional[str] = None,
                                   adom: Optional[str] = None,
                                   timeout: Optional[int] = None,
                                   vdom: Optional[str] = None)
    func NewDevicemanagerInstallDevice(ctx *Context, name string, args DevicemanagerInstallDeviceArgs, opts ...ResourceOption) (*DevicemanagerInstallDevice, error)
    public DevicemanagerInstallDevice(string name, DevicemanagerInstallDeviceArgs args, CustomResourceOptions? opts = null)
    public DevicemanagerInstallDevice(String name, DevicemanagerInstallDeviceArgs args)
    public DevicemanagerInstallDevice(String name, DevicemanagerInstallDeviceArgs args, CustomResourceOptions options)
    
    type: fortios:fmg:DevicemanagerInstallDevice
    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 DevicemanagerInstallDeviceArgs
    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 DevicemanagerInstallDeviceArgs
    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 DevicemanagerInstallDeviceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DevicemanagerInstallDeviceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DevicemanagerInstallDeviceArgs
    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 devicemanagerInstallDeviceResource = new Fortios.Fmg.DevicemanagerInstallDevice("devicemanagerInstallDeviceResource", new()
    {
        TargetDevname = "string",
        Adom = "string",
        Timeout = 0,
        Vdom = "string",
    });
    
    example, err := fmg.NewDevicemanagerInstallDevice(ctx, "devicemanagerInstallDeviceResource", &fmg.DevicemanagerInstallDeviceArgs{
    	TargetDevname: pulumi.String("string"),
    	Adom:          pulumi.String("string"),
    	Timeout:       pulumi.Int(0),
    	Vdom:          pulumi.String("string"),
    })
    
    var devicemanagerInstallDeviceResource = new DevicemanagerInstallDevice("devicemanagerInstallDeviceResource", DevicemanagerInstallDeviceArgs.builder()
        .targetDevname("string")
        .adom("string")
        .timeout(0)
        .vdom("string")
        .build());
    
    devicemanager_install_device_resource = fortios.fmg.DevicemanagerInstallDevice("devicemanagerInstallDeviceResource",
        target_devname="string",
        adom="string",
        timeout=0,
        vdom="string")
    
    const devicemanagerInstallDeviceResource = new fortios.fmg.DevicemanagerInstallDevice("devicemanagerInstallDeviceResource", {
        targetDevname: "string",
        adom: "string",
        timeout: 0,
        vdom: "string",
    });
    
    type: fortios:fmg:DevicemanagerInstallDevice
    properties:
        adom: string
        targetDevname: string
        timeout: 0
        vdom: string
    

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

    TargetDevname string
    Target device name.
    Adom string
    Source ADOM name. default is 'root'
    Timeout int
    Timeout for installing the script to the target, default: 3 minutes.
    Vdom string
    Vdom of managed device. default is 'root'
    TargetDevname string
    Target device name.
    Adom string
    Source ADOM name. default is 'root'
    Timeout int
    Timeout for installing the script to the target, default: 3 minutes.
    Vdom string
    Vdom of managed device. default is 'root'
    targetDevname String
    Target device name.
    adom String
    Source ADOM name. default is 'root'
    timeout Integer
    Timeout for installing the script to the target, default: 3 minutes.
    vdom String
    Vdom of managed device. default is 'root'
    targetDevname string
    Target device name.
    adom string
    Source ADOM name. default is 'root'
    timeout number
    Timeout for installing the script to the target, default: 3 minutes.
    vdom string
    Vdom of managed device. default is 'root'
    target_devname str
    Target device name.
    adom str
    Source ADOM name. default is 'root'
    timeout int
    Timeout for installing the script to the target, default: 3 minutes.
    vdom str
    Vdom of managed device. default is 'root'
    targetDevname String
    Target device name.
    adom String
    Source ADOM name. default is 'root'
    timeout Number
    Timeout for installing the script to the target, default: 3 minutes.
    vdom String
    Vdom of managed device. default is 'root'

    Outputs

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

    Get an existing DevicemanagerInstallDevice 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?: DevicemanagerInstallDeviceState, opts?: CustomResourceOptions): DevicemanagerInstallDevice
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            adom: Optional[str] = None,
            target_devname: Optional[str] = None,
            timeout: Optional[int] = None,
            vdom: Optional[str] = None) -> DevicemanagerInstallDevice
    func GetDevicemanagerInstallDevice(ctx *Context, name string, id IDInput, state *DevicemanagerInstallDeviceState, opts ...ResourceOption) (*DevicemanagerInstallDevice, error)
    public static DevicemanagerInstallDevice Get(string name, Input<string> id, DevicemanagerInstallDeviceState? state, CustomResourceOptions? opts = null)
    public static DevicemanagerInstallDevice get(String name, Output<String> id, DevicemanagerInstallDeviceState 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.
    The following state arguments are supported:
    Adom string
    Source ADOM name. default is 'root'
    TargetDevname string
    Target device name.
    Timeout int
    Timeout for installing the script to the target, default: 3 minutes.
    Vdom string
    Vdom of managed device. default is 'root'
    Adom string
    Source ADOM name. default is 'root'
    TargetDevname string
    Target device name.
    Timeout int
    Timeout for installing the script to the target, default: 3 minutes.
    Vdom string
    Vdom of managed device. default is 'root'
    adom String
    Source ADOM name. default is 'root'
    targetDevname String
    Target device name.
    timeout Integer
    Timeout for installing the script to the target, default: 3 minutes.
    vdom String
    Vdom of managed device. default is 'root'
    adom string
    Source ADOM name. default is 'root'
    targetDevname string
    Target device name.
    timeout number
    Timeout for installing the script to the target, default: 3 minutes.
    vdom string
    Vdom of managed device. default is 'root'
    adom str
    Source ADOM name. default is 'root'
    target_devname str
    Target device name.
    timeout int
    Timeout for installing the script to the target, default: 3 minutes.
    vdom str
    Vdom of managed device. default is 'root'
    adom String
    Source ADOM name. default is 'root'
    targetDevname String
    Target device name.
    timeout Number
    Timeout for installing the script to the target, default: 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.
    fortios logo
    Fortios v0.0.6 published on Tuesday, Jul 9, 2024 by pulumiverse