REST API error when re-enabling CPM management for an account

REST API error when re-enabling CPM management for an account

65
Created On 11/10/26 10:56 AM - Last Modified 11/10/26 15:52 PM


Symptom


Customer is able to  us REST API call to  disable CPM management for an account however  when they try to re-enable CPM management using  below API call body.
 
[ 
  { 
    "path": "/secretManagement/automaticManagementEnabled", 
    "op": "replace", 
    "value": "true" 
  } 
] 
They received a 500 error 
{ 
    "ErrorCode": "CAWS00001E", 
    "ErrorMessage": "Object reference not set to an instance of an object." 
} 


 


Environment


10.5;10.6;10.7;10.8;10.9;10.10;11.1;11 Rest API, Windows 2012.

Cause


This is a known bug which has been fixed in version 11.2 :   It is mandatory to include   "manualManagementReason" in the REST API call body although this value is not required via  PVWA GUI when you re-enable  automatic password  management on an account. 

Resolution


For the command to complete successfully you must also provide the "manualManagementReason" in the API call body with: 

For example
 
[ 
  { 
    "path": "/secretManagement/automaticManagementEnabled", 
    "op": "replace", 
    "value": "true" 
  }, 
  { 
    "path": "/secretManagement/manualManagementReason", 
    "op": "replace", 
    "value": "" 
  } 
] 





This bug has been fixed in 11.2


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000000oclCAA&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail