Pbm Profile Profile Manager Pbm Delete
Deletes one or more profiles.
If the method successfully deletes a profile, its identifier is no longer valid.
Required privileges: StorageProfile.Update
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 PbmProfileProfileManager/{moId}.
The vSphere release schema. The current specification covers vSphere 9.1.0.0 APIs.
Show optional properties
{
"profileId": [
{
"uniqueId": "string"
}
]
}
{
"profileId": [
{
"_typeName": "string",
"uniqueId": "string"
}
]
}
Array of profile identifiers.
Array of result objects, one for each profile specified in the
call to the PbmDelete method.
The result object contains the profile ID and, if an error occurred, it also describes the fault. The method can return one of the following faults if the profile cannot be deleted:
- InvalidArgument - Profile is not recognized by the system.
- PbmFaultProfileStorageFault - Internal service error.
- PbmResourceInUse - Profile is still associated with an entity.
[
{
"_typeName": "string",
"profileId": {
"_typeName": "string",
"uniqueId": "string"
},
"fault": {
"_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"
}
]
}
}
]
The PbmProfileOperationOutcome data object describes the result of a PbmProfileProfileManager operation.
If there was an error during the operation, the object identifies the fault.
This structure may be used only with operations rendered under /pbm.
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"profileId":["object"]}' https://{api_host}/sdk/vim25/{release}/pbm/PbmProfileProfileManager/{moId}/PbmDelete