appliance techpreview monitoring snmp: hash
Generate localized keys for secure SNMPv3 communications.
Request:
HTTP request
POST https://{server}/rest/appliance/techpreview/monitoring/snmp/hash
Request Body Structure:
{
"config": {
"auth_hash": "string",
"priv_hash": "string",
"raw_secret": true
}
}
"config": {
"auth_hash": "string",
"priv_hash": "string",
"raw_secret": true
}
}
<?xml version="1.0" ?>
<ns0:Hash-Input xmlns:ns0="http://vmware.com/appliance/techpreview/monitoring/snmp" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<config>
<raw_secret>true</raw_secret>
<auth_hash>string</auth_hash>
<priv_hash>string</priv_hash>
</config>
</ns0:Hash-Input>
<ns0:Hash-Input xmlns:ns0="http://vmware.com/appliance/techpreview/monitoring/snmp" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<config>
<raw_secret>true</raw_secret>
<auth_hash>string</auth_hash>
<priv_hash>string</priv_hash>
</config>
</ns0:Hash-Input>
Request Body Parameters:
Name | Type | Description |
---|---|---|
bold = required | ||
config | SNMP_hash_config | SNMP hash configuration. |
config.auth_hash | string | Provide filename to secret for authentication hash, use in set --users (required secret) |
config.priv_hash | string | Provide filename to secret for privacy hash, use in set --users (secret) |
config.raw_secret | boolean | Make --auth_path and --priv_path flags read raw secret from command line instead of file. |
Response:
HTTP Status Code: 200
Representations:
{
"value": {
"auth_key": "string",
"priv_key": "string"
}
}
"value": {
"auth_key": "string",
"priv_key": "string"
}
}
<?xml version="1.0" ?>
<ns0:Hash-Result xmlns:ns0="http://vmware.com/appliance/techpreview/monitoring/snmp" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<value>
<priv_key>string</priv_key>
<auth_key>string</auth_key>
</value>
</ns0:Hash-Result>
<ns0:Hash-Result xmlns:ns0="http://vmware.com/appliance/techpreview/monitoring/snmp" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<value>
<priv_key>string</priv_key>
<auth_key>string</auth_key>
</value>
</ns0:Hash-Result>
Response Type:
Name | Type | Description |
---|---|---|
bold = required | ||
value | SNMP_hash_results | SNMP hash result. |
value.auth_key | string | SNMP authentication key |
value.priv_key | string | SNMP privacy key |
Errors:
HTTP Status Code | Type | Description |
---|---|---|
500 | error | Generic error |