1. Packages
  2. UpCloud
  3. API Docs
  4. Storage
UpCloud v0.1.0 published on Friday, Mar 14, 2025 by UpCloudLtd

upcloud.Storage

Explore with Pulumi AI

Manages UpCloud Block Storage devices.

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: StorageArgs,
            opts: Optional[ResourceOptions] = None)

@overload
def Storage(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            size: Optional[int] = None,
            title: Optional[str] = None,
            zone: Optional[str] = None,
            backup_rule: Optional[StorageBackupRuleArgs] = None,
            clone: Optional[StorageCloneArgs] = None,
            delete_autoresize_backup: Optional[bool] = None,
            encrypt: Optional[bool] = None,
            filesystem_autoresize: Optional[bool] = None,
            import_: Optional[StorageImportArgs] = None,
            labels: Optional[Mapping[str, str]] = None,
            tier: Optional[str] = None)
func NewStorage(ctx *Context, name string, args StorageArgs, opts ...ResourceOption) (*Storage, error)
public Storage(string name, StorageArgs args, CustomResourceOptions? opts = null)
public Storage(String name, StorageArgs args)
public Storage(String name, StorageArgs args, CustomResourceOptions options)
type: upcloud:Storage
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 This property is required. StorageArgs
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 This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. StorageArgs
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 This property is required. StorageArgs
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. 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 UpCloud.Storage("storageResource", new()
{
    Size = 0,
    Title = "string",
    Zone = "string",
    BackupRule = new UpCloud.Inputs.StorageBackupRuleArgs
    {
        Interval = "string",
        Retention = 0,
        Time = "string",
    },
    Clone = new UpCloud.Inputs.StorageCloneArgs
    {
        Id = "string",
    },
    DeleteAutoresizeBackup = false,
    Encrypt = false,
    FilesystemAutoresize = false,
    Import = new UpCloud.Inputs.StorageImportArgs
    {
        Source = "string",
        SourceLocation = "string",
        Sha256sum = "string",
        SourceHash = "string",
        WrittenBytes = 0,
    },
    Labels = 
    {
        { "string", "string" },
    },
    Tier = "string",
});
Copy
example, err := upcloud.NewStorage(ctx, "storageResource", &upcloud.StorageArgs{
	Size:  pulumi.Int(0),
	Title: pulumi.String("string"),
	Zone:  pulumi.String("string"),
	BackupRule: &upcloud.StorageBackupRuleArgs{
		Interval:  pulumi.String("string"),
		Retention: pulumi.Int(0),
		Time:      pulumi.String("string"),
	},
	Clone: &upcloud.StorageCloneArgs{
		Id: pulumi.String("string"),
	},
	DeleteAutoresizeBackup: pulumi.Bool(false),
	Encrypt:                pulumi.Bool(false),
	FilesystemAutoresize:   pulumi.Bool(false),
	Import: &upcloud.StorageImportArgs{
		Source:         pulumi.String("string"),
		SourceLocation: pulumi.String("string"),
		Sha256sum:      pulumi.String("string"),
		SourceHash:     pulumi.String("string"),
		WrittenBytes:   pulumi.Int(0),
	},
	Labels: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	Tier: pulumi.String("string"),
})
Copy
var storageResource = new Storage("storageResource", StorageArgs.builder()
    .size(0)
    .title("string")
    .zone("string")
    .backupRule(StorageBackupRuleArgs.builder()
        .interval("string")
        .retention(0)
        .time("string")
        .build())
    .clone(StorageCloneArgs.builder()
        .id("string")
        .build())
    .deleteAutoresizeBackup(false)
    .encrypt(false)
    .filesystemAutoresize(false)
    .import_(StorageImportArgs.builder()
        .source("string")
        .sourceLocation("string")
        .sha256sum("string")
        .sourceHash("string")
        .writtenBytes(0)
        .build())
    .labels(Map.of("string", "string"))
    .tier("string")
    .build());
Copy
storage_resource = upcloud.Storage("storageResource",
    size=0,
    title="string",
    zone="string",
    backup_rule={
        "interval": "string",
        "retention": 0,
        "time": "string",
    },
    clone={
        "id": "string",
    },
    delete_autoresize_backup=False,
    encrypt=False,
    filesystem_autoresize=False,
    import_={
        "source": "string",
        "source_location": "string",
        "sha256sum": "string",
        "source_hash": "string",
        "written_bytes": 0,
    },
    labels={
        "string": "string",
    },
    tier="string")
