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

fortios.fmg.DevicemanagerScript

Explore with Pulumi AI

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

    This resource supports Create/Read/Update/Delete devicemanager script for FortiManager.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as fortios from "@pulumiverse/fortios";
    
    const test1 = new fortios.fmg.DevicemanagerScript("test1", {
        content: `config system interface 
     edit port3 
    \x09 set vdom "root"
    \x09 set ip 10.7.0.200 255.255.0.0 
    \x09 set allowaccess ping http https
    \x09 next 
     end
    `,
        description: "description",
        target: "remote_device",
    });
    
    import pulumi
    import pulumiverse_fortios as fortios
    
    test1 = fortios.fmg.DevicemanagerScript("test1",
        content="""config system interface 
     edit port3 
    \x09 set vdom "root"
    \x09 set ip 10.7.0.200 255.255.0.0 
    \x09 set allowaccess ping http https
    \x09 next 
     end
    """,
        description="description",
        target="remote_device")
    
    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.NewDevicemanagerScript(ctx, "test1", &fmg.DevicemanagerScriptArgs{
    			Content: pulumi.String(`config system interface 
     edit port3 
    	 set vdom "root"
    	 set ip 10.7.0.200 255.255.0.0 
    	 set allowaccess ping http https
    	 next 
     end
    `),
    			Description: pulumi.String("description"),
    			Target:      pulumi.String("remote_device"),
    		})
    		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.DevicemanagerScript("test1", new()
        {
            Content = @"config system interface 
     edit port3 
    	 set vdom ""root""
    	 set ip 10.7.0.200 255.255.0.0 
    	 set allowaccess ping http https
    	 next 
     end
    ",
            Description = "description",
            Target = "remote_device",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.fortios.fmg.DevicemanagerScript;
    import com.pulumi.fortios.fmg.DevicemanagerScriptArgs;
    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 DevicemanagerScript("test1", DevicemanagerScriptArgs.builder()
                .content("""
    config system interface 
     edit port3 
    	 set vdom "root"
    	 set ip 10.7.0.200 255.255.0.0 
    	 set allowaccess ping http https
    	 next 
     end
                """)
                .description("description")
                .target("remote_device")
                .build());
    
        }
    }
    
    resources:
      test1:
        type: fortios:fmg:DevicemanagerScript
        properties:
          content: "config system interface \n edit port3 \n\t set vdom \"root\"\n\t set ip 10.7.0.200 255.255.0.0 \n\t set allowaccess ping http https\n\t next \n end\n"
          description: description
          target: remote_device
    

    Create DevicemanagerScript Resource

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

    Constructor syntax

    new DevicemanagerScript(name: string, args: DevicemanagerScriptArgs, opts?: CustomResourceOptions);
    @overload
    def DevicemanagerScript(resource_name: str,
                            args: DevicemanagerScriptArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def DevicemanagerScript(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            content: Optional[str] = None,
                            adom: Optional[str] = None,
                            description: Optional[str] = None,
                            name: Optional[str] = None,
                            target: Optional[str] = None)
    func NewDevicemanagerScript(ctx *Context, name string, args DevicemanagerScriptArgs, opts ...ResourceOption) (*DevicemanagerScript, error)
    public DevicemanagerScript(string name, DevicemanagerScriptArgs args, CustomResourceOptions? opts = null)
    public DevicemanagerScript(String name, DevicemanagerScriptArgs args)
    public DevicemanagerScript(String name, DevicemanagerScriptArgs args, CustomResourceOptions options)
    
    type: fortios:fmg:DevicemanagerScript
    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 DevicemanagerScriptArgs
    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 DevicemanagerScriptArgs
    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 DevicemanagerScriptArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DevicemanagerScriptArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DevicemanagerScriptArgs
    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 devicemanagerScriptResource = new Fortios.Fmg.DevicemanagerScript("devicemanagerScriptResource", new()
    {
        Content = "string",
        Adom = "string",
        Description = "string",
        Name = "string",
        Target = "string",
    });
    
    example, err := fmg.NewDevicemanagerScript(ctx, "devicemanagerScriptResource", &fmg.DevicemanagerScriptArgs{
    	Content:     pulumi.String("string"),
    	Adom:        pulumi.String("string"),
    	Description: pulumi.String("string"),
    	Name:        pulumi.String("string"),
    	Target:      pulumi.String("string"),
    })
    
    var devicemanagerScriptResource = new DevicemanagerScript("devicemanagerScriptResource", DevicemanagerScriptArgs.builder()
        .content("string")
        .adom("string")
        .description("string")
        .name("string")
        .target("string")
        .build());
    
    devicemanager_script_resource = fortios.fmg.DevicemanagerScript("devicemanagerScriptResource",
        content="string",
        adom="string",
        description="string",
        name="string",
        target="string")
    
    const devicemanagerScriptResource = new fortios.fmg.DevicemanagerScript("devicemanagerScriptResource", {
        content: "string",
        adom: "string",
        description: "string",
        name: "string",
        target: "string",
    });
    
    type: fortios:fmg:DevicemanagerScript
    properties:
        adom: string
        content: string
        description: string
        name: string
        target: string
    

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

    Content string
    Script content, only cli script is supported now
    Adom string
    ADOM name. default is 'root'.
    Description string
    Description.
    Name string
    Script name.
    Target string
    Script target, Enum: ["device_database", "remote_device", "adom_database"]
    Content string
    Script content, only cli script is supported now
    Adom string
    ADOM name. default is 'root'.
    Description string
    Description.
    Name string
    Script name.
    Target string
    Script target, Enum: ["device_database", "remote_device", "adom_database"]
    content String
    Script content, only cli script is supported now
    adom String
    ADOM name. default is 'root'.
    description String
    Description.
    name String
    Script name.
    target String
    Script target, Enum: ["device_database", "remote_device", "adom_database"]
    content string
    Script content, only cli script is supported now
    adom string
    ADOM name. default is 'root'.
    description string
    Description.
    name string
    Script name.
    target string
    Script target, Enum: ["device_database", "remote_device", "adom_database"]
    content str
    Script content, only cli script is supported now
    adom str
    ADOM name. default is 'root'.
    description str
    Description.
    name str
    Script name.
    target str
    Script target, Enum: ["device_database", "remote_device", "adom_database"]
    content String
    Script content, only cli script is supported now
    adom String
    ADOM name. default is 'root'.
    description String
    Description.
    name String
    Script name.
    target String
    Script target, Enum: ["device_database", "remote_device", "adom_database"]

    Outputs

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

    Get an existing DevicemanagerScript 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?: DevicemanagerScriptState, opts?: CustomResourceOptions): DevicemanagerScript
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            adom: Optional[str] = None,
            content: Optional[str] = None,
            description: Optional[str] = None,
            name: Optional[str] = None,
            target: Optional[str] = None) -> DevicemanagerScript
    func GetDevicemanagerScript(ctx *Context, name string, id IDInput, state *DevicemanagerScriptState, opts ...ResourceOption) (*DevicemanagerScript, error)
    public static DevicemanagerScript Get(string name, Input<string> id, DevicemanagerScriptState? state, CustomResourceOptions? opts = null)
    public static DevicemanagerScript get(String name, Output<String> id, DevicemanagerScriptState 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
    ADOM name. default is 'root'.
    Content string
    Script content, only cli script is supported now
    Description string
    Description.
    Name string
    Script name.
    Target string
    Script target, Enum: ["device_database", "remote_device", "adom_database"]
    Adom string
    ADOM name. default is 'root'.
    Content string
    Script content, only cli script is supported now
    Description string
    Description.
    Name string
    Script name.
    Target string
    Script target, Enum: ["device_database", "remote_device", "adom_database"]
    adom String
    ADOM name. default is 'root'.
    content String
    Script content, only cli script is supported now
    description String
    Description.
    name String
    Script name.
    target String
    Script target, Enum: ["device_database", "remote_device", "adom_database"]
    adom string
    ADOM name. default is 'root'.
    content string
    Script content, only cli script is supported now
    description string
    Description.
    name string
    Script name.
    target string
    Script target, Enum: ["device_database", "remote_device", "adom_database"]
    adom str
    ADOM name. default is 'root'.
    content str
    Script content, only cli script is supported now
    description str
    Description.
    name str
    Script name.
    target str
    Script target, Enum: ["device_database", "remote_device", "adom_database"]
    adom String
    ADOM name. default is 'root'.
    content String
    Script content, only cli script is supported now
    description String
    Description.
    name String
    Script name.
    target String
    Script target, Enum: ["device_database", "remote_device", "adom_database"]

    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