Mengubah tipe instans dari Instans ECS langganan. Anda dapat meningkatkan atau menurunkan spesifikasi tipe instans. Tipe instans baru berlaku untuk seluruh siklus hidup instans.
Deskripsi operasi
Sebelum memanggil operasi ini, pastikan Anda sepenuhnya memahami metode penagihan, harga, dan aturan pengembalian dana menurunkan spesifikasi ECS.
Operasi ini bersifat asinkron. Perubahan konfigurasi berlaku setelah sekitar 5 hingga 10 detik. Sebelum meningkatkan atau menurunkan spesifikasi tipe instans Instans ECS dari Instans ECS langganan, Anda dapat memanggil DescribeResourcesModification untuk mengkueri tipe instans Instans ECS yang dapat digunakan untuk mengubah instans saat ini.
Hal yang Perlu Diperhatikan
-
Jika properti NVMe pada tipe instans sumber dan target berbeda (bidang
NvmeSupportyang dikembalikan oleh DescribeInstanceTypes) dan sistem operasi adalah Windows (bidangOSTypeyang dikembalikan oleh DescribeInstances), selesaikan tindakan pencegahan sebelum Anda melakukan Peningkatan/Penurunan Spesifikasi. -
Instans yang kedaluwarsa tidak dapat diubah ke tipe instans yang berbeda. Selesaikan perpanjangan dan coba lagi.
-
Menurunkan tipe instans:
Instans harus berada dalam status Stopped (
Stopped).Selisih harga antara tipe instans asli dan baru dikembalikan ke metode penagihan asli Anda. Voucher yang telah digunakan tidak dapat dikembalikan. Refund akan diterima oleh pihak yang melakukan pembayaran.
Tipe instans baru hanya berlaku setelah Anda menjalankan instans setelah Peningkatan/Penurunan Spesifikasi.
-
Meningkatkan tipe instans:
Instans harus berada dalam status Stopped (
Stopped) atau Running (Running).Tipe instans baru hanya berlaku setelah Anda menjalankan instans atau merestart instans.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecs:ModifyPrepayInstanceSpec |
update |
*Instance
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID instans. |
i-bp67acfmxazb4ph**** |
| RegionId |
string |
Yes |
ID wilayah instans. Anda dapat memanggil DescribeRegions untuk mengkueri daftar wilayah terbaru. |
cn-hangzhou |
| InstanceType |
string |
Yes |
Tipe instans target untuk peningkatan/menurunkan spesifikasi. Untuk informasi lebih lanjut, lihat keluarga instans atau panggil DescribeInstanceTypes. |
ecs.g5.xlarge |
| OperatorType |
string |
No |
Tipe operasi. Nilai valid: Catatan
Parameter ini bersifat opsional. Sistem dapat secara otomatis menentukan apakah operasi tersebut merupakan peningkatan atau menurunkan spesifikasi. Jika Anda menyertakan parameter ini, ikuti aturan di bawah ini.
Catatan
Untuk hal yang perlu diperhatikan terkait peningkatan atau menurunkan spesifikasi tipe instans, lihat bagian deskripsi operasi di atas. |
upgrade |
| ClientToken |
string |
No |
Token klien yang digunakan untuk memastikan idempotensi permintaan. Anda dapat menggunakan klien untuk menghasilkan token, tetapi pastikan token tersebut unik di antara permintaan yang berbeda. Nilai ClientToken hanya dapat berisi karakter ASCII dan tidak boleh melebihi 64 karakter. Untuk informasi lebih lanjut, lihat Cara memastikan idempotensi. |
123e4567-e89b-12d3-a456-426655440000 |
| AutoPay |
boolean |
No |
Apakah akan menyelesaikan pembayaran secara otomatis saat Anda meningkatkan tipe instans. Nilai valid:
Nilai default: true. Catatan
|
true |
| MigrateAcrossZone |
boolean |
No |
Apakah akan mendukung perubahan tipe instans lintas kluster. Nilai valid:
Nilai default: false. Ketika parameter Instans tipe VPC: Untuk tipe instans yang dihentikan, ketika instans non-I/O optimized diubah menjadi instans I/O optimized, nama perangkat disk dan kode otorisasi perangkat lunak server akan berubah. Untuk instans Linux, disk dasar (cloud) diidentifikasi sebagai xvda atau xvdb. Disk ultra (cloud_efficiency) dan SSD standar (cloud_ssd) diidentifikasi sebagai vda atau vdb. |
false |
| SystemDisk.Category |
string |
No |
Kategori disk sistem baru. Nilai valid:
Catatan
Parameter ini hanya valid ketika Anda melakukan peningkatan kuota dari tipe instans yang dihentikan ke keluarga instans Normal dan mengubah instans non-I/O optimization menjadi instans I/O optimization. |
cloud_efficiency |
| RebootTime |
string |
No |
Waktu restart instans. Tentukan waktu dalam standar ISO 8601 dengan format yyyy-MM-ddTHH:mmZ. Waktu harus dalam UTC. |
2018-01-01T12:05Z |
| EndTime |
string |
No |
Waktu akhir perubahan tipe instans sementara. Tentukan waktu dalam standar ISO 8601 dengan format yyyy-MM-ddTHH:mmZ. Waktu harus dalam UTC. |
2018-01-01T12:05Z |
| RebootWhenFinished |
boolean |
No |
Apakah akan merestart instans secara segera setelah perubahan tipe instans selesai. Nilai valid:
Nilai default: false. Catatan
Jika instans berada dalam status Stopped, instans akan tetap berhenti meskipun Anda mengatur |
false |
| ModifyMode |
string |
No |
Catatan
Parameter ini tidak tersedia secara publik. |
null |
| Disk |
array<object> |
No |
Catatan
Parameter ini tidak tersedia secara publik. |
|
|
object |
No |
Catatan
Parameter ini tidak tersedia secara publik. |
||
| DiskId |
string |
No |
Catatan
Parameter ini tidak tersedia secara publik. |
null |
| Category |
string |
No |
Catatan
Parameter ini tidak tersedia secara publik. |
null |
| PerformanceLevel |
string |
No |
Catatan
Parameter ini tidak tersedia secara publik. |
null |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| OrderId |
string |
ID pesanan. |
1234567890 |
| RequestId |
string |
ID permintaan. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
Contoh
Respons sukses
JSONformat
{
"OrderId": "1234567890",
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidInstanceType.ValueUnauthorized | The specified InstanceType is not authorized. | |
| 400 | InvalidInstanceType.ValueNotSupported | The specified InstanceType does not exist or beyond the permitted range. | |
| 400 | InvalidBillingMethod.ValueNotSupported | The operation is not permitted due to an invalid billing method of the instance. | |
| 400 | InvalidInstance.PurchaseNotFound | The specified instance has no purchase history. | |
| 400 | InvalidInstance.UnpaidOrder | The specified instance has unpaid order. | |
| 400 | InvalidInstanceType.NotSupported | The specified InstanceType is not Supported. | |
| 400 | OrderCreationFailed | Order creation failed, please check your params and try it again later. | |
| 400 | Throttling | You have made too many requests within a short time; your request is denied due to request throttling. | |
| 400 | Account.Arrearage | Your account has an outstanding payment. | |
| 400 | InvalidInstanceId.NotFound | The specified InstanceId does not exist. | |
| 400 | InvalidRebootTime.MalFormed | The specified rebootTime is not valid. | |
| 400 | InvalidRebootTime.ValueNotSupported | The specified RebootTime is not valid. | |
| 400 | IdempotenceParamNotMatch | Request uses a client token in a previous request but is not identical to that request. | |
| 400 | InvalidInstanceChargeType.ValueNotSupported | %s | |
| 400 | InvalidStatus.NotStopped | Instance status must be stopped. | |
| 400 | InvalidAction | %s | |
| 400 | InstanceDowngrade.QuotaExceed | Quota of instance downgrade is exceed. | |
| 400 | InvalidParameter | %s | |
| 400 | OperationDenied | The current user does not support this operation. | |
| 400 | LastOrderProcessing | The previous order is still processing, please try again later. | |
| 400 | InvalidOperation.VpcHasEnabledAdvancedNetworkFeature | The specified vpc has enabled advanced network feature. | |
| 400 | InvalidAction.WithActiveElasticUpgrade | The instance has active Elastic Upgrade. | |
| 400 | InstanceTypeNotSupported.TooManyDisksAttached | %s | |
| 400 | QuotaExceed.DiskCapacity | The used capacity of disk type has exceeded the quota in the zone, %s. | |
| 400 | MissingParameter.DiskCategory | The specified parameter Disk.Category can not be null when Disk.DiskId is specified. | |
| 400 | InvalidParameter.DiskCategory | The specified parameter Disk.Category is not valid. | |
| 400 | InvalidPerformanceLevel.Malformed | The specified parameter Disk.n.PerformanceLevel is not valid. | |
| 400 | InvalidSystemDiskCategory.NotMatchInstanceType | The system disk category does not match the instance type. | |
| 400 | QuotaExceed.RufundVcpu | The maximum number of refunded vcpu is exceeded: %s . | |
| 400 | NoPermission.Price | The operation requires price permission. Please either apply for permission from your main account, or set the parameter AutoPay as true. | |
| 400 | NoPermission.Refund | The operation requires refund permission. Please apply for permission from your main account. | |
| 400 | InvalidInstanceStatus | The current status of the instance does not support this operation. | |
| 400 | InvalidOperation.InstanceRenewWithDowngradeInPlan | The operation is denied due to the specified instance has renew with downgrade record in plan. | |
| 400 | InvalidOperation.OnlineModificationUnsupported | Online modification of instance type is not supported for the specified instance due to its CPU topology. | |
| 400 | InvalidInstanceType.NotSupportCpuOptionsNestedVirtualization | The specified instance type does not support CpuOptions.NestedVirtualization: %s. | |
| 401 | InvalidInstanceType.ValueUnauthorized | The specified InstanceType is not authorized. | |
| 500 | InternalError | The request processing has failed due to some unknown error, exception or failure. | |
| 500 | ImageOrderFailed | Create marketplace image order failed. | |
| 403 | OperationDenied.NoStock | The specified instance is out of usage. | |
| 403 | InvalidInstanceType.ValueNotSupported | The specified InstanceType does not exist or beyond the permitted range. | |
| 403 | InvalidUser.PassRoleForbidden | The RAM user does not have privilege to pass a role. | |
| 403 | ImageNotSupportInstanceType | The specified image does not support the specified InstanceType. | |
| 403 | InstanceType.Offline | %s | |
| 403 | IncorrectInstanceStatus | The current status of the resource does not support this operation. | |
| 403 | Throttling | You have made too many requests within a short time; your request is denied due to request throttling. | |
| 403 | InvalidParameter.InstanceId | %s | |
| 403 | OperationDenied | %s | |
| 403 | InvalidInstanceStatus | The current status of the instance does not support this operation. | |
| 403 | InvalidOperation.StarterPackage | StarterPackage not support modification. | |
| 403 | InvalidInstance.PreInstanceExpired | Instance business status is not Expired. | |
| 403 | InvalidInstance.EipNotSupport | The special instance with eip not support operate, please unassociate eip first. | |
| 403 | OperationDenied.ImageNotValid | The specified image is not authorized. | |
| 403 | OperationDenied.LocalDiskUnsupported | The configuration change is not allowed when the specified instance has local disks mounted. | |
| 403 | InvalidOperation.EniCountExceeded | %s | |
| 403 | InvalidOperation.Ipv4CountExceeded | %s | |
| 403 | InvalidOperation.Ipv6CountExceeded | %s | |
| 403 | InvalidOperation.Ipv6NotSupport | %s | |
| 403 | InvalidOperation.Ipv4NotSupport | %s | |
| 403 | InvalidInstance.NotFoundSystemDisk | The specified instance has no system disk. | |
| 403 | InvalidInstanceType.NotSupportDiskCategory | The instanceType of the specified instance does not support this disk category. | |
| 403 | QuotaExceed.ElasticQuota | No additional quota is available for the specified ECS instance type. | |
| 403 | InvalidResourceType.NotSupported | %s | |
| 403 | InvalidOperation.MaxEniQueueNumberExceeded | %s | |
| 403 | InvalidOperation.ExceedInstanceTypeQueueNumber | %s | |
| 403 | InvalidParameter.InvalidEniQueueNumber | %s | |
| 403 | HibernationConfigured.InstanceOperationForbidden | The operation is not permitted due to limit of the hibernation configured instance. | |
| 403 | InvalidOperation.MaxModifyOnlineNumberExceeded | The specified instance has reached the maximum number of modify online attempts and needs to be rebooted. | |
| 403 | InvalidOperation.RebootingRequired | The specified instance needs to be rebooted. | |
| 403 | InvalidOperation.OSTypeNotSupported | The specified OS type is not supported. | |
| 403 | OperationDenied.UnpaidOrder | The specified instance has unpaid order. | |
| 403 | InvalidDisk.DetachedSystemDisk | The specified resource is/has a detached system disk %s , not support current operation. | |
| 403 | InvalidDataDiskCategory.ValueNotSupported | The specified Category of Data Disk is not valid. | |
| 403 | InvalidDiskCategory.NotSupported | The upgrade operation of instance does not support this category of disk. | |
| 404 | InvalidRegionId.NotFound | The specified RegionId does not exist. | |
| 404 | BillingMethodNotFound | The account has not chosen any billing method. | |
| 404 | InvalidInstanceId.NotFound | The specified InstanceId does not exist. | |
| 503 | LimitedOperation.ServiceUnavailable | The service is currently unavailable. Please try again later. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.