Documentation
¶
Overview ¶
API to manage load balancer instance
Index ¶
- type BackendCreateRequest
- type BackendDeleteRequest
- type BackendServerAddRequest
- type BackendServerDeleteRequest
- type BackendServerUpdateRequest
- type BackendUpdateRequest
- type ConfigResetRequest
- type CreateRequest
- type DeleteRequest
- type DisableEnableRequest
- type FrontendBindDeleteRequest
- type FrontendBindRequest
- type FrontendBindUpdateRequest
- type FrontendCreateRequest
- type FrontendDeleteRequest
- type GetRequest
- type ItemBackend
- type ItemBinding
- type ItemFrontend
- type ItemLoadBalancer
- type ItemServer
- type LB
- func (l LB) BackendCreate(ctx context.Context, req BackendCreateRequest) (bool, error)
- func (l LB) BackendDelete(ctx context.Context, req BackendDeleteRequest) (bool, error)
- func (l LB) BackendServerAdd(ctx context.Context, req BackendServerAddRequest) (bool, error)
- func (l LB) BackendServerDelete(ctx context.Context, req BackendServerDeleteRequest) (bool, error)
- func (l LB) BackendServerUpdate(ctx context.Context, req BackendServerUpdateRequest) (bool, error)
- func (l LB) BackendUpdate(ctx context.Context, req BackendUpdateRequest) (bool, error)
- func (l LB) ConfigReset(ctx context.Context, req ConfigResetRequest) (bool, error)
- func (l LB) Create(ctx context.Context, req CreateRequest) (string, error)
- func (l LB) Delete(ctx context.Context, req DeleteRequest) (bool, error)
- func (l LB) Disable(ctx context.Context, req DisableEnableRequest) (bool, error)
- func (l LB) Enable(ctx context.Context, req DisableEnableRequest) (bool, error)
- func (l LB) FrontendBind(ctx context.Context, req FrontendBindRequest) (string, error)
- func (l LB) FrontendBindDelete(ctx context.Context, req FrontendBindDeleteRequest) (string, error)
- func (l LB) FrontendBindUpdate(ctx context.Context, req FrontendBindUpdateRequest) (string, error)
- func (l LB) FrontendCreate(ctx context.Context, req FrontendCreateRequest) (bool, error)
- func (l LB) FrontendDelete(ctx context.Context, req FrontendDeleteRequest) (bool, error)
- func (l LB) Get(ctx context.Context, req GetRequest) (*RecordLB, error)
- func (l LB) List(ctx context.Context, req ListRequest) (ListLB, error)
- func (l LB) ListDeleted(ctx context.Context, req ListDeletedRequest) (ListLB, error)
- func (l LB) Restart(ctx context.Context, req RestartRequest) (bool, error)
- func (l LB) Restore(ctx context.Context, req RestoreRequest) (bool, error)
- func (l LB) Start(ctx context.Context, req StartRequest) (bool, error)
- func (l LB) Stop(ctx context.Context, req StopRequest) (bool, error)
- func (l LB) Update(ctx context.Context, req UpdateRequest) (bool, error)
- type ListBackends
- type ListBindings
- type ListDeletedRequest
- type ListFrontends
- type ListLB
- type ListRequest
- type ListServers
- type RecordLB
- type RecordNode
- type RecordServerSettings
- type RestartRequest
- type RestoreRequest
- type StartRequest
- type StopRequest
- type UpdateRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackendCreateRequest ¶
type BackendCreateRequest struct {
// ID of the load balancer instance to backendCreate
// Required: true
LBID uint64 `url:"lbId" json:"lbId"`
// Must be unique among all backends of this load balancer - name of the new backend to create
// Required: true
BackendName string `url:"backendName" json:"backendName"`
// Algorithm
// Should be one of:
// - roundrobin
// - static-rr
// - leastconn
// Required: false
Algorithm string `url:"algorithm,omitempty" json:"algorithm,omitempty"`
// Interval in milliseconds between two consecutive availability
// checks of the server that is considered available
// Required: false
Inter uint64 `url:"inter,omitempty" json:"inter,omitempty"`
// Interval in milliseconds between two consecutive checks to
// restore the availability of a server that is currently considered unavailable
// Required: false
DownInter uint64 `url:"downinter,omitempty" json:"downinter,omitempty"`
// Number of checks that the server must pass in order to get the available status
// and be included in the balancing scheme again
// Required: false
Rise uint64 `url:"rise,omitempty" json:"rise,omitempty"`
// Number of consecutive failed availability checks,
// after which the previously considered available server receives the status of
// unavailable and is temporarily excluded from the balancing scheme
// Required: false
Fall uint64 `url:"fall,omitempty" json:"fall,omitempty"`
// Interval in milliseconds from the moment the server receives the available status,
// after which the number of actually allowed connections to this server will be returned to 100% of the set limit
// Required: false
SlowStart uint64 `url:"slowstart,omitempty" json:"slowstart,omitempty"`
// Limit of simultaneous connections to the server. When this limit is reached,
// the server is temporarily excluded from the balancing scheme
// Required: false
MaxConn uint64 `url:"maxconn,omitempty" json:"maxconn,omitempty"`
// Limit of connections waiting in the queue.
// When this limit is reached, all subsequent connections will be forwarded to other servers
// Required: false
MaxQueue uint64 `url:"maxqueue,omitempty" json:"maxqueue,omitempty"`
// Server weight for use in weight balancing algorithms
// Required: false
Weight uint64 `url:"weight,omitempty" json:"weight,omitempty"`
}
Request struct for create backend
type BackendDeleteRequest ¶
type BackendDeleteRequest struct {
// ID of the load balancer instance to BackendDelete
// Required: true
LBID uint64 `url:"lbId" json:"lbId"`
// Cannot be emtpy string - name of the backend to delete
// Required: true
BackendName string `url:"backendName" json:"backendName"`
}
Request struct for delete backend
type BackendServerAddRequest ¶
type BackendServerAddRequest struct {
// ID of the load balancer instance to BackendServerAdd
// Required: true
LBID uint64 `url:"lbId" json:"lbId"`
// Must match one of the existing backens - name of the backend to add servers to
// Required: true
BackendName string `url:"backendName" json:"backendName"`
// Must be unique among all servers defined for this backend - name of the server definition to add
// Required: true
ServerName string `url:"serverName" json:"serverName"`
// IP address of the server
// Required: true
Address string `url:"address" json:"address"`
// Port number on the server
// Required: true
Port uint64 `url:"port" json:"port"`
// Set to disabled if this server should be used regardless of its state
// Required: false
Check string `url:"check,omitempty" json:"check,omitempty"`
// Interval in milliseconds between two consecutive availability checks of the server that is considered available
// Required: false
Inter uint64 `url:"inter,omitempty" json:"inter,omitempty"`
// Interval in milliseconds between two consecutive checks to restore
// the availability of a server that is currently considered unavailable
// Required: false
DownInter uint64 `url:"downinter,omitempty" json:"downinter,omitempty"`
// Number of checks that the server must pass in order to get
// the available status and be included in the balancing scheme again
// Required: false
Rise uint64 `url:"rise,omitempty" json:"rise,omitempty"`
// Number of consecutive failed availability checks,
// after which the previously considered available server receives the status of unavailable and
// is temporarily excluded from the balancing scheme
// Required: false
Fall uint64 `url:"fall,omitempty" json:"fall,omitempty"`
// Interval in milliseconds from the moment the server receives the available status,
// after which the number of actually allowed connections to this server will be returned to 100% of the set limit
// Required: false
SlowStart uint64 `url:"slowstart,omitempty" json:"slowstart,omitempty"`
// Limit of simultaneous connections to the server. When this limit is reached, the server is temporarily excluded from the balancing scheme
// Required: false
MaxConn uint64 `url:"maxconn,omitempty" json:"maxconn,omitempty"`
// Limit of connections waiting in the queue. When this limit is reached, all subsequent connections will be forwarded to other servers
// Required: false
MaxQueue uint64 `url:"maxqueue,omitempty" json:"maxqueue,omitempty"`
// Server weight for use in weight balancing algorithms
// Required: false
Weight uint64 `url:"weight,omitempty" json:"weight,omitempty"`
}
Request struct for add server definition to the backend
type BackendServerDeleteRequest ¶
type BackendServerDeleteRequest struct {
// ID of the load balancer instance to BackendServerDelete
// Required: true
LBID uint64 `url:"lbId" json:"lbId"`
// Must match one of the existing backens - name of the backend to add servers to
// Required: true
BackendName string `url:"backendName" json:"backendName"`
// Must be unique among all servers defined for this backend - name of the server definition to add
// Required: true
ServerName string `url:"serverName" json:"serverName"`
}
Request struct for delete server definition
type BackendServerUpdateRequest ¶
type BackendServerUpdateRequest struct {
// ID of the load balancer instance to BackendServerAdd
// Required: true
LBID uint64 `url:"lbId" json:"lbId"`
// Must match one of the existing backens - name of the backend to add servers to
// Required: true
BackendName string `url:"backendName" json:"backendName"`
// Must be unique among all servers defined for this backend - name of the server definition to add
// Required: true
ServerName string `url:"serverName" json:"serverName"`
// IP address of the server
// Required: true
Address string `url:"address" json:"address"`
// Port number on the server
// Required: true
Port uint64 `url:"port" json:"port"`
// Set to disabled if this server should be used regardless of its state
// Required: false
Check string `url:"check,omitempty" json:"check,omitempty"`
// Interval in milliseconds between two consecutive availability checks of the server that is considered available
// Required: false
Inter uint64 `url:"inter,omitempty" json:"inter,omitempty"`
// Interval in milliseconds between two consecutive checks to restore
// the availability of a server that is currently considered unavailable
// Required: false
DownInter uint64 `url:"downinter,omitempty" json:"downinter,omitempty"`
// Number of checks that the server must pass in order to get
// the available status and be included in the balancing scheme again
// Required: false
Rise uint64 `url:"rise,omitempty" json:"rise,omitempty"`
// Number of consecutive failed availability checks,
// after which the previously considered available server receives the status of unavailable and
// is temporarily excluded from the balancing scheme
// Required: false
Fall uint64 `url:"fall,omitempty" json:"fall,omitempty"`
// Interval in milliseconds from the moment the server receives the available status,
// after which the number of actually allowed connections to this server will be returned to 100% of the set limit
// Required: false
SlowStart uint64 `url:"slowstart,omitempty" json:"slowstart,omitempty"`
// Limit of simultaneous connections to the server. When this limit is reached, the server is temporarily excluded from the balancing scheme
// Required: false
MaxConn uint64 `url:"maxconn,omitempty" json:"maxconn,omitempty"`
// Limit of connections waiting in the queue. When this limit is reached, all subsequent connections will be forwarded to other servers
// Required: false
MaxQueue uint64 `url:"maxqueue,omitempty" json:"maxqueue,omitempty"`
// Server weight for use in weight balancing algorithms
// Required: false
Weight uint64 `url:"weight,omitempty" json:"weight,omitempty"`
}
Request struct for update server
type BackendUpdateRequest ¶
type BackendUpdateRequest struct {
// ID of the load balancer instance to backendCreate
// Required: true
LBID uint64 `url:"lbId" json:"lbId"`
// Must be unique among all backends of this load balancer - name of the new backend to create
// Required: true
BackendName string `url:"backendName" json:"backendName"`
// Algorithm
// Should be one of:
// - roundrobin
// - static-rr
// - leastconn
// Required: false
Algorithm string `url:"algorithm,omitempty" json:"algorithm,omitempty"`
// Interval in milliseconds between two consecutive availability
// checks of the server that is considered available
// Required: false
Inter uint64 `url:"inter,omitempty" json:"inter,omitempty"`
// Interval in milliseconds between two consecutive checks to
// restore the availability of a server that is currently considered unavailable
// Required: false
DownInter uint64 `url:"downinter,omitempty" json:"downinter,omitempty"`
// Number of checks that the server must pass in order to get the available status
// and be included in the balancing scheme again
// Required: false
Rise uint64 `url:"rise,omitempty" json:"rise,omitempty"`
// Number of consecutive failed availability checks,
// after which the previously considered available server receives the status of
// unavailable and is temporarily excluded from the balancing scheme
// Required: false
Fall uint64 `url:"fall,omitempty" json:"fall,omitempty"`
// Interval in milliseconds from the moment the server receives the available status,
// after which the number of actually allowed connections to this server will be returned to 100% of the set limit
// Required: false
SlowStart uint64 `url:"slowstart,omitempty" json:"slowstart,omitempty"`
// Limit of simultaneous connections to the server. When this limit is reached,
// the server is temporarily excluded from the balancing scheme
// Required: false
MaxConn uint64 `url:"maxconn,omitempty" json:"maxconn,omitempty"`
// Limit of connections waiting in the queue.
// When this limit is reached, all subsequent connections will be forwarded to other servers
// Required: false
MaxQueue uint64 `url:"maxqueue,omitempty" json:"maxqueue,omitempty"`
// Server weight for use in weight balancing algorithms
// Required: false
Weight uint64 `url:"weight,omitempty" json:"weight,omitempty"`
}
Request struct for update backend
type ConfigResetRequest ¶
type ConfigResetRequest struct {
// ID of the load balancer instance to ConfigReset
// Required: true
LBID uint64 `url:"lbId" json:"lbId"`
}
Request struct for reset config
type CreateRequest ¶
type CreateRequest struct {
// ID of the resource group where this load balancer instance will be located
// Required: true
RGID uint64 `url:"rgId" json:"rgId"`
// Name of the load balancer.
// Must be unique among all load balancers in this Resource Group
// Required: true
Name string `url:"name" json:"name"`
// External network to connect this load balancer to
// Required: true
ExtNetID uint64 `url:"extnetId" json:"extnetId"`
// Internal network (VINS) to connect this load balancer to
// Required: true
VINSID uint64 `url:"vinsId" json:"vinsId"`
// Start now Load balancer
// Required: false
Start bool `url:"start" json:"start"`
// Text description of this load balancer
// Required: false
Description string `url:"desc,omitempty" json:"desc,omitempty"`
}
Request struct for create load balancer
type DeleteRequest ¶
type DeleteRequest struct {
// ID of the load balancer instance to delete
// Required: true
LBID uint64 `url:"lbId" json:"lbId"`
// Set to true to delete load balancer immediately bypassing recycle bin
// Required: false
Permanently bool `url:"permanently,omitempty" json:"permanently,omitempty"`
}
Request struct for delete load balancer
type DisableEnableRequest ¶
type DisableEnableRequest struct {
// ID of the load balancer instance to disable/enable
// Required: true
LBID uint64 `url:"lbId" json:"lbId"`
}
Request struct for disable/enable load balancer
type FrontendBindDeleteRequest ¶
type FrontendBindDeleteRequest struct {
// ID of the load balancer instance to FrontendBindDelete
// Required: true
LBID uint64 `url:"lbId" json:"lbId"`
// Name of the frontend to delete
// Required: true
FrontendName string `url:"frontendName" json:"frontendName"`
// Name of the binding to delete
// Required: true
BindingName string `url:"bindingName" json:"bindingName"`
}
Request struct for delete bind
type FrontendBindRequest ¶
type FrontendBindRequest struct {
// ID of the load balancer instance to FrontendBind
// Required: true
LBID uint64 `url:"lbId" json:"lbId"`
// Name of the frontend to update
// Required: true
FrontendName string `url:"frontendName" json:"frontendName"`
// Name of the binding to update
// Required: true
BindingName string `url:"bindingName" json:"bindingName"`
// If specified must be within the IP range of either Ext Net or ViNS,
// where this load balancer is connected - new IP address to use for this binding.
// If omitted, current IP address is retained
// Required: false
BindingAddress string `url:"bindingAddress,omitempty" json:"bindingAddress,omitempty"`
// New port number to use for this binding.
// If omitted, current port number is retained
// Required: false
BindingPort uint64 `url:"bindingPort,omitempty" json:"bindingPort,omitempty"`
}
Request struct for frontend bind
type FrontendBindUpdateRequest ¶
type FrontendBindUpdateRequest struct {
// ID of the load balancer instance to FrontendBindUpdate
// Required: true
LBID uint64 `url:"lbId" json:"lbId"`
// Name of the frontend to update
// Required: true
FrontendName string `url:"frontendName" json:"frontendName"`
// Name of the binding to update
// Required: true
BindingName string `url:"bindingName" json:"bindingName"`
// If specified must be within the IP range of either Ext Net or ViNS,
// where this load balancer is connected - new IP address to use for this binding.
// If omitted, current IP address is retained
// Required: false
BindingAddress string `url:"bindingAddress,omitempty" json:"bindingAddress,omitempty"`
// New port number to use for this binding.
// If omitted, current port number is retained
// Required: false
BindingPort uint64 `url:"bindingPort,omitempty" json:"bindingPort,omitempty"`
}
Request struct for update binding
type FrontendCreateRequest ¶
type FrontendCreateRequest struct {
// ID of the load balancer instance to FrontendCreate
// Required: true
LBID uint64 `url:"lbId" json:"lbId"`
// Must be unique among all frontends of
// this load balancer - name of the new frontend to create
// Required: true
FrontendName string `url:"frontendName" json:"frontendName"`
// Should be one of the backends existing on
// this load balancer - name of the backend to use
// Required: true
BackendName string `url:"backendName" json:"backendName"`
}
Request struct for create frontend
type FrontendDeleteRequest ¶
type FrontendDeleteRequest struct {
// ID of the load balancer instance to FrontendDelete
// Required: true
LBID uint64 `url:"lbId" json:"lbId"`
// Name of the frontend to delete
// Required: true
FrontendName string `url:"frontendName" json:"frontendName"`
}
Request struct for delete frontend
type GetRequest ¶
type GetRequest struct {
// ID of the load balancer to get details for
// Required: true
LBID uint64 `url:"lbId" json:"lbId"`
}
Request struct for get detailed information about load balancer
type ItemBackend ¶
type ItemBackend struct {
// Algorithm
Algorithm string `json:"algorithm"`
// GUID
GUID string `json:"guid"`
// Name
Name string `json:"name"`
// Server settings
ServerDefaultSettings RecordServerSettings `json:"serverDefaultSettings"`
// List of servers
Servers ListServers `json:"servers"`
}
Main information about backend
type ItemBinding ¶
type ItemBinding struct {
// Address
Address string `json:"address"`
// GUID
GUID string `json:"guid"`
// Name
Name string `json:"name"`
// Port
Port uint64 `json:"port"`
}
Main information about bindings
type ItemFrontend ¶
type ItemFrontend struct {
// Backend
Backend string `json:"backend"`
// List of bindings
Bindings ListBindings `json:"bindings"`
// GUID
GUID string `json:"guid"`
// Name
Name string `json:"name"`
}
Main information about frontend
type ItemLoadBalancer ¶
type ItemLoadBalancer struct {
// DPAPIPassword
DPAPIPassword string `json:"dpApiPassword"`
// Detailed information about load balancer
RecordLB
}
Main information about load balancer
type ItemServer ¶
type ItemServer struct {
// Address
Address string `json:"address"`
// Check
Check string `json:"check"`
// GUID
GUID string `json:"guid"`
// Name
Name string `json:"name"`
// Port
Port uint64 `json:"port"`
// Server settings
ServerSettings RecordServerSettings `json:"serverSettings"`
}
Main information about server
type LB ¶
type LB struct {
// contains filtered or unexported fields
}
Structure for creating request to load balancer
func (LB) BackendCreate ¶
BackendCreate creates new backend on the specified load balancer
func (LB) BackendDelete ¶
BackendDelete deletes backend from the specified load balancer. Warning: you cannot undo this action!
func (LB) BackendServerAdd ¶
BackendServerAdd adds server definition to the backend on the specified load balancer
func (LB) BackendServerDelete ¶
BackendServerDelete deletes server definition from the backend on the specified load balancer. Warning: you cannot undo this action!
func (LB) BackendServerUpdate ¶
BackendServerUpdate updates server definition on the backend of load balancer
func (LB) BackendUpdate ¶
BackendUpdate updates existing backend on the specified load balancer. Note that backend name cannot be changed
func (LB) ConfigReset ¶
ConfigReset reset current software configuration of the specified load balancer. Warning: this action cannot be undone!
func (LB) FrontendBind ¶
FrontendBind bind frontend from specified load balancer instance
func (LB) FrontendBindDelete ¶
FrontendBindDelete deletes binding from the specified load balancer frontend
func (LB) FrontendBindUpdate ¶
FrontendBindUpdate updates binding for the specified load balancer frontend
func (LB) FrontendCreate ¶
FrontendCreate creates new frontend on the specified load balancer
func (LB) FrontendDelete ¶
FrontendDelete deletes frontend from the specified load balancer. Warning: you cannot undo this action!
func (LB) ListDeleted ¶
ListDeleted gets list of deleted load balancers
type ListDeletedRequest ¶
type ListDeletedRequest struct {
// Page number
// Required: false
Page uint64 `url:"page,omitempty" json:"page,omitempty"`
// Page size
// Required: true
Size uint64 `url:"size,omitempty" json:"size,omitempty"`
}
Request struct for get list of deleted load balancers
type ListRequest ¶
type ListRequest struct {
// Included deleted load balancers
// Required: false
IncludeDeleted bool `url:"includedeleted,omitempty" json:"includedeleted,omitempty"`
// Page number
// Required: false
Page uint64 `url:"page,omitempty" json:"page,omitempty"`
// Page size
// Required: false
Size uint64 `url:"size,omitempty" json:"size,omitempty"`
}
Request struct for get list of load balancers
type RecordLB ¶
type RecordLB struct {
//HAMode
HAMode bool `json:"HAmode"`
// Access Control List
ACL interface{} `json:"acl"`
// List of load balancer backends
Backends ListBackends `json:"backends"`
// Created by
CreatedBy string `json:"createdBy"`
// Created time
CreatedTime uint64 `json:"createdTime"`
// Deleted by
DeletedBy string `json:"deletedBy"`
// Deleted time
DeletedTime uint64 `json:"deletedTime"`
// Description
Description string `json:"desc"`
// DPAPIUser
DPAPIUser string `json:"dpApiUser"`
// External network ID
ExtNetID uint64 `json:"extnetId"`
// List of load balancer frontends
Frontends ListFrontends `json:"frontends"`
// Grid ID
GID uint64 `json:"gid"`
// GUID
GUID uint64 `json:"guid"`
// ID
ID uint64 `json:"id"`
// Image ID
ImageID uint64 `json:"imageId"`
// Milestones
Milestones uint64 `json:"milestones"`
// Name
Name string `json:"name"`
// Primary node
PrimaryNode RecordNode `json:"primaryNode"`
// Resource group ID
RGID uint64 `json:"rgId"`
// Resource group name
RGName string `json:"rgName"`
// Secondary node
SecondaryNode RecordNode `json:"secondaryNode"`
// Status
Status string `json:"status"`
// Tech status
TechStatus string `json:"techStatus"`
// Updated by
UpdatedBy string `json:"updatedBy"`
// Updated time
UpdatedTime uint64 `json:"updatedTime"`
// VINS ID
VINSID uint64 `json:"vinsId"`
}
Detailed information about load balancer
type RecordNode ¶
type RecordNode struct {
// Backend IP
BackendIP string `json:"backendIp"`
// Compute ID
ComputeID uint64 `json:"computeId"`
// Frontend IP
FrontendIP string `json:"frontendIp"`
// GUID
GUID string `json:"guid"`
// MGMTIP
MGMTIP string `json:"mgmtIp"`
// Network ID
NetworkID uint64 `json:"networkId"`
}
Main information about node
type RecordServerSettings ¶
type RecordServerSettings struct {
// Inter
Inter uint64 `json:"inter"`
// GUID
GUID string `json:"guid"`
// DownInter
DownInter uint64 `json:"downinter"`
// Rise
Rise uint64 `json:"rise"`
// Fall
Fall uint64 `json:"fall"`
// SlowStart
SlowStart uint64 `json:"slowstart"`
// Max connections
MaxConn uint64 `json:"maxconn"`
// Max queue
MaxQueue uint64 `json:"maxqueue"`
// Weight
Weight uint64 `json:"weight"`
}
Server settings
type RestartRequest ¶
type RestartRequest struct {
// ID of the load balancer instance to restart
// Required: true
LBID uint64 `url:"lbId" json:"lbId"`
}
Request struct for restart load balancer
type RestoreRequest ¶
type RestoreRequest struct {
// ID of the load balancer instance to restore
// Required: true
LBID uint64 `url:"lbId" json:"lbId"`
}
Request struct for restore load balancer
type StartRequest ¶ added in v1.1.0
type StartRequest struct {
// ID of the load balancer instance to start
// Required: true
LBID uint64 `url:"lbId" json:"lbId"`
}
Request struct for start load balancer
type StopRequest ¶ added in v1.1.0
type StopRequest struct {
// ID of the load balancer instance to stop
// Required: true
LBID uint64 `url:"lbId" json:"lbId"`
}
Request struct for stop load balancer
type UpdateRequest ¶
type UpdateRequest struct {
// ID of the load balancer to update
// Required: true
LBID uint64 `url:"lbId" json:"lbId"`
// New description of this load balancer.
// If omitted, current description is retained
// Required: true
Description string `url:"desc" json:"desc"`
}
Request struct for update load balancer
Source Files
¶
- backend_create.go
- backend_delete.go
- backend_server_add.go
- backend_server_delete.go
- backend_server_update.go
- backend_update.go
- config_reset.go
- create.go
- delete.go
- disable_enable.go
- frontend_bind.go
- frontend_bind_delete.go
- frontend_bind_update.go
- frontend_create.go
- frontend_delete.go
- get.go
- lb.go
- list.go
- list_deleted.go
- models.go
- restart.go
- restore.go
- start.go
- stop.go
- update.go