更新时间:2024-10-11 gmt 08:00
创建vpc-九游平台
功能介绍
创建虚拟私有云。
调试
您可以在中调试该接口。
请求参数
名称 |
是否必选 |
参数类型 |
说明 |
---|---|---|---|
name |
否 |
string |
|
description |
否 |
string |
|
cidr |
否 |
string |
|
enterprise_project_id |
否 |
string |
说明:
关于企业项目id的获取及企业项目特性的详细信息,请参见《企业管理用户指南》。 |
tags |
否 |
array of strings |
|
请求示例
- 创建一个vpc,命名为vpc,设置cidr为192.168.0.0/16。
post https://{endpoint}/v1/{project_id}/vpcs { "vpc": { "name": "vpc", "description": "test", "cidr": "192.168.0.0/16", "enterprise_project_id": "0aad99bc-f5f6-4f78-8404-c598d76b0ed2" } }
响应参数
名称 |
参数类型 |
说明 |
---|---|---|
id |
string |
uuid形式的一个资源标识。 |
name |
string |
|
description |
string |
|
cidr |
string |
|
status |
string |
|
routes |
array of route objects |
|
enterprise_project_id |
string |
说明:
关于企业项目id的获取及企业项目特性的详细信息,请参见《企业管理用户指南》。 |
tenant_id |
string |
|
created_at |
string |
|
updated_at |
string |
|
名称 |
参数类型 |
说明 |
---|---|---|
destination |
string |
|
nexthop |
string |
|
响应示例
{ "vpc": { "id": "99d9d709-8478-4b46-9f3f-2206b1023fd3", "name": "vpc", "description": "test", "cidr": "192.168.0.0/16", "status": "creating", "enterprise_project_id": "0aad99bc-f5f6-4f78-8404-c598d76b0ed2", "routes": [], "tenant_id": "087679f0aa80d32a2f4ec0172f5e902b", "created_at": "2022-12-15t02:25:11", "updated_at": "2022-12-15t02:25:11" } }
状态码
请参见状态码。
错误码
请参见错误码。
父主题:
相关文档
意见反馈
文档内容是否对您有帮助?
提交成功!非常感谢您的反馈,我们会继续努力做到更好!
您可在查看反馈及问题处理状态。
系统繁忙,请稍后重试
如您有其它疑问,您也可以通过华为云社区问答频道来与我们联系探讨