Overview
The Security service provides comprehensive DDoS protection and security management capabilities for your infrastructure. It includes tools for creating and managing protection profiles, monitoring security events, and controlling BGP announcements.Available Services
The Security service is organized into four main sub-services:Profiles
Protection profiles enable and configure DDoS protection for your resources. Each profile is based on a template and includes customizable fields for protection policies. Key Methods:New()- Create a new protection profile (protection is enabled automatically)List()- Get all protection profiles for the current clientGet()- Retrieve a specific profile by IDReplace()- Update an existing profile and its protection policiesRecreate()- Recreate a profile with a different templateDelete()- Delete a profile (protection is disabled automatically)
Profile Templates
Profile templates serve as blueprints for creating protection profiles. They define the available fields and validation rules for profiles. Key Methods:List()- Get all available profile templates (includes common templates and client-specific templates)
Events
Event logs provide visibility into security events such as DDoS alerts and RTBH (Remotely Triggered Black Hole) alerts. Key Methods:List()- Get paginated event logs with filtering optionsListAutoPaging()- Automatically handle pagination when iterating through events
BGP Announces
BGP announcement management allows you to control network prefix announcements for DDoS protection. Key Methods:List()- List BGP announcements with filtering by site, origin, and announcement statusToggle()- Enable or disable BGP announcements for specific IP networks
Data Types
ClientProfile
Represents a DDoS protection profile with the following key fields:ID- Profile identifierProfileTemplate- The template used to create this profileSite- Region where the protection is deployedFields- Customizable protection policy fieldsOptions- Profile options (active status, BGP, pricing)Status- Current protection statusIPAddress- Protected IP address (for Universal template)
ClientProfileTemplate
Represents a profile template with:ID- Template identifierName- Template nameVersion- Template version (UUID)Fields- Available fields and their validation rulesCreated- Template creation timestamp
ClientView (Event)
Represents a security event with:ID- Event identifierAlertType- Type of alert (ddos_alert or rtbh_alert)AttackStartTime- When the attack beganAttackPowerBps- Attack power in bits per secondAttackPowerPps- Attack power in packets per secondTargetedIPAddresses- IPs targeted by the attackNumberOfIPInvolvedInAttack- Number of attacking IPs
ClientAnnounce
Represents BGP announcement status with:ClientID- Client identifierAnnounced- List of announced IP networksNotAnnounced- List of networks not currently announced
Common Patterns
Creating a Protection Profile
- First, list available templates to find the appropriate one
- Review the template fields and their requirements
- Create the profile with the template ID and field values
- Protection is automatically enabled upon creation
Monitoring Security Events
- Use filtering parameters to narrow down events of interest
- Sort events by attack power or start time
- Use auto-paging for large result sets
- Filter by date range to focus on recent activity
Managing BGP Announcements
- List current announcements to see the status
- Use the Toggle method to enable/disable announcements
- Filter by site to manage region-specific announcements
API Endpoints
- Profiles:
/security/iaas/v2/profiles - Profile Templates:
/security/iaas/profile-templates - Events:
/security/notifier/v1/event_logs - BGP Announces:
/security/sifter/v2/protected_addresses/announces
