- 产品 API 使用指南
- SDDC
- 概览
- 计算
- 虚拟机
- virtual-machines
- /virtual-machines/
- /virtual-machines/
- /virtual-machines/{clone}
- /virtual-machines/{id}
- /virtual-machines/{id}
- /virtual-machines/{id}
- /virtual-machines/{id}/{failure-migrate}
- /virtual-machines/{id}/{flatten}
- /virtual-machines/{id}/{migrate}
- /virtual-machines/{id}/{reboot}
- /virtual-machines/{id}/{rollback}
- /virtual-machines/{id}/{start}
- /virtual-machines/{id}/{stop}
- /virtual-machines/{id}/{verify-gpasswd}
- vm-cd-roms
- vm-cleanup-jobs
- vm-disk-cleanup-jobs
- vm-disks
- vm-migration-jobs
- vm-nic-cleanup-jobs
- vm-nics
- vm-scheduling-rules
- virtual-machines
- 虚拟机快照
- 镜像
- 虚拟机
- 网络
- 虚拟交换机
- 桥接网络
- 块存储
- 弹性存储
- 集群
- 运维管理
- 标签管理
- 权限访问
- 加密
- 用户管理
- 产品信息
- 系统设置
- SDS
- action-logs
- alert-info-groups
- alert-infos
- alert-rule-groups
- alert-rules
- chunks
- disks
- osds
- pools
- /pools/
- /pools/
- /pools/{calc-capacity}
- /pools/{check-full}
- /pools/{pool_id}
- /pools/{pool_id}
- /pools/{pool_id}
- /pools/{pool_id}/osds
- /pools/{pool_id}/osds
- /pools/{pool_id}/predictions
- /pools/{pool_id}/samples
- /pools/{pool_id}/topology
- /pools/{pool_id}:disable-device-type-check
- /pools/{pool_id}:enable-device-type-check
- /pools/{pool_id}:initialize
- /pools/{pool_id}:reweight
- /pools/{pool_id}:switch-role
- /pools/{pool_id}:update-ec-crush-rule
- /pools/{pool_id}:update-gc-policy
/vsws/{id}
DELETE
/vsws/{id}
最后修改时间:2022-11-07 17:56:36
责任人:未设置
请求参数
Path 参数
id
integer
必需
Header 参数
x-sddc-token
string
可选
默认值:
78ce2df0c80e4b10a28c7779af4dc10f
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request DELETE 'http://10.16.11.91:6012/sddc/v1/vsws/' \
--header 'x-sddc-token: 78ce2df0c80e4b10a28c7779af4dc10f'
返回响应
🟢202成功
application/json
Body
Vsw is a virtual switch.
metadata
object (ResourceMeta is the metadata all resource type must have.)
必需
created_at
string <date-time>
必需
creation_finish
string <date-time>
可选
deletion_begin
string <date-time>
可选
deletion_finish
string <date-time>
可选
id
integer <int64>
必需
labels
array[object (ResourceMetaLabel is the label metadata of resource.) {4}]
可选
name
string
可选
project_id
integer <int64>
可选
state
object (ResourceMetaState is the state metadata of resource.)
可选
spec
object (VswSpec virtual switch's spec.)
必需
created_at
string <date-time>
必需
creation_finish
string <date-time>
可选
deleted_at
object (NullTime represents a time.Time that may be null.)
可选
it can be used as a scan destination, similar to NullString.
deletion_begin
string <date-time>
可选
deletion_finish
string <date-time>
可选
description
string
必需
etag
string
必需
id
integer <int64>
必需
is_default
boolean
必需
name
string
必需
updated_at
string <date-time>
必需
status
object (VswStatus virtual switch's status.)
必需
br_net_num
integer <int64>
必需
created_at
string <date-time>
必需
deleted_at
object (NullTime represents a time.Time that may be null.)
可选
it can be used as a scan destination, similar to NullString.
etag
string
必需
id
integer <int64>
必需
nic_num
integer <int64>
必需
updated_at
string <date-time>
必需
示例
{
"metadata": {
"created_at": "2019-08-24T14:15:22Z",
"creation_finish": "2019-08-24T14:15:22Z",
"deletion_begin": "2019-08-24T14:15:22Z",
"deletion_finish": "2019-08-24T14:15:22Z",
"id": 0,
"labels": [
{
"label_key_id": 0,
"label_key_name": "string",
"label_value_id": 0,
"label_value_name": "string"
}
],
"name": "string",
"project_id": 0,
"state": {
"diff_fields": {
"irreconcilable": [
"string"
],
"reconciling": [
"string"
]
},
"state": "string"
}
},
"spec": {
"created_at": "2019-08-24T14:15:22Z",
"creation_finish": "2019-08-24T14:15:22Z",
"deleted_at": {
"Time": "2019-08-24T14:15:22Z",
"Valid": true
},
"deletion_begin": "2019-08-24T14:15:22Z",
"deletion_finish": "2019-08-24T14:15:22Z",
"description": "string",
"etag": "string",
"id": 0,
"is_default": true,
"name": "string",
"updated_at": "2019-08-24T14:15:22Z"
},
"status": {
"br_net_num": 0,
"created_at": "2019-08-24T14:15:22Z",
"deleted_at": {
"Time": "2019-08-24T14:15:22Z",
"Valid": true
},
"etag": "string",
"id": 0,
"nic_num": 0,
"updated_at": "2019-08-24T14:15:22Z"
}
}
修改于 2022-11-07 17:56:36