tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.CvmImportImage
Explore with Pulumi AI
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
Create CvmImportImage Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CvmImportImage(name: string, args: CvmImportImageArgs, opts?: CustomResourceOptions);
@overload
def CvmImportImage(resource_name: str,
args: CvmImportImageArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CvmImportImage(resource_name: str,
opts: Optional[ResourceOptions] = None,
architecture: Optional[str] = None,
image_name: Optional[str] = None,
image_url: Optional[str] = None,
os_type: Optional[str] = None,
os_version: Optional[str] = None,
boot_mode: Optional[str] = None,
cvm_import_image_id: Optional[str] = None,
dry_run: Optional[bool] = None,
force: Optional[bool] = None,
image_description: Optional[str] = None,
license_type: Optional[str] = None,
tag_specifications: Optional[Sequence[CvmImportImageTagSpecificationArgs]] = None)
func NewCvmImportImage(ctx *Context, name string, args CvmImportImageArgs, opts ...ResourceOption) (*CvmImportImage, error)
public CvmImportImage(string name, CvmImportImageArgs args, CustomResourceOptions? opts = null)
public CvmImportImage(String name, CvmImportImageArgs args)
public CvmImportImage(String name, CvmImportImageArgs args, CustomResourceOptions options)
type: tencentcloud:CvmImportImage
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 CvmImportImageArgs
- 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 CvmImportImageArgs
- 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 CvmImportImageArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CvmImportImageArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CvmImportImageArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
CvmImportImage 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 CvmImportImage resource accepts the following input properties:
- Architecture string
- OS architecture of the image to be imported,
x86_64
ori386
. - Image
Name string - Image name.
- Image
Url string - Address on COS where the image to be imported is stored.
- Os
Type string - OS type of the image to be imported. You can call
DescribeImportImageOs
to obtain the list of supported operating systems. - Os
Version string - OS version of the image to be imported. You can call
DescribeImportImageOs
to obtain the list of supported operating systems. - Boot
Mode string - Boot mode.
- Cvm
Import stringImage Id - Dry
Run bool - Dry run to check the parameters without performing the operation.
- Force bool
- Whether to force import the image.
- Image
Description string - Image description.
- License
Type string - The license type used to activate the OS after importing an image. Valid values: TencentCloud: Tencent Cloud official license BYOL: Bring Your Own License.
- List<Cvm
Import Image Tag Specification> - Tag description list. This parameter is used to bind a tag to a custom image.
- Architecture string
- OS architecture of the image to be imported,
x86_64
ori386
. - Image
Name string - Image name.
- Image
Url string - Address on COS where the image to be imported is stored.
- Os
Type string - OS type of the image to be imported. You can call
DescribeImportImageOs
to obtain the list of supported operating systems. - Os
Version string - OS version of the image to be imported. You can call
DescribeImportImageOs
to obtain the list of supported operating systems. - Boot
Mode string - Boot mode.
- Cvm
Import stringImage Id - Dry
Run bool - Dry run to check the parameters without performing the operation.
- Force bool
- Whether to force import the image.
- Image
Description string - Image description.
- License
Type string - The license type used to activate the OS after importing an image. Valid values: TencentCloud: Tencent Cloud official license BYOL: Bring Your Own License.
- []Cvm
Import Image Tag Specification Args - Tag description list. This parameter is used to bind a tag to a custom image.
- architecture String
- OS architecture of the image to be imported,
x86_64
ori386
. - image
Name String - Image name.
- image
Url String - Address on COS where the image to be imported is stored.
- os
Type String - OS type of the image to be imported. You can call
DescribeImportImageOs
to obtain the list of supported operating systems. - os
Version String - OS version of the image to be imported. You can call
DescribeImportImageOs
to obtain the list of supported operating systems. - boot
Mode String - Boot mode.
- cvm
Import StringImage Id - dry
Run Boolean - Dry run to check the parameters without performing the operation.
- force Boolean
- Whether to force import the image.
- image
Description String - Image description.
- license
Type String - The license type used to activate the OS after importing an image. Valid values: TencentCloud: Tencent Cloud official license BYOL: Bring Your Own License.
- List<Cvm
Import Image Tag Specification> - Tag description list. This parameter is used to bind a tag to a custom image.
- architecture string
- OS architecture of the image to be imported,
x86_64
ori386
. - image
Name string - Image name.
- image
Url string - Address on COS where the image to be imported is stored.
- os
Type string - OS type of the image to be imported. You can call
DescribeImportImageOs
to obtain the list of supported operating systems. - os
Version string - OS version of the image to be imported. You can call
DescribeImportImageOs
to obtain the list of supported operating systems. - boot
Mode string - Boot mode.
- cvm
Import stringImage Id - dry
Run boolean - Dry run to check the parameters without performing the operation.
- force boolean
- Whether to force import the image.
- image
Description string - Image description.
- license
Type string - The license type used to activate the OS after importing an image. Valid values: TencentCloud: Tencent Cloud official license BYOL: Bring Your Own License.
- Cvm
Import Image Tag Specification[] - Tag description list. This parameter is used to bind a tag to a custom image.
- architecture str
- OS architecture of the image to be imported,
x86_64
ori386
. - image_
name str - Image name.
- image_
url str - Address on COS where the image to be imported is stored.
- os_
type str - OS type of the image to be imported. You can call
DescribeImportImageOs
to obtain the list of supported operating systems. - os_
version str - OS version of the image to be imported. You can call
DescribeImportImageOs
to obtain the list of supported operating systems. - boot_
mode str - Boot mode.
- cvm_
import_ strimage_ id - dry_
run bool - Dry run to check the parameters without performing the operation.
- force bool
- Whether to force import the image.
- image_
description str - Image description.
- license_
type str - The license type used to activate the OS after importing an image. Valid values: TencentCloud: Tencent Cloud official license BYOL: Bring Your Own License.
- tag_
specifications Sequence[CvmImport Image Tag Specification Args] - Tag description list. This parameter is used to bind a tag to a custom image.
- architecture String
- OS architecture of the image to be imported,
x86_64
ori386
. - image
Name String - Image name.
- image
Url String - Address on COS where the image to be imported is stored.
- os
Type String - OS type of the image to be imported. You can call
DescribeImportImageOs
to obtain the list of supported operating systems. - os
Version String - OS version of the image to be imported. You can call
DescribeImportImageOs
to obtain the list of supported operating systems. - boot
Mode String - Boot mode.
- cvm
Import StringImage Id - dry
Run Boolean - Dry run to check the parameters without performing the operation.
- force Boolean
- Whether to force import the image.
- image
Description String - Image description.
- license
Type String - The license type used to activate the OS after importing an image. Valid values: TencentCloud: Tencent Cloud official license BYOL: Bring Your Own License.
- List<Property Map>
- Tag description list. This parameter is used to bind a tag to a custom image.
Outputs
All input properties are implicitly available as output properties. Additionally, the CvmImportImage 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 CvmImportImage Resource
Get an existing CvmImportImage 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?: CvmImportImageState, opts?: CustomResourceOptions): CvmImportImage
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
architecture: Optional[str] = None,
boot_mode: Optional[str] = None,
cvm_import_image_id: Optional[str] = None,
dry_run: Optional[bool] = None,
force: Optional[bool] = None,
image_description: Optional[str] = None,
image_name: Optional[str] = None,
image_url: Optional[str] = None,
license_type: Optional[str] = None,
os_type: Optional[str] = None,
os_version: Optional[str] = None,
tag_specifications: Optional[Sequence[CvmImportImageTagSpecificationArgs]] = None) -> CvmImportImage
func GetCvmImportImage(ctx *Context, name string, id IDInput, state *CvmImportImageState, opts ...ResourceOption) (*CvmImportImage, error)
public static CvmImportImage Get(string name, Input<string> id, CvmImportImageState? state, CustomResourceOptions? opts = null)
public static CvmImportImage get(String name, Output<String> id, CvmImportImageState state, CustomResourceOptions options)
resources: _: type: tencentcloud:CvmImportImage get: id: ${id}
- 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.
- Architecture string
- OS architecture of the image to be imported,
x86_64
ori386
. - Boot
Mode string - Boot mode.
- Cvm
Import stringImage Id - Dry
Run bool - Dry run to check the parameters without performing the operation.
- Force bool
- Whether to force import the image.
- Image
Description string - Image description.
- Image
Name string - Image name.
- Image
Url string - Address on COS where the image to be imported is stored.
- License
Type string - The license type used to activate the OS after importing an image. Valid values: TencentCloud: Tencent Cloud official license BYOL: Bring Your Own License.
- Os
Type string - OS type of the image to be imported. You can call
DescribeImportImageOs
to obtain the list of supported operating systems. - Os
Version string - OS version of the image to be imported. You can call
DescribeImportImageOs
to obtain the list of supported operating systems. - List<Cvm
Import Image Tag Specification> - Tag description list. This parameter is used to bind a tag to a custom image.
- Architecture string
- OS architecture of the image to be imported,
x86_64
ori386
. - Boot
Mode string - Boot mode.
- Cvm
Import stringImage Id - Dry
Run bool - Dry run to check the parameters without performing the operation.
- Force bool
- Whether to force import the image.
- Image
Description string - Image description.
- Image
Name string - Image name.
- Image
Url string - Address on COS where the image to be imported is stored.
- License
Type string - The license type used to activate the OS after importing an image. Valid values: TencentCloud: Tencent Cloud official license BYOL: Bring Your Own License.
- Os
Type string - OS type of the image to be imported. You can call
DescribeImportImageOs
to obtain the list of supported operating systems. - Os
Version string - OS version of the image to be imported. You can call
DescribeImportImageOs
to obtain the list of supported operating systems. - []Cvm
Import Image Tag Specification Args - Tag description list. This parameter is used to bind a tag to a custom image.
- architecture String
- OS architecture of the image to be imported,
x86_64
ori386
. - boot
Mode String - Boot mode.
- cvm
Import StringImage Id - dry
Run Boolean - Dry run to check the parameters without performing the operation.
- force Boolean
- Whether to force import the image.
- image
Description String - Image description.
- image
Name String - Image name.
- image
Url String - Address on COS where the image to be imported is stored.
- license
Type String - The license type used to activate the OS after importing an image. Valid values: TencentCloud: Tencent Cloud official license BYOL: Bring Your Own License.
- os
Type String - OS type of the image to be imported. You can call
DescribeImportImageOs
to obtain the list of supported operating systems. - os
Version String - OS version of the image to be imported. You can call
DescribeImportImageOs
to obtain the list of supported operating systems. - List<Cvm
Import Image Tag Specification> - Tag description list. This parameter is used to bind a tag to a custom image.
- architecture string
- OS architecture of the image to be imported,
x86_64
ori386
. - boot
Mode string - Boot mode.
- cvm
Import stringImage Id - dry
Run boolean - Dry run to check the parameters without performing the operation.
- force boolean
- Whether to force import the image.
- image
Description string - Image description.
- image
Name string - Image name.
- image
Url string - Address on COS where the image to be imported is stored.
- license
Type string - The license type used to activate the OS after importing an image. Valid values: TencentCloud: Tencent Cloud official license BYOL: Bring Your Own License.
- os
Type string - OS type of the image to be imported. You can call
DescribeImportImageOs
to obtain the list of supported operating systems. - os
Version string - OS version of the image to be imported. You can call
DescribeImportImageOs
to obtain the list of supported operating systems. - Cvm
Import Image Tag Specification[] - Tag description list. This parameter is used to bind a tag to a custom image.
- architecture str
- OS architecture of the image to be imported,
x86_64
ori386
. - boot_
mode str - Boot mode.
- cvm_
import_ strimage_ id - dry_
run bool - Dry run to check the parameters without performing the operation.
- force bool
- Whether to force import the image.
- image_
description str - Image description.
- image_
name str - Image name.
- image_
url str - Address on COS where the image to be imported is stored.
- license_
type str - The license type used to activate the OS after importing an image. Valid values: TencentCloud: Tencent Cloud official license BYOL: Bring Your Own License.
- os_
type str - OS type of the image to be imported. You can call
DescribeImportImageOs
to obtain the list of supported operating systems. - os_
version str - OS version of the image to be imported. You can call
DescribeImportImageOs
to obtain the list of supported operating systems. - tag_
specifications Sequence[CvmImport Image Tag Specification Args] - Tag description list. This parameter is used to bind a tag to a custom image.
- architecture String
- OS architecture of the image to be imported,
x86_64
ori386
. - boot
Mode String - Boot mode.
- cvm
Import StringImage Id - dry
Run Boolean - Dry run to check the parameters without performing the operation.
- force Boolean
- Whether to force import the image.
- image
Description String - Image description.
- image
Name String - Image name.
- image
Url String - Address on COS where the image to be imported is stored.
- license
Type String - The license type used to activate the OS after importing an image. Valid values: TencentCloud: Tencent Cloud official license BYOL: Bring Your Own License.
- os
Type String - OS type of the image to be imported. You can call
DescribeImportImageOs
to obtain the list of supported operating systems. - os
Version String - OS version of the image to be imported. You can call
DescribeImportImageOs
to obtain the list of supported operating systems. - List<Property Map>
- Tag description list. This parameter is used to bind a tag to a custom image.
Supporting Types
CvmImportImageTagSpecification, CvmImportImageTagSpecificationArgs
- Resource
Type string - Resource type. Valid values: instance (CVM), host (CDH), image (for image), and keypair (for key). Note: This field may return null, indicating that no valid values can be obtained.
- List<Cvm
Import Image Tag Specification Tag> - Tag pairs Note: This field may return null, indicating that no valid values can be obtained.
- Resource
Type string - Resource type. Valid values: instance (CVM), host (CDH), image (for image), and keypair (for key). Note: This field may return null, indicating that no valid values can be obtained.
- []Cvm
Import Image Tag Specification Tag - Tag pairs Note: This field may return null, indicating that no valid values can be obtained.
- resource
Type String - Resource type. Valid values: instance (CVM), host (CDH), image (for image), and keypair (for key). Note: This field may return null, indicating that no valid values can be obtained.
- List<Cvm
Import Image Tag Specification Tag> - Tag pairs Note: This field may return null, indicating that no valid values can be obtained.
- resource
Type string - Resource type. Valid values: instance (CVM), host (CDH), image (for image), and keypair (for key). Note: This field may return null, indicating that no valid values can be obtained.
- Cvm
Import Image Tag Specification Tag[] - Tag pairs Note: This field may return null, indicating that no valid values can be obtained.
- resource_
type str - Resource type. Valid values: instance (CVM), host (CDH), image (for image), and keypair (for key). Note: This field may return null, indicating that no valid values can be obtained.
- Sequence[Cvm
Import Image Tag Specification Tag] - Tag pairs Note: This field may return null, indicating that no valid values can be obtained.
- resource
Type String - Resource type. Valid values: instance (CVM), host (CDH), image (for image), and keypair (for key). Note: This field may return null, indicating that no valid values can be obtained.
- List<Property Map>
- Tag pairs Note: This field may return null, indicating that no valid values can be obtained.
CvmImportImageTagSpecificationTag, CvmImportImageTagSpecificationTagArgs
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack