You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.3 KiB
44 lines
1.3 KiB
package securitygroup
|
|
|
|
type ListSecurityGroups struct {
|
|
Data []ItemSecurityGroup `json:"data"`
|
|
EntryCount uint64 `json:"entryCount"`
|
|
}
|
|
|
|
type ItemSecurityGroup struct {
|
|
ID uint64 `json:"id"`
|
|
AccountID uint64 `json:"account_id"`
|
|
Name string `json:"name"`
|
|
Description string `json:"description"`
|
|
Rules Rules `json:"rules"`
|
|
CreatedAt uint64 `json:"created_at"`
|
|
UpdatedAt uint64 `json:"updated_at"`
|
|
CreatedBy string `json:"created_by"`
|
|
UpdatedBy string `json:"updated_by"`
|
|
}
|
|
|
|
type RecordSecurityGroup struct {
|
|
ID uint64 `json:"id"`
|
|
AccountID uint64 `json:"account_id"`
|
|
Name string `json:"name"`
|
|
Description string `json:"description"`
|
|
Rules Rules `json:"rules"`
|
|
CreatedAt uint64 `json:"created_at"`
|
|
UpdatedAt uint64 `json:"updated_at"`
|
|
CreatedBy string `json:"created_by"`
|
|
UpdatedBy string `json:"updated_by"`
|
|
}
|
|
|
|
type Rules []Rule
|
|
|
|
type Rule struct {
|
|
ID uint64 `json:"id"`
|
|
Direction string `json:"direction"`
|
|
Ethertype string `json:"ethertype"`
|
|
Protocol string `json:"protocol"`
|
|
PortRangeMin uint64 `json:"port_range_min"`
|
|
PortRangeMax uint64 `json:"port_range_max"`
|
|
RemoteIPPrefix string `json:"remote_ip_prefix"`
|
|
RemoteGroupID uint64 `json:"remote_group_id"`
|
|
}
|