proxmoxve.Storage.File
Explore with Pulumi AI

Create File Resource
new File(name: string, args: FileArgs, opts?: CustomResourceOptions);
@overload
def File(resource_name: str,
opts: Optional[ResourceOptions] = None,
content_type: Optional[str] = None,
datastore_id: Optional[str] = None,
node_name: Optional[str] = None,
overwrite: Optional[bool] = None,
source_file: Optional[_storage.FileSourceFileArgs] = None,
source_raw: Optional[_storage.FileSourceRawArgs] = None,
timeout_upload: Optional[int] = None)
@overload
def File(resource_name: str,
args: FileArgs,
opts: Optional[ResourceOptions] = None)
func NewFile(ctx *Context, name string, args FileArgs, opts ...ResourceOption) (*File, error)
public File(string name, FileArgs args, CustomResourceOptions? opts = null)
type: proxmoxve:Storage:File
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FileArgs
- 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 FileArgs
- 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 FileArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FileArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FileArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
File 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 File resource accepts the following input properties:
- Datastore
Id string The datastore id
- Node
Name string The node name
- Content
Type string The content type
- Overwrite bool
Whether to overwrite the file if it already exists
- Source
File Pulumi.Proxmox VE. Storage. Inputs. File Source File The source file
- Source
Raw Pulumi.Proxmox VE. Storage. Inputs. File Source Raw The raw source
- Timeout
Upload int Timeout for uploading ISO/VSTMPL files in seconds
- Datastore
Id string The datastore id
- Node
Name string The node name
- Content
Type string The content type
- Overwrite bool
Whether to overwrite the file if it already exists
- Source
File FileSource File Args The source file
- Source
Raw FileSource Raw Args The raw source
- Timeout
Upload int Timeout for uploading ISO/VSTMPL files in seconds
- datastore
Id String The datastore id
- node
Name String The node name
- content
Type String The content type
- overwrite Boolean
Whether to overwrite the file if it already exists
- source
File FileSource File The source file
- source
Raw FileSource Raw The raw source
- timeout
Upload Integer Timeout for uploading ISO/VSTMPL files in seconds
- datastore
Id string The datastore id
- node
Name string The node name
- content
Type string The content type
- overwrite boolean
Whether to overwrite the file if it already exists
- source
File FileSource File The source file
- source
Raw FileSource Raw The raw source
- timeout
Upload number Timeout for uploading ISO/VSTMPL files in seconds
- datastore_
id str The datastore id
- node_
name str The node name
- content_
type str The content type
- overwrite bool
Whether to overwrite the file if it already exists
- source_
file FileSource File Args The source file
- source_
raw FileSource Raw Args The raw source
- timeout_
upload int Timeout for uploading ISO/VSTMPL files in seconds
- datastore
Id String The datastore id
- node
Name String The node name
- content
Type String The content type
- overwrite Boolean
Whether to overwrite the file if it already exists
- source
File Property Map The source file
- source
Raw Property Map The raw source
- timeout
Upload Number Timeout for uploading ISO/VSTMPL files in seconds
Outputs
All input properties are implicitly available as output properties. Additionally, the File resource produces the following output properties:
- File
Modification stringDate The file modification date
- File
Name string The file name
- File
Size int The file size in bytes
- File
Tag string The file tag
- Id string
The provider-assigned unique ID for this managed resource.
- File
Modification stringDate The file modification date
- File
Name string The file name
- File
Size int The file size in bytes
- File
Tag string The file tag
- Id string
The provider-assigned unique ID for this managed resource.
- file
Modification StringDate The file modification date
- file
Name String The file name
- file
Size Integer The file size in bytes
- file
Tag String The file tag
- id String
The provider-assigned unique ID for this managed resource.
- file
Modification stringDate The file modification date
- file
Name string The file name
- file
Size number The file size in bytes
- file
Tag string The file tag
- id string
The provider-assigned unique ID for this managed resource.
- file_
modification_ strdate The file modification date
- file_
name str The file name
- file_
size int The file size in bytes
- file_
tag str The file tag
- id str
The provider-assigned unique ID for this managed resource.
- file
Modification StringDate The file modification date
- file
Name String The file name
- file
Size Number The file size in bytes
- file
Tag String The file tag
- id String
The provider-assigned unique ID for this managed resource.
Look up Existing File Resource
Get an existing File 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?: FileState, opts?: CustomResourceOptions): File
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
content_type: Optional[str] = None,
datastore_id: Optional[str] = None,
file_modification_date: Optional[str] = None,
file_name: Optional[str] = None,
file_size: Optional[int] = None,
file_tag: Optional[str] = None,
node_name: Optional[str] = None,
overwrite: Optional[bool] = None,
source_file: Optional[_storage.FileSourceFileArgs] = None,
source_raw: Optional[_storage.FileSourceRawArgs] = None,
timeout_upload: Optional[int] = None) -> File
func GetFile(ctx *Context, name string, id IDInput, state *FileState, opts ...ResourceOption) (*File, error)
public static File Get(string name, Input<string> id, FileState? state, CustomResourceOptions? opts = null)
public static File get(String name, Output<String> id, FileState 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.
- Content
Type string The content type
- Datastore
Id string The datastore id
- File
Modification stringDate The file modification date
- File
Name string The file name
- File
Size int The file size in bytes
- File
Tag string The file tag
- Node
Name string The node name
- Overwrite bool
Whether to overwrite the file if it already exists
- Source
File Pulumi.Proxmox VE. Storage. Inputs. File Source File The source file
- Source
Raw Pulumi.Proxmox VE. Storage. Inputs. File Source Raw The raw source
- Timeout
Upload int Timeout for uploading ISO/VSTMPL files in seconds
- Content
Type string The content type
- Datastore
Id string The datastore id
- File
Modification stringDate The file modification date
- File
Name string The file name
- File
Size int The file size in bytes
- File
Tag string The file tag
- Node
Name string The node name
- Overwrite bool
Whether to overwrite the file if it already exists
- Source
File FileSource File Args The source file
- Source
Raw FileSource Raw Args The raw source
- Timeout
Upload int Timeout for uploading ISO/VSTMPL files in seconds
- content
Type String The content type
- datastore
Id String The datastore id
- file
Modification StringDate The file modification date
- file
Name String The file name
- file
Size Integer The file size in bytes
- file
Tag String The file tag
- node
Name String The node name
- overwrite Boolean
Whether to overwrite the file if it already exists
- source
File FileSource File The source file
- source
Raw FileSource Raw The raw source
- timeout
Upload Integer Timeout for uploading ISO/VSTMPL files in seconds
- content
Type string The content type
- datastore
Id string The datastore id
- file
Modification stringDate The file modification date
- file
Name string The file name
- file
Size number The file size in bytes
- file
Tag string The file tag
- node
Name string The node name
- overwrite boolean
Whether to overwrite the file if it already exists
- source
File FileSource File The source file
- source
Raw FileSource Raw The raw source
- timeout
Upload number Timeout for uploading ISO/VSTMPL files in seconds
- content_
type str The content type
- datastore_
id str The datastore id
- file_
modification_ strdate The file modification date
- file_
name str The file name
- file_
size int The file size in bytes
- file_
tag str The file tag
- node_
name str The node name
- overwrite bool
Whether to overwrite the file if it already exists
- source_
file FileSource File Args The source file
- source_
raw FileSource Raw Args The raw source
- timeout_
upload int Timeout for uploading ISO/VSTMPL files in seconds
- content
Type String The content type
- datastore
Id String The datastore id
- file
Modification StringDate The file modification date
- file
Name String The file name
- file
Size Number The file size in bytes
- file
Tag String The file tag
- node
Name String The node name
- overwrite Boolean
Whether to overwrite the file if it already exists
- source
File Property Map The source file
- source
Raw Property Map The raw source
- timeout
Upload Number Timeout for uploading ISO/VSTMPL files in seconds
Supporting Types
FileSourceFile, FileSourceFileArgs
FileSourceRaw, FileSourceRawArgs
Package Details
- Repository
- proxmoxve muhlba91/pulumi-proxmoxve
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
proxmoxve
Terraform Provider.
