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

fortios.fmg.DevicemanagerDevice

Explore with Pulumi AI

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

    This resource supports adding/deleting online FortiGate to/from FortiManager

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as fortios from "@pulumiverse/fortios";
    
    const test1 = new fortios.fmg.DevicemanagerDevice("test1", {
        deviceName: "FGVM64-test",
        ipaddr: "192.168.88.101",
        password: "",
        userid: "admin",
    });
    
    import pulumi
    import pulumiverse_fortios as fortios
    
    test1 = fortios.fmg.DevicemanagerDevice("test1",
        device_name="FGVM64-test",
        ipaddr="192.168.88.101",
        password="",
        userid="admin")
    
    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.NewDevicemanagerDevice(ctx, "test1", &fmg.DevicemanagerDeviceArgs{
    			DeviceName: pulumi.String("FGVM64-test"),
    			Ipaddr:     pulumi.String("192.168.88.101"),
    			Password:   pulumi.String(""),
    			Userid:     pulumi.String("admin"),
    		})
    		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.DevicemanagerDevice("test1", new()
        {
            DeviceName = "FGVM64-test",
            Ipaddr = "192.168.88.101",
            Password = "",
            Userid = "admin",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.fortios.fmg.DevicemanagerDevice;
    import com.pulumi.fortios.fmg.DevicemanagerDeviceArgs;
    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 DevicemanagerDevice("test1", DevicemanagerDeviceArgs.builder()
                .deviceName("FGVM64-test")
                .ipaddr("192.168.88.101")
                .password("")
                .userid("admin")
                .build());
    
        }
    }
    
    resources:
      test1:
        type: fortios:fmg:DevicemanagerDevice
        properties:
          deviceName: FGVM64-test
          ipaddr: 192.168.88.101
          password:
          userid: admin
    

    Create DevicemanagerDevice Resource

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

    Constructor syntax

    new DevicemanagerDevice(name: string, args: DevicemanagerDeviceArgs, opts?: CustomResourceOptions);
    @overload
    def DevicemanagerDevice(resource_name: str,
                            args: DevicemanagerDeviceArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def DevicemanagerDevice(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            device_name: Optional[str] = None,
                            ipaddr: Optional[str] = None,
                            userid: Optional[str] = None,
                            adom: Optional[str] = None,
                            password: Optional[str] = None)
    func NewDevicemanagerDevice(ctx *Context, name string, args DevicemanagerDeviceArgs, opts ...ResourceOption) (*DevicemanagerDevice, error)
    public DevicemanagerDevice(string name, DevicemanagerDeviceArgs args, CustomResourceOptions? opts = null)
    public DevicemanagerDevice(String name, DevicemanagerDeviceArgs args)
    public DevicemanagerDevice(String name, DevicemanagerDeviceArgs args, CustomResourceOptions options)
    
    type: fortios:fmg:DevicemanagerDevice
    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 DevicemanagerDeviceArgs
    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 DevicemanagerDeviceArgs
    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 DevicemanagerDeviceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DevicemanagerDeviceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DevicemanagerDeviceArgs
    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 devicemanagerDeviceResource = new Fortios.Fmg.DevicemanagerDevice("devicemanagerDeviceResource", new()
    {
        DeviceName = "string",
        Ipaddr = "string",
        Userid = "string",
        Adom = "string",
        Password = "string",
    });
    
    example, err := fmg.NewDevicemanagerDevice(ctx, "devicemanagerDeviceResource", &fmg.DevicemanagerDeviceArgs{
    	DeviceName: pulumi.String("string"),
    	Ipaddr:     pulumi.String("string"),
    	Userid:     pulumi.String("string"),
    	Adom:       pulumi.String("string"),
    	Password:   pulumi.String("string"),
    })
    
    var devicemanagerDeviceResource = new DevicemanagerDevice("devicemanagerDeviceResource", DevicemanagerDeviceArgs.builder()
        .deviceName("string")
        .ipaddr("string")
        .userid("string")
        .adom("string")
        .password("string")
        .build());
    
    devicemanager_device_resource = fortios.fmg.DevicemanagerDevice("devicemanagerDeviceResource",
        device_name="string",
        ipaddr="string",
        userid="string",
        adom="string",
        password="string")
    
    const devicemanagerDeviceResource = new fortios.fmg.DevicemanagerDevice("devicemanagerDeviceResource", {
        deviceName: "string",
        ipaddr: "string",
        userid: "string",
        adom: "string",
        password: "string",
    });
    
    type: fortios:fmg:DevicemanagerDevice
    properties:
        adom: string
        deviceName: string
        ipaddr: string
        password: string
        userid: string
    

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

    DeviceName string
    Fortigate's device name.
    Ipaddr string
    Fortigate's ipaddress.
    Userid string
    User name.
    Adom string
    Name or ID of the ADOM where the command is to be executed on.
    Password string
    Password.
    DeviceName string
    Fortigate's device name.
    Ipaddr string
    Fortigate's ipaddress.
    Userid string
    User name.
    Adom string
    Name or ID of the ADOM where the command is to be executed on.
    Password string
    Password.
    deviceName String
    Fortigate's device name.
    ipaddr String
    Fortigate's ipaddress.
    userid String
    User name.
    adom String
    Name or ID of the ADOM where the command is to be executed on.
    password String
    Password.
    deviceName string
    Fortigate's device name.
    ipaddr string
    Fortigate's ipaddress.
    userid string
    User name.
    adom string
    Name or ID of the ADOM where the command is to be executed on.
    password string
    Password.
    device_name str
    Fortigate's device name.
    ipaddr str
    Fortigate's ipaddress.
    userid str
    User name.
    adom str
    Name or ID of the ADOM where the command is to be executed on.
    password str
    Password.
    deviceName String
    Fortigate's device name.
    ipaddr String
    Fortigate's ipaddress.
    userid String
    User name.
    adom String
    Name or ID of the ADOM where the command is to be executed on.
    password String
    Password.

    Outputs

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

    Get an existing DevicemanagerDevice 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?: DevicemanagerDeviceState, opts?: CustomResourceOptions): DevicemanagerDevice
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            adom: Optional[str] = None,
            device_name: Optional[str] = None,
            ipaddr: Optional[str] = None,
            password: Optional[str] = None,
            userid: Optional[str] = None) -> DevicemanagerDevice
    func GetDevicemanagerDevice(ctx *Context, name string, id IDInput, state *DevicemanagerDeviceState, opts ...ResourceOption) (*DevicemanagerDevice, error)
    public static DevicemanagerDevice Get(string name, Input<string> id, DevicemanagerDeviceState? state, CustomResourceOptions? opts = null)
    public static DevicemanagerDevice get(String name, Output<String> id, DevicemanagerDeviceState 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
    Name or ID of the ADOM where the command is to be executed on.
    DeviceName string
    Fortigate's device name.
    Ipaddr string
    Fortigate's ipaddress.
    Password string
    Password.
    Userid string
    User name.
    Adom string
    Name or ID of the ADOM where the command is to be executed on.
    DeviceName string
    Fortigate's device name.
    Ipaddr string
    Fortigate's ipaddress.
    Password string
    Password.
    Userid string
    User name.
    adom String
    Name or ID of the ADOM where the command is to be executed on.
    deviceName String
    Fortigate's device name.
    ipaddr String
    Fortigate's ipaddress.
    password String
    Password.
    userid String
    User name.
    adom string
    Name or ID of the ADOM where the command is to be executed on.
    deviceName string
    Fortigate's device name.
    ipaddr string
    Fortigate's ipaddress.
    password string
    Password.
    userid string
    User name.
    adom str
    Name or ID of the ADOM where the command is to be executed on.
    device_name str
    Fortigate's device name.
    ipaddr str
    Fortigate's ipaddress.
    password str
    Password.
    userid str
    User name.
    adom String
    Name or ID of the ADOM where the command is to be executed on.
    deviceName String
    Fortigate's device name.
    ipaddr String
    Fortigate's ipaddress.
    password String
    Password.
    userid String
    User name.

    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