查看VPC实例详情
GET https://management.sensecoreapi.cn/network/vpc/v1/subscriptions/{subscription_name}/resourceGroups/{resource_group_name}/zones/{zone}/vpcs/{vpc_name}
请求头(Request Header)
请求参数(Request Parameters)
名称 | 类型 | 必须 | 默认值 | 取值范围 | 描述 |
---|---|---|---|---|---|
subscription_name | string | 是 | - | - | 订阅 |
resource_group_name | string | 是 | - | - | 资源组 |
zone | string | 是 | - | - | 可用区 |
vpc_name | string | 是 | - | - | vpc名 |
请求体(Request Body)
无
请求示例(Request Example)
curl --request GET 'https://management.sensecoreapi.cn/network/vpc/v1/subscriptions/{subscription_name}/resourceGroups/{resource_group_name}/zones/{zone}/vpcs/{vpc_name}' \
-H 'content-type: application/json' \
-H 'Authorization: xxx'
响应(Response)
名称 | 类型 | 描述 |
---|---|---|
id | string | vpc id |
name | string | VPC名 |
display_name | string | vpc展示名 |
description | string | vpc资源说明 |
uid | string | vpc资源的uuid |
resource_type | string | 资源类型 |
creator_id | string | 创建该vpc资源的用户id |
owner_id | string | 拥有该vpc资源的用户id |
tenant_id | string | 租户id |
zone | string | 可用区 |
state | enum | VPC状态 |
sku_id | string | 最小库存单元id |
tags | map<string, string> | VPC标签 |
properties | VPCProperties | VPC属性信息 |
cidr | string | VPC级别最大的cidr, subnet的cidr应该为VPC cidr的子集 |
is_default | bool | 是否作为默认VPC |
order_info | struct OrderInfo | VPC订单信息 |
deleted | bool | VPC是否已删除 |
create_time | timestamp | VPC创建时间 |
update_time | timestamp | VPC更新时间 |
响应示例(Response Example)
{
"id": "string",
"name": "string",
"display_name": "string",
"description": "string",
"uid": "string",
"resource_type": "string",
"creator_id": "string",
"owner_id": "string",
"tenant_id": "string",
"zone": "string",
"state": "CREATING",
"sku_id": "string",
"tags": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"properties": {
"cidr": "string",
"is_default": true
},
"order_info": {
"billing_cycle_number": 0,
"auto_renew": true,
"currency_code": "string",
"payment_channel": "PC_UNSPECIFIED",
"note": "string",
"order_type": "OT_UNSPECIFIED",
"order_id": "string",
"start_time": "2023-11-23T08:03:19.951Z",
"payment_model": "PM_UNSPECIFIED",
"billing_model": "BM_UNSPECIFIED",
"original_id": "string",
"end_time": "2023-11-23T08:03:19.951Z",
"auto_convert_postpaid": true
},
"deleted": true,
"create_time": "2023-11-23T08:03:19.951Z",
"update_time": "2023-11-23T08:03:19.951Z"
}