License Manager Disable Feature

License Manager Disable Feature

Deprecated as of vSphere API 4.0, use RemoveAssignedLicense instead.

Release licenses for an optional feature.

Required privileges: Global.Licenses

Request
URI
POST
https://{vcenter-host}/sdk/vim25/{release}/LicenseManager/{moId}/DisableFeature
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 LicenseManager/{moId}.

string
release
Required

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


Request Body
DisableFeatureRequestType of type(s) application/json
Required

Show optional properties

{
    "featureKey": "string"
}
{
    "host": {
        "_typeName": "string",
        "type": "string",
        "value": "string"
    },
    "featureKey": "string"
}
host
Optional

Reference to an instance of the HostSystem managed object.

string
featureKey
Required

key of the feature to disable.

Authentication
This operation uses the following authentication methods.
Responses
200

Returns true if the feature was disabled and false if not.

Returns integer of type(s) application/json
Operation doesn't return any data structure

500

InvalidArgument: If a feature name is not found or it is not optional.

LicenseServerUnavailable: If the license server is unavailable.

InvalidState: If the feature is in use.

Returns VimFault of type(s) application/json
This response body class contains all of the following: MethodFault
{
    "_typeName": "string",
    "faultCause": "MethodFault Object",
    "faultMessage": [
        {
            "_typeName": "string",
            "key": "string",
            "arg": [
                {
                    "_typeName": "string",
                    "key": "string",
                    "value": {
                        "_typeName": "string"
                    }
                }
            ],
            "message": "string"
        }
    ]
}