EIP を申請します。
操作説明
この操作の呼び出し前に、EIP の課金方法と料金について十分に理解していることを確認してください。詳細については、「課金概要」を参照してください。
この操作の呼び出し後、指定されたリージョンで Available 状態の EIP がランダムに割り当てられます。トランスポートレイヤーでは、EIP は ICMP、TCP、および UDP のみをサポートします。EIP は 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 |
任意 |
サブスクリプション期間。 料金サイクル が Month に設定されている場合、Period の有効な値は 1 から 9 です。 料金サイクル が 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 のいずれか 1 つのみを指定する必要があります。どちらも指定しない場合、システムは EIP をランダムに割り当てます。 |
192.0.XX.XX |
| InstanceId |
string |
任意 |
申請する EIP のインスタンス ID。 IpAddress と InstanceId のいずれか 1 つのみを指定する必要があります。どちらも指定しない場合、システムは 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 |
レスポンスパラメーター。 |
||
| AllocationId |
string |
EIP インスタンスの ID。 |
eip-25877c70gddh**** |
| EipAddress |
string |
割り当てられた EIP。このパラメーターは、InstanceChargeType が PostPaid に設定されている場合にのみ返されます。 |
192.0.XX.XX |
| OrderId |
integer |
注文 ID。 このパラメーターは、InstanceChargeType (EIP の課金方法) が PrePaid (サブスクリプション) に設定されている場合に返されます。AutoPay (自動支払い) が有効になっていない場合は、注文センターのリスト に移動して支払いを完了してください。 |
10 |
| RequestId |
string |
リクエスト ID。 |
4EC47282-1B74-4534-BD0E-403F3EE64CAF |
| ResourceGroupId |
string |
リソースグループの ID。このパラメーターは、InstanceChargeType が PostPaid に設定されている場合にのみ返されます。 |
rg-acfmxazfdgdg**** |
例
成功レスポンス
JSONJSON
{
"AllocationId": "eip-25877c70gddh****",
"EipAddress": "192.0.XX.XX",
"OrderId": 10,
"RequestId": "4EC47282-1B74-4534-BD0E-403F3EE64CAF",
"ResourceGroupId": "rg-acfmxazfdgdg****"
}
エラーコード
|
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 が購入されていないため、DDoS 攻撃対策 (Enhanced) が有効な EIP を作成できません。 |
| 400 | IncorrectStatus.PublicIpAddressPool | The status of PublicIpAddressPool is incorrect. | IP アドレスプールが有効な状態ではないため、EIP を割り当てることはできません。 |
| 400 | IllegalParam.Isp | The param of %s is illegal. | ISP パラメーターが無効なため、EIP を割り当てることはできません。 |
| 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. | 指定された帯域幅の値は無効です。 |
| 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. | サービスロケーション パラメーターは無効です。 |
| 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. | 指定された名前のフォーマットが無効です。 |
| 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 割り当てトークンの有効期限が切れています。 |
| 400 | QuotaExceeded.LocalISPBasicEip | The quota for Local ISP Provider EIP has been exceeded. | LocalISPBasic EIP のクォータ上限に達しました。 |
| 400 | QuotaExceeded.LocalISPEip | The quota for Local ISP EIPs has been exceeded. | LocalISP のクォータ上限に達しました。 |
| 400 | OperationFailed.IpNotExist | The specified IP address does not exist. | IP アドレスが存在しません。 |
| 403 | Forbidden | User not authorized to operate on the specified resource. | 指定されたリソースを操作する権限がありません。必須の権限を申請してから、再度お試しください。 |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。