fortios.system.Storage
Explore with Pulumi AI
Configure logical storage.
Create Storage Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Storage(name: string, args?: StorageArgs, opts?: CustomResourceOptions);
@overload
def Storage(resource_name: str,
args: Optional[StorageArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Storage(resource_name: str,
opts: Optional[ResourceOptions] = None,
device: Optional[str] = None,
media_status: Optional[str] = None,
name: Optional[str] = None,
order: Optional[int] = None,
partition: Optional[str] = None,
size: Optional[int] = None,
status: Optional[str] = None,
usage: Optional[str] = None,
vdomparam: Optional[str] = None,
wanopt_mode: Optional[str] = None)
func NewStorage(ctx *Context, name string, args *StorageArgs, opts ...ResourceOption) (*Storage, error)
public Storage(string name, StorageArgs? args = null, CustomResourceOptions? opts = null)
public Storage(String name, StorageArgs args)
public Storage(String name, StorageArgs args, CustomResourceOptions options)
type: fortios:system:Storage
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 StorageArgs
- 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 StorageArgs
- 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 StorageArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args StorageArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args StorageArgs
- 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 storageResource = new Fortios.System.Storage("storageResource", new()
{
Device = "string",
MediaStatus = "string",
Name = "string",
Order = 0,
Partition = "string",
Size = 0,
Status = "string",
Usage = "string",
Vdomparam = "string",
WanoptMode = "string",
});
example, err := system.NewStorage(ctx, "storageResource", &system.StorageArgs{
Device: pulumi.String("string"),
MediaStatus: pulumi.String("string"),
Name: pulumi.String("string"),
Order: pulumi.Int(0),
Partition: pulumi.String("string"),
Size: pulumi.Int(0),
Status: pulumi.String("string"),
Usage: pulumi.String("string"),
Vdomparam: pulumi.String("string"),
WanoptMode: pulumi.String("string"),
})
var storageResource = new Storage("storageResource", StorageArgs.builder()
.device("string")
.mediaStatus("string")
.name("string")
.order(0)
.partition("string")
.size(0)
.status("string")
.usage("string")
.vdomparam("string")
.wanoptMode("string")
.build());
storage_resource = fortios.system.Storage("storageResource",
device="string",
media_status="string",
name="string",
order=0,
partition="string",
size=0,
status="string",
usage="string",
vdomparam="string",
wanopt_mode="string")
const storageResource = new fortios.system.Storage("storageResource", {
device: "string",
mediaStatus: "string",
name: "string",
order: 0,
partition: "string",
size: 0,
status: "string",
usage: "string",
vdomparam: "string",
wanoptMode: "string",
});
type: fortios:system:Storage
properties:
device: string
mediaStatus: string
name: string
order: 0
partition: string
size: 0
status: string
usage: string
vdomparam: string
wanoptMode: string
Storage 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 Storage resource accepts the following input properties:
- Device string
- Partition device.
- Media
Status string - The physical status of current media. Valid values:
enable
,disable
,fail
. - Name string
- Storage name.
- Order int
- Set storage order.
- Partition string
- Label of underlying partition.
- Size int
- Partition size.
- Status string
- Enable/disable storage. Valid values:
enable
,disable
. - Usage string
- Use hard disk for logging or WAN Optimization (default = log).
- Vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- Wanopt
Mode string - WAN Optimization mode (default = mix). Valid values:
mix
,wanopt
,webcache
.
- Device string
- Partition device.
- Media
Status string - The physical status of current media. Valid values:
enable
,disable
,fail
. - Name string
- Storage name.
- Order int
- Set storage order.
- Partition string
- Label of underlying partition.
- Size int
- Partition size.
- Status string
- Enable/disable storage. Valid values:
enable
,disable
. - Usage string
- Use hard disk for logging or WAN Optimization (default = log).
- Vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- Wanopt
Mode string - WAN Optimization mode (default = mix). Valid values:
mix
,wanopt
,webcache
.
- device String
- Partition device.
- media
Status String - The physical status of current media. Valid values:
enable
,disable
,fail
. - name String
- Storage name.
- order Integer
- Set storage order.
- partition String
- Label of underlying partition.
- size Integer
- Partition size.
- status String
- Enable/disable storage. Valid values:
enable
,disable
. - usage String
- Use hard disk for logging or WAN Optimization (default = log).
- vdomparam String
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- wanopt
Mode String - WAN Optimization mode (default = mix). Valid values:
mix
,wanopt
,webcache
.
- device string
- Partition device.
- media
Status string - The physical status of current media. Valid values:
enable
,disable
,fail
. - name string
- Storage name.
- order number
- Set storage order.
- partition string
- Label of underlying partition.
- size number
- Partition size.
- status string
- Enable/disable storage. Valid values:
enable
,disable
. - usage string
- Use hard disk for logging or WAN Optimization (default = log).
- vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- wanopt
Mode string - WAN Optimization mode (default = mix). Valid values:
mix
,wanopt
,webcache
.
- device str
- Partition device.
- media_
status str - The physical status of current media. Valid values:
enable
,disable
,fail
. - name str
- Storage name.
- order int
- Set storage order.
- partition str
- Label of underlying partition.
- size int
- Partition size.
- status str
- Enable/disable storage. Valid values:
enable
,disable
. - usage str
- Use hard disk for logging or WAN Optimization (default = log).
- vdomparam str
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- wanopt_
mode str - WAN Optimization mode (default = mix). Valid values:
mix
,wanopt
,webcache
.
- device String
- Partition device.
- media
Status String - The physical status of current media. Valid values:
enable
,disable
,fail
. - name String
- Storage name.
- order Number
- Set storage order.
- partition String
- Label of underlying partition.
- size Number
- Partition size.
- status String
- Enable/disable storage. Valid values:
enable
,disable
. - usage String
- Use hard disk for logging or WAN Optimization (default = log).
- vdomparam String
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- wanopt
Mode String - WAN Optimization mode (default = mix). Valid values:
mix
,wanopt
,webcache
.
Outputs
All input properties are implicitly available as output properties. Additionally, the Storage 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 Storage Resource
Get an existing Storage 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?: StorageState, opts?: CustomResourceOptions): Storage
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
device: Optional[str] = None,
media_status: Optional[str] = None,
name: Optional[str] = None,
order: Optional[int] = None,
partition: Optional[str] = None,
size: Optional[int] = None,
status: Optional[str] = None,
usage: Optional[str] = None,
vdomparam: Optional[str] = None,
wanopt_mode: Optional[str] = None) -> Storage
func GetStorage(ctx *Context, name string, id IDInput, state *StorageState, opts ...ResourceOption) (*Storage, error)
public static Storage Get(string name, Input<string> id, StorageState? state, CustomResourceOptions? opts = null)
public static Storage get(String name, Output<String> id, StorageState 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.
- Device string
- Partition device.
- Media
Status string - The physical status of current media. Valid values:
enable
,disable
,fail
. - Name string
- Storage name.
- Order int
- Set storage order.
- Partition string
- Label of underlying partition.
- Size int
- Partition size.
- Status string
- Enable/disable storage. Valid values:
enable
,disable
. - Usage string
- Use hard disk for logging or WAN Optimization (default = log).
- Vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- Wanopt
Mode string - WAN Optimization mode (default = mix). Valid values:
mix
,wanopt
,webcache
.
- Device string
- Partition device.
- Media
Status string - The physical status of current media. Valid values:
enable
,disable
,fail
. - Name string
- Storage name.
- Order int
- Set storage order.
- Partition string
- Label of underlying partition.
- Size int
- Partition size.
- Status string
- Enable/disable storage. Valid values:
enable
,disable
. - Usage string
- Use hard disk for logging or WAN Optimization (default = log).
- Vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- Wanopt
Mode string - WAN Optimization mode (default = mix). Valid values:
mix
,wanopt
,webcache
.
- device String
- Partition device.
- media
Status String - The physical status of current media. Valid values:
enable
,disable
,fail
. - name String
- Storage name.
- order Integer
- Set storage order.
- partition String
- Label of underlying partition.
- size Integer
- Partition size.
- status String
- Enable/disable storage. Valid values:
enable
,disable
. - usage String
- Use hard disk for logging or WAN Optimization (default = log).
- vdomparam String
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- wanopt
Mode String - WAN Optimization mode (default = mix). Valid values:
mix
,wanopt
,webcache
.
- device string
- Partition device.
- media
Status string - The physical status of current media. Valid values:
enable
,disable
,fail
. - name string
- Storage name.
- order number
- Set storage order.
- partition string
- Label of underlying partition.
- size number
- Partition size.
- status string
- Enable/disable storage. Valid values:
enable
,disable
. - usage string
- Use hard disk for logging or WAN Optimization (default = log).
- vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- wanopt
Mode string - WAN Optimization mode (default = mix). Valid values:
mix
,wanopt
,webcache
.
- device str
- Partition device.
- media_
status str - The physical status of current media. Valid values:
enable
,disable
,fail
. - name str
- Storage name.
- order int
- Set storage order.
- partition str
- Label of underlying partition.
- size int
- Partition size.
- status str
- Enable/disable storage. Valid values:
enable
,disable
. - usage str
- Use hard disk for logging or WAN Optimization (default = log).
- vdomparam str
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- wanopt_
mode str - WAN Optimization mode (default = mix). Valid values:
mix
,wanopt
,webcache
.
- device String
- Partition device.
- media
Status String - The physical status of current media. Valid values:
enable
,disable
,fail
. - name String
- Storage name.
- order Number
- Set storage order.
- partition String
- Label of underlying partition.
- size Number
- Partition size.
- status String
- Enable/disable storage. Valid values:
enable
,disable
. - usage String
- Use hard disk for logging or WAN Optimization (default = log).
- vdomparam String
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- wanopt
Mode String - WAN Optimization mode (default = mix). Valid values:
mix
,wanopt
,webcache
.
Import
System Storage can be imported using any of these accepted formats:
$ pulumi import fortios:system/storage:Storage labelname {{name}}
If you do not want to import arguments of block:
$ export “FORTIOS_IMPORT_TABLE”=“false”
$ pulumi import fortios:system/storage:Storage labelname {{name}}
$ unset “FORTIOS_IMPORT_TABLE”
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- fortios pulumiverse/pulumi-fortios
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
fortios
Terraform Provider.