Copy
const storageResource = new upcloud.Storage("storageResource", {
    size: 0,
    title: "string",
    zone: "string",
    backupRule: {
        interval: "string",
        retention: 0,
        time: "string",
    },
    clone: {
        id: "string",
    },
    deleteAutoresizeBackup: false,
    encrypt: false,
    filesystemAutoresize: false,
    "import": {
        source: "string",
        sourceLocation: "string",
        sha256sum: "string",
        sourceHash: "string",
        writtenBytes: 0,
    },
    labels: {
        string: "string",
    },
    tier: "string",
});
Copy
type: upcloud:Storage
properties:
    backupRule:
        interval: string
        retention: 0
        time: string
    clone:
        id: string
    deleteAutoresizeBackup: false
    encrypt: false
    filesystemAutoresize: false
    import:
        sha256sum: string
        source: string
        sourceHash: string
        sourceLocation: string
        writtenBytes: 0
    labels:
        string: string
    size: 0
    tier: string
    title: string
    zone: string
Copy

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

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

The Storage resource accepts the following input properties:

Size This property is required. int
The size of the storage in gigabytes.
Title This property is required. string
The title of the storage.
Zone This property is required. string
The zone the storage is in, e.g. de-fra1. You can list available zones with upctl zone list.
BackupRule UpCloud.Pulumi.UpCloud.Inputs.StorageBackupRule
Clone UpCloud.Pulumi.UpCloud.Inputs.StorageClone
Block defining another storage/template to clone to storage.
DeleteAutoresizeBackup bool
If set to true, the backup taken before the partition and filesystem resize attempt will be deleted immediately after success.
Encrypt bool
Sets if the storage is encrypted at rest.
FilesystemAutoresize bool
If set to true, provider will attempt to resize partition and filesystem when the size of the storage changes. Please note that before the resize attempt is made, backup of the storage will be taken. If the resize attempt fails, the backup will be used to restore the storage and then deleted. If the resize attempt succeeds, backup will be kept (unless delete_autoresize_backup option is set to true). Taking and keeping backups incure costs.
Import UpCloud.Pulumi.UpCloud.Inputs.StorageImport
Block defining external data to import to storage
Labels Dictionary<string, string>
User defined key-value pairs to classify the storage.
Tier string
The tier of the storage.
Size This property is required. int
The size of the storage in gigabytes.
Title This property is required. string
The title of the storage.
Zone This property is required. string
The zone the storage is in, e.g. de-fra1. You can list available zones with upctl zone list.
BackupRule StorageBackupRuleArgs
Clone StorageCloneArgs
Block defining another storage/template to clone to storage.
DeleteAutoresizeBackup bool
If set to true, the backup taken before the partition and filesystem resize attempt will be deleted immediately after success.
Encrypt bool
Sets if the storage is encrypted at rest.
FilesystemAutoresize bool
If set to true, provider will attempt to resize partition and filesystem when the size of the storage changes. Please note that before the resize attempt is made, backup of the storage will be taken. If the resize attempt fails, the backup will be used to restore the storage and then deleted. If the resize attempt succeeds, backup will be kept (unless delete_autoresize_backup option is set to true). Taking and keeping backups incure costs.
Import StorageImportArgs
Block defining external data to import to storage
Labels map[string]string
User defined key-value pairs to classify the storage.
Tier string
The tier of the storage.
size This property is required. Integer
The size of the storage in gigabytes.
title This property is required. String
The title of the storage.
zone This property is required. String
The zone the storage is in, e.g. de-fra1. You can list available zones with upctl zone list.
backupRule StorageBackupRule
clone_ StorageClone
Block defining another storage/template to clone to storage.
deleteAutoresizeBackup Boolean
If set to true, the backup taken before the partition and filesystem resize attempt will be deleted immediately after success.
encrypt Boolean
Sets if the storage is encrypted at rest.
filesystemAutoresize Boolean
If set to true, provider will attempt to resize partition and filesystem when the size of the storage changes. Please note that before the resize attempt is made, backup of the storage will be taken. If the resize attempt fails, the backup will be used to restore the storage and then deleted. If the resize attempt succeeds, backup will be kept (unless delete_autoresize_backup option is set to true). Taking and keeping backups incure costs.
import_ StorageImport
Block defining external data to import to storage
labels Map<String,String>
User defined key-value pairs to classify the storage.
tier String
The tier of the storage.
size This property is required. number
The size of the storage in gigabytes.
title This property is required. string
The title of the storage.
zone This property is required. string
The zone the storage is in, e.g. de-fra1. You can list available zones with upctl zone list.
backupRule StorageBackupRule
clone StorageClone
Block defining another storage/template to clone to storage.
deleteAutoresizeBackup boolean
If set to true, the backup taken before the partition and filesystem resize attempt will be deleted immediately after success.
encrypt boolean
Sets if the storage is encrypted at rest.
filesystemAutoresize boolean
If set to true, provider will attempt to resize partition and filesystem when the size of the storage changes. Please note that before the resize attempt is made, backup of the storage will be taken. If the resize attempt fails, the backup will be used to restore the storage and then deleted. If the resize attempt succeeds, backup will be kept (unless delete_autoresize_backup option is set to true). Taking and keeping backups incure costs.
import StorageImport
Block defining external data to import to storage
labels {[key: string]: string}
User defined key-value pairs to classify the storage.
tier string
The tier of the storage.
size This property is required. int
The size of the storage in gigabytes.
title This property is required. str
The title of the storage.
zone This property is required. str
The zone the storage is in, e.g. de-fra1. You can list available zones with upctl zone list.
backup_rule StorageBackupRuleArgs
clone StorageCloneArgs
Block defining another storage/template to clone to storage.
delete_autoresize_backup bool
If set to true, the backup taken before the partition and filesystem resize attempt will be deleted immediately after success.
encrypt bool
Sets if the storage is encrypted at rest.
filesystem_autoresize bool
If set to true, provider will attempt to resize partition and filesystem when the size of the storage changes. Please note that before the resize attempt is made, backup of the storage will be taken. If the resize attempt fails, the backup will be used to restore the storage and then deleted. If the resize attempt succeeds, backup will be kept (unless delete_autoresize_backup option is set to true). Taking and keeping backups incure costs.
import_ StorageImportArgs
Block defining external data to import to storage
labels Mapping[str, str]
User defined key-value pairs to classify the storage.
tier str
The tier of the storage.
size This property is required. Number
The size of the storage in gigabytes.
title This property is required. String
The title of the storage.
zone This property is required. String
The zone the storage is in, e.g. de-fra1. You can list available zones with upctl zone list.
backupRule Property Map
clone Property Map
Block defining another storage/template to clone to storage.
deleteAutoresizeBackup Boolean
If set to true, the backup taken before the partition and filesystem resize attempt will be deleted immediately after success.
encrypt Boolean
Sets if the storage is encrypted at rest.
filesystemAutoresize Boolean
If set to true, provider will attempt to resize partition and filesystem when the size of the storage changes. Please note that before the resize attempt is made, backup of the storage will be taken. If the resize attempt fails, the backup will be used to restore the storage and then deleted. If the resize attempt succeeds, backup will be kept (unless delete_autoresize_backup option is set to true). Taking and keeping backups incure costs.
import Property Map
Block defining external data to import to storage
labels Map<String>
User defined key-value pairs to classify the storage.
tier String
The tier of the storage.

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.
SystemLabels Dictionary<string, string>
System defined key-value pairs to classify the storage. The keys of system defined labels are prefixed with underscore and can not be modified by the user.
Type string
The type of the storage.
Id string
The provider-assigned unique ID for this managed resource.
SystemLabels map[string]string
System defined key-value pairs to classify the storage. The keys of system defined labels are prefixed with underscore and can not be modified by the user.
Type string
The type of the storage.
id String
The provider-assigned unique ID for this managed resource.
systemLabels Map<String,String>
System defined key-value pairs to classify the storage. The keys of system defined labels are prefixed with underscore and can not be modified by the user.
type String
The type of the storage.
id string
The provider-assigned unique ID for this managed resource.
systemLabels {[key: string]: string}
System defined key-value pairs to classify the storage. The keys of system defined labels are prefixed with underscore and can not be modified by the user.
type string
The type of the storage.
id str
The provider-assigned unique ID for this managed resource.
system_labels Mapping[str, str]
System defined key-value pairs to classify the storage. The keys of system defined labels are prefixed with underscore and can not be modified by the user.
type str
The type of the storage.
id String
The provider-assigned unique ID for this managed resource.
systemLabels Map<String>
System defined key-value pairs to classify the storage. The keys of system defined labels are prefixed with underscore and can not be modified by the user.
type String
The type of the storage.

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,
        backup_rule: Optional[StorageBackupRuleArgs] = None,
        clone: Optional[StorageCloneArgs] = None,
        delete_autoresize_backup: Optional[bool] = None,
        encrypt: Optional[bool] = None,
        filesystem_autoresize: Optional[bool] = None,
        import_: Optional[StorageImportArgs] = None,
        labels: Optional[Mapping[str, str]] = None,
        size: Optional[int] = None,
        system_labels: Optional[Mapping[str, str]] = None,
        tier: Optional[str] = None,
        title: Optional[str] = None,
        type: Optional[str] = None,
        zone: 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)
