Skip to content

Commit 99823f5

Browse files
alexng-canuckccushing
authored andcommitted
Refresh CORE resources against latest released SDK version
Images: Add Launch Mode and Shapes support - Allows specifying launch_mode to image resource - Allows specifying shape filter to image datasource - Adds computed launch options and size of image in resource/datasources - Add examples for this and update tests for this Instances: Add Custom Boot Volume Size and Launch Mode attributes - Adds boot_volume_size_in_gbs as input during instance creation - Adds computed launch mode and launch option attributes to instances - Updates docs and tests VolumeAttachments: Add Paravirtualized, IsReadOnly, and UseChap support VolumeBackups: Add sourceType, expirationTime, and backup type attributes - Adds support for creating Full or Incremental backups - Adds computed values for backup expiration time and whether the backup was manual or scheduled Volumes: Add comments for tracking backup policy ID support.
1 parent 4351daf commit 99823f5

40 files changed

+1093
-230
lines changed

docs/core/console_histories.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The following attributes are exported:
1212
* `id` - The OCID of the console history metadata object.
1313
* `instance_id` - The OCID of the instance this console history was fetched from.
1414
* `state` - The current state of the console history.
15-
* `time_created` - The date and time the history was created, in the format defined by RFC3339. Example: `2016-08-25T21:10:29.600Z`
15+
* `time_created` - The date and time the history was created, in the format defined by RFC3339. Example: `2016-08-25T21:10:29.600Z`
1616

1717

1818

docs/core/images.md

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,31 @@ The following attributes are exported:
88

99
* `base_image_id` - The OCID of the image originally used to launch the instance.
1010
* `compartment_id` - The OCID of the compartment containing the instance you want to use as the basis for the image.
11-
* `create_image_allowed` - Whether instances launched with this image can be used to create new images. For example, you cannot create an image of an Oracle Database instance. Example: `true`
11+
* `create_image_allowed` - Whether instances launched with this image can be used to create new images. For example, you cannot create an image of an Oracle Database instance. Example: `true`
1212
* `display_name` - A user-friendly name for the image. It does not have to be unique, and it's changeable. Avoid entering confidential information. You cannot use an Oracle-provided image name as a custom image name. Example: `My custom Oracle Linux image`
1313
* `id` - The OCID of the image.
14+
* `launch_mode` - Specifies the configuration mode for launching virtual machine (VM) instances. The configuration modes are:
15+
* `NATIVE` - VM instances launch with iSCSI boot and VFIO devices. The default value for Oracle-provided images.
16+
* `EMULATED` - VM instances launch with emulated devices, such as the E1000 network driver and emulated SCSI disk controller.
17+
* `CUSTOM` - VM instances launch with custom configuration settings specified in the `LaunchOptions` parameter.
18+
* `launch_options` -
19+
* `boot_volume_type` - Emulation type for volume.
20+
* `ISCSI` - ISCSI attached block storage device. This is the default for Boot Volumes and Remote Block Storage volumes on Oracle provided images.
21+
* `SCSI` - Emulated SCSI disk.
22+
* `IDE` - Emulated IDE disk.
23+
* `VFIO` - Direct attached Virtual Function storage. This is the default option for Local data volumes on Oracle provided images.
24+
* `firmware` - Firmware used to boot VM. Select the option that matches your operating system.
25+
* `BIOS` - Boot VM using BIOS style firmware. This is compatible with both 32 bit and 64 bit operating systems that boot using MBR style bootloaders.
26+
* `UEFI_64` - Boot VM using UEFI style firmware compatible with 64 bit operating systems. This is the default for Oracle provided images.
27+
* `network_type` - Emulation type for NIC.
28+
* `E1000` - Emulated Gigabit ethernet controller. Compatible with Linux e1000 network driver.
29+
* `VFIO` - Direct attached Virtual Function network controller. Default for Oracle provided images.
30+
* `remote_data_volume_type` - Emulation type for volume.
31+
* `ISCSI` - ISCSI attached block storage device. This is the default for Boot Volumes and Remote Block Storage volumes on Oracle provided images.
32+
* `SCSI` - Emulated SCSI disk. * `IDE` - Emulated IDE disk. * `VFIO` - Direct attached Virtual Function storage. This is the default option for Local data volumes on Oracle provided images.
1433
* `operating_system` - The image's operating system. Example: `Oracle Linux`
1534
* `operating_system_version` - The image's operating system version. Example: `7.2`
35+
* `size_in_mbs` - Image size (1 MB = 1048576 bytes) Example: `47694`
1636
* `state` - The current state of the image.
1737
* `time_created` - The date and time the image was created, in the format defined by RFC3339. Example: `2016-08-25T21:10:29.600Z`
1838

@@ -33,8 +53,12 @@ Avoid entering confidential information.
3353
The following arguments are supported:
3454

3555
* `compartment_id` - (Required) The OCID of the compartment containing the instance you want to use as the basis for the image.
36-
* `display_name` - (Optional) A user-friendly name for the image. It does not have to be unique, and it's changeable. Avoid entering confidential information. You cannot use an Oracle-provided image name as a custom image name. Example: `My Oracle Linux image`
37-
* `instance_id` - (Required) The OCID of the instance you want to use as the basis for the image.
56+
* `display_name` - (Optional) A user-friendly name for the image. It does not have to be unique, and it's changeable. Avoid entering confidential information. You cannot use an Oracle-provided image name as a custom image name. Example: `My Oracle Linux image`
57+
* `instance_id` - (Optional) The OCID of the instance you want to use as the basis for the image.
58+
* `launch_mode` - (Optional) Specifies the configuration mode for launching virtual machine (VM) instances. The configuration modes are:
59+
* `NATIVE` - VM instances launch with iSCSI boot and VFIO devices. The default value for Oracle-provided images.
60+
* `EMULATED` - VM instances launch with emulated devices, such as the E1000 network driver and emulated SCSI disk controller.
61+
* `CUSTOM` - VM instances launch with custom configuration settings specified in the `LaunchOptions` parameter.
3862

3963

4064
### Update Operation
@@ -57,6 +81,7 @@ resource "oci_core_image" "test_image" {
5781
5882
#Optional
5983
display_name = "${var.image_display_name}"
84+
launch_mode = "${var.image_launch_mode}"
6085
}
6186
```
6287

@@ -79,6 +104,7 @@ The following arguments are supported:
79104
* `display_name` - (Optional) A filter to return only resources that match the given display name exactly.
80105
* `operating_system` - (Optional) The image's operating system. Example: `Oracle Linux`
81106
* `operating_system_version` - (Optional) The image's operating system version. Example: `7.2`
107+
* `shape` - (Optional) Shape name.
82108
* `state` - (Optional) A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
83109

84110

@@ -97,6 +123,7 @@ data "oci_core_images" "test_images" {
97123
display_name = "${var.image_display_name}"
98124
operating_system = "${var.image_operating_system}"
99125
operating_system_version = "${var.image_operating_system_version}"
126+
shape = "${var.image_shape}"
100127
state = "${var.image_state}"
101128
}
102129
```

0 commit comments

Comments
 (0)