Distributed Virtual Switch Manager Query Dvs By Uuid

Distributed Virtual Switch Manager Query Dvs By Uuid

This operation returns a DistributedVirtualSwitch given a UUID.

Required privileges: System.View

Request
URI
POST
https://{api_host}/sdk/vim25/{release}/DistributedVirtualSwitchManager/{moId}/QueryDvsByUuid
COPY
Path Parameters
string
moId
Required

The unique identifier for the managed object to which the method attaches; the serialized managed object reference for a request has the form moType/moId, in this case DistributedVirtualSwitchManager/{moId}.

string
release
Required

The vSphere release schema. The current specification covers vSphere 9.0.0.0 APIs.


Request Body
QueryDvsByUuidRequestType of type(s) application/json
Required
"QueryDvsByUuidRequestType Object"
string
uuid
Required

uuid

Authentication
This operation uses the following authentication methods.
Responses
200

OK

This response body class contains all of the following: MoRefDistributedVirtualSwitch
{
    "0": "M",
    "1": "o",
    "2": "R",
    "3": "e",
    "4": "f",
    "5": "D",
    "6": "i",
    "7": "s",
    "8": "t",
    "9": "r",
    "10": "i",
    "11": "b",
    "12": "u",
    "13": "t",
    "14": "e",
    "15": "d",
    "16": "V",
    "17": "i",
    "18": "r",
    "19": "t",
    "20": "u",
    "21": "a",
    "22": "l",
    "23": "S",
    "24": "w",
    "25": "i",
    "26": "t",
    "27": "c",
    "28": "h",
    "29": " ",
    "30": "O",
    "31": "b",
    "32": "j",
    "33": "e",
    "34": "c",
    "35": "t"
}

500

NotFound: If a switch with the UUID doesn't exist.

Returns NotFound of type(s) application/json
"NotFound Object"

Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/sdk/vim25/{release}/DistributedVirtualSwitchManager/{moId}/QueryDvsByUuid