resources:  _:    type: upcloud:Storage    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:
BackupRule UpCloud.Pulumi.UpCloud.Inputs.StorageBackupRule
Clone UpCloud.Pulumi.UpCloud.Inputs.StorageClone
Block defining another storage/template to clone to storage.
DeleteAutoresizeBackup bool
If set to true, the backup taken before the partition and filesystem resize attempt will be deleted immediately after success.
Encrypt bool
Sets if the storage is encrypted at rest.
FilesystemAutoresize bool
If set to true, provider will attempt to resize partition and filesystem when the size of the storage changes. Please note that before the resize attempt is made, backup of the storage will be taken. If the resize attempt fails, the backup will be used to restore the storage and then deleted. If the resize attempt succeeds, backup will be kept (unless delete_autoresize_backup option is set to true). Taking and keeping backups incure costs.
Import UpCloud.Pulumi.UpCloud.Inputs.StorageImport
Block defining external data to import to storage
Labels Dictionary<string, string>
User defined key-value pairs to classify the storage.
Size int
The size of the storage in gigabytes.
SystemLabels Dictionary<string, string>
System defined key-value pairs to classify the storage. The keys of system defined labels are prefixed with underscore and can not be modified by the user.
Tier string
The tier of the storage.
Title string
The title of the storage.
Type string
The type of the storage.
Zone string
The zone the storage is in, e.g. de-fra1. You can list available zones with upctl zone list.
BackupRule StorageBackupRuleArgs
Clone StorageCloneArgs
Block defining another storage/template to clone to storage.
DeleteAutoresizeBackup bool
If set to true, the backup taken before the partition and filesystem resize attempt will be deleted immediately after success.
Encrypt bool
Sets if the storage is encrypted at rest.
FilesystemAutoresize bool
If set to true, provider will attempt to resize partition and filesystem when the size of the storage changes. Please note that before the resize attempt is made, backup of the storage will be taken. If the resize attempt fails, the backup will be used to restore the storage and then deleted. If the resize attempt succeeds, backup will be kept (unless delete_autoresize_backup option is set to true). Taking and keeping backups incure costs.
Import StorageImportArgs
Block defining external data to import to storage
Labels map[string]string
User defined key-value pairs to classify the storage.
Size int
The size of the storage in gigabytes.
SystemLabels map[string]string
System defined key-value pairs to classify the storage. The keys of system defined labels are prefixed with underscore and can not be modified by the user.
Tier string
The tier of the storage.
Title string
The title of the storage.
Type string
The type of the storage.
Zone string
The zone the storage is in, e.g. de-fra1. You can list available zones with upctl zone list.
backupRule StorageBackupRule
clone_ StorageClone
Block defining another storage/template to clone to storage.
deleteAutoresizeBackup Boolean
If set to true, the backup taken before the partition and filesystem resize attempt will be deleted immediately after success.
encrypt Boolean
Sets if the storage is encrypted at rest.
filesystemAutoresize Boolean
If set to true, provider will attempt to resize partition and filesystem when the size of the storage changes. Please note that before the resize attempt is made, backup of the storage will be taken. If the resize attempt fails, the backup will be used to restore the storage and then deleted. If the resize attempt succeeds, backup will be kept (unless delete_autoresize_backup option is set to true). Taking and keeping backups incure costs.
import_ StorageImport
Block defining external data to import to storage
labels Map<String,String>
User defined key-value pairs to classify the storage.
size Integer
The size of the storage in gigabytes.
systemLabels Map<String,String>
System defined key-value pairs to classify the storage. The keys of system defined labels are prefixed with underscore and can not be modified by the user.
tier String
The tier of the storage.
title String
The title of the storage.
type String
The type of the storage.
zone String
The zone the storage is in, e.g. de-fra1. You can list available zones with upctl zone list.
backupRule StorageBackupRule
clone StorageClone
Block defining another storage/template to clone to storage.
deleteAutoresizeBackup boolean
If set to true, the backup taken before the partition and filesystem resize attempt will be deleted immediately after success.
encrypt boolean
Sets if the storage is encrypted at rest.
filesystemAutoresize boolean
If set to true, provider will attempt to resize partition and filesystem when the size of the storage changes. Please note that before the resize attempt is made, backup of the storage will be taken. If the resize attempt fails, the backup will be used to restore the storage and then deleted. If the resize attempt succeeds, backup will be kept (unless delete_autoresize_backup option is set to true). Taking and keeping backups incure costs.
import StorageImport
Block defining external data to import to storage
labels {[key: string]: string}
User defined key-value pairs to classify the storage.
size number
The size of the storage in gigabytes.
systemLabels {[key: string]: string}
System defined key-value pairs to classify the storage. The keys of system defined labels are prefixed with underscore and can not be modified by the user.
tier string
The tier of the storage.
title string
The title of the storage.
type string
The type of the storage.
zone string
The zone the storage is in, e.g. de-fra1. You can list available zones with upctl zone list.
backup_rule StorageBackupRuleArgs
clone StorageCloneArgs
Block defining another storage/template to clone to storage.
delete_autoresize_backup bool
If set to true, the backup taken before the partition and filesystem resize attempt will be deleted immediately after success.
encrypt bool
Sets if the storage is encrypted at rest.
filesystem_autoresize bool
If set to true, provider will attempt to resize partition and filesystem when the size of the storage changes. Please note that before the resize attempt is made, backup of the storage will be taken. If the resize attempt fails, the backup will be used to restore the storage and then deleted. If the resize attempt succeeds, backup will be kept (unless delete_autoresize_backup option is set to true). Taking and keeping backups incure costs.
import_ StorageImportArgs
Block defining external data to import to storage
labels Mapping[str, str]
User defined key-value pairs to classify the storage.
size int
The size of the storage in gigabytes.
system_labels Mapping[str, str]
System defined key-value pairs to classify the storage. The keys of system defined labels are prefixed with underscore and can not be modified by the user.
tier str
The tier of the storage.
title str
The title of the storage.
type str
The type of the storage.
zone str
The zone the storage is in, e.g. de-fra1. You can list available zones with upctl zone list.
backupRule Property Map
clone Property Map
Block defining another storage/template to clone to storage.
deleteAutoresizeBackup Boolean
If set to true, the backup taken before the partition and filesystem resize attempt will be deleted immediately after success.
encrypt Boolean
Sets if the storage is encrypted at rest.
filesystemAutoresize Boolean
If set to true, provider will attempt to resize partition and filesystem when the size of the storage changes. Please note that before the resize attempt is made, backup of the storage will be taken. If the resize attempt fails, the backup will be used to restore the storage and then deleted. If the resize attempt succeeds, backup will be kept (unless delete_autoresize_backup option is set to true). Taking and keeping backups incure costs.
import Property Map
Block defining external data to import to storage
labels Map<String>
User defined key-value pairs to classify the storage.
size Number
The size of the storage in gigabytes.
systemLabels Map<String>
System defined key-value pairs to classify the storage. The keys of system defined labels are prefixed with underscore and can not be modified by the user.
tier String
The tier of the storage.
title String
The title of the storage.
type String
The type of the storage.
zone String
The zone the storage is in, e.g. de-fra1. You can list available zones with upctl zone list.

