public class RunInstancesRequest extends AbstractModel
Constructor and Description |
---|
RunInstancesRequest() |
RunInstancesRequest(RunInstancesRequest source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
ActionTimer |
getActionTimer()
Get Scheduled tasks.
|
String |
getCamRoleName()
Get CAM role name, which can be obtained from the `roleName` field in the response of the [`DescribeRoleList`](https://intl.cloud.tencent.com/document/product/598/36223?from_cn_redirect=1) API.
|
String[] |
getChcIds()
Get Specify the CHC physical server that used to create the CHC CVM.
|
String |
getClientToken()
Get A unique string supplied by the client to ensure that the request is idempotent.
|
DataDisk[] |
getDataDisks()
Get The configuration information of instance data disks.
|
String |
getDedicatedClusterId()
Get Specify the ID of the dedicated cluster where the CVM is created.
|
Boolean |
getDisableApiTermination()
Get Whether the termination protection is enabled.
|
String[] |
getDisasterRecoverGroupIds()
Get Placement group ID.
|
Boolean |
getDryRun()
Get Whether the request is a dry run only.
|
EnhancedService |
getEnhancedService()
Get Enhanced service.
|
String |
getHostName()
Get Instance hostname.
|
String |
getHpcClusterId()
Get HPC cluster ID.
|
String |
getImageId()
Get The [image](https://intl.cloud.tencent.com/document/product/213/4940?from_cn_redirect=1) ID in the format of `img-xxx`.
|
InstanceChargePrepaid |
getInstanceChargePrepaid()
Get Details of the monthly subscription, including the purchase period, auto-renewal.
|
String |
getInstanceChargeType()
Get Instance [billing type](https://intl.cloud.tencent.com/document/product/213/2180?from_cn_redirect=1).
|
Long |
getInstanceCount()
Get The number of instances to be purchased.
|
InstanceMarketOptionsRequest |
getInstanceMarketOptions()
Get The market options of the instance.
|
String |
getInstanceName()
Get Instance name to be displayed.
|
String |
getInstanceType()
Get The instance model.
|
InternetAccessible |
getInternetAccessible()
Get Configuration of public network bandwidth.
|
LaunchTemplate |
getLaunchTemplate()
Get Instance launch template.
|
LoginSettings |
getLoginSettings()
Get Instance login settings.
|
Placement |
getPlacement()
Get Location of the instance.
|
String[] |
getSecurityGroupIds()
Get Security groups to which the instance belongs.
|
SystemDisk |
getSystemDisk()
Get System disk configuration of the instance.
|
TagSpecification[] |
getTagSpecification()
Get List of tag description.
|
String |
getUserData()
Get User data provided to the instance.
|
VirtualPrivateCloud |
getVirtualPrivateCloud()
Get Configuration information of VPC.
|
void |
setActionTimer(ActionTimer ActionTimer)
Set Scheduled tasks.
|
void |
setCamRoleName(String CamRoleName)
Set CAM role name, which can be obtained from the `roleName` field in the response of the [`DescribeRoleList`](https://intl.cloud.tencent.com/document/product/598/36223?from_cn_redirect=1) API.
|
void |
setChcIds(String[] ChcIds)
Set Specify the CHC physical server that used to create the CHC CVM.
|
void |
setClientToken(String ClientToken)
Set A unique string supplied by the client to ensure that the request is idempotent.
|
void |
setDataDisks(DataDisk[] DataDisks)
Set The configuration information of instance data disks.
|
void |
setDedicatedClusterId(String DedicatedClusterId)
Set Specify the ID of the dedicated cluster where the CVM is created.
|
void |
setDisableApiTermination(Boolean DisableApiTermination)
Set Whether the termination protection is enabled.
|
void |
setDisasterRecoverGroupIds(String[] DisasterRecoverGroupIds)
Set Placement group ID.
|
void |
setDryRun(Boolean DryRun)
Set Whether the request is a dry run only.
|
void |
setEnhancedService(EnhancedService EnhancedService)
Set Enhanced service.
|
void |
setHostName(String HostName)
Set Instance hostname.
|
void |
setHpcClusterId(String HpcClusterId)
Set HPC cluster ID.
|
void |
setImageId(String ImageId)
Set The [image](https://intl.cloud.tencent.com/document/product/213/4940?from_cn_redirect=1) ID in the format of `img-xxx`.
|
void |
setInstanceChargePrepaid(InstanceChargePrepaid InstanceChargePrepaid)
Set Details of the monthly subscription, including the purchase period, auto-renewal.
|
void |
setInstanceChargeType(String InstanceChargeType)
Set Instance [billing type](https://intl.cloud.tencent.com/document/product/213/2180?from_cn_redirect=1).
|
void |
setInstanceCount(Long InstanceCount)
Set The number of instances to be purchased.
|
void |
setInstanceMarketOptions(InstanceMarketOptionsRequest InstanceMarketOptions)
Set The market options of the instance.
|
void |
setInstanceName(String InstanceName)
Set Instance name to be displayed.
|
void |
setInstanceType(String InstanceType)
Set The instance model.
|
void |
setInternetAccessible(InternetAccessible InternetAccessible)
Set Configuration of public network bandwidth.
|
void |
setLaunchTemplate(LaunchTemplate LaunchTemplate)
Set Instance launch template.
|
void |
setLoginSettings(LoginSettings LoginSettings)
Set Instance login settings.
|
void |
setPlacement(Placement Placement)
Set Location of the instance.
|
void |
setSecurityGroupIds(String[] SecurityGroupIds)
Set Security groups to which the instance belongs.
|
void |
setSystemDisk(SystemDisk SystemDisk)
Set System disk configuration of the instance.
|
void |
setTagSpecification(TagSpecification[] TagSpecification)
Set List of tag description.
|
void |
setUserData(String UserData)
Set User data provided to the instance.
|
void |
setVirtualPrivateCloud(VirtualPrivateCloud VirtualPrivateCloud)
Set Configuration information of VPC.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public RunInstancesRequest()
public RunInstancesRequest(RunInstancesRequest source)
public String getInstanceChargeType()
public void setInstanceChargeType(String InstanceChargeType)
InstanceChargeType
- Instance [billing type](https://intl.cloud.tencent.com/document/product/213/2180?from_cn_redirect=1). public InstanceChargePrepaid getInstanceChargePrepaid()
public void setInstanceChargePrepaid(InstanceChargePrepaid InstanceChargePrepaid)
InstanceChargePrepaid
- Details of the monthly subscription, including the purchase period, auto-renewal. It is required if the `InstanceChargeType` is `PREPAID`.public Placement getPlacement()
public void setPlacement(Placement Placement)
Placement
- Location of the instance. You can use this parameter to specify the availability zone, project, and CDH (for dedicated CVMs).
Note: `Placement` is required when `LaunchTemplate` is not specified. If both the parameters are passed in, `Placement` prevails.public String getInstanceType()
public void setInstanceType(String InstanceType)
InstanceType
- The instance model.
public String getImageId()
public void setImageId(String ImageId)
ImageId
- The [image](https://intl.cloud.tencent.com/document/product/213/4940?from_cn_redirect=1) ID in the format of `img-xxx`. There are three types of images:public SystemDisk getSystemDisk()
public void setSystemDisk(SystemDisk SystemDisk)
SystemDisk
- System disk configuration of the instance. If this parameter is not specified, the default value will be used.public DataDisk[] getDataDisks()
public void setDataDisks(DataDisk[] DataDisks)
DataDisks
- The configuration information of instance data disks. If this parameter is not specified, no data disk will be purchased by default. When purchasing, you can specify 21 data disks, which can contain at most 1 LOCAL_BASIC or LOCAL_SSD data disk, and at most 20 CLOUD_BASIC, CLOUD_PREMIUM, or CLOUD_SSD data disks.public VirtualPrivateCloud getVirtualPrivateCloud()
public void setVirtualPrivateCloud(VirtualPrivateCloud VirtualPrivateCloud)
VirtualPrivateCloud
- Configuration information of VPC. This parameter is used to specify VPC ID and subnet ID, etc. If a VPC IP is specified in this parameter, it indicates the primary ENI IP of each instance. The value of parameter InstanceCount must be the same as the number of VPC IPs, which cannot be greater than 20.public InternetAccessible getInternetAccessible()
public void setInternetAccessible(InternetAccessible InternetAccessible)
InternetAccessible
- Configuration of public network bandwidth. If this parameter is not specified, 0 Mbps will be used by default.public Long getInstanceCount()
public void setInstanceCount(Long InstanceCount)
InstanceCount
- The number of instances to be purchased. Value range for pay-as-you-go instances: [1, 100]. Default value: `1`. The specified number of instances to be purchased cannot exceed the remaining quota allowed for the user. For more information on the quota, see [Quota for CVM Instances](https://intl.cloud.tencent.com/document/product/213/2664).public String getInstanceName()
public void setInstanceName(String InstanceName)
InstanceName
- Instance name to be displayed. public LoginSettings getLoginSettings()
public void setLoginSettings(LoginSettings LoginSettings)
LoginSettings
- Instance login settings. You can use this parameter to set the login method, password and key of the instance, or keep the original login settings of the image. If it's not specified, the user needs to set the login password using the "Reset password" option in the CVM console or calling the API `ResetInstancesPassword` to complete the creation of the CVM instance(s).public String[] getSecurityGroupIds()
public void setSecurityGroupIds(String[] SecurityGroupIds)
SecurityGroupIds
- Security groups to which the instance belongs. To obtain the security group IDs, you can call [DescribeSecurityGroups](https://intl.cloud.tencent.com/document/api/215/15808) and look for the `sgld` fields in the response. If this parameter is not specified, the instance will be associated with default security groups.public EnhancedService getEnhancedService()
public void setEnhancedService(EnhancedService EnhancedService)
EnhancedService
- Enhanced service. You can use this parameter to specify whether to enable services such as Anti-DDoS and Cloud Monitor. If this parameter is not specified, Cloud Monitor and Anti-DDoS are enabled for public images by default. However, for custom images and images from the marketplace, Anti-DDoS and Cloud Monitor are not enabled by default. The original services in the image will be retained.public String getClientToken()
public void setClientToken(String ClientToken)
ClientToken
- A unique string supplied by the client to ensure that the request is idempotent. Its maximum length is 64 ASCII characters. If this parameter is not specified, the idem-potency of the request cannot be guaranteed.public String getHostName()
public void setHostName(String HostName)
HostName
- Instance hostname. public ActionTimer getActionTimer()
public void setActionTimer(ActionTimer ActionTimer)
ActionTimer
- Scheduled tasks. You can use this parameter to specify scheduled tasks for the instance. Only scheduled termination is supported.public String[] getDisasterRecoverGroupIds()
public void setDisasterRecoverGroupIds(String[] DisasterRecoverGroupIds)
DisasterRecoverGroupIds
- Placement group ID. You can only specify one.public TagSpecification[] getTagSpecification()
public void setTagSpecification(TagSpecification[] TagSpecification)
TagSpecification
- List of tag description. By specifying this parameter, the tag can be bound to the corresponding CVM and CBS instances at the same time.public InstanceMarketOptionsRequest getInstanceMarketOptions()
public void setInstanceMarketOptions(InstanceMarketOptionsRequest InstanceMarketOptions)
InstanceMarketOptions
- The market options of the instance.public String getUserData()
public void setUserData(String UserData)
UserData
- User data provided to the instance. This parameter needs to be encoded in base64 format with the maximum size of 16 KB. For more information on how to get the value of this parameter, see the commands you need to execute on startup for [Windows](https://intl.cloud.tencent.com/document/product/213/17526) or [Linux](https://intl.cloud.tencent.com/document/product/213/17525).public Boolean getDryRun()
public void setDryRun(Boolean DryRun)
DryRun
- Whether the request is a dry run only.
`true`: dry run only. The request will not create instance(s). A dry run can check whether all the required parameters are specified, whether the request format is right, whether the request exceeds service limits, and whether the specified CVMs are available.
If the dry run fails, the corresponding error code will be returned.
If the dry run succeeds, the RequestId will be returned.
`false` (default value): Send a normal request and create instance(s) if all the requirements are met.public String getCamRoleName()
public void setCamRoleName(String CamRoleName)
CamRoleName
- CAM role name, which can be obtained from the `roleName` field in the response of the [`DescribeRoleList`](https://intl.cloud.tencent.com/document/product/598/36223?from_cn_redirect=1) API.public String getHpcClusterId()
public void setHpcClusterId(String HpcClusterId)
HpcClusterId
- HPC cluster ID. The HPC cluster must and can only be specified for a high-performance computing instance.public LaunchTemplate getLaunchTemplate()
public void setLaunchTemplate(LaunchTemplate LaunchTemplate)
LaunchTemplate
- Instance launch template.public String getDedicatedClusterId()
public void setDedicatedClusterId(String DedicatedClusterId)
DedicatedClusterId
- Specify the ID of the dedicated cluster where the CVM is created.public String[] getChcIds()
public void setChcIds(String[] ChcIds)
ChcIds
- Specify the CHC physical server that used to create the CHC CVM.public Boolean getDisableApiTermination()
public void setDisableApiTermination(Boolean DisableApiTermination)
DisableApiTermination
- Whether the termination protection is enabled. Values: Copyright © 2023. All rights reserved.