Extension Manager Set Public Key

Extension Manager Set Public Key

Deprecated as of VI 4.0, use trusted certificates and LoginExtensionBySubjectName or SetExtensionCertificate and LoginExtensionByCertificate.

Sets extension's public key.

This method will unset any subject name or certificate associated with the extension.

Required privileges: Extension.Update

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

string
release
Required

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


Request Body
SetPublicKeyRequestType of type(s) application/json
Required
{
    "extensionKey": "string",
    "publicKey": "string"
}
string
extensionKey
Required

Key of extension to update.

string
publicKey
Required

Public key of extension, encoded in PEM (privacy-enhanced mail) format.

Authentication
This operation uses the following authentication methods.
Responses
204

No Content

Operation doesn't return any data structure