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

fortios.system.LicenseFortiflex

Explore with Pulumi AI

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

    Provides a resource to download VM license using uploaded FortiFlex token for FortiOS. Reboots immediately if successful.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as fortios from "@pulumiverse/fortios";
    
    const test = new fortios.system.LicenseFortiflex("test", {token: "5FE7B3CE6B606DEB20E3"});
    
    import pulumi
    import pulumiverse_fortios as fortios
    
    test = fortios.system.LicenseFortiflex("test", token="5FE7B3CE6B606DEB20E3")
    
    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.NewLicenseFortiflex(ctx, "test", &system.LicenseFortiflexArgs{
    			Token: pulumi.String("5FE7B3CE6B606DEB20E3"),
    		})
    		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 test = new Fortios.System.LicenseFortiflex("test", new()
        {
            Token = "5FE7B3CE6B606DEB20E3",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.fortios.system.LicenseFortiflex;
    import com.pulumi.fortios.system.LicenseFortiflexArgs;
    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 test = new LicenseFortiflex("test", LicenseFortiflexArgs.builder()
                .token("5FE7B3CE6B606DEB20E3")
                .build());
    
        }
    }
    
    resources:
      test:
        type: fortios:system:LicenseFortiflex
        properties:
          token: 5FE7B3CE6B606DEB20E3
    

    Create LicenseFortiflex Resource

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

    Constructor syntax

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

    LicenseFortiflex Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The LicenseFortiflex resource accepts the following input properties:

    Token string
    FortiFlex VM license token.
    ProxyUrl string
    HTTP proxy URL in the form: http://user:pass@proxyip:proxyport.
    Token string
    FortiFlex VM license token.
    ProxyUrl string
    HTTP proxy URL in the form: http://user:pass@proxyip:proxyport.
    token String
    FortiFlex VM license token.
    proxyUrl String
    HTTP proxy URL in the form: http://user:pass@proxyip:proxyport.
    token string
    FortiFlex VM license token.
    proxyUrl string
    HTTP proxy URL in the form: http://user:pass@proxyip:proxyport.
    token str
    FortiFlex VM license token.
    proxy_url str
    HTTP proxy URL in the form: http://user:pass@proxyip:proxyport.
    token String
    FortiFlex VM license token.
    proxyUrl String
    HTTP proxy URL in the form: http://user:pass@proxyip:proxyport.

    Outputs

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

    Get an existing LicenseFortiflex 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?: LicenseFortiflexState, opts?: CustomResourceOptions): LicenseFortiflex
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            proxy_url: Optional[str] = None,
            token: Optional[str] = None) -> LicenseFortiflex
    func GetLicenseFortiflex(ctx *Context, name string, id IDInput, state *LicenseFortiflexState, opts ...ResourceOption) (*LicenseFortiflex, error)
    public static LicenseFortiflex Get(string name, Input<string> id, LicenseFortiflexState? state, CustomResourceOptions? opts = null)
    public static LicenseFortiflex get(String name, Output<String> id, LicenseFortiflexState 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:
    ProxyUrl string
    HTTP proxy URL in the form: http://user:pass@proxyip:proxyport.
    Token string
    FortiFlex VM license token.
    ProxyUrl string
    HTTP proxy URL in the form: http://user:pass@proxyip:proxyport.
    Token string
    FortiFlex VM license token.
    proxyUrl String
    HTTP proxy URL in the form: http://user:pass@proxyip:proxyport.
    token String
    FortiFlex VM license token.
    proxyUrl string
    HTTP proxy URL in the form: http://user:pass@proxyip:proxyport.
    token string
    FortiFlex VM license token.
    proxy_url str
    HTTP proxy URL in the form: http://user:pass@proxyip:proxyport.
    token str
    FortiFlex VM license token.
    proxyUrl String
    HTTP proxy URL in the form: http://user:pass@proxyip:proxyport.
    token String
    FortiFlex VM license token.

    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