2025-11-14 17:38:59 +03:00
|
|
|
package secpolicies
|
|
|
|
|
|
|
|
|
|
type SecurityPolicyList []SecurityPolicySummary
|
|
|
|
|
|
|
|
|
|
// SecurityPolicySummary provides brief information about the security policy
|
|
|
|
|
type SecurityPolicySummary struct {
|
|
|
|
|
// Access group ID
|
|
|
|
|
AccessGroupID string `json:"access_group_id"`
|
|
|
|
|
|
|
|
|
|
// Access group name
|
|
|
|
|
AccessGroupName string `json:"access_group_name"`
|
|
|
|
|
|
2026-10-09 16:23:35 +03:00
|
|
|
// Applied network object groups
|
|
|
|
|
AppliedNetObjectGroups []AppliedNetObjectGroup `json:"applied_net_object_groups"`
|
2025-11-14 17:38:59 +03:00
|
|
|
|
|
|
|
|
// Created time
|
|
|
|
|
CreatedAt string `json:"created_at"`
|
|
|
|
|
|
|
|
|
|
// Description
|
|
|
|
|
Description string `json:"description"`
|
|
|
|
|
|
|
|
|
|
// Display name
|
|
|
|
|
DisplayName string `json:"display_name"`
|
|
|
|
|
|
|
|
|
|
// Enabled flag
|
|
|
|
|
Enabled bool `json:"enabled"`
|
|
|
|
|
|
2026-10-09 16:23:35 +03:00
|
|
|
// End date and time
|
|
|
|
|
EndDateTime string `json:"end_date_time"`
|
|
|
|
|
|
2025-11-14 17:38:59 +03:00
|
|
|
// End priority
|
|
|
|
|
EndPriority int `json:"end_priority"`
|
|
|
|
|
|
|
|
|
|
// ID
|
|
|
|
|
ID string `json:"id"`
|
|
|
|
|
|
2026-10-09 16:23:35 +03:00
|
|
|
// Locked at timestamp
|
|
|
|
|
LockedAt string `json:"locked_at"`
|
|
|
|
|
|
|
|
|
|
// Schedule cron expression
|
|
|
|
|
ScheduleCron string `json:"schedule_cron"`
|
|
|
|
|
|
|
|
|
|
// Start date and time
|
|
|
|
|
StartDateTime string `json:"start_date_time"`
|
2025-11-14 17:38:59 +03:00
|
|
|
|
|
|
|
|
// Start priority
|
|
|
|
|
StartPriority int `json:"start_priority"`
|
|
|
|
|
|
|
|
|
|
// Status information
|
|
|
|
|
Status Status `json:"status"`
|
|
|
|
|
|
2026-10-09 16:23:35 +03:00
|
|
|
// Type
|
|
|
|
|
Type string `json:"type"`
|
|
|
|
|
|
2025-11-14 17:38:59 +03:00
|
|
|
// Version ID
|
|
|
|
|
VersionID uint64 `json:"version_id"`
|
|
|
|
|
|
|
|
|
|
// Updated time
|
|
|
|
|
UpdatedAt string `json:"updated_at"`
|
|
|
|
|
}
|
|
|
|
|
|
2026-10-09 16:23:35 +03:00
|
|
|
// AppliedNetObjectGroup information about network object group the security policy is applied to
|
|
|
|
|
type AppliedNetObjectGroup struct {
|
|
|
|
|
// ID
|
|
|
|
|
ID string `json:"id"`
|
|
|
|
|
|
|
|
|
|
// Name
|
|
|
|
|
Name string `json:"name"`
|
|
|
|
|
|
|
|
|
|
// Version ID
|
|
|
|
|
VersionID uint64 `json:"version_id"`
|
|
|
|
|
}
|
|
|
|
|
|
2025-11-14 17:38:59 +03:00
|
|
|
// Status information
|
|
|
|
|
type Status struct {
|
2026-10-09 16:23:35 +03:00
|
|
|
// Operation status
|
|
|
|
|
OperationStatus string `json:"operation_status"`
|
|
|
|
|
|
|
|
|
|
// Hypervisor status
|
|
|
|
|
HypervisorStatus string `json:"hypervisor_status"`
|
2025-11-14 17:38:59 +03:00
|
|
|
|
|
|
|
|
// Hypervisor statuses
|
|
|
|
|
Hypervisors []HypervisorStatus `json:"hypervisors"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// HypervisorStatus information
|
|
|
|
|
type HypervisorStatus struct {
|
2026-10-09 16:23:35 +03:00
|
|
|
// Operation status
|
|
|
|
|
OperationStatus string `json:"operation_status"`
|
2025-11-14 17:38:59 +03:00
|
|
|
|
|
|
|
|
// Name
|
|
|
|
|
Name string `json:"name"`
|
|
|
|
|
|
|
|
|
|
// Display name
|
|
|
|
|
DisplayName string `json:"display_name"`
|
|
|
|
|
|
|
|
|
|
// Hypervisor status
|
|
|
|
|
HypervisorStatus string `json:"hypervisor_status"`
|
|
|
|
|
|
|
|
|
|
// Last sync time
|
|
|
|
|
SyncedAt string `json:"synced_at"`
|
|
|
|
|
}
|