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

fortios.system.LicenseVdom

Explore with Pulumi AI

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

    Provides a resource to add a VDOM license for FortiOS.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as fortios from "@pulumiverse/fortios";
    
    const test2 = new fortios.system.LicenseVdom("test2", {license: "license"});
    
    import pulumi
    import pulumiverse_fortios as fortios
    
    test2 = fortios.system.LicenseVdom("test2", license="license")
    
    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.NewLicenseVdom(ctx, "test2", &system.LicenseVdomArgs{
    			License: pulumi.String("license"),
    		})
    		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.LicenseVdom("test2", new()
        {
            License = "license",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.fortios.system.LicenseVdom;
    import com.pulumi.fortios.system.LicenseVdomArgs;
    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 LicenseVdom("test2", LicenseVdomArgs.builder()
                .license("license")
                .build());
    
        }
    }
    
    resources:
      test2:
        type: fortios:system:LicenseVdom
        properties:
          license: license
    

    Create LicenseVdom Resource

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

    Constructor syntax

    new LicenseVdom(name: string, args: LicenseVdomArgs, opts?: CustomResourceOptions);
    @overload
    def LicenseVdom(resource_name: str,
                    args: LicenseVdomArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def LicenseVdom(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    license: Optional[str] = None)
    func NewLicenseVdom(ctx *Context, name string, args LicenseVdomArgs, opts ...ResourceOption) (*LicenseVdom, error)
    public LicenseVdom(string name, LicenseVdomArgs args, CustomResourceOptions? opts = null)
    public LicenseVdom(String name, LicenseVdomArgs args)
    public LicenseVdom(String name, LicenseVdomArgs args, CustomResourceOptions options)
    
    type: fortios:system:LicenseVdom
    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 LicenseVdomArgs
    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 LicenseVdomArgs
    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 LicenseVdomArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LicenseVdomArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LicenseVdomArgs
    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 licenseVdomResource = new Fortios.System.LicenseVdom("licenseVdomResource", new()
    {
        License = "string",
    });
    
    example, err := system.NewLicenseVdom(ctx, "licenseVdomResource", &system.LicenseVdomArgs{
    	License: pulumi.String("string"),
    })
    
    var licenseVdomResource = new LicenseVdom("licenseVdomResource", LicenseVdomArgs.builder()
        .license("string")
        .build());
    
    license_vdom_resource = fortios.system.LicenseVdom("licenseVdomResource", license="string")
    
    const licenseVdomResource = new fortios.system.LicenseVdom("licenseVdomResource", {license: "string"});
    
    type: fortios:system:LicenseVdom
    properties:
        license: string
    

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

    License string
    Registration code.
    License string
    Registration code.
    license String
    Registration code.
    license string
    Registration code.
    license str
    Registration code.
    license String
    Registration code.

    Outputs

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

    Get an existing LicenseVdom 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?: LicenseVdomState, opts?: CustomResourceOptions): LicenseVdom
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            license: Optional[str] = None) -> LicenseVdom
    func GetLicenseVdom(ctx *Context, name string, id IDInput, state *LicenseVdomState, opts ...ResourceOption) (*LicenseVdom, error)
    public static LicenseVdom Get(string name, Input<string> id, LicenseVdomState? state, CustomResourceOptions? opts = null)
    public static LicenseVdom get(String name, Output<String> id, LicenseVdomState 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:
    License string
    Registration code.
    License string
    Registration code.
    license String
    Registration code.
    license string
    Registration code.
    license str
    Registration code.
    license String
    Registration code.

    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