REST API - get

vcenter system config feature state: get

Returns the current status of feature state switches. This operation was added in vSphere API 6.7.

Request:

HTTP request

GET https://{server}/rest/vcenter/system-config/feature-state

?features.1=string
&features.2=string

Request Query Parameters:

Name Type Description
bold = required
features string[] Optional. List of features for which status is to be retrieved.

Response:

HTTP Status Code: 200

Representation:

{
    "value"[
        {
            "value""ENABLED",
            "key""string"
        }
    ]
}

Response Type:

Name Type Description
bold = required
value list Mapping of feature names to their switch status.List of {"key": string, "value": string}
value[].key string
value[].value string Defines the possible states of a feature state switch. This enumeration was added in vSphere API 6.7. Value is one of:
ENABLED: Feature state switch is enabled. This constant was added in vSphere API 6.7.
DISABLED: Feature state switch is disabled. This constant was added in vSphere API 6.7.

Errors:

HTTP Status Code Type Description
500 error if feature names list is not accessible.
404 not_found if feature state switch name is not found.
401 unauthenticated if the caller is not authenticated.