Get Dv Switches
Retrieves all distributed virtual switches.
Request
URI
GET
https://{api_host}/cloudapi/1.0.0/virtualCenters/resources/dvSwitches
COPY
Query Parameters
string
filter
Optional
Filter for a query. FIQL format.
integer
page
Required
Constraints:
minimum: 1
default: 1
Page to fetch, zero offset.
integer
pageSize
Required
Constraints:
minimum: 0
maximum: 128
default: 25
Results per page to fetch.
string
sortAsc
Optional
Field to use for ascending sort
string
sortDesc
Optional
Field to use for descending sort
Responses
200
OK
Returns
DvSwitches
of type(s)
application/json;version=39.1
This response body class contains all of the following:
InlineDvSwitches0 ,
InlineDvSwitches1
{
"resultTotal": 0,
"pageCount": 0,
"page": 0,
"pageSize": 0,
"associations": [
{
"entityId": "string",
"associationId": "string"
}
],
"values": [
{
"backingRef": {
"id": "string",
"name": "string"
},
"virtualCenter": {
"name": "string",
"id": "string"
}
}
]
}
Code Samples
COPY
curl -H 'Authorization: <value>' https://{api_host}/cloudapi/1.0.0/virtualCenters/resources/dvSwitches?page=value&pageSize=v
Availability
Added in 33.0
V Center Resources Operations
GET
Get Importable Dvpgs
GET
Get Importable Portgroups
GET
Get Dv Switches