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

fortios.fmg.SystemLicenseVm

Explore with Pulumi AI

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

    This resource supports uploading VM license to FortiGate through FortiManager.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as fortios from "@pulumiverse/fortios";
    
    const test1 = new fortios.fmg.SystemLicenseVm("test1", {
        fileContent: "XXX",
        target: "fortigate-test",
    });
    
    import pulumi
    import pulumiverse_fortios as fortios
    
    test1 = fortios.fmg.SystemLicenseVm("test1",
        file_content="XXX",
        target="fortigate-test")
    
    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.NewSystemLicenseVm(ctx, "test1", &fmg.SystemLicenseVmArgs{
    			FileContent: pulumi.String("XXX"),
    			Target:      pulumi.String("fortigate-test"),
    		})
    		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.SystemLicenseVm("test1", new()
        {
            FileContent = "XXX",
            Target = "fortigate-test",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.fortios.fmg.SystemLicenseVm;
    import com.pulumi.fortios.fmg.SystemLicenseVmArgs;
    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 SystemLicenseVm("test1", SystemLicenseVmArgs.builder()        
                .fileContent("XXX")
                .target("fortigate-test")
                .build());
    
        }
    }
    
    resources:
      test1:
        type: fortios:fmg:SystemLicenseVm
        properties:
          fileContent: XXX
          # your license file content
          target: fortigate-test
    

    Create SystemLicenseVm Resource

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

    Constructor syntax

    new SystemLicenseVm(name: string, args: SystemLicenseVmArgs, opts?: CustomResourceOptions);
    @overload
    def SystemLicenseVm(resource_name: str,
                        args: SystemLicenseVmArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def SystemLicenseVm(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        file_content: Optional[str] = None,
                        target: Optional[str] = None,
                        adom: Optional[str] = None)
    func NewSystemLicenseVm(ctx *Context, name string, args SystemLicenseVmArgs, opts ...ResourceOption) (*SystemLicenseVm, error)
    public SystemLicenseVm(string name, SystemLicenseVmArgs args, CustomResourceOptions? opts = null)
    public SystemLicenseVm(String name, SystemLicenseVmArgs args)
    public SystemLicenseVm(String name, SystemLicenseVmArgs args, CustomResourceOptions options)
    
    type: fortios:fmg:SystemLicenseVm
    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 SystemLicenseVmArgs
    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 SystemLicenseVmArgs
    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 SystemLicenseVmArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SystemLicenseVmArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SystemLicenseVmArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var systemLicenseVmResource = new Fortios.Fmg.SystemLicenseVm("systemLicenseVmResource", new()
    {
        FileContent = "string",
        Target = "string",
        Adom = "string",
    });
    
    example, err := fmg.NewSystemLicenseVm(ctx, "systemLicenseVmResource", &fmg.SystemLicenseVmArgs{
    	FileContent: pulumi.String("string"),
    	Target:      pulumi.String("string"),
    	Adom:        pulumi.String("string"),
    })
    
    var systemLicenseVmResource = new SystemLicenseVm("systemLicenseVmResource", SystemLicenseVmArgs.builder()
        .fileContent("string")
        .target("string")
        .adom("string")
        .build());
    
    system_license_vm_resource = fortios.fmg.SystemLicenseVm("systemLicenseVmResource",
        file_content="string",
        target="string",
        adom="string")
    
    const systemLicenseVmResource = new fortios.fmg.SystemLicenseVm("systemLicenseVmResource", {
        fileContent: "string",
        target: "string",
        adom: "string",
    });
    
    type: fortios:fmg:SystemLicenseVm
    properties:
        adom: string
        fileContent: string
        target: string
    

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

    FileContent string
    The license file, it needs to be base64 encoded.
    Target string
    Target name, which is managed by FortiManager.
    Adom string
    ADOM that the target device belongs to. default is 'root'.
    FileContent string
    The license file, it needs to be base64 encoded.
    Target string
    Target name, which is managed by FortiManager.
    Adom string
    ADOM that the target device belongs to. default is 'root'.
    fileContent String
    The license file, it needs to be base64 encoded.
    target String
    Target name, which is managed by FortiManager.
    adom String
    ADOM that the target device belongs to. default is 'root'.
    fileContent string
    The license file, it needs to be base64 encoded.
    target string
    Target name, which is managed by FortiManager.
    adom string
    ADOM that the target device belongs to. default is 'root'.
    file_content str
    The license file, it needs to be base64 encoded.
    target str
    Target name, which is managed by FortiManager.
    adom str
    ADOM that the target device belongs to. default is 'root'.
    fileContent String
    The license file, it needs to be base64 encoded.
    target String
    Target name, which is managed by FortiManager.
    adom String
    ADOM that the target device belongs to. default is 'root'.

    Outputs

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

    Get an existing SystemLicenseVm 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?: SystemLicenseVmState, opts?: CustomResourceOptions): SystemLicenseVm
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            adom: Optional[str] = None,
            file_content: Optional[str] = None,
            target: Optional[str] = None) -> SystemLicenseVm
    func GetSystemLicenseVm(ctx *Context, name string, id IDInput, state *SystemLicenseVmState, opts ...ResourceOption) (*SystemLicenseVm, error)
    public static SystemLicenseVm Get(string name, Input<string> id, SystemLicenseVmState? state, CustomResourceOptions? opts = null)
    public static SystemLicenseVm get(String name, Output<String> id, SystemLicenseVmState 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 that the target device belongs to. default is 'root'.
    FileContent string
    The license file, it needs to be base64 encoded.
    Target string
    Target name, which is managed by FortiManager.
    Adom string
    ADOM that the target device belongs to. default is 'root'.
    FileContent string
    The license file, it needs to be base64 encoded.
    Target string
    Target name, which is managed by FortiManager.
    adom String
    ADOM that the target device belongs to. default is 'root'.
    fileContent String
    The license file, it needs to be base64 encoded.
    target String
    Target name, which is managed by FortiManager.
    adom string
    ADOM that the target device belongs to. default is 'root'.
    fileContent string
    The license file, it needs to be base64 encoded.
    target string
    Target name, which is managed by FortiManager.
    adom str
    ADOM that the target device belongs to. default is 'root'.
    file_content str
    The license file, it needs to be base64 encoded.
    target str
    Target name, which is managed by FortiManager.
    adom String
    ADOM that the target device belongs to. default is 'root'.
    fileContent String
    The license file, it needs to be base64 encoded.
    target String
    Target name, which is managed by FortiManager.

    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