public class SyncImagesRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
SyncImagesRequest() |
SyncImagesRequest(SyncImagesRequest 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 |
---|---|
String[] |
getDestinationRegions()
Get 目的同步地域列表,必须满足如下限制:
必须是一个合法的Region。如果是自定义镜像,则目标同步地域不能为源地域。如果是共享镜像,则目的同步地域仅支持源地域,表示将共享镜像复制为源地域的自定义镜像。暂不支持部分地域同步,请参考[复制镜像](https://cloud.tencent.com/document/product/213/4943#.E5.A4.8D.E5.88.B6.E8.AF.B4.E6.98.8E)。具体地域参数请参考[Region](https://cloud.tencent.com/document/product/213/6091)。 |
Boolean |
getDryRun()
Get 检测是否支持发起同步镜像。
默认值: false
|
Boolean |
getEncrypt()
Get 是否复制为加密自定义镜像。
默认值为 false。
复制加密自定义镜像仅支持同地域。
|
String[] |
getImageIds()
Get 镜像ID列表 ,镜像ID可以通过如下方式获取:
通过[DescribeImages](https://cloud.tencent.com/document/api/213/15715)接口返回的`ImageId`获取。通过[镜像控制台](https://console.cloud.tencent.com/cvm/image)获取。 镜像ID必须满足限制:镜像ID对应的镜像状态必须为`NORMAL`。镜像状态请参考[镜像数据表](https://cloud.tencent.com/document/product/213/15753#Image)。 |
String |
getImageName()
Get 目标镜像名称。默认使用源镜像名称。
|
Boolean |
getImageSetRequired()
Get 是否需要返回目的地域的镜像ID。
默认值: false
|
String |
getKmsKeyId()
Get 加密自定义镜像使用的 KMS 密钥 ID。
仅当复制加密镜像时,即 Encrypt 为 true 时,此参数有效;
不指定 KmsKeyId,默认使用 CBS 云产品 KMS 密钥。
|
void |
setDestinationRegions(String[] DestinationRegions)
Set 目的同步地域列表,必须满足如下限制:
必须是一个合法的Region。如果是自定义镜像,则目标同步地域不能为源地域。如果是共享镜像,则目的同步地域仅支持源地域,表示将共享镜像复制为源地域的自定义镜像。暂不支持部分地域同步,请参考[复制镜像](https://cloud.tencent.com/document/product/213/4943#.E5.A4.8D.E5.88.B6.E8.AF.B4.E6.98.8E)。具体地域参数请参考[Region](https://cloud.tencent.com/document/product/213/6091)。 |
void |
setDryRun(Boolean DryRun)
Set 检测是否支持发起同步镜像。
默认值: false
|
void |
setEncrypt(Boolean Encrypt)
Set 是否复制为加密自定义镜像。
默认值为 false。
复制加密自定义镜像仅支持同地域。
|
void |
setImageIds(String[] ImageIds)
Set 镜像ID列表 ,镜像ID可以通过如下方式获取:
通过[DescribeImages](https://cloud.tencent.com/document/api/213/15715)接口返回的`ImageId`获取。通过[镜像控制台](https://console.cloud.tencent.com/cvm/image)获取。 镜像ID必须满足限制:镜像ID对应的镜像状态必须为`NORMAL`。镜像状态请参考[镜像数据表](https://cloud.tencent.com/document/product/213/15753#Image)。 |
void |
setImageName(String ImageName)
Set 目标镜像名称。默认使用源镜像名称。
|
void |
setImageSetRequired(Boolean ImageSetRequired)
Set 是否需要返回目的地域的镜像ID。
默认值: false
|
void |
setKmsKeyId(String KmsKeyId)
Set 加密自定义镜像使用的 KMS 密钥 ID。
仅当复制加密镜像时,即 Encrypt 为 true 时,此参数有效;
不指定 KmsKeyId,默认使用 CBS 云产品 KMS 密钥。
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public SyncImagesRequest()
public SyncImagesRequest(SyncImagesRequest source)
public String[] getImageIds()
public void setImageIds(String[] ImageIds)
ImageIds
- 镜像ID列表 ,镜像ID可以通过如下方式获取:public String[] getDestinationRegions()
public void setDestinationRegions(String[] DestinationRegions)
DestinationRegions
- 目的同步地域列表,必须满足如下限制:public Boolean getDryRun()
public void setDryRun(Boolean DryRun)
DryRun
- 检测是否支持发起同步镜像。
默认值: falsepublic String getImageName()
public void setImageName(String ImageName)
ImageName
- 目标镜像名称。默认使用源镜像名称。public Boolean getImageSetRequired()
public void setImageSetRequired(Boolean ImageSetRequired)
ImageSetRequired
- 是否需要返回目的地域的镜像ID。
默认值: falsepublic Boolean getEncrypt()
public void setEncrypt(Boolean Encrypt)
Encrypt
- 是否复制为加密自定义镜像。
默认值为 false。
复制加密自定义镜像仅支持同地域。public String getKmsKeyId()
public void setKmsKeyId(String KmsKeyId)
KmsKeyId
- 加密自定义镜像使用的 KMS 密钥 ID。
仅当复制加密镜像时,即 Encrypt 为 true 时,此参数有效;
不指定 KmsKeyId,默认使用 CBS 云产品 KMS 密钥。Copyright © 2024. All rights reserved.