Supporting Types

StorageBackupRule
, StorageBackupRuleArgs

Interval This property is required. string
The weekday when the backup is created
Retention This property is required. int
The number of days before a backup is automatically deleted
Time This property is required. string
The time of day when the backup is created
Interval This property is required. string
The weekday when the backup is created
Retention This property is required. int
The number of days before a backup is automatically deleted
Time This property is required. string
The time of day when the backup is created
interval This property is required. String
The weekday when the backup is created
retention This property is required. Integer
The number of days before a backup is automatically deleted
time This property is required. String
The time of day when the backup is created
interval This property is required. string
The weekday when the backup is created
retention This property is required. number
The number of days before a backup is automatically deleted
time This property is required. string
The time of day when the backup is created
interval This property is required. str
The weekday when the backup is created
retention This property is required. int
The number of days before a backup is automatically deleted
time This property is required. str
The time of day when the backup is created
interval This property is required. String
The weekday when the backup is created
retention This property is required. Number
The number of days before a backup is automatically deleted
time This property is required. String
The time of day when the backup is created

StorageClone
, StorageCloneArgs

Id This property is required. string
The unique identifier of the storage/template to clone.
Id This property is required. string
The unique identifier of the storage/template to clone.
id This property is required. String
The unique identifier of the storage/template to clone.
id This property is required. string
The unique identifier of the storage/template to clone.
id This property is required. str
The unique identifier of the storage/template to clone.
id This property is required. String
The unique identifier of the storage/template to clone.

