CreateVpc。
說明
目前該API介面已標記為棄用,推薦使用替代API:Vpc(2016-04-28) - CreateVpc。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
vpc:CreateVpc |
create |
*全部資源。
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| RegionId |
string |
是 |
||
| CidrBlock |
string |
否 |
||
| VpcName |
string |
否 |
||
| Description |
string |
否 |
||
| ClientToken |
string |
否 |
||
| UserCidr |
string |
否 |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| VpcId |
string |
||
| VRouterId |
string |
||
| RequestId |
string |
||
| RouteTableId |
string |
樣本
正常返回樣本
JSON格式
{
"VpcId": "",
"VRouterId": "",
"RequestId": "",
"RouteTableId": ""
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | TOKEN_PROCESSING | Action is processing. | |
| 400 | InvokeError | instance quota rule invoke error. | |
| 400 | InvalidParameter | Specified CIDR block is not valid | 指定的參數組合不合要求。 |
| 400 | ResourceNotAvailable | Resource you requested is not available in this region or zone. | |
| 400 | InvalidVpcName.Malformed | Specified VPC name is not valid. | 專有網路 VPC 名稱格式不正確,請您修復 VPC 的格式後再重試。 |
| 400 | InvalidVpcDiscription.Malformed | Specified VPC description is not valid. | 指定的專有網路 VPC 描述資訊不正確。 |
| 400 | QuotaExceeded.Vpc | VPC quota exceeded. | 使用者名下的 VPC 數量達到配額上限,請提交工單申請提高配額。 |
| 400 | ResourceNotAvailable.Vpc | Resource you requested is not available in this region or zone. | 請求的資源不可用。 |
| 400 | InvalidUserCidr.Quota | Specified UserCidr number is greater than 3. | 指定的 UserCird 數量超過 3 個。 |
| 400 | InvalidUserCidr.Malformed | Specified UserCidr overlapping in of 100.64.0.0/10. | |
| 400 | System.ServiceBusy | System is busy, please try later. | |
| 400 | IllegalParam.UserCidr | UserCidr is not a valid or strict address. | |
| 400 | OperationUnsupported.ResourceGroupId | ResourceGroup is not supported in this region. | |
| 400 | IllegalParam.EnableIpv6 | %s | |
| 400 | IllegalParam.CidrBlock | The param of CidrBlock [%s] is illegal. | CidrBlock[%s] 非法。 |
| 500 | InternalError | The request processing has failed due to some unknown error. | |
| 403 | Forbbiden | User not authorized to operate on the specified resource. | 無法透過 OpenAPI 刪除指定的路由目錄。 |
| 404 | InvalidRegionId.NotFound | Specified value of "regionId" is not supported. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。