専用ホストの支払い方法を変更します。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
ecs:ModifyDedicatedHostsChargeType |
update |
*All Resource
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| DedicatedHostIds |
string |
必須 |
専用ホストの ID。 値は、最大 20 個の専用ホスト ID で構成される JSON 配列です。 ID はコンマ (,) で区切ります。 |
["dh-bp181e5064b5sotr****","dh-bp18064b5sotrr9c****"] |
| RegionId |
string |
必須 |
専用ホストが属するリージョンの ID。 DescribeRegions 操作を呼び出して、最新のリージョンリストを照会できます。 |
cn-hangzhou |
| Period |
integer |
任意 |
サブスクリプション方式の専用ホストの更新期間。 有効値:
|
1 |
| PeriodUnit |
string |
任意 |
デフォルト値:Month。 |
Month |
| DryRun |
boolean |
任意 |
ドライランのみを実行するかどうかを指定します。 有効な値:
NFS ボリュームが読み取り専用モードに設定されているかどうかを示します。 デフォルト値: false。 |
false |
| AutoPay |
boolean |
任意 |
支払いを自動的に完了するかどうかを指定します。 有効値:
デフォルト値:true。 説明
アカウントの残高が不足している場合は、 |
false |
| DedicatedHostChargeType |
string |
任意 |
専用ホストの新しい支払い方法。 有効値:
デフォルト値:PrePaid。 |
PrePaid |
| ClientToken |
string |
任意 |
リクエストのべき等性を保証するために使用されるクライアントトークン。 クライアントを使用してトークンを生成できますが、トークンが異なるリクエスト間で一意であることを確認する必要があります。 |
e4567-e89b-12d3-a456-426655440000 |
| DetailFee |
boolean |
任意 |
課金方法をサブスクリプションから従量課金に変更する際に、注文の課金詳細を返すかどうかを指定します。 NFS ボリュームを読み取り専用モードに設定するかどうかを指定します。 デフォルト値は false です。 |
false |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| OrderId |
string |
注文の ID。 このパラメーターは、支払い方法がサブスクリプションに変更された場合にのみ返されます。 |
20413515388**** |
| RequestId |
string |
リクエスト ID。 |
B61C08E5-403A-46A2-96C1-F7B1216DB10C |
| FeeOfInstances |
object |
||
| FeeOfInstance |
array<object> |
注文の料金に関する詳細。 |
|
|
object |
|||
| InstanceId |
string |
専用ホストの ID。 |
dh-bp181e5064b5sotrr**** |
| Currency |
string |
請求書の通貨単位。 Alibaba Cloud 中国サイト (aliyun.com):CNY Alibaba Cloud 国際サイト (alibabacloud.com):USD |
CNY |
| Fee |
string |
請求額。 |
0 |
例
成功レスポンス
JSONJSON
{
"OrderId": "20413515388****",
"RequestId": "B61C08E5-403A-46A2-96C1-F7B1216DB10C",
"FeeOfInstances": {
"FeeOfInstance": [
{
"InstanceId": "dh-bp181e5064b5sotrr****",
"Currency": "CNY",
"Fee": "0"
}
]
}
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 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. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。