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

fortios.certificate.Local

Explore with Pulumi AI

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

    Local keys and certificates.

    By design considerations, the feature is using the fortios.json.GenericApi resource as documented below.

    Example

    Delete Certificate:

    import * as pulumi from "@pulumi/pulumi";
    import * as fortios from "@pulumiverse/fortios";
    
    const trname1 = new fortios.system.Autoscript("trname1", {
        interval: 1,
        outputSize: 10,
        repeat: 1,
        script: `config vpn certificate local
    delete testcer
    end
    
    `,
        start: "auto",
    });
    
    import pulumi
    import pulumiverse_fortios as fortios
    
    trname1 = fortios.system.Autoscript("trname1",
        interval=1,
        output_size=10,
        repeat=1,
        script="""config vpn certificate local
    delete testcer
    end
    
    """,
        start="auto")
    
    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.NewAutoscript(ctx, "trname1", &system.AutoscriptArgs{
    			Interval:   pulumi.Int(1),
    			OutputSize: pulumi.Int(10),
    			Repeat:     pulumi.Int(1),
    			Script:     pulumi.String("config vpn certificate local\ndelete testcer\nend\n\n"),
    			Start:      pulumi.String("auto"),
    		})
    		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 trname1 = new Fortios.System.Autoscript("trname1", new()
        {
            Interval = 1,
            OutputSize = 10,
            Repeat = 1,
            Script = @"config vpn certificate local
    delete testcer
    end
    
    ",
            Start = "auto",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.fortios.system.Autoscript;
    import com.pulumi.fortios.system.AutoscriptArgs;
    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 trname1 = new Autoscript("trname1", AutoscriptArgs.builder()        
                .interval(1)
                .outputSize(10)
                .repeat(1)
                .script("""
    config vpn certificate local
    delete testcer
    end
    
                """)
                .start("auto")
                .build());
    
        }
    }
    
    resources:
      trname1:
        type: fortios:system:Autoscript
        properties:
          interval: 1
          outputSize: 10
          repeat: 1
          script: |+
            config vpn certificate local
            delete testcer
            end        
    
          start: auto
    

    Create Local Resource

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

    Constructor syntax

    new Local(name: string, args: LocalArgs, opts?: CustomResourceOptions);
    @overload
    def Local(resource_name: str,
              args: LocalArgs,
              opts: Optional[ResourceOptions] = None)
    
    @overload
    def Local(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              private_key: Optional[str] = None,
              est_http_password: Optional[str] = None,
              state: Optional[str] = None,
              acme_renew_window: Optional[int] = None,
              acme_rsa_key_size: Optional[int] = None,
              auto_regenerate_days: Optional[int] = None,
              auto_regenerate_days_warning: Optional[int] = None,
              ca_identifier: Optional[str] = None,
              certificate: Optional[str] = None,
              est_http_username: Optional[str] = None,
              cmp_regeneration_method: Optional[str] = None,
              cmp_server: Optional[str] = None,
              cmp_server_cert: Optional[str] = None,
              comments: Optional[str] = None,
              csr: Optional[str] = None,
              enroll_protocol: Optional[str] = None,
              est_ca_id: Optional[str] = None,
              est_client_cert: Optional[str] = None,
              acme_ca_url: Optional[str] = None,
              cmp_path: Optional[str] = None,
              acme_email: Optional[str] = None,
              last_updated: Optional[int] = None,
              est_srp_password: Optional[str] = None,
              est_srp_username: Optional[str] = None,
              ike_localid: Optional[str] = None,
              ike_localid_type: Optional[str] = None,
              est_server_cert: Optional[str] = None,
              name: Optional[str] = None,
              name_encoding: Optional[str] = None,
              password: Optional[str] = None,
              acme_domain: Optional[str] = None,
              private_key_retain: Optional[str] = None,
              range: Optional[str] = None,
              scep_password: Optional[str] = None,
              scep_url: Optional[str] = None,
              source: Optional[str] = None,
              source_ip: Optional[str] = None,
              est_server: Optional[str] = None,
              vdomparam: Optional[str] = None)
    func NewLocal(ctx *Context, name string, args LocalArgs, opts ...ResourceOption) (*Local, error)
    public Local(string name, LocalArgs args, CustomResourceOptions? opts = null)
    public Local(String name, LocalArgs args)
    public Local(String name, LocalArgs args, CustomResourceOptions options)
    
    type: fortios:certificate:Local
    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 LocalArgs
    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 LocalArgs
    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 LocalArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LocalArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LocalArgs
    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 localResource = new Fortios.Certificate.Local("localResource", new()
    {
        PrivateKey = "string",
        EstHttpPassword = "string",
        State = "string",
        AcmeRenewWindow = 0,
        AcmeRsaKeySize = 0,
        AutoRegenerateDays = 0,
        AutoRegenerateDaysWarning = 0,
        CaIdentifier = "string",
        Certificate = "string",
        EstHttpUsername = "string",
        CmpRegenerationMethod = "string",
        CmpServer = "string",
        CmpServerCert = "string",
        Comments = "string",
        Csr = "string",
        EnrollProtocol = "string",
        EstCaId = "string",
        EstClientCert = "string",
        AcmeCaUrl = "string",
        CmpPath = "string",
        AcmeEmail = "string",
        LastUpdated = 0,
        EstSrpPassword = "string",
        EstSrpUsername = "string",
        IkeLocalid = "string",
        IkeLocalidType = "string",
        EstServerCert = "string",
        Name = "string",
        NameEncoding = "string",
        Password = "string",
        AcmeDomain = "string",
        PrivateKeyRetain = "string",
        Range = "string",
        ScepPassword = "string",
        ScepUrl = "string",
        Source = "string",
        SourceIp = "string",
        EstServer = "string",
        Vdomparam = "string",
    });
    
    example, err := certificate.NewLocal(ctx, "localResource", &certificate.LocalArgs{
    	PrivateKey:                pulumi.String("string"),
    	EstHttpPassword:           pulumi.String("string"),
    	State:                     pulumi.String("string"),
    	AcmeRenewWindow:           pulumi.Int(0),
    	AcmeRsaKeySize:            pulumi.Int(0),
    	AutoRegenerateDays:        pulumi.Int(0),
    	AutoRegenerateDaysWarning: pulumi.Int(0),
    	CaIdentifier:              pulumi.String("string"),
    	Certificate:               pulumi.String("string"),
    	EstHttpUsername:           pulumi.String("string"),
    	CmpRegenerationMethod:     pulumi.String("string"),
    	CmpServer:                 pulumi.String("string"),
    	CmpServerCert:             pulumi.String("string"),
    	Comments:                  pulumi.String("string"),
    	Csr:                       pulumi.String("string"),
    	EnrollProtocol:            pulumi.String("string"),
    	EstCaId:                   pulumi.String("string"),
    	EstClientCert:             pulumi.String("string"),
    	AcmeCaUrl:                 pulumi.String("string"),
    	CmpPath:                   pulumi.String("string"),
    	AcmeEmail:                 pulumi.String("string"),
    	LastUpdated:               pulumi.Int(0),
    	EstSrpPassword:            pulumi.String("string"),
    	EstSrpUsername:            pulumi.String("string"),
    	IkeLocalid:                pulumi.String("string"),
    	IkeLocalidType:            pulumi.String("string"),
    	EstServerCert:             pulumi.String("string"),
    	Name:                      pulumi.String("string"),
    	NameEncoding:              pulumi.String("string"),
    	Password:                  pulumi.String("string"),
    	AcmeDomain:                pulumi.String("string"),
    	PrivateKeyRetain:          pulumi.String("string"),
    	Range:                     pulumi.String("string"),
    	ScepPassword:              pulumi.String("string"),
    	ScepUrl:                   pulumi.String("string"),
    	Source:                    pulumi.String("string"),
    	SourceIp:                  pulumi.String("string"),
    	EstServer:                 pulumi.String("string"),
    	Vdomparam:                 pulumi.String("string"),
    })
    
    var localResource = new Local("localResource", LocalArgs.builder()
        .privateKey("string")
        .estHttpPassword("string")
        .state("string")
        .acmeRenewWindow(0)
        .acmeRsaKeySize(0)
        .autoRegenerateDays(0)
        .autoRegenerateDaysWarning(0)
        .caIdentifier("string")
        .certificate("string")
        .estHttpUsername("string")
        .cmpRegenerationMethod("string")
        .cmpServer("string")
        .cmpServerCert("string")
        .comments("string")
        .csr("string")
        .enrollProtocol("string")
        .estCaId("string")
        .estClientCert("string")
        .acmeCaUrl("string")
        .cmpPath("string")
        .acmeEmail("string")
        .lastUpdated(0)
        .estSrpPassword("string")
        .estSrpUsername("string")
        .ikeLocalid("string")
        .ikeLocalidType("string")
        .estServerCert("string")
        .name("string")
        .nameEncoding("string")
        .password("string")
        .acmeDomain("string")
        .privateKeyRetain("string")
        .range("string")
        .scepPassword("string")
        .scepUrl("string")
        .source("string")
        .sourceIp("string")
        .estServer("string")
        .vdomparam("string")
        .build());
    
    local_resource = fortios.certificate.Local("localResource",
        private_key="string",
        est_http_password="string",
        state="string",
        acme_renew_window=0,
        acme_rsa_key_size=0,
        auto_regenerate_days=0,
        auto_regenerate_days_warning=0,
        ca_identifier="string",
        certificate="string",
        est_http_username="string",
        cmp_regeneration_method="string",
        cmp_server="string",
        cmp_server_cert="string",
        comments="string",
        csr="string",
        enroll_protocol="string",
        est_ca_id="string",
        est_client_cert="string",
        acme_ca_url="string",
        cmp_path="string",
        acme_email="string",
        last_updated=0,
        est_srp_password="string",
        est_srp_username="string",
        ike_localid="string",
        ike_localid_type="string",
        est_server_cert="string",
        name="string",
        name_encoding="string",
        password="string",
        acme_domain="string",
        private_key_retain="string",
        range="string",
        scep_password="string",
        scep_url="string",
        source="string",
        source_ip="string",
        est_server="string",
        vdomparam="string")
    
    const localResource = new fortios.certificate.Local("localResource", {
        privateKey: "string",
        estHttpPassword: "string",
        state: "string",
        acmeRenewWindow: 0,
        acmeRsaKeySize: 0,
        autoRegenerateDays: 0,
        autoRegenerateDaysWarning: 0,
        caIdentifier: "string",
        certificate: "string",
        estHttpUsername: "string",
        cmpRegenerationMethod: "string",
        cmpServer: "string",
        cmpServerCert: "string",
        comments: "string",
        csr: "string",
        enrollProtocol: "string",
        estCaId: "string",
        estClientCert: "string",
        acmeCaUrl: "string",
        cmpPath: "string",
        acmeEmail: "string",
        lastUpdated: 0,
        estSrpPassword: "string",
        estSrpUsername: "string",
        ikeLocalid: "string",
        ikeLocalidType: "string",
        estServerCert: "string",
        name: "string",
        nameEncoding: "string",
        password: "string",
        acmeDomain: "string",
        privateKeyRetain: "string",
        range: "string",
        scepPassword: "string",
        scepUrl: "string",
        source: "string",
        sourceIp: "string",
        estServer: "string",
        vdomparam: "string",
    });
    
    type: fortios:certificate:Local
    properties:
        acmeCaUrl: string
        acmeDomain: string
        acmeEmail: string
        acmeRenewWindow: 0
        acmeRsaKeySize: 0
        autoRegenerateDays: 0
        autoRegenerateDaysWarning: 0
        caIdentifier: string
        certificate: string
        cmpPath: string
        cmpRegenerationMethod: string
        cmpServer: string
        cmpServerCert: string
        comments: string
        csr: string
        enrollProtocol: string
        estCaId: string
        estClientCert: string
        estHttpPassword: string
        estHttpUsername: string
        estServer: string
        estServerCert: string
        estSrpPassword: string
        estSrpUsername: string
        ikeLocalid: string
        ikeLocalidType: string
        lastUpdated: 0
        name: string
        nameEncoding: string
        password: string
        privateKey: string
        privateKeyRetain: string
        range: string
        scepPassword: string
        scepUrl: string
        source: string
        sourceIp: string
        state: string
        vdomparam: string
    

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

    Outputs

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

    Get an existing Local 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?: LocalState, opts?: CustomResourceOptions): Local
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            acme_ca_url: Optional[str] = None,
            acme_domain: Optional[str] = None,
            acme_email: Optional[str] = None,
            acme_renew_window: Optional[int] = None,
            acme_rsa_key_size: Optional[int] = None,
            auto_regenerate_days: Optional[int] = None,
            auto_regenerate_days_warning: Optional[int] = None,
            ca_identifier: Optional[str] = None,
            certificate: Optional[str] = None,
            cmp_path: Optional[str] = None,
            cmp_regeneration_method: Optional[str] = None,
            cmp_server: Optional[str] = None,
            cmp_server_cert: Optional[str] = None,
            comments: Optional[str] = None,
            csr: Optional[str] = None,
            enroll_protocol: Optional[str] = None,
            est_ca_id: Optional[str] = None,
            est_client_cert: Optional[str] = None,
            est_http_password: Optional[str] = None,
            est_http_username: Optional[str] = None,
            est_server: Optional[str] = None,
            est_server_cert: Optional[str] = None,
            est_srp_password: Optional[str] = None,
            est_srp_username: Optional[str] = None,
            ike_localid: Optional[str] = None,
            ike_localid_type: Optional[str] = None,
            last_updated: Optional[int] = None,
            name: Optional[str] = None,
            name_encoding: Optional[str] = None,
            password: Optional[str] = None,
            private_key: Optional[str] = None,
            private_key_retain: Optional[str] = None,
            range: Optional[str] = None,
            scep_password: Optional[str] = None,
            scep_url: Optional[str] = None,
            source: Optional[str] = None,
            source_ip: Optional[str] = None,
            state: Optional[str] = None,
            vdomparam: Optional[str] = None) -> Local
    func GetLocal(ctx *Context, name string, id IDInput, state *LocalState, opts ...ResourceOption) (*Local, error)
    public static Local Get(string name, Input<string> id, LocalState? state, CustomResourceOptions? opts = null)
    public static Local get(String name, Output<String> id, LocalState 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:

    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