1. Packages
  2. Fortios
  3. API Docs
  4. system
  5. VdomSetting
Fortios v0.0.5 published on Tuesday, Apr 9, 2024 by pulumiverse

fortios.system.VdomSetting

Explore with Pulumi AI

fortios logo
Fortios v0.0.5 published on Tuesday, Apr 9, 2024 by pulumiverse

    Provides a resource to configure VDOM of FortiOS. The API user of the token for this feature should have a super admin profile, It can be set in CLI while GUI does not allow.

    !> Warning: The resource will be deprecated and replaced by new resource fortios.system.Vdom, we recommend that you use the new resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as fortios from "@pulumiverse/fortios";
    
    const test2 = new fortios.system.VdomSetting("test2", {
        shortName: "aa1122",
        temporary: "0",
    });
    
    import pulumi
    import pulumiverse_fortios as fortios
    
    test2 = fortios.system.VdomSetting("test2",
        short_name="aa1122",
        temporary="0")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-fortios/sdk/go/fortios/system"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := system.NewVdomSetting(ctx, "test2", &system.VdomSettingArgs{
    			ShortName: pulumi.String("aa1122"),
    			Temporary: pulumi.String("0"),
    		})
    		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 test2 = new Fortios.System.VdomSetting("test2", new()
        {
            ShortName = "aa1122",
            Temporary = "0",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.fortios.system.VdomSetting;
    import com.pulumi.fortios.system.VdomSettingArgs;
    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 test2 = new VdomSetting("test2", VdomSettingArgs.builder()        
                .shortName("aa1122")
                .temporary(0)
                .build());
    
        }
    }
    
    resources:
      test2:
        type: fortios:system:VdomSetting
        properties:
          shortName: aa1122
          temporary: 0
    

    Create VdomSetting Resource

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

    Constructor syntax

    new VdomSetting(name: string, args?: VdomSettingArgs, opts?: CustomResourceOptions);
    @overload
    def VdomSetting(resource_name: str,
                    args: Optional[VdomSettingArgs] = None,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def VdomSetting(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    name: Optional[str] = None,
                    short_name: Optional[str] = None,
                    temporary: Optional[str] = None)
    func NewVdomSetting(ctx *Context, name string, args *VdomSettingArgs, opts ...ResourceOption) (*VdomSetting, error)
    public VdomSetting(string name, VdomSettingArgs? args = null, CustomResourceOptions? opts = null)
    public VdomSetting(String name, VdomSettingArgs args)
    public VdomSetting(String name, VdomSettingArgs args, CustomResourceOptions options)
    
    type: fortios:system:VdomSetting
    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 VdomSettingArgs
    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 VdomSettingArgs
    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 VdomSettingArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VdomSettingArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VdomSettingArgs
    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 vdomSettingResource = new Fortios.System.VdomSetting("vdomSettingResource", new()
    {
        Name = "string",
        ShortName = "string",
        Temporary = "string",
    });
    
    example, err := system.NewVdomSetting(ctx, "vdomSettingResource", &system.VdomSettingArgs{
    	Name:      pulumi.String("string"),
    	ShortName: pulumi.String("string"),
    	Temporary: pulumi.String("string"),
    })
    
    var vdomSettingResource = new VdomSetting("vdomSettingResource", VdomSettingArgs.builder()
        .name("string")
        .shortName("string")
        .temporary("string")
        .build());
    
    vdom_setting_resource = fortios.system.VdomSetting("vdomSettingResource",
        name="string",
        short_name="string",
        temporary="string")
    
    const vdomSettingResource = new fortios.system.VdomSetting("vdomSettingResource", {
        name: "string",
        shortName: "string",
        temporary: "string",
    });
    
    type: fortios:system:VdomSetting
    properties:
        name: string
        shortName: string
        temporary: string
    

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

    Name string
    VDOM name.
    ShortName string
    VDOM short name.
    Temporary string
    Temporary.
    Name string
    VDOM name.
    ShortName string
    VDOM short name.
    Temporary string
    Temporary.
    name String
    VDOM name.
    shortName String
    VDOM short name.
    temporary String
    Temporary.
    name string
    VDOM name.
    shortName string
    VDOM short name.
    temporary string
    Temporary.
    name str
    VDOM name.
    short_name str
    VDOM short name.
    temporary str
    Temporary.
    name String
    VDOM name.
    shortName String
    VDOM short name.
    temporary String
    Temporary.

    Outputs

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

    Get an existing VdomSetting 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?: VdomSettingState, opts?: CustomResourceOptions): VdomSetting
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            name: Optional[str] = None,
            short_name: Optional[str] = None,
            temporary: Optional[str] = None) -> VdomSetting
    func GetVdomSetting(ctx *Context, name string, id IDInput, state *VdomSettingState, opts ...ResourceOption) (*VdomSetting, error)
    public static VdomSetting Get(string name, Input<string> id, VdomSettingState? state, CustomResourceOptions? opts = null)
    public static VdomSetting get(String name, Output<String> id, VdomSettingState 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:
    Name string
    VDOM name.
    ShortName string
    VDOM short name.
    Temporary string
    Temporary.
    Name string
    VDOM name.
    ShortName string
    VDOM short name.
    Temporary string
    Temporary.
    name String
    VDOM name.
    shortName String
    VDOM short name.
    temporary String
    Temporary.
    name string
    VDOM name.
    shortName string
    VDOM short name.
    temporary string
    Temporary.
    name str
    VDOM name.
    short_name str
    VDOM short name.
    temporary str
    Temporary.
    name String
    VDOM name.
    shortName String
    VDOM short name.
    temporary String
    Temporary.

    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.5 published on Tuesday, Apr 9, 2024 by pulumiverse