Register Client
Register a new client with the vTIS (vDefend Threat Intelligence service) authentication service. The client must provide:
- A valid client type (device type)
- At least one license key for validation
The client_id is optional. If not provided, the system will generate one. If provided and the client already exists, the registration will update the existing client.
Important Validation Rules:
- client_id: If provided, must not be an empty string (error code 100001)
- licenses: Must not be null and must contain at least one license key (error codes 100001, 100003)
Registration request body. Contains client identification information, client type, and license keys.
Show optional properties
{
"client_type": "string",
"licenses": [
{}
]
}
{
"client_id": "string",
"client_type": "string",
"licenses": [
"string"
]
}
Optional client identifier. If not provided, the system will generate one. If provided and the client already exists, the registration will update the existing client. Must not be an empty string if provided (empty string will result in error code 100001).
The device type or client type. Must be one of the valid device types. The value can use either underscore or hyphen as delimiter (e.g., "NSX-Idps-Offline-Download" or "NSX_Idps_Offline_Download").
Array of license keys to validate. Must not be null and must contain at least one license key.
OK
{
"client_id": "string",
"client_secret": "string",
"message": "string"
}
The client identifier. This will be the provided client_id or a system-generated one.
The client secret generated by the system. Store this securely as it will be needed for authentication.
Optional message providing additional information about the registration.
Error Response
{
"error_code": 0,
"error_message": "string"
}
HTTP Status or Application error code.
Error Code Ranges:
- 100000: Unknown/Internal errors
- 100001-100025: General validation errors
- 100101-100150: Re-registration errors (same clientId)
- 100151-100200: Re-registration errors (new clientId)
- 100201-100202: License-related errors
Message describing the error.
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"client_type":"string","licenses":["string"]}' https://{api_host}/2.0/auth/register