Documentation ¶
Index ¶
- Constants
- type AdjustmentType
- type Client
- func NewClient(accessKeyId, accessKeySecret string) *Client
- func NewClientWithEndpoint(endpoint string, accessKeyId, accessKeySecret string) *Client
- func NewClientWithRegion(endpoint string, accessKeyId, accessKeySecret string, regionID common.Region) *Client
- func NewESSClient(accessKeyId, accessKeySecret string, regionID common.Region) *Client
- func (client *Client) CreateScalingConfiguration(args *CreateScalingConfigurationArgs) (resp *CreateScalingConfigurationResponse, err error)
- func (client *Client) CreateScalingGroup(args *CreateScalingGroupArgs) (resp *CreateScalingGroupResponse, err error)
- func (client *Client) CreateScalingRule(args *CreateScalingRuleArgs) (resp *CreateScalingRuleResponse, err error)
- func (client *Client) CreateScheduledTask(args *CreateScheduledTaskArgs) (resp *CreateScheduledTaskResponse, err error)
- func (client *Client) DeleteScalingConfiguration(args *DeleteScalingConfigurationArgs) (resp *DeleteScalingConfigurationResponse, err error)
- func (client *Client) DeleteScalingGroup(args *DeleteScalingGroupArgs) (resp *DeleteScalingGroupResponse, err error)
- func (client *Client) DeleteScalingRule(args *DeleteScalingRuleArgs) (resp *DeleteScalingRuleResponse, err error)
- func (client *Client) DeleteScheduledTask(args *DeleteScheduledTaskArgs) (resp *DeleteScheduledTaskResponse, err error)
- func (client *Client) DescribeScalingConfigurations(args *DescribeScalingConfigurationsArgs) (configs []ScalingConfigurationItemType, pagination *common.PaginationResult, ...)
- func (client *Client) DescribeScalingGroups(args *DescribeScalingGroupsArgs) (groups []ScalingGroupItemType, pagination *common.PaginationResult, err error)
- func (client *Client) DescribeScalingInstances(args *DescribeScalingInstancesArgs) (instances []ScalingInstanceItemType, pagination *common.PaginationResult, ...)
- func (client *Client) DescribeScalingRules(args *DescribeScalingRulesArgs) (configs []ScalingRuleItemType, pagination *common.PaginationResult, err error)
- func (client *Client) DescribeScheduledTasks(args *DescribeScheduledTasksArgs) (tasks []ScheduledTaskItemType, pagination *common.PaginationResult, err error)
- func (client *Client) DisableScalingGroup(args *DisableScalingGroupArgs) (resp *DisableScalingGroupResponse, err error)
- func (client *Client) EnableScalingGroup(args *EnableScalingGroupArgs) (resp *EnableScalingGroupResponse, err error)
- func (client *Client) ModifyScalingGroup(args *ModifyScalingGroupArgs) (resp *ModifyScalingGroupResponse, err error)
- func (client *Client) ModifyScalingRule(args *ModifyScalingRuleArgs) (resp *ModifyScalingRuleResponse, err error)
- func (client *Client) ModifyScheduledTask(args *ModifyScheduledTaskArgs) (resp *ModifyScheduledTaskResponse, err error)
- type CreateScalingConfigurationArgs
- type CreateScalingConfigurationResponse
- type CreateScalingGroupArgs
- type CreateScalingGroupResponse
- type CreateScalingRuleArgs
- type CreateScalingRuleResponse
- type CreateScheduledTaskArgs
- type CreateScheduledTaskResponse
- type DBInstanceIdSetType
- type DataDiskItemType
- type DataDiskType
- type DeleteScalingConfigurationArgs
- type DeleteScalingConfigurationResponse
- type DeleteScalingGroupArgs
- type DeleteScalingGroupResponse
- type DeleteScalingRuleArgs
- type DeleteScalingRuleResponse
- type DeleteScheduledTaskArgs
- type DeleteScheduledTaskResponse
- type DescribeInstancesResponse
- type DescribeScalingConfigurationsArgs
- type DescribeScalingConfigurationsResponse
- type DescribeScalingGroupsArgs
- type DescribeScalingInstancesArgs
- type DescribeScalingInstancesResponse
- type DescribeScalingRulesArgs
- type DescribeScalingRulesResponse
- type DescribeScheduledTasksArgs
- type DescribeScheduledTasksResponse
- type DisableScalingGroupArgs
- type DisableScalingGroupResponse
- type EnableScalingGroupArgs
- type EnableScalingGroupResponse
- type LifecycleState
- type ModifyScalingGroupArgs
- type ModifyScalingGroupResponse
- type ModifyScalingRuleArgs
- type ModifyScalingRuleResponse
- type ModifyScheduledTaskArgs
- type ModifyScheduledTaskResponse
- type RecurrenceType
- type RemovalPolicySetType
- type ScalingConfigurationItemType
- type ScalingGroupItemType
- type ScalingInstanceItemType
- type ScalingRuleItemType
- type ScheduledTaskItemType
Constants ¶
const ( // ESSDefaultEndpoint is the default API endpoint of ESS services ESSDefaultEndpoint = "https://ess.aliyuncs.com" ESSAPIVersion = "2014-08-28" ESSServiceCode = "ess" )
const ( Active = LifecycleState("Active") Inacitve = LifecycleState("Inacitve") Deleting = LifecycleState("Deleting") InService = LifecycleState("InService") Pending = LifecycleState("Pending") Removing = LifecycleState("Removing") )
const ( QuantityChangeInCapacity = AdjustmentType("QuantityChangeInCapacity") PercentChangeInCapacity = AdjustmentType("PercentChangeInCapacity") TotalCapacity = AdjustmentType("TotalCapacity") )
const ( Daily = RecurrenceType("Daily") Weekly = RecurrenceType("Weekly") Monthly = RecurrenceType("Monthly") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdjustmentType ¶
type AdjustmentType string
type Client ¶
func NewClientWithEndpoint ¶
func NewClientWithRegion ¶
func NewESSClient ¶
func (*Client) CreateScalingConfiguration ¶
func (client *Client) CreateScalingConfiguration(args *CreateScalingConfigurationArgs) (resp *CreateScalingConfigurationResponse, err error)
CreateScalingConfiguration create scaling configuration
You can read doc at https://help.aliyun.com/document_detail/25944.html?spm=5176.doc25942.6.625.KcE5ir
func (*Client) CreateScalingGroup ¶
func (client *Client) CreateScalingGroup(args *CreateScalingGroupArgs) (resp *CreateScalingGroupResponse, err error)
CreateScalingGroup create scaling group
You can read doc at https://help.aliyun.com/document_detail/25936.html?spm=5176.doc25940.6.617.vm6LXF
func (*Client) CreateScalingRule ¶
func (client *Client) CreateScalingRule(args *CreateScalingRuleArgs) (resp *CreateScalingRuleResponse, err error)
CreateScalingRule create scaling rule
You can read doc at https://help.aliyun.com/document_detail/25948.html?spm=5176.doc25944.6.629.FLkNnj
func (*Client) CreateScheduledTask ¶
func (client *Client) CreateScheduledTask(args *CreateScheduledTaskArgs) (resp *CreateScheduledTaskResponse, err error)
CreateScheduledTask create schedule task
You can read doc at https://help.aliyun.com/document_detail/25957.html?spm=5176.doc25950.6.638.FfQ0BR
func (*Client) DeleteScalingConfiguration ¶
func (client *Client) DeleteScalingConfiguration(args *DeleteScalingConfigurationArgs) (resp *DeleteScalingConfigurationResponse, err error)
DeleteScalingConfiguration delete scaling configuration
You can read doc at https://help.aliyun.com/document_detail/25946.html?spm=5176.doc25944.6.627.MjkuuL
func (*Client) DeleteScalingGroup ¶
func (client *Client) DeleteScalingGroup(args *DeleteScalingGroupArgs) (resp *DeleteScalingGroupResponse, err error)
DeleteScalingGroup delete scaling group
You can read doc at https://help.aliyun.com/document_detail/25941.html?spm=5176.doc25940.6.622.mRBCuw
func (*Client) DeleteScalingRule ¶
func (client *Client) DeleteScalingRule(args *DeleteScalingRuleArgs) (resp *DeleteScalingRuleResponse, err error)
DeleteScalingRule delete scaling rule
You can read doc at https://help.aliyun.com/document_detail/25951.html?spm=5176.doc25950.6.632.HbPLMZ
func (*Client) DeleteScheduledTask ¶
func (client *Client) DeleteScheduledTask(args *DeleteScheduledTaskArgs) (resp *DeleteScheduledTaskResponse, err error)
DeleteScheduledTask delete schedule task
You can read doc at https://help.aliyun.com/document_detail/25960.html?spm=5176.doc25959.6.641.aGdNuW
func (*Client) DescribeScalingConfigurations ¶
func (client *Client) DescribeScalingConfigurations(args *DescribeScalingConfigurationsArgs) (configs []ScalingConfigurationItemType, pagination *common.PaginationResult, err error)
DescribeScalingConfigurations describes scaling configuration
You can read doc at https://help.aliyun.com/document_detail/25945.html?spm=5176.doc25944.6.626.knG0zz
func (*Client) DescribeScalingGroups ¶
func (client *Client) DescribeScalingGroups(args *DescribeScalingGroupsArgs) (groups []ScalingGroupItemType, pagination *common.PaginationResult, err error)
DescribeScalingGroups describes scaling groups
You can read doc at https://help.aliyun.com/document_detail/25938.html?spm=5176.doc25937.6.619.sUUOT7
func (*Client) DescribeScalingInstances ¶
func (client *Client) DescribeScalingInstances(args *DescribeScalingInstancesArgs) (instances []ScalingInstanceItemType, pagination *common.PaginationResult, err error)
DescribeScalingInstances describes scaling instances
You can read doc at https://help.aliyun.com/document_detail/25942.html?spm=5176.doc25941.6.623.2xA0Uj
func (*Client) DescribeScalingRules ¶
func (client *Client) DescribeScalingRules(args *DescribeScalingRulesArgs) (configs []ScalingRuleItemType, pagination *common.PaginationResult, err error)
DescribeScalingRules describes scaling rules
You can read doc at https://help.aliyun.com/document_detail/25950.html?spm=5176.doc25949.6.631.RwPguo
func (*Client) DescribeScheduledTasks ¶
func (client *Client) DescribeScheduledTasks(args *DescribeScheduledTasksArgs) (tasks []ScheduledTaskItemType, pagination *common.PaginationResult, err error)
DescribeScheduledTasks describes scaling tasks
You can read doc at https://help.aliyun.com/document_detail/25959.html?spm=5176.doc25958.6.640.cLccdR
func (*Client) DisableScalingGroup ¶
func (client *Client) DisableScalingGroup(args *DisableScalingGroupArgs) (resp *DisableScalingGroupResponse, err error)
DisableScalingGroup disable scaling group
You can read doc at https://help.aliyun.com/document_detail/25940.html?spm=5176.doc25939.6.621.M8GuuY
func (*Client) EnableScalingGroup ¶
func (client *Client) EnableScalingGroup(args *EnableScalingGroupArgs) (resp *EnableScalingGroupResponse, err error)
EnableScalingGroup enable scaling group
You can read doc at https://help.aliyun.com/document_detail/25939.html?spm=5176.doc25938.6.620.JiJhkx
func (*Client) ModifyScalingGroup ¶
func (client *Client) ModifyScalingGroup(args *ModifyScalingGroupArgs) (resp *ModifyScalingGroupResponse, err error)
ModifyScalingGroup modify scaling group
You can read doc at https://help.aliyun.com/document_detail/25937.html?spm=5176.doc25936.6.618.iwDcXT
func (*Client) ModifyScalingRule ¶
func (client *Client) ModifyScalingRule(args *ModifyScalingRuleArgs) (resp *ModifyScalingRuleResponse, err error)
ModifyScalingRule modify scaling rule
You can read doc at https://help.aliyun.com/document_detail/25949.html?spm=5176.doc25948.6.630.HGN1va
func (*Client) ModifyScheduledTask ¶
func (client *Client) ModifyScheduledTask(args *ModifyScheduledTaskArgs) (resp *ModifyScheduledTaskResponse, err error)
ModifyScheduledTask modify schedule task
You can read doc at https://help.aliyun.com/document_detail/25958.html?spm=5176.doc25957.6.639.rgxQ1c
type CreateScalingConfigurationArgs ¶
type CreateScalingConfigurationArgs struct { ScalingGroupId string ImageId string InstanceType string IoOptimized ecs.IoOptimized SecurityGroupId string ScalingConfigurationName string InternetChargeType common.InternetChargeType InternetMaxBandwidthIn int InternetMaxBandwidthOut int SystemDisk_Category common.UnderlineString SystemDisk_Size common.UnderlineString DataDisk []DataDiskType }
type CreateScalingGroupArgs ¶
type CreateScalingRuleArgs ¶
type CreateScheduledTaskArgs ¶
type DBInstanceIdSetType ¶
type DBInstanceIdSetType struct {
DBInstanceId []string
}
type DataDiskItemType ¶
type DataDiskType ¶
type DeleteScalingGroupArgs ¶
type DeleteScalingRuleArgs ¶
type DeleteScheduledTaskArgs ¶
type DescribeInstancesResponse ¶
type DescribeInstancesResponse struct { common.Response common.PaginationResult ScalingGroups struct { ScalingGroup []ScalingGroupItemType } }
type DescribeScalingConfigurationsArgs ¶
type DescribeScalingConfigurationsArgs struct { RegionId common.Region ScalingGroupId string ScalingConfigurationId common.FlattenArray ScalingConfigurationName common.FlattenArray common.Pagination }
type DescribeScalingConfigurationsResponse ¶
type DescribeScalingConfigurationsResponse struct { common.Response common.PaginationResult ScalingConfigurations struct { ScalingConfiguration []ScalingConfigurationItemType } }
type DescribeScalingGroupsArgs ¶
type DescribeScalingGroupsArgs struct { RegionId common.Region ScalingGroupId common.FlattenArray ScalingGroupName common.FlattenArray common.Pagination }
type DescribeScalingInstancesArgs ¶
type DescribeScalingInstancesArgs struct { RegionId common.Region ScalingGroupId string ScalingConfigurationId string HealthStatus string CreationType string LifecycleState LifecycleState InstanceId common.FlattenArray common.Pagination }
type DescribeScalingInstancesResponse ¶
type DescribeScalingInstancesResponse struct { common.Response common.PaginationResult ScalingInstances struct { ScalingInstance []ScalingInstanceItemType } }
type DescribeScalingRulesArgs ¶
type DescribeScalingRulesArgs struct { common.Pagination RegionId common.Region ScalingGroupId string ScalingRuleId common.FlattenArray ScalingRuleName common.FlattenArray ScalingRuleAri common.FlattenArray }
type DescribeScalingRulesResponse ¶
type DescribeScalingRulesResponse struct { common.Response common.PaginationResult ScalingRules struct { ScalingRule []ScalingRuleItemType } }
type DescribeScheduledTasksArgs ¶
type DescribeScheduledTasksArgs struct { RegionId common.Region ScheduledTaskId common.FlattenArray ScheduledTaskName common.FlattenArray ScheduledAction common.FlattenArray common.Pagination }
type DescribeScheduledTasksResponse ¶
type DescribeScheduledTasksResponse struct { common.Response common.PaginationResult ScheduledTasks struct { ScheduledTask []ScheduledTaskItemType } }
type DisableScalingGroupArgs ¶
type DisableScalingGroupArgs struct {
ScalingGroupId string
}
type EnableScalingGroupArgs ¶
type EnableScalingGroupArgs struct { ScalingGroupId string ActiveScalingConfigurationId string InstanceId common.FlattenArray }
type LifecycleState ¶
type LifecycleState string
type ModifyScalingGroupArgs ¶
type ModifyScalingRuleArgs ¶
type ModifyScheduledTaskArgs ¶
type RecurrenceType ¶
type RecurrenceType string
type RemovalPolicySetType ¶
type RemovalPolicySetType struct {
RemovalPolicy []string
}
type ScalingConfigurationItemType ¶
type ScalingConfigurationItemType struct { ScalingConfigurationId string ScalingConfigurationName string ScalingGroupId string ImageId string InstanceType string IoOptimized string SecurityGroupId string InternetChargeType string LifecycleState LifecycleState CreationTime string InternetMaxBandwidthIn int InternetMaxBandwidthOut int SystemDiskCategory string DataDisks struct { DataDisk []DataDiskItemType } }
type ScalingGroupItemType ¶
type ScalingGroupItemType struct { ScalingGroupId string ScalingGroupName string ActiveScalingConfigurationId string RegionId string LoadBalancerId string VSwitchId string CreationTime string LifecycleState LifecycleState MinSize int MaxSize int DefaultCooldown int TotalCapacity int ActiveCapacity int PendingCapacity int RemovingCapacity int RemovalPolicies RemovalPolicySetType DBInstanceIds DBInstanceIdSetType }