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

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"});
Copy
import pulumi
import pulumiverse_fortios as fortios

test = fortios.system.LicenseFortiflex("test", token="5FE7B3CE6B606DEB20E3")
Copy
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
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
resources:
  test:
    type: fortios:system:LicenseFortiflex
    properties:
      token: 5FE7B3CE6B606DEB20E3
Copy

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 This property is required. string
The unique name of the resource.
args This property is required. LicenseFortiflexArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. LicenseFortiflexArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. LicenseFortiflexArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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",
});
Copy
example, err := system.NewLicenseFortiflex(ctx, "licenseFortiflexResource", &system.LicenseFortiflexArgs{
	Token:    pulumi.String("string"),
	ProxyUrl: pulumi.String("string"),
})
Copy
var licenseFortiflexResource = new LicenseFortiflex("licenseFortiflexResource", LicenseFortiflexArgs.builder()
    .token("string")
    .proxyUrl("string")
    .build());
Copy
license_fortiflex_resource = fortios.system.LicenseFortiflex("licenseFortiflexResource",
    token="string",
    proxy_url="string")
Copy
const licenseFortiflexResource = new fortios.system.LicenseFortiflex("licenseFortiflexResource", {
    token: "string",
    proxyUrl: "string",
});
Copy
type: fortios:system:LicenseFortiflex
properties:
    proxyUrl: string
    token: string
Copy

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 This property is required. string
FortiFlex VM license token.
ProxyUrl string
HTTP proxy URL in the form: http://user:pass@proxyip:proxyport.
Token This property is required. string
FortiFlex VM license token.
ProxyUrl string
HTTP proxy URL in the form: http://user:pass@proxyip:proxyport.
token This property is required. String
FortiFlex VM license token.
proxyUrl String
HTTP proxy URL in the form: http://user:pass@proxyip:proxyport.
token This property is required. string
FortiFlex VM license token.
proxyUrl string
HTTP proxy URL in the form: http://user:pass@proxyip:proxyport.
token This property is required. str
FortiFlex VM license token.
proxy_url str
HTTP proxy URL in the form: http://user:pass@proxyip:proxyport.
token This property is required. 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)
resources:  _:    type: fortios:system:LicenseFortiflex    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.