1. Packages
  2. Fortimanager Provider
  3. API Docs
  4. SystemCertificateLocal
fortimanager 1.13.0 published on Thursday, Mar 13, 2025 by fortinetdev

fortimanager.SystemCertificateLocal

Explore with Pulumi AI

Local keys and certificates.

Create SystemCertificateLocal Resource

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

Constructor syntax

new SystemCertificateLocal(name: string, args?: SystemCertificateLocalArgs, opts?: CustomResourceOptions);
@overload
def SystemCertificateLocal(resource_name: str,
                           args: Optional[SystemCertificateLocalArgs] = None,
                           opts: Optional[ResourceOptions] = None)

@overload
def SystemCertificateLocal(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           certificates: Optional[Sequence[str]] = None,
                           comment: Optional[str] = None,
                           csrs: Optional[Sequence[str]] = None,
                           name: Optional[str] = None,
                           passwords: Optional[Sequence[str]] = None,
                           private_keys: Optional[Sequence[str]] = None,
                           system_certificate_local_id: Optional[str] = None)
func NewSystemCertificateLocal(ctx *Context, name string, args *SystemCertificateLocalArgs, opts ...ResourceOption) (*SystemCertificateLocal, error)
public SystemCertificateLocal(string name, SystemCertificateLocalArgs? args = null, CustomResourceOptions? opts = null)
public SystemCertificateLocal(String name, SystemCertificateLocalArgs args)
public SystemCertificateLocal(String name, SystemCertificateLocalArgs args, CustomResourceOptions options)
type: fortimanager:SystemCertificateLocal
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 SystemCertificateLocalArgs
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 SystemCertificateLocalArgs
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 SystemCertificateLocalArgs
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 SystemCertificateLocalArgs
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. SystemCertificateLocalArgs
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 systemCertificateLocalResource = new Fortimanager.SystemCertificateLocal("systemCertificateLocalResource", new()
{
    Certificates = new[]
    {
        "string",
    },
    Comment = "string",
    Csrs = new[]
    {
        "string",
    },
    Name = "string",
    Passwords = new[]
    {
        "string",
    },
    PrivateKeys = new[]
    {
        "string",
    },
    SystemCertificateLocalId = "string",
});
Copy
example, err := fortimanager.NewSystemCertificateLocal(ctx, "systemCertificateLocalResource", &fortimanager.SystemCertificateLocalArgs{
Certificates: pulumi.StringArray{
pulumi.String("string"),
},
Comment: pulumi.String("string"),
Csrs: pulumi.StringArray{
pulumi.String("string"),
},
Name: pulumi.String("string"),
Passwords: pulumi.StringArray{
pulumi.String("string"),
},
PrivateKeys: pulumi.StringArray{
pulumi.String("string"),
},
SystemCertificateLocalId: pulumi.String("string"),
})
Copy
var systemCertificateLocalResource = new SystemCertificateLocal("systemCertificateLocalResource", SystemCertificateLocalArgs.builder()
    .certificates("string")
    .comment("string")
    .csrs("string")
    .name("string")
    .passwords("string")
    .privateKeys("string")
    .systemCertificateLocalId("string")
    .build());
Copy
system_certificate_local_resource = fortimanager.SystemCertificateLocal("systemCertificateLocalResource",
    certificates=["string"],
    comment="string",
    csrs=["string"],
    name="string",
    passwords=["string"],
    private_keys=["string"],
    system_certificate_local_id="string")
Copy
const systemCertificateLocalResource = new fortimanager.SystemCertificateLocal("systemCertificateLocalResource", {
    certificates: ["string"],
    comment: "string",
    csrs: ["string"],
    name: "string",
    passwords: ["string"],
    privateKeys: ["string"],
    systemCertificateLocalId: "string",
});
Copy
type: fortimanager:SystemCertificateLocal
properties:
    certificates:
        - string
    comment: string
    csrs:
        - string
    name: string
    passwords:
        - string
    privateKeys:
        - string
    systemCertificateLocalId: string
Copy

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

