Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResourceDcsInstance ¶ added in v1.12.6
@API DCS GET /v2/available-zones @API DCS POST /v2/{project_id}/instances @API DCS GET /v2/{project_id}/instances/{instance_id} @API DCS PUT /v2/{project_id}/instance/{instance_id}/whitelist @API DCS GET /v2/{project_id}/instance/{instance_id}/whitelist @API DCS PUT /v2/{project_id}/instances/{instance_id}/configs @API DCS GET /v2/{project_id}/instances/{instance_id}/configs @API DCS PUT /v2/{project_id}/instances/status @API DCS PUT /v2/{project_id}/instances/{instance_id}/ssl @API DCS GET /v2/{project_id}/instances/{instance_id}/ssl @API DCS GET /v2/{project_id}/instances/{instance_id}/tags @API DCS PUT /v2/{project_id}/instances/{instance_id} @API DCS PUT /v2/{project_id}/instances/{instance_id}/password @API DCS POST /v2/{project_id}/instances/{instance_id}/resize @API DCS POST /v3/{project_id}/instances/{instance_id}/tags/action @API EPS POST /v1.0/enterprise-projects/{enterprise_project_id}/resources-migrat @API DCS DELETE /v2/{project_id}/instances/{instance_id} @API BSS GET /v2/orders/customer-orders/details/{order_id} @API BSS POST /v2/orders/suscriptions/resources/query @API BSS POST /v2/orders/subscriptions/resources/autorenew/{instance_id} @API BSS DELETE /v2/orders/subscriptions/resources/autorenew/{instance_id} @API BSS POST /v2/orders/subscriptions/resources/unsubscribe
func ResourceDcsParameters ¶
func ResourceDcsRestore ¶
Types ¶
type ParamsAttributes ¶
type ParamsConfig ¶
type ParamsConfig struct {
Config []ParamsAttributes `json:"redis_config"`
}
type PutResult ¶ added in v1.12.6
PutResult is a struct from which can get the result of put method
func Put ¶ added in v1.12.6
func Put(client *golangsdk.ServiceClient, id string, ops WhitelistOptsBuilder) (r PutResult)
Put an instance whitelist with given parameters.
type ReadRespBody ¶
type ReadRespBody struct { RestoreRecordResponse []struct { Status string `json:"status"` Progress string `json:"progress"` RestoreId string `json:"restore_id"` BackupId string `json:"backup_id"` RestoreRemark string `json:"restore_remark"` BackupRemark interface{} `json:"backup_remark"` CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at"` RestoreName string `json:"restore_name"` BackupName string `json:"backup_name"` SourceInstanceId string `json:"sourceInstanceId"` SourceInstanceName string `json:"sourceInstanceName"` ErrorCode interface{} `json:"error_code"` } `json:"restore_record_response"` TotalNum int `json:"total_num"` }
type WhitelistGroupOpts ¶ added in v1.12.6
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 ¶ added in v1.12.6
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.
func (WhitelistOpts) ToInstanceWhitelistMap ¶ added in v1.12.6
func (ops WhitelistOpts) ToInstanceWhitelistMap() (map[string]interface{}, error)
ToInstanceWhitelistMap is used for type convert
type WhitelistOptsBuilder ¶ added in v1.12.6
WhitelistOptsBuilder is used for creating, updating, deleting instance whitelists parameters. any struct providing the parameters should implement this interface
type WhitelistResult ¶ added in v1.12.6
WhitelistResult is a struct from which can get the result of get method
func Get ¶ added in v1.12.6
func Get(client *golangsdk.ServiceClient, id string) (r WhitelistResult)
Get the instance whitelist groups by instance id