Mengubah metode penagihan host khusus.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecs:ModifyDedicatedHostsChargeType |
update |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DedicatedHostIds |
string |
Yes |
ID host khusus. Nilai dapat berupa array JSON yang terdiri dari hingga 20 ID host khusus. Pisahkan ID dengan koma (,). |
["dh-bp181e5064b5sotr****","dh-bp18064b5sotrr9c****"] |
| RegionId |
string |
Yes |
ID wilayah host khusus. Anda dapat memanggil DescribeRegions untuk mengkueri daftar wilayah terbaru. |
cn-hangzhou |
| Period |
integer |
No |
Periode perpanjangan langganan. Nilai valid:
|
1 |
| PeriodUnit |
string |
No |
Unit periode perpanjangan, yang merupakan unit parameter
Nilai default: Month. |
Month |
| DryRun |
boolean |
No |
Apakah akan menjalankan dry run. Nilai valid:
Nilai default: false. |
false |
| AutoPay |
boolean |
No |
Apakah akan mengaktifkan pembayaran otomatis. Nilai valid:
Nilai default: true. Catatan
Jika metode pembayaran Anda memiliki saldo yang tidak mencukupi, atur |
false |
| DedicatedHostChargeType |
string |
No |
Metode penagihan baru host khusus. Nilai valid:
Nilai default: PrePaid. |
PrePaid |
| 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 |
e4567-e89b-12d3-a456-426655440000 |
| DetailFee |
boolean |
No |
Apakah akan mengembalikan detail penagihan pesanan ketika metode penagihan diubah dari langganan menjadi pay-as-you-go. Nilai default: false. |
false |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| OrderId |
string |
ID pesanan. Parameter ini hanya dikembalikan ketika metode penagihan diubah menjadi langganan. |
20413515388**** |
| RequestId |
string |
ID permintaan. |
B61C08E5-403A-46A2-96C1-F7B1216DB10C |
| FeeOfInstances |
object |
||
| FeeOfInstance |
array<object> |
Detail penagihan pesanan. |
|
|
object |
|||
| InstanceId |
string |
The IDs of the dedicated hosts. |
dh-bp181e5064b5sotrr**** |
| Currency |
string |
The unit of currency for the bill. Alibaba Cloud China site (aliyun.com): CNY Alibaba Cloud International site (alibabacloud.com): USD |
CNY |
| Fee |
string |
The charged amount. |
0 |
Contoh
Respons sukses
JSONformat
{
"OrderId": "20413515388****",
"RequestId": "B61C08E5-403A-46A2-96C1-F7B1216DB10C",
"FeeOfInstances": {
"FeeOfInstance": [
{
"InstanceId": "dh-bp181e5064b5sotrr****",
"Currency": "CNY",
"Fee": "0"
}
]
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter.InstanceIds | The specified InstanceIds are invalid. | |
| 400 | InvalidParameter | %s | |
| 400 | InvalidStatus.ValueNotSupported | %s | |
| 400 | InvalidInstanceChargeType.ValueNotSupported | %s | |
| 400 | InvalidSpotStrategy | The specified spotStrategy is not valid. | |
| 400 | ExpiredInstance | The specified instance has expired. | |
| 400 | InstancesIdQuotaExceed | The maximum number of Instances is exceeded. | |
| 400 | InvalidClientToken.ValueNotSupported | The ClientToken provided is invalid. | |
| 400 | InvalidInstance.UnpaidOrder | The specified instance has unpaid order. | |
| 400 | ReleaseTimeHaveBeenSet | The specified instance has been set released time. | |
| 400 | Throttling | Request was denied due to request throttling, please try again after 5 minutes. | |
| 400 | InvalidPeriod.UnitMismatch | The specified Period must be correlated with the PeriodUnit. | |
| 400 | InvalidImageType.NotSupported | %s | |
| 400 | InvalidPeriod.ExceededDedicatedHost | Instance expired date can't exceed dedicated host expired date. | |
| 400 | InvalidSystemDiskCategory.ValueNotSupported | %s | |
| 400 | InvalidAccountStatus.PayAmountLimitExceeded | Your account is being restricted, due to no default payment method is set or you has not being authorized. | |
| 400 | QuotaExceed.AfterpayInstance | The maximum number of Pay-As-You-Go instances is exceeded. | |
| 400 | QuotaExceed.RufundVcpu | The maximum number of refunded vcpu is exceeded: %s . | |
| 500 | InternalError | The request processing has failed due to some unknown error, exception or failure. | |
| 403 | InvalidInstanceType.ValueNotSupported | The specified InstanceType does not exist or beyond the permitted range. | |
| 403 | InstanceType.Offline | %s | |
| 403 | InvalidAccountStatus.NotEnoughBalance | Your account does not have enough balance. | |
| 403 | Account.Arrearage | Your account has an outstanding payment. | |
| 403 | InvalidParameter.NotMatch | %s | |
| 403 | InvalidAction | %s | |
| 403 | QuotaExceed.PostPaidDisk | Living postPaid disks quota exceeded. | |
| 403 | ImageNotSupportInstanceType | The specified instanceType is not supported by instance with marketplace image. | |
| 403 | InvalidInstanceType.PhasedOut | This instanceType is no longer offered. | |
| 403 | InvalidPeriod.ExceededDedicatedHost | Instance expired date can't exceed dedicated host expired date. | |
| 403 | RealNameAuthenticationError | Your account has not passed the real-name authentication yet. | |
| 403 | InvalidOperation.NotSupport | Instance on dedicated host not support modify charge type. | |
| 404 | InvalidInstanceId.NotFound | The specified instanceId does not exist. | |
| 404 | InvalidDedicatedHostId.NotFound | The specified Dedicated Host does not exist. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.