Construct a Credentials Object
After you determine the settings for a specific credential type, you can construct a credentials object.
The format of the credentials object depends on whether you want to use the object for scan-specific or managed credentials.
Scan-Specific Credentials Object
Use this format when creating or updating scan-specific credentials.
{
"{credential_category}": {
"{credential_type}": [
{
"{credential_setting_1}": "{value_1}",
"{credential_setting_2}": "{value_2}",
"{credential_setting_3}": "{value_3}"
}
]
}
}
For example:
{
"Host": {
"Windows": [
{
"domain": "",
"username": "[email protected]",
"auth_method": "Password",
"password": "aJ^deq34Rc"
}
]
}
}
Managed Credentials Object
Use this format when creating or updating managed credentials.
{
"type": "{credential_type}",
"settings": {
"{credential_setting_1}": "{value_1}",
"{credential_setting_2}": "{value_2}",
"{credential_setting_3}": "{value_3}"
}
}
For example:
{
"type": "Windows",
"settings": {
"domain": "",
"username": "[email protected]",
"auth_method": "Password",
"password": "aJ^deq34Rc"
}
}
Updated 22 days ago