说明
目前该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 | 指定的 CIDR 网段不合法。 |
| 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 | |
| 500 | InternalError | The request processing has failed due to some unknown error. | |
| 403 | Forbbiden | User not authorized to operate on the specified resource. | 用户未被授权操作指定的资源。 |
| 404 | InvalidRegionId.NotFound | Specified value of "regionId" is not supported. |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。
该文章对您有帮助吗?