StorageImport
, StorageImportArgs

Source This property is required. string
The mode of the import task. One of http_import or direct_upload.
SourceLocation This property is required. string
The location of the file to import. For http_import an accessible URL. For direct_upload a local file. When direct uploading a compressed image, Content-Type header of the PUT request is set automatically based on the file extension (.gz or .xz, case-insensitive).
Sha256sum string
sha256 sum of the imported data
SourceHash string
SHA256 hash of the source content. This hash is used to verify the integrity of the imported data by comparing it to sha256sum after the import has completed. Possible filename is automatically removed from the hash before comparison.
WrittenBytes int
Number of bytes imported
Source This property is required. string
The mode of the import task. One of http_import or direct_upload.
SourceLocation This property is required. string
The location of the file to import. For http_import an accessible URL. For direct_upload a local file. When direct uploading a compressed image, Content-Type header of the PUT request is set automatically based on the file extension (.gz or .xz, case-insensitive).
Sha256sum string
sha256 sum of the imported data
SourceHash string
SHA256 hash of the source content. This hash is used to verify the integrity of the imported data by comparing it to sha256sum after the import has completed. Possible filename is automatically removed from the hash before comparison.
WrittenBytes int
Number of bytes imported
source This property is required. String
The mode of the import task. One of http_import or direct_upload.
sourceLocation This property is required. String
The location of the file to import. For http_import an accessible URL. For direct_upload a local file. When direct uploading a compressed image, Content-Type header of the PUT request is set automatically based on the file extension (.gz or .xz, case-insensitive).
sha256sum String
sha256 sum of the imported data
sourceHash String
SHA256 hash of the source content. This hash is used to verify the integrity of the imported data by comparing it to sha256sum after the import has completed. Possible filename is automatically removed from the hash before comparison.
writtenBytes Integer
Number of bytes imported
source This property is required. string
The mode of the import task. One of http_import or direct_upload.
sourceLocation This property is required. string
The location of the file to import. For http_import an accessible URL. For direct_upload a local file. When direct uploading a compressed image, Content-Type header of the PUT request is set automatically based on the file extension (.gz or .xz, case-insensitive).
sha256sum string
sha256 sum of the imported data
sourceHash string
SHA256 hash of the source content. This hash is used to verify the integrity of the imported data by comparing it to sha256sum after the import has completed. Possible filename is automatically removed from the hash before comparison.
writtenBytes number
Number of bytes imported
source This property is required. str
The mode of the import task. One of http_import or direct_upload.
source_location This property is required. str
The location of the file to import. For http_import an accessible URL. For direct_upload a local file. When direct uploading a compressed image, Content-Type header of the PUT request is set automatically based on the file extension (.gz or .xz, case-insensitive).
sha256sum str
sha256 sum of the imported data
source_hash str
SHA256 hash of the source content. This hash is used to verify the integrity of the imported data by comparing it to sha256sum after the import has completed. Possible filename is automatically removed from the hash before comparison.
written_bytes int
Number of bytes imported
source This property is required. String
The mode of the import task. One of http_import or direct_upload.
sourceLocation This property is required. String
The location of the file to import. For http_import an accessible URL. For direct_upload a local file. When direct uploading a compressed image, Content-Type header of the PUT request is set automatically based on the file extension (.gz or .xz, case-insensitive).
sha256sum String
sha256 sum of the imported data
sourceHash String
SHA256 hash of the source content. This hash is used to verify the integrity of the imported data by comparing it to sha256sum after the import has completed. Possible filename is automatically removed from the hash before comparison.
writtenBytes Number
Number of bytes imported

Import

$ pulumi import upcloud:index/storage:Storage example_storage 0128ae5a-91dd-4ebf-bd1e-304c47f2c652
Copy

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

Package Details

Repository
upcloud UpCloudLtd/pulumi-upcloud
License
Apache-2.0
Notes
This Pulumi package is based on the upcloud Terraform Provider.