SCP::VirtualServer::Image
SCP::VirtualServer::Image
SCP::VirtualServer::Image
Description
An Image resource of the SCP Virtual Server service.
Version
1.5.0
Syntax
To declare this entity in your Infrastructure Builder template, use the following syntax:
JSON
{
"Type" : "SCP::VirtualServer::Image",
"Properties" : {
"Name" : "String",
"OsDistro" : "String",
"Url" : "String",
"ContainerFormat" : "String",
"DiskFormat" : "String",
"MinDisk" : "Integer",
"MinRam" : "Integer",
"Protected" : "Boolean",
"Visibility" : "String"
}
}
YAML
Type: SCP::VirtualServer::Image
Properties:
Name: String
OsDistro: String
Url: String
ContainerFormat: String
DiskFormat: String
MinDisk: Integer
MinRam: Integer
Protected: Boolean
Visibility: String
Properties
Name
The name of the image.
| Attribute | Value |
|---|---|
| Required | Yes |
| Type | String |
| Pattern | ^[a-zA-Z0-9-_ ]*$ |
| Length constraints | 1–255 |
| Update requires | Replacement |
OsDistro
The OS distribution of the image.
| Attribute | Value |
|---|---|
| Required | Yes |
| Type | String |
| Allowed values | alma | centos | rhel | rocky | ubuntu | windows | oracle |
| Update requires | Replacement |
Url
The URL of the image file in Object Storage. Only the qcow2 format is allowed.
| Attribute | Value |
|---|---|
| Required | Yes |
| Type | String |
| Pattern | .*\.qcow2$ |
| Length constraints | Max: 255 |
| Update requires | Replacement |
ContainerFormat
The container format of the image.
| Attribute | Value |
|---|---|
| Required | No |
| Type | String |
| Pattern | bare |
| Update requires | Replacement |
DiskFormat
The disk format of the image.
| Attribute | Value |
|---|---|
| Required | No |
| Type | String |
| Pattern | qcow2 |
| Update requires | Replacement |
MinDisk
The minimum disk size in GB required to use the image.
| Attribute | Value |
|---|---|
| Required | No |
| Type | Integer |
| Range | Min: 0 |
| Update requires | No interruption |
MinRam
The minimum RAM size in MB required to use the image.
| Attribute | Value |
|---|---|
| Required | No |
| Type | Integer |
| Range | 0–2097151 |
| Update requires | No interruption |
Protected
Deletion protection of the image. When set to true, an attempt to delete the image fails and the image remains unchanged.
| Attribute | Value |
|---|---|
| Required | No |
| Type | Boolean |
| Update requires | No interruption |
Visibility
The visibility level of the image, for example private or shared.
| Attribute | Value |
|---|---|
| Required | No |
| Type | String |
| Allowed values | private | shared |
| Update requires | No interruption |
Return Values
Ref
When you pass the logical ID of this resource to the Ref function, Ref returns the value of the Id.
Fn::GetAtt
| Attribute | Description |
|---|---|
| Name | The name of the image. |
| OsDistro | The OS distribution of the image. |
| Url | The URL of the image file in Object Storage. Only the qcow2 format is allowed. |
| ContainerFormat | The container format of the image. |
| DiskFormat | The disk format of the image. |
| MinDisk | The minimum disk size in GB required to use the image. |
| MinRam | The minimum RAM size in MB required to use the image. |
| Protected | Deletion protection of the image. When set to true, an attempt to delete the image fails and the image remains unchanged. |
| Visibility | The visibility level of the image, for example private or shared. |
| Checksum | The MD5 checksum of the image data, used to verify the integrity of the image. |
| File | The URL of the image file. |
| OsHashAlgo | The hash algorithm used to verify the integrity of the image. |
| OsHashValue | The hash value of the image binary. |
| OsHidden | Whether the image is hidden. |
| Owner | The identifier of the account that owns the image. |
| OwnerAccountName | The name of the account that owns the image. |
| OwnerUserName | The name of the user that owns the image. |
| RootDeviceName | The name of the root device of the image. |
| ScpGpuDriver | The GPU driver version included in the Image. It is set only for a GPU Kubernetes Image. |
| ScpImageType | The SCP image type of the image. |
| ScpK8sVersion | The Kubernetes version of the image. It has a value only for Kubernetes images. |
| ScpOriginalImageType | The original image type of the image. |
| ScpOsBuildVersion | The OS build version of the image. |
| ScpOsVersion | The OS version of the image. |
| ScpSupportedClassTypes | Comma-separated list of the server class types that can be used with this Image, for example GPU-A100-1,GPU-H100-2. |
| Size | The size of the image in bytes. |
| Status | The current status of the image. |
| UpdatedAt | The timestamp when the image was last updated, in ISO 8601 format. |
| VirtualSize | The virtual disk size of the image in bytes. |
| Volumes | The volume information of the image. |
| Zone | The zone where the image is located. |