EIP を申請します。
操作説明
この操作を呼び出す前に、EIP の課金方法と料金についてご確認ください。詳細については、「課金概要」を参照してください。
この操作を呼び出すと、指定されたリージョンで Available 状態の EIP がランダムに割り当てられます。EIP はトランスポートレイヤーで ICMP、TCP、UDP のみをサポートしています。IGMP および SCTP はサポートされていません。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
vpc:AllocateEipAddress |
create |
*Address
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| RegionId |
string |
必須 |
EIP のリージョン ID。 DescribeRegions 操作を呼び出してリージョン ID をクエリできます。 列挙値:
|
cn-hangzhou |
| Bandwidth |
string |
任意 |
EIP の帯域幅の最大値。単位: Mbit/s。
デフォルト値: 5 Mbit/s。 |
5 |
| Period |
integer |
任意 |
サブスクリプション期間。 PricingCycle が Month にセットされている場合、Period の有効な値は 1 ~ 9 です。 PricingCycle が Year にセットされている場合、Period の有効な値は 1 ~ 5 です。 このパラメーターは、InstanceChargeType が PrePaid にセットされている場合に必須です。InstanceChargeType が PostPaid にセットされている場合は不要です。 |
1 |
| ISP |
string |
任意 |
回線タイプ。有効な値:
BGP (マルチ ISP) および BGP (マルチ ISP) プロ版回線のフォーマットの詳細については、「EIP の回線タイプ」を参照してください。
|
BGP |
| ActivityId |
integer |
任意 |
特別アクティビティ ID。このパラメーターを設定する必要はありません。 |
123456 |
| Netmode |
string |
任意 |
ネットワークタイプ。値は public (デフォルト) で、パブリックネットワークを指定します。 |
public |
| AutoPay |
boolean |
任意 |
自動支払いを有効にするかどうかを指定します。有効な値:
このパラメーターは、InstanceChargeType が PrePaid にセットされている場合に必須です。InstanceChargeType が PostPaid にセットされている場合は任意です。 |
false |
| PricingCycle |
string |
任意 |
サブスクリプションの課金サイクル。有効な値:
このパラメーターは、InstanceChargeType が PrePaid に設定されている場合に必須です。InstanceChargeType が PostPaid に設定されている場合は任意です。 |
Month |
| InstanceChargeType |
string |
任意 |
EIP の課金方法。有効な値:
InstanceChargeType が PrePaid にセットされている場合、InternetChargeType は PayByBandwidth にセットする必要があります。InstanceChargeType が PostPaid にセットされている場合、InternetChargeType は PayByBandwidth または PayByTraffic にセットできます。 |
PostPaid |
| InternetChargeType |
string |
任意 |
EIP の課金方法。有効な値:
InstanceChargeType が PrePaid にセットされている場合、InternetChargeType は PayByBandwidth にセットする必要があります。 InstanceChargeType が PostPaid にセットされている場合、InternetChargeType は PayByBandwidth または PayByTraffic にセットできます。 |
PayByTraffic |
| ResourceGroupId |
string |
任意 |
リソースグループの ID。 |
rg-acfmxazffggds**** |
| ClientToken |
string |
任意 |
リクエストのべき等性を確保するために使用されるクライアントトークン。 異なるリクエスト間で一意性を確保するため、クライアント側でパラメーター値を生成してください。ClientToken は ASCII 文字のみをサポートしています。 説明
このパラメーターを指定しない場合、システムは API リクエストの RequestId を ClientToken として使用します。RequestId は API リクエストごとに異なる場合があります。 |
0c593ea1-3bea-11e9-b96b-88e9fe637760 |
| Name |
string |
任意 |
EIP インスタンスの名前。 名前の長さは 0 ~ 128 文字で、 説明
サブスクリプション EIP インスタンスを作成する場合、このパラメーターはサポートされていません。 |
EIP1 |
| Description |
string |
任意 |
EIP インスタンスの説明。 説明の長さは 0 ~ 256 文字で、 説明
サブスクリプション EIP インスタンスを作成する場合、このパラメーターはサポートされていません。 |
test |
| SecurityProtectionTypes |
array |
任意 |
セキュリティ保護レベル。
セキュリティ保護レベルは最大 1 つまで指定できます。 |
AntiDDoS_Enhanced |
|
string |
任意 |
セキュリティ保護レベル。
|
AntiDDoS_Enhanced |
|
| PublicIpAddressPoolId |
string |
任意 |
IP アドレスプールの ID。 EIP は指定された IP アドレスプールから割り当てられます。 IP アドレスプール機能はデフォルトでは利用できません。この機能を使用するには、クォータセンターで IP アドレスプールの特典クォータを申請してください。詳細については、「クォータセンターでのクォータの引き上げ」を参照してください。 |
pippool-2vc0kxcedhquybdsz**** |
| Zone |
string |
任意 |
EIP のゾーン。 PublicIpAddressPoolId で指定された IP アドレスプールが CloudBox タイプの場合、このパラメーターのデフォルト値は IP アドレスプールのゾーンになります。 IP アドレスプールのビジネスタイプのビューを確認する方法については、「 ListPublicIpAddressPools 」を参照してください。 |
ap-southeast-1-lzdvn-cb |
| IpAddress |
string |
任意 |
申請する EIP の IP アドレス。 IpAddress と InstanceId のいずれか一方のみを指定する必要があります。どちらも指定されていない場合、システムは EIP をランダムに割り当てます。 |
192.0.XX.XX |
| InstanceId |
string |
任意 |
申請する EIP のインスタンス ID。 IpAddress と InstanceId のいずれか一方のみを指定する必要があります。どちらも指定されていない場合、システムは EIP をランダムに割り当てます。 |
eip-25877c70gddh**** |
| Tag |
array<object> |
任意 |
リソースのタグ。 |
|
|
object |
任意 |
|||
| Key |
string |
任意 |
リソースのタグキー。タグキーは最大 20 個まで指定できます。タグキーを空文字列にすることはできません。 タグキーの長さは最大 128 文字です。 |
TestKey |
| Value |
string |
任意 |
タグ値。Tag.N.Value フォーマットで値を指定します。N の有効な値: 1 ~ 20。タグ値を空文字列にすることはできません。タグ値の長さは最大 128 文字です。aliyun または acs: で始めることはできず、http:// または https:// を含めることはできません。 |
FinanceJoshua |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
応答パラメーター。 |
||
| RequestId |
string |
リクエスト ID。 |
4EC47282-1B74-4534-BD0E-403F3EE64CAF |
| OrderId |
integer |
注文 ID。 このパラメーターは、InstanceChargeType (EIP の課金方法) が PrePaid (サブスクリプション) にセットされている場合に返されます。AutoPay (自動支払い) が有効になっていない場合は、注文センター に移動して支払いを完了してください。 |
10 |
| ResourceGroupId |
string |
リソースグループの ID。このパラメーターは、InstanceChargeType が PostPaid に設定されている場合にのみ返されます。 |
rg-acfmxazfdgdg**** |
| EipAddress |
string |
割り当てられた EIP。このパラメーターは、InstanceChargeType が PostPaid に設定されている場合にのみ返されます。 |
192.0.XX.XX |
| AllocationId |
string |
EIP インスタンスの ID。 |
eip-25877c70gddh**** |
例
成功レスポンス
JSONJSON
{
"RequestId": "4EC47282-1B74-4534-BD0E-403F3EE64CAF",
"OrderId": 10,
"ResourceGroupId": "rg-acfmxazfdgdg****",
"EipAddress": "192.0.XX.XX",
"AllocationId": "eip-25877c70gddh****"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | QuotaExceeded.Eip | Elastic IP address quota exceeded | |
| 400 | InsufficientBalance | Your account does not have enough balance. | |
| 400 | InvalidParameter | Specified value of "InternetChargeType" is not valid | |
| 400 | ReserveIpFail | Reserve eip failed. | |
| 400 | InvalidRegion.NotSupport | The specified region does not support. | |
| 400 | InvalidBandwidth.Malformed | The specified Bandwidth is invalid. | |
| 400 | INSTANCE_TYPE_NOT_SUPPORT | The instance type is invalid. | |
| 400 | QueryParameter.Illegal | query parameter illegal | |
| 400 | QuotaExceeded.LargeSpecEip | Elastic IP address with large spec quota exceeded. | |
| 400 | InvalidResourceGroupId | The specified ResourceGroupId does not exist. | リソースグループ ID が存在しません。 |
| 400 | OperationFailed.InsufficientEIP | Eip resource is not enough. | |
| 400 | FrequentPurchase.EIP | eip frequent purchase | |
| 400 | IellgalParameter.OwnerAccount | The specified parameter OwnerAccount is not valid. | 指定された OwnerAccount パラメーターが無効です。 |
| 400 | ResourceNotFound.PublicIpAddressPool | The specified resource of PublicIpAddressPool is not found. | |
| 400 | ResourceNotEnough.PublicIpAddressPool | The specified resource of PublicIpAddressPool is not enough. | |
| 400 | Mismatch.IpAndPublicIpAddressPool | The Ip and PublicIpAddressPool are mismatched. | |
| 400 | OperationDenied.NotOpenDdosOriginProtectService | The operation is not allowed because of you do not open Ddos Origin Protection Service | DDoS 攻撃 Origin サービスが購入されていないため、Anti-DDoS (Enhanced) が有効な EIP の作成に失敗しました。 |
| 400 | IncorrectStatus.PublicIpAddressPool | The status of PublicIpAddressPool is incorrect. | アドレスプールインスタンスが安定した状態ではありません。EIP の割り当ては許可されていません。 |
| 400 | IllegalParam.Isp | The param of %s is illegal. | Isp パラメーターが無効です。リクエストパラメーターで指定されている有効な値を入力してください。 |
| 400 | ExclusiveParam.ZoneAndPublicIpAddressPoolId | The Zone and PublicIpAddressPoolId parameters are mutually exclusive. | Zone パラメーターと PublicIpAddressPoolId パラメーターを同時に指定することはできません。 |
| 400 | IllegalParam.Zone | The specified zone is invalid. | Zone パラメーターが無効です。 |
| 400 | OperationFailed.AllocateUnfamiliarIp | The operation failed because only IP addresses used within the last seven days can be allocated. | EIP をリクエストする際は、過去 7 日以内に使用された IP アドレスのみを指定できます。 |
| 400 | Ip.Allocated | The reserve ip has been allocated. | 予約済み IP アドレスはすでに割り当てられています。 |
| 400 | IncorrectStatus.Ip | The status of ip is incorrect. | IP アドレスの状態が正しくありません。 |
| 400 | UnsupportedFeature.AllocateEipAddressWithZone | The feature of AllocateEipAddressWithZone is not supported. | 現在のリージョンでは、指定されたゾーンでのインスタンス作成はサポートされていません。 |
| 400 | ResourceNotFound.Ip | The specified ip is not found. | 指定された IP アドレスが見つかりません。 |
| 400 | OperationFailed.ResourceNotEnough | The resources you have applied for are insufficient. | リクエストされたリソースが不足しています。引き続き申請が必要な場合は、チケットを提出してください。 |
| 400 | IllegalParam.Bandwidth | The param of bandwidth is illegal. | 指定された Bandwidth パラメーターが無効です。API リファレンスのメトリックの説明に基づいてパラメーターを変更し、リトライしてください。 |
| 400 | OperationFailed.IpIsLocked | The operation is failed because of ip is locked. | IP アドレスがロック済みであるため、リクエストに失敗しました。 |
| 400 | Mismatch.EipSecurityProtectionTypeAndPoolSecurityProtectionType | The EipSecurityProtectionType and PoolSecurityProtectionType are mismatched. | EIP のセキュリティ保護タイプがアドレスプールのセキュリティ保護タイプと一致しません。 |
| 400 | IllegalParam.SecurityProtectionTypes | The param of securityProtectionTypes is illegal. | SecurityProtectionTypes パラメーターが無効です。 |
| 400 | IllegalParam.ServiceLocation | The param of serviceLocation is illegal. | ServiceLocation パラメーターが無効です。 |
| 400 | UnsupportedFeature.Isp | The feature of Isp is not supported. | 指定された Isp はサポートされていません。 |
| 400 | ExclusiveParam.ZoneAndIpAddress | The specified param Zone and IpAddress or InstanceId are mutually exclusive. | 指定された Zone パラメーターが IpAddress パラメーターまたは InstanceId パラメーターと競合しています。 |
| 400 | InvalidDescription.Malformed | The Description is illeagl. | 説明の長さは 2 ~ 256 文字で、http:// または https:// で始まることはできません。 |
| 400 | InvalidName.Malformed | The attribute name is illegal. | Name パラメーターの値が無効です。 |
| 400 | OperationFailed.UpgradeCdtServiceFirst | The operation is failed because of cdt is not upgraded. | 指定されたインスタンスタイプには、Cloud Data Transfer (CDT) の課金スペックアップが必要です。CDT をスペックアップしてから再試行してください。 |
| 400 | OperationFailed.TokenExpired | The operation is failed because of TokenExpired. | 指定された EIP 割り当てトークンは期限切れです。 |
| 403 | Forbidden | User not authorized to operate on the specified resource. | EIP が現在の呼び出し元に属していません。この EIP を使用する権限があるかどうかを確認してください。 |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。