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

fortios.certificate.Local

Explore with Pulumi AI

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

    Local keys and certificates.

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

    Example

    Import Certificate:

    Step1: Prepare certificate

    The following key is a randomly generated example key for testing. In actual use, please replace it with your own key.

    # cat xxx.key
    -----BEGIN RSA PRIVATE KEY-----
    MIIEowIBAAKCAQEAy7Vj/9qM4LiWJjd+GMUijSrIMJLmoHDTLKPiT4CAQvgn+MDo
    1J/ygkVJJSwifWn8ouGSycasjmgFJJIiu2stQzm4EQ3u85fvqazoo806pBOQm1gW
    YEY5Ug3yMpddd7xUQO8s60VD/ZQ8pNzsKZlRWelGnNw9TzZXABi/FBxLFQ4TOnw5
    zfibZ1dnvMV3mdg0MY2qoe96wpiSZKt4gkSmzPwRR7QnYzBtF8vVLlJ2I5fqJo4/
    nt9j3Kd2X2wUaZ194aIrruCFU6CFxAb2ZTJLw4/97EXR8wqoDfhU55qk7pUR22Uc
    uftobWYCMrO7e51WdBYEWIldAtcZkUsk7bUUzQIDAQABAoIBABlV8x0EOpdMfeg8
    6KL+CcES/BkGfEaiIbGgpGoM6mbp5FbM72haiFfpdCJ6bcO5ZeGAOrh7zERd7Z3R
    yx4SQ2vkBt+gIwMK95Tb24db5Bo6ELcxan8I3OI2t9PQ/aABvVziIm0UjVNBl5VN
    oNW/qt2K5Oxne/yZHpL1gPZoWnJAuBNcDZDNI5qQfT1JTWhmbu9pkjiNg3h0l5O4
    boETBdb3W2jlvCIegIQJ+xPkChS3I4cMoZ4LBRWMLpzK+Q57+zml75drsQ7PA0XH
    lx2nzUFCByu27pM6kiajXleUSGVH2VCUSNysQAYBSa77g5t7O+m+o3iNUslUDor3
    LY5eiKUCgYEA6dqJJxF28Wt6UbMgywQuv5koo8v8nyUhR4hZhvy5qge5v5Sh82UE
    RyVfSvMDR9oWnXs8tBZaf1sgsUEaFl2I/5kmFWTe7aGj1eXprOxOuMNk51AN2w9T
    jHWici/rj0JEjvAteDvLjY6CTAi8Zg9OxuJWNyV2gZ1LpZ2cIlULzLsCgYEA3wAH
    JQ0jVeJ70v2I01m16d/klTNcqv9sTIPwowz0RFkOG8v482SSQ7Q43xkSYJvxKg12
    BO6qq+RzYwDPgA7/7kLrq1Ye2VobhrsRey6dEWGdrgA/TfoCgSjK0LEBh4Gn5h7l
    DycvfNRbum1D+uheyTPC94fJChwutihUsrXuEBcCgYAaoUczCrsXvNx+Bz75v20v
    ZlqJZIZM/SZwBefkBk2CPkT5uwxCMkOtcmUKnOfHu98NaeY8v7roe9EaPkahO1+J
    c8AxeX4lY13L0tWsWnCQe7e225foVTN3cEHibPCPLMWv3UvgQDbq1Mqjq+8AVEft
    QAL/XqXDFs1xe6Q3CKZCVwKBgQCaCBbnTM/ffvUwo9dixVCWHwRw2m1j39Iad/g7
    Z7NBkpHgOV/YHtu40D+IOnUrLgvClFG0znYtDTt2YxTwy2uUU70dN/tO/qKMyaIl
    h+kOHHMhwSH45nvcYyTUSa9YvgIPPb/SW6q9eqFxgA+4u9DdAVfmSnBe/2B0ih8W
    4ftyOQKBgF0puFMyA7ySE2tQ5quiPBO95Vls4SMl59ofhEgMghmUErEFGvTHPxff
    2UF7AWahrhNq02cF8iTU/lS77D0W01TpEFl8xC5LyqewKzLatgFTFhFPPGt/wK0s
    uIAliRuV1Iyv2vDYmYaugpeZakogVBpkVPqvEzfEPgn9VEZKLQ7y
    -----END RSA PRIVATE KEY-----
    
    #cat xxxx.crt
    -----BEGIN CERTIFICATE-----
    MIIDuTCCAqGgAwIBAgIJAKCr2aCM9Je5MA0GCSqGSIb3DQEBCwUAMHMxCzAJBgNV
    BAYTAkdCMRMwEQYDVQQIDApTb21lLVN0YXRlMQ8wDQYDVQQHDAZMb25kb24xDDAK
    BgNVBAoMA0ZETDESMBAGA1UEAwwJbG9jYWxob3N0MRwwGgYJKoZIhvcNAQkBFg1z
    c0Bzc3Nzc3MuY29tMB4XDTE5MDUyOTE1MDIzMFoXDTIwMDUyODE1MDIzMFowczEL
    MAkGA1UEBhMCR0IxEzARBgNVBAgMClNvbWUtU3RhdGUxDzANBgNVBAcMBkxvbmRv
    bjEMMAoGA1UECgwDRkRMMRIwEAYDVQQDDAlsb2NhbGhvc3QxHDAaBgkqhkiG9w0B
    CQEWDXNzQHNzc3Nzcy5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB
    AQDLtWP/2ozguJYmN34YxSKNKsgwkuagcNMso+JPgIBC+Cf4wOjUn/KCRUklLCJ9
    afyi4ZLJxqyOaAUkkiK7ay1DObgRDe7zl++prOijzTqkE5CbWBZgRjlSDfIyl113
    vFRA7yzrRUP9lDyk3OwpmVFZ6Uac3D1PNlcAGL8UHEsVDhM6fDnN+JtnV2e8xXeZ
    2DQxjaqh73rCmJJkq3iCRKbM/BFHtCdjMG0Xy9UuUnYjl+omjj+e32Pcp3ZfbBRp
    nX3hoiuu4IVToIXEBvZlMkvDj/3sRdHzCqgN+FTnmqTulRHbZRy5+2htZgIys7t7
    nVZ0FgRYiV0C1xmRSyTttRTNAgMBAAGjUDBOMB0GA1UdDgQWBBTinUGXSHLwDOVm
    OMdVbk0NdJNcRzAfBgNVHSMEGDAWgBTinUGXSHLwDOVmOMdVbk0NdJNcRzAMBgNV
    HRMEBTADAQH/MA0GCSqGSIb3DQEBCwUAA4IBAQBX7ZHWH3N8EN+XcmUak7RG9qzy
    mnWPvyBiM8YI11rs87SkD+L8Q/ylxdmoI57cfPHpnqtkGAseRdN1EtzqILpyOo4Q
    Q2aF3ZHKUOEPBbblWqv+AbyXPHhODrm+Nlyu42axcqfLwLGAIRhVkVerX24lV/u2
    s3W/G5cse7RfNtxWPVUah7jAmsIv1Yc7Yi4TEIlQDImQI5TAoGTQOpPjYZXCtHXS
    xUIGOKDTds9X2wWb3lM7ANecrINh6CNB/tg3GNdGV8SCJvJnYtEgfipjS7cQoc5C
    pBmnz+IlqzrwBZBxmB+1xFrYATm/hZ3HMFrLKQVoTJgTP74/PIpCaO/mjis4
    -----END CERTIFICATE-----
    

    Step2: Prepare TF file with fortios.json.GenericApi resource

    Coming soon!
    
    import pulumi
    import pulumi_local as local
    import pulumiverse_fortios as fortios
    
    key_file = local.get_file(filename="./test.key")
    crt_file = local.get_file(filename="./test.crt")
    genericapi1 = fortios.json.GenericApi("genericapi1",
        json=f"""{{
        "type": "regular",
        "certname": "testcer",
        "password": "",
        "key_file_content": "{key_file.content_base64}",
        "file_content": "{crt_file.content_base64}"
    }}
    
    """,
        method="POST",
        path="/api/v2/monitor/vpn-certificate/local/import")
    
    package main
    
    import (
    	"fmt"
    
    	"github.com/pulumi/pulumi-local/sdk/go/local"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-fortios/sdk/go/fortios/json"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		keyFile, err := local.LookupFile(ctx, &local.LookupFileArgs{
    			Filename: "./test.key",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		crtFile, err := local.LookupFile(ctx, &local.LookupFileArgs{
    			Filename: "./test.crt",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = json.NewGenericApi(ctx, "genericapi1", &json.GenericApiArgs{
    			Json: pulumi.String(fmt.Sprintf(`{
        "type": "regular",
        "certname": "testcer",
        "password": "",
        "key_file_content": "%v",
        "file_content": "%v"
    }
    
    `, keyFile.ContentBase64, crtFile.ContentBase64)),
    			Method: pulumi.String("POST"),
    			Path:   pulumi.String("/api/v2/monitor/vpn-certificate/local/import"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Fortios = Pulumiverse.Fortios;
    using Local = Pulumi.Local;
    
    return await Deployment.RunAsync(() => 
    {
        var keyFile = Local.GetFile.Invoke(new()
        {
            Filename = "./test.key",
        });
    
        var crtFile = Local.GetFile.Invoke(new()
        {
            Filename = "./test.crt",
        });
    
        var genericapi1 = new Fortios.Json.GenericApi("genericapi1", new()
        {
            Json = Output.Tuple(keyFile, crtFile).Apply(values =>
            {
                var keyFile = values.Item1;
                var crtFile = values.Item2;
                return @$"{{
        ""type"": ""regular"",
        ""certname"": ""testcer"",
        ""password"": """",
        ""key_file_content"": ""{keyFile.Apply(getFileResult => getFileResult.ContentBase64)}"",
        ""file_content"": ""{crtFile.Apply(getFileResult => getFileResult.ContentBase64)}""
    }}
    
    ";
            }),
            Method = "POST",
            Path = "/api/v2/monitor/vpn-certificate/local/import",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.local.LocalFunctions;
    import com.pulumi.local.inputs.GetFileArgs;
    import com.pulumi.fortios.json.GenericApi;
    import com.pulumi.fortios.json.GenericApiArgs;
    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) {
            final var keyFile = LocalFunctions.getFile(GetFileArgs.builder()
                .filename("./test.key")
                .build());
    
            final var crtFile = LocalFunctions.getFile(GetFileArgs.builder()
                .filename("./test.crt")
                .build());
    
            var genericapi1 = new GenericApi("genericapi1", GenericApiArgs.builder()
                .json("""
    {
        "type": "regular",
        "certname": "testcer",
        "password": "",
        "key_file_content": "%s",
        "file_content": "%s"
    }
    
    ", keyFile.applyValue(getFileResult -> getFileResult.contentBase64()),crtFile.applyValue(getFileResult -> getFileResult.contentBase64())))
                .method("POST")
                .path("/api/v2/monitor/vpn-certificate/local/import")
                .build());
    
        }
    }
    
    resources:
      genericapi1:
        type: fortios:json:GenericApi
        properties:
          json: |+
            {
                "type": "regular",
                "certname": "testcer",
                "password": "",
                "key_file_content": "${keyFile.contentBase64}",
                "file_content": "${crtFile.contentBase64}"
            }        
    
          method: POST
          path: /api/v2/monitor/vpn-certificate/local/import
    variables:
      keyFile:
        fn::invoke:
          Function: local:getFile
          Arguments:
            filename: ./test.key
      crtFile:
        fn::invoke:
          Function: local:getFile
          Arguments:
            filename: ./test.crt
    

    Step3: Apply

    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

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

    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.6 published on Tuesday, Jul 9, 2024 by pulumiverse