Sms Storage Manager Register Provider Task
Register the provider and issue a sync operation on it.
Required privileges: StorageViews.ConfigureService
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 SmsStorageManager/{moId}.
The vSphere release schema. The current specification covers vSphere 9.1.0.0 APIs.
Show optional properties
{
"providerSpec": {}
}
{
"providerSpec": {
"_typeName": "string",
"name": "string",
"description": "string"
}
}
SmsProviderSpec containing parameters needed to register the provider
OK
{
"_typeName": "string",
"type": "string",
"value": "string"
}
InvalidArgument: if invalid input is provided.
AlreadyExists: if the provider already exists.
ProviderRegistrationFault: if an error is encountered during the registration operation. For instance, IncorrectUsernamePassword is thrown if the login credentials are incorrect. CertificateNotTrusted is thrown if the provider identifies itself with an untrusted certificate.
{
"_typeName": "string",
"faultCause": {
"_typeName": "string",
"faultCause": "MethodFault Object",
"faultMessage": [
{
"_typeName": "string",
"key": "string",
"arg": [
{
"_typeName": "string",
"key": "string",
"value": {
"_typeName": "string"
}
}
],
"message": "string"
}
]
},
"faultMessage": [
{
"_typeName": "string",
"key": "string",
"arg": [
{
"_typeName": "string",
"key": "string",
"value": {
"_typeName": "string"
}
}
],
"message": "string"
}
]
}
Fault which is the cause of this fault.
Message which has details about the error Message can also contain a key to message catalog which can be used to generate better localized messages.
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"providerSpec":"{}"}' https://{api_host}/sdk/vim25/{release}/sms/SmsStorageManager/{moId}/RegisterProvider_Task