Certificates List<string>
Certificate.
Comment string
Local certificate comment.
Csrs List<string>
Certificate Signing Request.
Name string
Name of local certificate.
Passwords List<string>
Local certificate password.
PrivateKeys List<string>
Local certificate private-key.
SystemCertificateLocalId string
an identifier for the resource with format {{name}}.
Certificates []string
Certificate.
Comment string
Local certificate comment.
Csrs []string
Certificate Signing Request.
Name string
Name of local certificate.
Passwords []string
Local certificate password.
PrivateKeys []string
Local certificate private-key.
SystemCertificateLocalId string
an identifier for the resource with format {{name}}.
certificates List<String>
Certificate.
comment String
Local certificate comment.
csrs List<String>
Certificate Signing Request.
name String
Name of local certificate.
passwords List<String>
Local certificate password.
privateKeys List<String>
Local certificate private-key.
systemCertificateLocalId String
an identifier for the resource with format {{name}}.
certificates string[]
Certificate.
comment string
Local certificate comment.
csrs string[]
Certificate Signing Request.
name string
Name of local certificate.
passwords string[]
Local certificate password.
privateKeys string[]
Local certificate private-key.
systemCertificateLocalId string
an identifier for the resource with format {{name}}.
certificates Sequence[str]
Certificate.
comment str
Local certificate comment.
csrs Sequence[str]
Certificate Signing Request.
name str
Name of local certificate.
passwords Sequence[str]
Local certificate password.
private_keys Sequence[str]
Local certificate private-key.
system_certificate_local_id str
an identifier for the resource with format {{name}}.
certificates List<String>
Certificate.
comment String
Local certificate comment.
csrs List<String>
Certificate Signing Request.
name String
Name of local certificate.
passwords List<String>
Local certificate password.
privateKeys List<String>
Local certificate private-key.
systemCertificateLocalId String
an identifier for the resource with format {{name}}.

Outputs

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

Get an existing SystemCertificateLocal 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?: SystemCertificateLocalState, opts?: CustomResourceOptions): SystemCertificateLocal
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        certificates: Optional[Sequence[str]] = None,
        comment: Optional[str] = None,
        csrs: Optional[Sequence[str]] = None,
        name: Optional[str] = None,
        passwords: Optional[Sequence[str]] = None,
        private_keys: Optional[Sequence[str]] = None,
        system_certificate_local_id: Optional[str] = None) -> SystemCertificateLocal
func GetSystemCertificateLocal(ctx *Context, name string, id IDInput, state *SystemCertificateLocalState, opts ...ResourceOption) (*SystemCertificateLocal, error)
public static SystemCertificateLocal Get(string name, Input<string> id, SystemCertificateLocalState? state, CustomResourceOptions? opts = null)
public static SystemCertificateLocal get(String name, Output<String> id, SystemCertificateLocalState state, CustomResourceOptions options)
resources:  _:    type: fortimanager:SystemCertificateLocal    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:
Certificates List<string>
Certificate.
Comment string
Local certificate comment.
Csrs List<string>
Certificate Signing Request.
Name string
Name of local certificate.
Passwords List<string>
Local certificate password.
PrivateKeys List<string>
Local certificate private-key.
SystemCertificateLocalId string
an identifier for the resource with format {{name}}.
Certificates []string
Certificate.
Comment string
Local certificate comment.
Csrs []string
Certificate Signing Request.
Name string
Name of local certificate.
Passwords []string
Local certificate password.
PrivateKeys []string
Local certificate private-key.
SystemCertificateLocalId string
an identifier for the resource with format {{name}}.
certificates List<String>
Certificate.
comment String
Local certificate comment.
csrs List<String>
Certificate Signing Request.
name String
Name of local certificate.
passwords List<String>
Local certificate password.
privateKeys List<String>
Local certificate private-key.
systemCertificateLocalId String
an identifier for the resource with format {{name}}.
certificates string[]
Certificate.
comment string
Local certificate comment.
csrs string[]
Certificate Signing Request.
name string
Name of local certificate.
passwords string[]
Local certificate password.
privateKeys string[]
Local certificate private-key.
systemCertificateLocalId string
an identifier for the resource with format {{name}}.
certificates Sequence[str]
Certificate.
comment str
Local certificate comment.
csrs Sequence[str]
Certificate Signing Request.
name str
Name of local certificate.
passwords Sequence[str]
Local certificate password.
private_keys Sequence[str]
Local certificate private-key.
system_certificate_local_id str
an identifier for the resource with format {{name}}.
certificates List<String>
Certificate.
comment String
Local certificate comment.
csrs List<String>
Certificate Signing Request.
name String
Name of local certificate.
passwords List<String>
Local certificate password.
privateKeys List<String>
Local certificate private-key.
systemCertificateLocalId String
an identifier for the resource with format {{name}}.

Import

System CertificateLocal can be imported using any of these accepted formats:

$ export “FORTIMANAGER_IMPORT_TABLE”=“true”

$ pulumi import fortimanager:index/systemCertificateLocal:SystemCertificateLocal labelname {{name}}
Copy

$ unset “FORTIMANAGER_IMPORT_TABLE”

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
fortimanager fortinetdev/terraform-provider-fortimanager
License
Notes
This Pulumi package is based on the fortimanager Terraform Provider.