Notify Vault Password Change
Notify the Server that a vault password for an endpoint has been changed.
POST https://instance.securid.com/aveksa/command.submit?cmd=notifyVaultPasswordChange
Request
Parameters
notifyVaultPasswordChange | |
format |
|
Headers
Bearer token | |
Accept | application/json |
Content-Type | application/json |
Body
<VaultPasswordChange>
<type>CyberArk-CCP-1.1</type>
<uniqueId>
<safe>safe</safe>
<folder>folder</folder>
<object>object</object>
</uniqueId>
</VaultPasswordChange>
The Vault Type. Currently only CyberArk-CCP-1.1 is supported. | |||||||
A xml payload consisting of the child elements that describes the uniqueness of the endpoint.
|
Response
Parameters
type | Executed command name |
Examples
Request
- Curl
- Python
- Node.js
curl -L -X POST "https://instance.securid.com/aveksa/command.submit?cmd=notifyVaultPasswordChange" \
-H "Content-Type: application/xml" \
-H "Authorization: Bearer <token>" \
-d "<VaultPasswordChange>
<type>CyberArk-CCP-1.1</type>
<uniqueId>
<safe>OracleDB</safe>
<folder>Root</folder>
<object>oracle_prod</object>
</uniqueId>
</VaultPasswordChange>"
import requests
url = "https://instance.securid.com/aveksa/command.submit"
params = {
"cmd": "notifyVaultPasswordChange",
"format": "json"
}
headers = {
'Authorization': 'Bearer <token>',
'Content-Type': 'application/xml'
}
payload = """<VaultPasswordChange>
<type>CyberArk-CCP-1.1</type>
<uniqueId>
<safe>OracleDB</safe>
<folder>Root</folder>
<object>oracle_prod</object>
</uniqueId>
</VaultPasswordChange>"""
response = requests.post(url, params=params, headers=headers, data=payload)
if response.status_code == 200:
data = response.json()
print(data)
else:
print(f"Request failed with status code {response.status_code}")
const axios = require('axios');
const url = "https://instance.securid.com/aveksa/command.submit";
const params = {
"cmd": "notifyVaultPasswordChange",
"format": "json"
};
const headers = {
'Authorization': 'Bearer <token>',
'Content-Type': 'application/xml'
};
const xml_payload = `
<VaultPasswordChange>
<type>CyberArk-CCP-1.1</type>
<uniqueId>
<safe>OracleDB</safe>
<folder>Root</folder>
<object>oracle_prod</object>
</uniqueId>
</VaultPasswordChange>
`;
axios.post(url, xml_payload, { params, headers })
.then(response => {
if (response.status === 200) {
console.log(response.data);
} else {
console.log(`Request failed with status code ${response.status}`);
}
})
.catch(error => {
console.error('Error:', error);
});
Response
- 200
- 400 Bad Request
- 501 Unknown Vault
{
"data": {
"type": "notifyVaultPasswordChange"
}
}
<html>
<head>
<title>Error</title>
</head>
<body>Invalid XML content in the request body: Root element is missing
Query String=cmd=notifyVaultPasswordChange&format=json</body>
</html>
<html>
<head>
<title>Error</title>
</head>
<body>Password vault type not found.
Query String=cmd=notifyVaultPasswordChange&format=json</body>
</html>