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

fortios.system.LicenseForticare

Explore with Pulumi AI

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

    Provides a resource to add a FortiCare license for FortiOS.

    Example Usage

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

    Create LicenseForticare Resource

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

    Constructor syntax

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

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

    RegistrationCode string
    Registration code.
    RegistrationCode string
    Registration code.
    registrationCode String
    Registration code.
    registrationCode string
    Registration code.
    registration_code str
    Registration code.
    registrationCode String
    Registration code.

    Outputs

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

    Get an existing LicenseForticare 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?: LicenseForticareState, opts?: CustomResourceOptions): LicenseForticare
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            registration_code: Optional[str] = None) -> LicenseForticare
    func GetLicenseForticare(ctx *Context, name string, id IDInput, state *LicenseForticareState, opts ...ResourceOption) (*LicenseForticare, error)
    public static LicenseForticare Get(string name, Input<string> id, LicenseForticareState? state, CustomResourceOptions? opts = null)
    public static LicenseForticare get(String name, Output<String> id, LicenseForticareState 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:
    RegistrationCode string
    Registration code.
    RegistrationCode string
    Registration code.
    registrationCode String
    Registration code.
    registrationCode string
    Registration code.
    registration_code str
    Registration code.
    registrationCode 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.5 published on Tuesday, Apr 9, 2024 by pulumiverse