published on Friday, Jul 31, 2026 by fortinetdev
published on Friday, Jul 31, 2026 by fortinetdev
Import
Sys Restore can be imported using any of these accepted formats:
$ export “FORTIMANAGER_IMPORT_TABLE”=“true”
$ pulumi import fortimanager:index/sysRestore:SysRestore labelname SysRestore
$ unset “FORTIMANAGER_IMPORT_TABLE”
Create SysRestore Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SysRestore(name: string, args?: SysRestoreArgs, opts?: CustomResourceOptions);@overload
def SysRestore(resource_name: str,
args: Optional[SysRestoreArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def SysRestore(resource_name: str,
opts: Optional[ResourceOptions] = None,
filename: Optional[str] = None,
force_recreate: Optional[str] = None,
passwd: Optional[str] = None,
port: Optional[float] = None,
server: Optional[str] = None,
service: Optional[str] = None,
sys_restore_id: Optional[str] = None,
username: Optional[str] = None,
userpasswds: Optional[Sequence[str]] = None)func NewSysRestore(ctx *Context, name string, args *SysRestoreArgs, opts ...ResourceOption) (*SysRestore, error)public SysRestore(string name, SysRestoreArgs? args = null, CustomResourceOptions? opts = null)
public SysRestore(String name, SysRestoreArgs args)
public SysRestore(String name, SysRestoreArgs args, CustomResourceOptions options)
type: fortimanager:SysRestore
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "fortimanager_sys_restore" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args SysRestoreArgs
- 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 SysRestoreArgs
- 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 SysRestoreArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SysRestoreArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SysRestoreArgs
- 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 sysRestoreResource = new Fortimanager.SysRestore("sysRestoreResource", new()
{
Filename = "string",
ForceRecreate = "string",
Passwd = "string",
Port = 0,
Server = "string",
Service = "string",
SysRestoreId = "string",
Username = "string",
Userpasswds = new[]
{
"string",
},
});
example, err := fortimanager.NewSysRestore(ctx, "sysRestoreResource", &fortimanager.SysRestoreArgs{
Filename: pulumi.String("string"),
ForceRecreate: pulumi.String("string"),
Passwd: pulumi.String("string"),
Port: pulumi.Float64(0),
Server: pulumi.String("string"),
Service: pulumi.String("string"),
SysRestoreId: pulumi.String("string"),
Username: pulumi.String("string"),
Userpasswds: pulumi.StringArray{
pulumi.String("string"),
},
})
resource "fortimanager_sys_restore" "sysRestoreResource" {
lifecycle {
create_before_destroy = true
}
filename = "string"
force_recreate = "string"
passwd = "string"
port = 0
server = "string"
service = "string"
sys_restore_id = "string"
username = "string"
userpasswds = ["string"]
}
var sysRestoreResource = new SysRestore("sysRestoreResource", SysRestoreArgs.builder()
.filename("string")
.forceRecreate("string")
.passwd("string")
.port(0.0)
.server("string")
.service("string")
.sysRestoreId("string")
.username("string")
.userpasswds("string")
.build());
sys_restore_resource = fortimanager.SysRestore("sysRestoreResource",
filename="string",
force_recreate="string",
passwd="string",
port=float(0),
server="string",
service="string",
sys_restore_id="string",
username="string",
userpasswds=["string"])
const sysRestoreResource = new fortimanager.SysRestore("sysRestoreResource", {
filename: "string",
forceRecreate: "string",
passwd: "string",
port: 0,
server: "string",
service: "string",
sysRestoreId: "string",
username: "string",
userpasswds: ["string"],
});
type: fortimanager:SysRestore
properties:
filename: string
forceRecreate: string
passwd: string
port: 0
server: string
service: string
sysRestoreId: string
username: string
userpasswds:
- string
SysRestore 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 SysRestore resource accepts the following input properties:
- Filename string
- Path and file name for the configuration on remote server.
- Force
Recreate string - The argument is optional, if it is set, when the value changes, the resource will be re-created.
- Passwd string
- Password for password-protected configuration backup file.
- Port double
- Remote server port. Default port is used if not specified.
- Server string
- Remote server address.
- Service string
- Protocol to restore configuration. Valid values:
ftp,scp,sftp,tftp. - Sys
Restore stringId - an identifier for the resource.
- Username string
- User name to log in to the remote server.
- Userpasswds List<string>
- Password to log in to the remote server.
- Filename string
- Path and file name for the configuration on remote server.
- Force
Recreate string - The argument is optional, if it is set, when the value changes, the resource will be re-created.
- Passwd string
- Password for password-protected configuration backup file.
- Port float64
- Remote server port. Default port is used if not specified.
- Server string
- Remote server address.
- Service string
- Protocol to restore configuration. Valid values:
ftp,scp,sftp,tftp. - Sys
Restore stringId - an identifier for the resource.
- Username string
- User name to log in to the remote server.
- Userpasswds []string
- Password to log in to the remote server.
- filename string
- Path and file name for the configuration on remote server.
- force_
recreate string - The argument is optional, if it is set, when the value changes, the resource will be re-created.
- passwd string
- Password for password-protected configuration backup file.
- port number
- Remote server port. Default port is used if not specified.
- server string
- Remote server address.
- service string
- Protocol to restore configuration. Valid values:
ftp,scp,sftp,tftp. - sys_
restore_ stringid - an identifier for the resource.
- username string
- User name to log in to the remote server.
- userpasswds list(string)
- Password to log in to the remote server.
- filename String
- Path and file name for the configuration on remote server.
- force
Recreate String - The argument is optional, if it is set, when the value changes, the resource will be re-created.
- passwd String
- Password for password-protected configuration backup file.
- port Double
- Remote server port. Default port is used if not specified.
- server String
- Remote server address.
- service String
- Protocol to restore configuration. Valid values:
ftp,scp,sftp,tftp. - sys
Restore StringId - an identifier for the resource.
- username String
- User name to log in to the remote server.
- userpasswds List<String>
- Password to log in to the remote server.
- filename string
- Path and file name for the configuration on remote server.
- force
Recreate string - The argument is optional, if it is set, when the value changes, the resource will be re-created.
- passwd string
- Password for password-protected configuration backup file.
- port number
- Remote server port. Default port is used if not specified.
- server string
- Remote server address.
- service string
- Protocol to restore configuration. Valid values:
ftp,scp,sftp,tftp. - sys
Restore stringId - an identifier for the resource.
- username string
- User name to log in to the remote server.
- userpasswds string[]
- Password to log in to the remote server.
- filename str
- Path and file name for the configuration on remote server.
- force_
recreate str - The argument is optional, if it is set, when the value changes, the resource will be re-created.
- passwd str
- Password for password-protected configuration backup file.
- port float
- Remote server port. Default port is used if not specified.
- server str
- Remote server address.
- service str
- Protocol to restore configuration. Valid values:
ftp,scp,sftp,tftp. - sys_
restore_ strid - an identifier for the resource.
- username str
- User name to log in to the remote server.
- userpasswds Sequence[str]
- Password to log in to the remote server.
- filename String
- Path and file name for the configuration on remote server.
- force
Recreate String - The argument is optional, if it is set, when the value changes, the resource will be re-created.
- passwd String
- Password for password-protected configuration backup file.
- port Number
- Remote server port. Default port is used if not specified.
- server String
- Remote server address.
- service String
- Protocol to restore configuration. Valid values:
ftp,scp,sftp,tftp. - sys
Restore StringId - an identifier for the resource.
- username String
- User name to log in to the remote server.
- userpasswds List<String>
- Password to log in to the remote server.
Outputs
All input properties are implicitly available as output properties. Additionally, the SysRestore 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 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 SysRestore Resource
Get an existing SysRestore 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?: SysRestoreState, opts?: CustomResourceOptions): SysRestore@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
filename: Optional[str] = None,
force_recreate: Optional[str] = None,
passwd: Optional[str] = None,
port: Optional[float] = None,
server: Optional[str] = None,
service: Optional[str] = None,
sys_restore_id: Optional[str] = None,
username: Optional[str] = None,
userpasswds: Optional[Sequence[str]] = None) -> SysRestorefunc GetSysRestore(ctx *Context, name string, id IDInput, state *SysRestoreState, opts ...ResourceOption) (*SysRestore, error)public static SysRestore Get(string name, Input<string> id, SysRestoreState? state, CustomResourceOptions? opts = null)public static SysRestore get(String name, Output<String> id, SysRestoreState state, CustomResourceOptions options)resources: _: type: fortimanager:SysRestore get: id: ${id}import {
to = fortimanager_sys_restore.example
id = "${id}"
}
- 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.
- Filename string
- Path and file name for the configuration on remote server.
- Force
Recreate string - The argument is optional, if it is set, when the value changes, the resource will be re-created.
- Passwd string
- Password for password-protected configuration backup file.
- Port double
- Remote server port. Default port is used if not specified.
- Server string
- Remote server address.
- Service string
- Protocol to restore configuration. Valid values:
ftp,scp,sftp,tftp. - Sys
Restore stringId - an identifier for the resource.
- Username string
- User name to log in to the remote server.
- Userpasswds List<string>
- Password to log in to the remote server.
- Filename string
- Path and file name for the configuration on remote server.
- Force
Recreate string - The argument is optional, if it is set, when the value changes, the resource will be re-created.
- Passwd string
- Password for password-protected configuration backup file.
- Port float64
- Remote server port. Default port is used if not specified.
- Server string
- Remote server address.
- Service string
- Protocol to restore configuration. Valid values:
ftp,scp,sftp,tftp. - Sys
Restore stringId - an identifier for the resource.
- Username string
- User name to log in to the remote server.
- Userpasswds []string
- Password to log in to the remote server.
- filename string
- Path and file name for the configuration on remote server.
- force_
recreate string - The argument is optional, if it is set, when the value changes, the resource will be re-created.
- passwd string
- Password for password-protected configuration backup file.
- port number
- Remote server port. Default port is used if not specified.
- server string
- Remote server address.
- service string
- Protocol to restore configuration. Valid values:
ftp,scp,sftp,tftp. - sys_
restore_ stringid - an identifier for the resource.
- username string
- User name to log in to the remote server.
- userpasswds list(string)
- Password to log in to the remote server.
- filename String
- Path and file name for the configuration on remote server.
- force
Recreate String - The argument is optional, if it is set, when the value changes, the resource will be re-created.
- passwd String
- Password for password-protected configuration backup file.
- port Double
- Remote server port. Default port is used if not specified.
- server String
- Remote server address.
- service String
- Protocol to restore configuration. Valid values:
ftp,scp,sftp,tftp. - sys
Restore StringId - an identifier for the resource.
- username String
- User name to log in to the remote server.
- userpasswds List<String>
- Password to log in to the remote server.
- filename string
- Path and file name for the configuration on remote server.
- force
Recreate string - The argument is optional, if it is set, when the value changes, the resource will be re-created.
- passwd string
- Password for password-protected configuration backup file.
- port number
- Remote server port. Default port is used if not specified.
- server string
- Remote server address.
- service string
- Protocol to restore configuration. Valid values:
ftp,scp,sftp,tftp. - sys
Restore stringId - an identifier for the resource.
- username string
- User name to log in to the remote server.
- userpasswds string[]
- Password to log in to the remote server.
- filename str
- Path and file name for the configuration on remote server.
- force_
recreate str - The argument is optional, if it is set, when the value changes, the resource will be re-created.
- passwd str
- Password for password-protected configuration backup file.
- port float
- Remote server port. Default port is used if not specified.
- server str
- Remote server address.
- service str
- Protocol to restore configuration. Valid values:
ftp,scp,sftp,tftp. - sys_
restore_ strid - an identifier for the resource.
- username str
- User name to log in to the remote server.
- userpasswds Sequence[str]
- Password to log in to the remote server.
- filename String
- Path and file name for the configuration on remote server.
- force
Recreate String - The argument is optional, if it is set, when the value changes, the resource will be re-created.
- passwd String
- Password for password-protected configuration backup file.
- port Number
- Remote server port. Default port is used if not specified.
- server String
- Remote server address.
- service String
- Protocol to restore configuration. Valid values:
ftp,scp,sftp,tftp. - sys
Restore StringId - an identifier for the resource.
- username String
- User name to log in to the remote server.
- userpasswds List<String>
- Password to log in to the remote server.
Package Details
- Repository
- fortimanager fortinetdev/terraform-provider-fortimanager
- License
- Notes
- This Pulumi package is based on the
fortimanagerTerraform Provider.
published on Friday, Jul 31, 2026 by fortinetdev