Environment Browser Query Target Capabilities

Environment Browser Query Target Capabilities

Queries for information on the capabilities supported by the ComputeResource associated with the EnvironmentBrowser.

If the EnvironmentBrowser is from a ComputeResource or ClusterComputeResource, the host argument can be used to return the capabilities associated with a specific host in the compute resource or cluster. If the host argument is not specified and the EnvironmentBrowser is from a ComputeResource or ClusterComputeResource, then the intersection of the capabilities supported by all the hosts in the cluster is returned. If the EnvironmentBrowser is from a VirtualMachine, the compute resource associated with the virtual machine will be queried for its capabilities.

If the EnvironmentBrowser is from a VirtualMachine a host should not be specified.

Required privileges: System.View

Request
URI
POST
https://{api_host}/sdk/vim25/{release}/EnvironmentBrowser/{moId}/QueryTargetCapabilities
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 EnvironmentBrowser/{moId}.

string
release
Required

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


Request Body
QueryTargetCapabilitiesRequestType of type(s) application/json
Required
"QueryTargetCapabilitiesRequestType Object"
host
Optional

If specified, the host whose capabilities are requested.

Authentication
This operation uses the following authentication methods.
Responses
200

Returns the set of capabilities supported by the ComputeResource associated with the EnvironmentBrowser. If invoked on a cluster with no hosts, null is returned.

This response body class contains all of the following: HostCapability
{
    "0": "H",
    "1": "o",
    "2": "s",
    "3": "t",
    "4": "C",
    "5": "a",
    "6": "p",
    "7": "a",
    "8": "b",
    "9": "i",
    "10": "l",
    "11": "i",
    "12": "t",
    "13": "y",
    "14": " ",
    "15": "O",
    "16": "b",
    "17": "j",
    "18": "e",
    "19": "c",
    "20": "t"
}

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