Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Put ¶
func Put(client *golangsdk.ServiceClient, id string, opts WhitelistOpts) (err error)
Put an instance whitelist with given parameters.
Types ¶
type Whitelist ¶
type Whitelist struct { // instance id InstanceID string `json:"instance_id"` // enable or disable the whitelists Enable bool `json:"enable_whitelist"` // list of whitelist groups Groups []WhitelistGroup `json:"whitelist"` }
Whitelist is a struct that contains all the whitelist parameters.
type WhitelistGroup ¶
type WhitelistGroup struct { // the group name GroupName string `json:"group_name"` // list of IP address or range IPList []string `json:"ip_list"` }
WhitelistGroup is a struct that contains the whitelist parameters.
type WhitelistGroupOpts ¶
type WhitelistGroupOpts struct { // the group name GroupName string `json:"group_name" required:"true"` // list of IP address or range IPList []string `json:"ip_list" required:"true"` }
WhitelistGroupOpts is a struct that contains all the whitelist parameters.
type WhitelistOpts ¶
type WhitelistOpts struct { // enable or disable the whitelists Enable *bool `json:"enable_whitelist" required:"true"` // list of whitelist groups Groups []WhitelistGroupOpts `json:"whitelist" required:"true"` }
WhitelistOpts is a struct that contains all the parameters.
Click to show internal directories.
Click to hide internal directories.