dcs

package
v1.12.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 16, 2025 License: MPL-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResourceDcsInstance added in v1.12.6

func ResourceDcsInstance() *schema.Resource

@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 ResourceDcsParameters() *schema.Resource

func ResourceDcsRestore

func ResourceDcsRestore() *schema.Resource

Types

type ParamsAttributes

type ParamsAttributes struct {
	ParamName      string `json:"param_name"`
	ParamValue     string `json:"param_value"`
	ValueType      string `json:"value_type"`
	NeedRestart    bool   `json:"need_restart"`
	UserPermission string `json:"user_permission"`
}

type ParamsConfig

type ParamsConfig struct {
	Config []ParamsAttributes `json:"redis_config"`
}

type PutResult added in v1.12.6

type PutResult struct {
	golangsdk.ErrResult
}

PutResult is a struct from which can get the result of put method

func Put added in v1.12.6

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

type WhitelistOptsBuilder interface {
	ToInstanceWhitelistMap() (map[string]interface{}, error)
}

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

type WhitelistResult struct {
	golangsdk.Result
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL