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

fortios.fmg.SystemLicenseForticare

Explore with Pulumi AI

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

    This resource supports uploading FortiCare registration code to FortiGate through FortiManager.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as fortios from "@pulumiverse/fortios";
    
    const test1 = new fortios.fmg.SystemLicenseForticare("test1", {
        registrationCode: "jn3t3Nw7qckQzt955Htkfj5hwQ6aaa",
        target: "fortigate-test",
    });
    
    import pulumi
    import pulumiverse_fortios as fortios
    
    test1 = fortios.fmg.SystemLicenseForticare("test1",
        registration_code="jn3t3Nw7qckQzt955Htkfj5hwQ6aaa",
        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.NewSystemLicenseForticare(ctx, "test1", &fmg.SystemLicenseForticareArgs{
    			RegistrationCode: pulumi.String("jn3t3Nw7qckQzt955Htkfj5hwQ6aaa"),
    			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.SystemLicenseForticare("test1", new()
        {
            RegistrationCode = "jn3t3Nw7qckQzt955Htkfj5hwQ6aaa",
            Target = "fortigate-test",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.fortios.fmg.SystemLicenseForticare;
    import com.pulumi.fortios.fmg.SystemLicenseForticareArgs;
    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 SystemLicenseForticare("test1", SystemLicenseForticareArgs.builder()
                .registrationCode("jn3t3Nw7qckQzt955Htkfj5hwQ6aaa")
                .target("fortigate-test")
                .build());
    
        }
    }
    
    resources:
      test1:
        type: fortios:fmg:SystemLicenseForticare
        properties:
          registrationCode: jn3t3Nw7qckQzt955Htkfj5hwQ6aaa
          target: fortigate-test
    

    Create SystemLicenseForticare Resource

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

    Constructor syntax

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

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

    RegistrationCode string
    Registration code.
    Target string
    Target name, which is managed by FortiManager.
    Adom string
    ADOM that the target device belongs to. default is 'root'.
    RegistrationCode string
    Registration code.
    Target string
    Target name, which is managed by FortiManager.
    Adom string
    ADOM that the target device belongs to. default is 'root'.
    registrationCode String
    Registration code.
    target String
    Target name, which is managed by FortiManager.
    adom String
    ADOM that the target device belongs to. default is 'root'.
    registrationCode string
    Registration code.
    target string
    Target name, which is managed by FortiManager.
    adom string
    ADOM that the target device belongs to. default is 'root'.
    registration_code str
    Registration code.
    target str
    Target name, which is managed by FortiManager.
    adom str
    ADOM that the target device belongs to. default is 'root'.
    registrationCode String
    Registration code.
    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 SystemLicenseForticare 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 SystemLicenseForticare Resource

    Get an existing SystemLicenseForticare 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?: SystemLicenseForticareState, opts?: CustomResourceOptions): SystemLicenseForticare
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            adom: Optional[str] = None,
            registration_code: Optional[str] = None,
            target: Optional[str] = None) -> SystemLicenseForticare
    func GetSystemLicenseForticare(ctx *Context, name string, id IDInput, state *SystemLicenseForticareState, opts ...ResourceOption) (*SystemLicenseForticare, error)
    public static SystemLicenseForticare Get(string name, Input<string> id, SystemLicenseForticareState? state, CustomResourceOptions? opts = null)
    public static SystemLicenseForticare get(String name, Output<String> id, SystemLicenseForticareState 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'.
    RegistrationCode string
    Registration code.
    Target string
    Target name, which is managed by FortiManager.
    Adom string
    ADOM that the target device belongs to. default is 'root'.
    RegistrationCode string
    Registration code.
    Target string
    Target name, which is managed by FortiManager.
    adom String
    ADOM that the target device belongs to. default is 'root'.
    registrationCode String
    Registration code.
    target String
    Target name, which is managed by FortiManager.
    adom string
    ADOM that the target device belongs to. default is 'root'.
    registrationCode string
    Registration code.
    target string
    Target name, which is managed by FortiManager.
    adom str
    ADOM that the target device belongs to. default is 'root'.
    registration_code str
    Registration code.
    target str
    Target name, which is managed by FortiManager.
    adom String
    ADOM that the target device belongs to. default is 'root'.
    registrationCode String
    Registration code.
    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.6 published on Tuesday, Jul 9, 2024 by pulumiverse