Documentation ¶
Index ¶
- func AsClientBuilder() *http_client.HcHttpClientBuilder
- func GenReqDefForAttachCallbackInstanceLifeCycleHook() *def.HttpRequestDef
- func GenReqDefForBatchAddScalingInstances() *def.HttpRequestDef
- func GenReqDefForBatchDeleteScalingConfigs() *def.HttpRequestDef
- func GenReqDefForBatchDeleteScalingPolicies() *def.HttpRequestDef
- func GenReqDefForBatchPauseScalingPolicies() *def.HttpRequestDef
- func GenReqDefForBatchProtectScalingInstances() *def.HttpRequestDef
- func GenReqDefForBatchRemoveScalingInstances() *def.HttpRequestDef
- func GenReqDefForBatchResumeScalingPolicies() *def.HttpRequestDef
- func GenReqDefForBatchSetScalingInstancesStandby() *def.HttpRequestDef
- func GenReqDefForBatchUnprotectScalingInstances() *def.HttpRequestDef
- func GenReqDefForBatchUnsetScalingInstancesStantby() *def.HttpRequestDef
- func GenReqDefForCreateLifyCycleHook() *def.HttpRequestDef
- func GenReqDefForCreateScalingConfig() *def.HttpRequestDef
- func GenReqDefForCreateScalingGroup() *def.HttpRequestDef
- func GenReqDefForCreateScalingNotification() *def.HttpRequestDef
- func GenReqDefForCreateScalingPolicy() *def.HttpRequestDef
- func GenReqDefForCreateScalingTagInfo() *def.HttpRequestDef
- func GenReqDefForCreateScalingV2Policy() *def.HttpRequestDef
- func GenReqDefForDeleteLifecycleHook() *def.HttpRequestDef
- func GenReqDefForDeleteScalingConfig() *def.HttpRequestDef
- func GenReqDefForDeleteScalingGroup() *def.HttpRequestDef
- func GenReqDefForDeleteScalingInstance() *def.HttpRequestDef
- func GenReqDefForDeleteScalingNotification() *def.HttpRequestDef
- func GenReqDefForDeleteScalingPolicy() *def.HttpRequestDef
- func GenReqDefForDeleteScalingTagInfo() *def.HttpRequestDef
- func GenReqDefForExecuteScalingPolicy() *def.HttpRequestDef
- func GenReqDefForListAllScalingV2Policies() *def.HttpRequestDef
- func GenReqDefForListApiVersions() *def.HttpRequestDef
- func GenReqDefForListHookInstances() *def.HttpRequestDef
- func GenReqDefForListLifeCycleHooks() *def.HttpRequestDef
- func GenReqDefForListResourceInstances() *def.HttpRequestDef
- func GenReqDefForListScalingActivityLogs() *def.HttpRequestDef
- func GenReqDefForListScalingActivityV2Logs() *def.HttpRequestDef
- func GenReqDefForListScalingConfigs() *def.HttpRequestDef
- func GenReqDefForListScalingGroups() *def.HttpRequestDef
- func GenReqDefForListScalingInstances() *def.HttpRequestDef
- func GenReqDefForListScalingNotifications() *def.HttpRequestDef
- func GenReqDefForListScalingPolicies() *def.HttpRequestDef
- func GenReqDefForListScalingPolicyExecuteLogs() *def.HttpRequestDef
- func GenReqDefForListScalingTagInfosByResourceId() *def.HttpRequestDef
- func GenReqDefForListScalingTagInfosByTenantId() *def.HttpRequestDef
- func GenReqDefForListScalingV2Policies() *def.HttpRequestDef
- func GenReqDefForPauseScalingGroup() *def.HttpRequestDef
- func GenReqDefForPauseScalingPolicy() *def.HttpRequestDef
- func GenReqDefForResumeScalingGroup() *def.HttpRequestDef
- func GenReqDefForResumeScalingPolicy() *def.HttpRequestDef
- func GenReqDefForShowApiVersion() *def.HttpRequestDef
- func GenReqDefForShowLifeCycleHook() *def.HttpRequestDef
- func GenReqDefForShowPolicyAndInstanceQuota() *def.HttpRequestDef
- func GenReqDefForShowResourceQuota() *def.HttpRequestDef
- func GenReqDefForShowScalingConfig() *def.HttpRequestDef
- func GenReqDefForShowScalingGroup() *def.HttpRequestDef
- func GenReqDefForShowScalingPolicy() *def.HttpRequestDef
- func GenReqDefForShowScalingV2Policy() *def.HttpRequestDef
- func GenReqDefForUpdateLifeCycleHook() *def.HttpRequestDef
- func GenReqDefForUpdateScalingGroup() *def.HttpRequestDef
- func GenReqDefForUpdateScalingPolicy() *def.HttpRequestDef
- func GenReqDefForUpdateScalingV2Policy() *def.HttpRequestDef
- type AsClient
- func (c *AsClient) AttachCallbackInstanceLifeCycleHook(request *model.AttachCallbackInstanceLifeCycleHookRequest) (*model.AttachCallbackInstanceLifeCycleHookResponse, error)
- func (c *AsClient) BatchAddScalingInstances(request *model.BatchAddScalingInstancesRequest) (*model.BatchAddScalingInstancesResponse, error)
- func (c *AsClient) BatchDeleteScalingConfigs(request *model.BatchDeleteScalingConfigsRequest) (*model.BatchDeleteScalingConfigsResponse, error)
- func (c *AsClient) BatchDeleteScalingPolicies(request *model.BatchDeleteScalingPoliciesRequest) (*model.BatchDeleteScalingPoliciesResponse, error)
- func (c *AsClient) BatchPauseScalingPolicies(request *model.BatchPauseScalingPoliciesRequest) (*model.BatchPauseScalingPoliciesResponse, error)
- func (c *AsClient) BatchProtectScalingInstances(request *model.BatchProtectScalingInstancesRequest) (*model.BatchProtectScalingInstancesResponse, error)
- func (c *AsClient) BatchRemoveScalingInstances(request *model.BatchRemoveScalingInstancesRequest) (*model.BatchRemoveScalingInstancesResponse, error)
- func (c *AsClient) BatchResumeScalingPolicies(request *model.BatchResumeScalingPoliciesRequest) (*model.BatchResumeScalingPoliciesResponse, error)
- func (c *AsClient) BatchSetScalingInstancesStandby(request *model.BatchSetScalingInstancesStandbyRequest) (*model.BatchSetScalingInstancesStandbyResponse, error)
- func (c *AsClient) BatchUnprotectScalingInstances(request *model.BatchUnprotectScalingInstancesRequest) (*model.BatchUnprotectScalingInstancesResponse, error)
- func (c *AsClient) BatchUnsetScalingInstancesStantby(request *model.BatchUnsetScalingInstancesStantbyRequest) (*model.BatchUnsetScalingInstancesStantbyResponse, error)
- func (c *AsClient) CreateLifyCycleHook(request *model.CreateLifyCycleHookRequest) (*model.CreateLifyCycleHookResponse, error)
- func (c *AsClient) CreateScalingConfig(request *model.CreateScalingConfigRequest) (*model.CreateScalingConfigResponse, error)
- func (c *AsClient) CreateScalingGroup(request *model.CreateScalingGroupRequest) (*model.CreateScalingGroupResponse, error)
- func (c *AsClient) CreateScalingNotification(request *model.CreateScalingNotificationRequest) (*model.CreateScalingNotificationResponse, error)
- func (c *AsClient) CreateScalingPolicy(request *model.CreateScalingPolicyRequest) (*model.CreateScalingPolicyResponse, error)
- func (c *AsClient) CreateScalingTagInfo(request *model.CreateScalingTagInfoRequest) (*model.CreateScalingTagInfoResponse, error)
- func (c *AsClient) CreateScalingV2Policy(request *model.CreateScalingV2PolicyRequest) (*model.CreateScalingV2PolicyResponse, error)
- func (c *AsClient) DeleteLifecycleHook(request *model.DeleteLifecycleHookRequest) (*model.DeleteLifecycleHookResponse, error)
- func (c *AsClient) DeleteScalingConfig(request *model.DeleteScalingConfigRequest) (*model.DeleteScalingConfigResponse, error)
- func (c *AsClient) DeleteScalingGroup(request *model.DeleteScalingGroupRequest) (*model.DeleteScalingGroupResponse, error)
- func (c *AsClient) DeleteScalingInstance(request *model.DeleteScalingInstanceRequest) (*model.DeleteScalingInstanceResponse, error)
- func (c *AsClient) DeleteScalingNotification(request *model.DeleteScalingNotificationRequest) (*model.DeleteScalingNotificationResponse, error)
- func (c *AsClient) DeleteScalingPolicy(request *model.DeleteScalingPolicyRequest) (*model.DeleteScalingPolicyResponse, error)
- func (c *AsClient) DeleteScalingTagInfo(request *model.DeleteScalingTagInfoRequest) (*model.DeleteScalingTagInfoResponse, error)
- func (c *AsClient) ExecuteScalingPolicy(request *model.ExecuteScalingPolicyRequest) (*model.ExecuteScalingPolicyResponse, error)
- func (c *AsClient) ListAllScalingV2Policies(request *model.ListAllScalingV2PoliciesRequest) (*model.ListAllScalingV2PoliciesResponse, error)
- func (c *AsClient) ListApiVersions(request *model.ListApiVersionsRequest) (*model.ListApiVersionsResponse, error)
- func (c *AsClient) ListHookInstances(request *model.ListHookInstancesRequest) (*model.ListHookInstancesResponse, error)
- func (c *AsClient) ListLifeCycleHooks(request *model.ListLifeCycleHooksRequest) (*model.ListLifeCycleHooksResponse, error)
- func (c *AsClient) ListResourceInstances(request *model.ListResourceInstancesRequest) (*model.ListResourceInstancesResponse, error)
- func (c *AsClient) ListScalingActivityLogs(request *model.ListScalingActivityLogsRequest) (*model.ListScalingActivityLogsResponse, error)
- func (c *AsClient) ListScalingActivityV2Logs(request *model.ListScalingActivityV2LogsRequest) (*model.ListScalingActivityV2LogsResponse, error)
- func (c *AsClient) ListScalingConfigs(request *model.ListScalingConfigsRequest) (*model.ListScalingConfigsResponse, error)
- func (c *AsClient) ListScalingGroups(request *model.ListScalingGroupsRequest) (*model.ListScalingGroupsResponse, error)
- func (c *AsClient) ListScalingInstances(request *model.ListScalingInstancesRequest) (*model.ListScalingInstancesResponse, error)
- func (c *AsClient) ListScalingNotifications(request *model.ListScalingNotificationsRequest) (*model.ListScalingNotificationsResponse, error)
- func (c *AsClient) ListScalingPolicies(request *model.ListScalingPoliciesRequest) (*model.ListScalingPoliciesResponse, error)
- func (c *AsClient) ListScalingPolicyExecuteLogs(request *model.ListScalingPolicyExecuteLogsRequest) (*model.ListScalingPolicyExecuteLogsResponse, error)
- func (c *AsClient) ListScalingTagInfosByResourceId(request *model.ListScalingTagInfosByResourceIdRequest) (*model.ListScalingTagInfosByResourceIdResponse, error)
- func (c *AsClient) ListScalingTagInfosByTenantId(request *model.ListScalingTagInfosByTenantIdRequest) (*model.ListScalingTagInfosByTenantIdResponse, error)
- func (c *AsClient) ListScalingV2Policies(request *model.ListScalingV2PoliciesRequest) (*model.ListScalingV2PoliciesResponse, error)
- func (c *AsClient) PauseScalingGroup(request *model.PauseScalingGroupRequest) (*model.PauseScalingGroupResponse, error)
- func (c *AsClient) PauseScalingPolicy(request *model.PauseScalingPolicyRequest) (*model.PauseScalingPolicyResponse, error)
- func (c *AsClient) ResumeScalingGroup(request *model.ResumeScalingGroupRequest) (*model.ResumeScalingGroupResponse, error)
- func (c *AsClient) ResumeScalingPolicy(request *model.ResumeScalingPolicyRequest) (*model.ResumeScalingPolicyResponse, error)
- func (c *AsClient) ShowApiVersion(request *model.ShowApiVersionRequest) (*model.ShowApiVersionResponse, error)
- func (c *AsClient) ShowLifeCycleHook(request *model.ShowLifeCycleHookRequest) (*model.ShowLifeCycleHookResponse, error)
- func (c *AsClient) ShowPolicyAndInstanceQuota(request *model.ShowPolicyAndInstanceQuotaRequest) (*model.ShowPolicyAndInstanceQuotaResponse, error)
- func (c *AsClient) ShowResourceQuota(request *model.ShowResourceQuotaRequest) (*model.ShowResourceQuotaResponse, error)
- func (c *AsClient) ShowScalingConfig(request *model.ShowScalingConfigRequest) (*model.ShowScalingConfigResponse, error)
- func (c *AsClient) ShowScalingGroup(request *model.ShowScalingGroupRequest) (*model.ShowScalingGroupResponse, error)
- func (c *AsClient) ShowScalingPolicy(request *model.ShowScalingPolicyRequest) (*model.ShowScalingPolicyResponse, error)
- func (c *AsClient) ShowScalingV2Policy(request *model.ShowScalingV2PolicyRequest) (*model.ShowScalingV2PolicyResponse, error)
- func (c *AsClient) UpdateLifeCycleHook(request *model.UpdateLifeCycleHookRequest) (*model.UpdateLifeCycleHookResponse, error)
- func (c *AsClient) UpdateScalingGroup(request *model.UpdateScalingGroupRequest) (*model.UpdateScalingGroupResponse, error)
- func (c *AsClient) UpdateScalingPolicy(request *model.UpdateScalingPolicyRequest) (*model.UpdateScalingPolicyResponse, error)
- func (c *AsClient) UpdateScalingV2Policy(request *model.UpdateScalingV2PolicyRequest) (*model.UpdateScalingV2PolicyResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsClientBuilder ¶
func AsClientBuilder() *http_client.HcHttpClientBuilder
func GenReqDefForAttachCallbackInstanceLifeCycleHook ¶
func GenReqDefForAttachCallbackInstanceLifeCycleHook() *def.HttpRequestDef
func GenReqDefForBatchAddScalingInstances ¶
func GenReqDefForBatchAddScalingInstances() *def.HttpRequestDef
func GenReqDefForBatchDeleteScalingConfigs ¶
func GenReqDefForBatchDeleteScalingConfigs() *def.HttpRequestDef
func GenReqDefForBatchDeleteScalingPolicies ¶
func GenReqDefForBatchDeleteScalingPolicies() *def.HttpRequestDef
func GenReqDefForBatchPauseScalingPolicies ¶
func GenReqDefForBatchPauseScalingPolicies() *def.HttpRequestDef
func GenReqDefForBatchProtectScalingInstances ¶
func GenReqDefForBatchProtectScalingInstances() *def.HttpRequestDef
func GenReqDefForBatchRemoveScalingInstances ¶
func GenReqDefForBatchRemoveScalingInstances() *def.HttpRequestDef
func GenReqDefForBatchResumeScalingPolicies ¶
func GenReqDefForBatchResumeScalingPolicies() *def.HttpRequestDef
func GenReqDefForBatchSetScalingInstancesStandby ¶
func GenReqDefForBatchSetScalingInstancesStandby() *def.HttpRequestDef
func GenReqDefForBatchUnprotectScalingInstances ¶
func GenReqDefForBatchUnprotectScalingInstances() *def.HttpRequestDef
func GenReqDefForBatchUnsetScalingInstancesStantby ¶
func GenReqDefForBatchUnsetScalingInstancesStantby() *def.HttpRequestDef
func GenReqDefForCreateLifyCycleHook ¶
func GenReqDefForCreateLifyCycleHook() *def.HttpRequestDef
func GenReqDefForCreateScalingConfig ¶
func GenReqDefForCreateScalingConfig() *def.HttpRequestDef
func GenReqDefForCreateScalingGroup ¶
func GenReqDefForCreateScalingGroup() *def.HttpRequestDef
func GenReqDefForCreateScalingNotification ¶
func GenReqDefForCreateScalingNotification() *def.HttpRequestDef
func GenReqDefForCreateScalingPolicy ¶
func GenReqDefForCreateScalingPolicy() *def.HttpRequestDef
func GenReqDefForCreateScalingTagInfo ¶
func GenReqDefForCreateScalingTagInfo() *def.HttpRequestDef
func GenReqDefForCreateScalingV2Policy ¶
func GenReqDefForCreateScalingV2Policy() *def.HttpRequestDef
func GenReqDefForDeleteLifecycleHook ¶
func GenReqDefForDeleteLifecycleHook() *def.HttpRequestDef
func GenReqDefForDeleteScalingConfig ¶
func GenReqDefForDeleteScalingConfig() *def.HttpRequestDef
func GenReqDefForDeleteScalingGroup ¶
func GenReqDefForDeleteScalingGroup() *def.HttpRequestDef
func GenReqDefForDeleteScalingInstance ¶
func GenReqDefForDeleteScalingInstance() *def.HttpRequestDef
func GenReqDefForDeleteScalingNotification ¶
func GenReqDefForDeleteScalingNotification() *def.HttpRequestDef
func GenReqDefForDeleteScalingPolicy ¶
func GenReqDefForDeleteScalingPolicy() *def.HttpRequestDef
func GenReqDefForDeleteScalingTagInfo ¶
func GenReqDefForDeleteScalingTagInfo() *def.HttpRequestDef
func GenReqDefForExecuteScalingPolicy ¶
func GenReqDefForExecuteScalingPolicy() *def.HttpRequestDef
func GenReqDefForListAllScalingV2Policies ¶
func GenReqDefForListAllScalingV2Policies() *def.HttpRequestDef
func GenReqDefForListApiVersions ¶
func GenReqDefForListApiVersions() *def.HttpRequestDef
func GenReqDefForListHookInstances ¶
func GenReqDefForListHookInstances() *def.HttpRequestDef
func GenReqDefForListLifeCycleHooks ¶
func GenReqDefForListLifeCycleHooks() *def.HttpRequestDef
func GenReqDefForListResourceInstances ¶
func GenReqDefForListResourceInstances() *def.HttpRequestDef
func GenReqDefForListScalingActivityLogs ¶
func GenReqDefForListScalingActivityLogs() *def.HttpRequestDef
func GenReqDefForListScalingActivityV2Logs ¶
func GenReqDefForListScalingActivityV2Logs() *def.HttpRequestDef
func GenReqDefForListScalingConfigs ¶
func GenReqDefForListScalingConfigs() *def.HttpRequestDef
func GenReqDefForListScalingGroups ¶
func GenReqDefForListScalingGroups() *def.HttpRequestDef
func GenReqDefForListScalingInstances ¶
func GenReqDefForListScalingInstances() *def.HttpRequestDef
func GenReqDefForListScalingNotifications ¶
func GenReqDefForListScalingNotifications() *def.HttpRequestDef
func GenReqDefForListScalingPolicies ¶
func GenReqDefForListScalingPolicies() *def.HttpRequestDef
func GenReqDefForListScalingPolicyExecuteLogs ¶
func GenReqDefForListScalingPolicyExecuteLogs() *def.HttpRequestDef
func GenReqDefForListScalingTagInfosByResourceId ¶
func GenReqDefForListScalingTagInfosByResourceId() *def.HttpRequestDef
func GenReqDefForListScalingTagInfosByTenantId ¶
func GenReqDefForListScalingTagInfosByTenantId() *def.HttpRequestDef
func GenReqDefForListScalingV2Policies ¶
func GenReqDefForListScalingV2Policies() *def.HttpRequestDef
func GenReqDefForPauseScalingGroup ¶
func GenReqDefForPauseScalingGroup() *def.HttpRequestDef
func GenReqDefForPauseScalingPolicy ¶
func GenReqDefForPauseScalingPolicy() *def.HttpRequestDef
func GenReqDefForResumeScalingGroup ¶
func GenReqDefForResumeScalingGroup() *def.HttpRequestDef
func GenReqDefForResumeScalingPolicy ¶
func GenReqDefForResumeScalingPolicy() *def.HttpRequestDef
func GenReqDefForShowApiVersion ¶
func GenReqDefForShowApiVersion() *def.HttpRequestDef
func GenReqDefForShowLifeCycleHook ¶
func GenReqDefForShowLifeCycleHook() *def.HttpRequestDef
func GenReqDefForShowPolicyAndInstanceQuota ¶
func GenReqDefForShowPolicyAndInstanceQuota() *def.HttpRequestDef
func GenReqDefForShowResourceQuota ¶
func GenReqDefForShowResourceQuota() *def.HttpRequestDef
func GenReqDefForShowScalingConfig ¶
func GenReqDefForShowScalingConfig() *def.HttpRequestDef
func GenReqDefForShowScalingGroup ¶
func GenReqDefForShowScalingGroup() *def.HttpRequestDef
func GenReqDefForShowScalingPolicy ¶
func GenReqDefForShowScalingPolicy() *def.HttpRequestDef
func GenReqDefForShowScalingV2Policy ¶
func GenReqDefForShowScalingV2Policy() *def.HttpRequestDef
func GenReqDefForUpdateLifeCycleHook ¶
func GenReqDefForUpdateLifeCycleHook() *def.HttpRequestDef
func GenReqDefForUpdateScalingGroup ¶
func GenReqDefForUpdateScalingGroup() *def.HttpRequestDef
func GenReqDefForUpdateScalingPolicy ¶
func GenReqDefForUpdateScalingPolicy() *def.HttpRequestDef
func GenReqDefForUpdateScalingV2Policy ¶
func GenReqDefForUpdateScalingV2Policy() *def.HttpRequestDef
Types ¶
type AsClient ¶
type AsClient struct {
HcClient *http_client.HcHttpClient
}
func NewAsClient ¶
func NewAsClient(hcClient *http_client.HcHttpClient) *AsClient
func (*AsClient) AttachCallbackInstanceLifeCycleHook ¶
func (c *AsClient) AttachCallbackInstanceLifeCycleHook(request *model.AttachCallbackInstanceLifeCycleHookRequest) (*model.AttachCallbackInstanceLifeCycleHookResponse, error)
通过生命周期操作令牌或者通过实例ID和生命周期挂钩名称对伸缩实例指定的挂钩进行回调操作。如果在超时时间结束前已完成自定义操作,选择终止或继续完成生命周期操作。如果需要更多时间完成自定义操作,选择延长超时时间,实例保持等待状态的时间将增加1小时。只有实例的生命周期挂钩状态为 HANGING 时才可以进行回调操作。
func (*AsClient) BatchAddScalingInstances ¶
func (c *AsClient) BatchAddScalingInstances(request *model.BatchAddScalingInstancesRequest) (*model.BatchAddScalingInstancesResponse, error)
批量移出伸缩组中的实例或批量添加伸缩组外的实例。批量对伸缩组中的实例设置或取消其实例保护属性。批量将伸缩组中的实例转入或移出备用状态。
func (*AsClient) BatchDeleteScalingConfigs ¶
func (c *AsClient) BatchDeleteScalingConfigs(request *model.BatchDeleteScalingConfigsRequest) (*model.BatchDeleteScalingConfigsResponse, error)
批量删除指定弹性伸缩配置。被伸缩组使用的伸缩配置不能被删除。单次最多删除伸缩配置个数为50。
func (*AsClient) BatchDeleteScalingPolicies ¶
func (c *AsClient) BatchDeleteScalingPolicies(request *model.BatchDeleteScalingPoliciesRequest) (*model.BatchDeleteScalingPoliciesResponse, error)
批量启用、停用或者删除弹性伸缩策略。单次最多批量操作伸缩策略个数为20。
func (*AsClient) BatchPauseScalingPolicies ¶
func (c *AsClient) BatchPauseScalingPolicies(request *model.BatchPauseScalingPoliciesRequest) (*model.BatchPauseScalingPoliciesResponse, error)
批量启用、停用或者删除弹性伸缩策略。单次最多批量操作伸缩策略个数为20。
func (*AsClient) BatchProtectScalingInstances ¶
func (c *AsClient) BatchProtectScalingInstances(request *model.BatchProtectScalingInstancesRequest) (*model.BatchProtectScalingInstancesResponse, error)
批量移出伸缩组中的实例或批量添加伸缩组外的实例。批量对伸缩组中的实例设置或取消其实例保护属性。批量将伸缩组中的实例转入或移出备用状态。
func (*AsClient) BatchRemoveScalingInstances ¶
func (c *AsClient) BatchRemoveScalingInstances(request *model.BatchRemoveScalingInstancesRequest) (*model.BatchRemoveScalingInstancesResponse, error)
批量移出伸缩组中的实例或批量添加伸缩组外的实例。批量对伸缩组中的实例设置或取消其实例保护属性。批量将伸缩组中的实例转入或移出备用状态。
func (*AsClient) BatchResumeScalingPolicies ¶
func (c *AsClient) BatchResumeScalingPolicies(request *model.BatchResumeScalingPoliciesRequest) (*model.BatchResumeScalingPoliciesResponse, error)
批量启用、停用或者删除弹性伸缩策略。单次最多批量操作伸缩策略个数为20。
func (*AsClient) BatchSetScalingInstancesStandby ¶
func (c *AsClient) BatchSetScalingInstancesStandby(request *model.BatchSetScalingInstancesStandbyRequest) (*model.BatchSetScalingInstancesStandbyResponse, error)
批量移出伸缩组中的实例或批量添加伸缩组外的实例。批量对伸缩组中的实例设置或取消其实例保护属性。批量将伸缩组中的实例转入或移出备用状态。
func (*AsClient) BatchUnprotectScalingInstances ¶
func (c *AsClient) BatchUnprotectScalingInstances(request *model.BatchUnprotectScalingInstancesRequest) (*model.BatchUnprotectScalingInstancesResponse, error)
批量移出伸缩组中的实例或批量添加伸缩组外的实例。批量对伸缩组中的实例设置或取消其实例保护属性。批量将伸缩组中的实例转入或移出备用状态。
func (*AsClient) BatchUnsetScalingInstancesStantby ¶
func (c *AsClient) BatchUnsetScalingInstancesStantby(request *model.BatchUnsetScalingInstancesStantbyRequest) (*model.BatchUnsetScalingInstancesStantbyResponse, error)
批量移出伸缩组中的实例或批量添加伸缩组外的实例。批量对伸缩组中的实例设置或取消其实例保护属性。批量将伸缩组中的实例转入或移出备用状态。
func (*AsClient) CreateLifyCycleHook ¶
func (c *AsClient) CreateLifyCycleHook(request *model.CreateLifyCycleHookRequest) (*model.CreateLifyCycleHookResponse, error)
创建生命周期挂钩,可为伸缩组添加一个或多个生命周期挂钩,最多添加5个。添加生命周期挂钩后,当伸缩组进行伸缩活动时,实例将被生命周期挂钩挂起并置于等待状态(正在加入伸缩组或正在移出伸缩组),实例将保持此状态直至超时时间结束或者用户手动回调。用户能够在实例保持等待状态的时间段内执行自定义操作,例如,用户可以在新启动的实例上安装或配置软件,也可以在实例终止前从实例中下载日志文件。
func (*AsClient) CreateScalingConfig ¶
func (c *AsClient) CreateScalingConfig(request *model.CreateScalingConfigRequest) (*model.CreateScalingConfigResponse, error)
创建弹性伸缩配置。伸缩配置是伸缩组内实例(弹性云服务器云主机)的模板,定义了伸缩组内待添加的实例的规格数据。伸缩配置与伸缩组是解耦的,同一伸缩配置可以被多个伸缩组使用。默认最多可以创建100个伸缩配置。
func (*AsClient) CreateScalingGroup ¶
func (c *AsClient) CreateScalingGroup(request *model.CreateScalingGroupRequest) (*model.CreateScalingGroupResponse, error)
伸缩组是具有相同应用场景的实例的集合,是启停伸缩策略和进行伸缩活动的基本单位。伸缩组内定义了最大实例数、期望实例数、最小实例数、虚拟私有云、子网、负载均衡等信息。默认最多可以创建10个伸缩组。如果伸缩组配置了负载均衡,在添加或移除实例时,会自动为实例绑定或解绑负载均衡监听器。如果伸缩组使用负载均衡健康检查方式,伸缩组中的实例需要启用负载均衡器的监听端口才能通过健康检查。端口启用可在安全组中进行配置,可参考添加安全组规则进行操作。
func (*AsClient) CreateScalingNotification ¶
func (c *AsClient) CreateScalingNotification(request *model.CreateScalingNotificationRequest) (*model.CreateScalingNotificationResponse, error)
给弹性伸缩组配置通知功能。每调用一次该接口,伸缩组即配置一个通知主题及其通知场景,每个伸缩组最多可以增加5个主题。通知主题由用户事先在SMN创建并进行订阅,当通知主题对应的通知场景出现时,伸缩组会向用户的订阅终端发送通知。
func (*AsClient) CreateScalingPolicy ¶
func (c *AsClient) CreateScalingPolicy(request *model.CreateScalingPolicyRequest) (*model.CreateScalingPolicyResponse, error)
创建弹性伸缩策略。伸缩策略定义了伸缩组内实例的扩张和收缩操作。如果执行伸缩策略造成伸缩组期望实例数与伸缩组内实例数不符,弹性伸缩会自动调整实例资源,以匹配期望实例数。当前伸缩策略支持告警触发策略,周期触发策略,定时触发策略。在策略执行具体动作中,可设置实例变化的个数,或根据当前实例的百分比数进行伸缩。
func (*AsClient) CreateScalingTagInfo ¶
func (c *AsClient) CreateScalingTagInfo(request *model.CreateScalingTagInfoRequest) (*model.CreateScalingTagInfoResponse, error)
创建或删除指定资源的标签。每个伸缩组最多添加10个标签。
func (*AsClient) CreateScalingV2Policy ¶
func (c *AsClient) CreateScalingV2Policy(request *model.CreateScalingV2PolicyRequest) (*model.CreateScalingV2PolicyResponse, error)
可针对不同类型资源如伸缩组或带宽,创建弹性伸缩策略。创建弹性伸缩策略V2版本与V1版本的区别在于,V2版本支持创建对带宽资源进行调整的策略,通过伸缩资源类型区分伸缩资源。
func (*AsClient) DeleteLifecycleHook ¶
func (c *AsClient) DeleteLifecycleHook(request *model.DeleteLifecycleHookRequest) (*model.DeleteLifecycleHookResponse, error)
删除一个指定生命周期挂钩。伸缩组进行伸缩活动时,不允许删除该伸缩组内的生命周期挂钩。
func (*AsClient) DeleteScalingConfig ¶
func (c *AsClient) DeleteScalingConfig(request *model.DeleteScalingConfigRequest) (*model.DeleteScalingConfigResponse, error)
删除一个指定弹性伸缩配置。
func (*AsClient) DeleteScalingGroup ¶
func (c *AsClient) DeleteScalingGroup(request *model.DeleteScalingGroupRequest) (*model.DeleteScalingGroupResponse, error)
删除一个指定弹性伸缩组。force_delete属性表示如果伸缩组存在ECS实例或正在进行伸缩活动,是否强制删除伸缩组并移出和释放ECS实例。默认值为no,表示不强制删除伸缩组。如果force_delete的值为no,必须满足以下两个条件,才能删除伸缩组:条件一:伸缩组没有正在进行的伸缩活动。条件二:伸缩组当前的ECS实例数量(current_instance_number)为0。如果force_delete的值为yes,伸缩组会被置于DELETING状态,拒绝接收新的伸缩活动请求,然后等待已有的伸缩活动完成,最后将伸缩组内所有ECS实例移出伸缩组(用户手动添加的ECS实例会被移出伸缩组,弹性伸缩自动创建的ECS实例会被自动删除)并删除伸缩组。
func (*AsClient) DeleteScalingInstance ¶
func (c *AsClient) DeleteScalingInstance(request *model.DeleteScalingInstanceRequest) (*model.DeleteScalingInstanceResponse, error)
从弹性伸缩组中移出一个指定实例。实例处于INSERVICE且移出后实例数不能小于伸缩组的最小实例数时才可以移出。当伸缩组没有伸缩活动时,才能移出实例。
func (*AsClient) DeleteScalingNotification ¶
func (c *AsClient) DeleteScalingNotification(request *model.DeleteScalingNotificationRequest) (*model.DeleteScalingNotificationResponse, error)
删除指定的弹性伸缩组中指定的通知。
func (*AsClient) DeleteScalingPolicy ¶
func (c *AsClient) DeleteScalingPolicy(request *model.DeleteScalingPolicyRequest) (*model.DeleteScalingPolicyResponse, error)
删除一个指定弹性伸缩策略。
func (*AsClient) DeleteScalingTagInfo ¶
func (c *AsClient) DeleteScalingTagInfo(request *model.DeleteScalingTagInfoRequest) (*model.DeleteScalingTagInfoResponse, error)
创建或删除指定资源的标签。每个伸缩组最多添加10个标签。
func (*AsClient) ExecuteScalingPolicy ¶
func (c *AsClient) ExecuteScalingPolicy(request *model.ExecuteScalingPolicyRequest) (*model.ExecuteScalingPolicyResponse, error)
立即执行或启用或停止一个指定弹性伸缩策略。当伸缩组、伸缩策略状态处于INSERVICE时,伸缩策略才能被正确执行,否则会执行失败。
func (*AsClient) ListAllScalingV2Policies ¶
func (c *AsClient) ListAllScalingV2Policies(request *model.ListAllScalingV2PoliciesRequest) (*model.ListAllScalingV2PoliciesResponse, error)
根据输入条件过滤查询弹性伸缩策略,支持查询当前租户下全量伸缩策略。查询结果分页显示。可根据伸缩资源ID,伸缩资源类型,伸缩策略名称,伸缩策略ID,告警ID,企业项目ID,起始行号,记录数,排序方式等条件进行过滤查询。若不加过滤添加默认查询该租户下最多20条伸缩策略信息。
func (*AsClient) ListApiVersions ¶
func (c *AsClient) ListApiVersions(request *model.ListApiVersionsRequest) (*model.ListApiVersionsResponse, error)
查询弹性伸缩API所有版本信息
func (*AsClient) ListHookInstances ¶
func (c *AsClient) ListHookInstances(request *model.ListHookInstancesRequest) (*model.ListHookInstancesResponse, error)
添加生命周期挂钩后,当伸缩组进行伸缩活动时,实例将被挂钩挂起并置于等待状态,根据输入条件过滤查询弹性伸缩组中伸缩实例的挂起信息。可根据实例ID进行条件过滤查询。若不加过滤条件默认查询指定伸缩组内所有实例挂起信息。
func (*AsClient) ListLifeCycleHooks ¶
func (c *AsClient) ListLifeCycleHooks(request *model.ListLifeCycleHooksRequest) (*model.ListLifeCycleHooksResponse, error)
根据伸缩组ID查询生命周期挂钩列表。
func (*AsClient) ListResourceInstances ¶
func (c *AsClient) ListResourceInstances(request *model.ListResourceInstancesRequest) (*model.ListResourceInstancesResponse, error)
根据项目ID查询指定资源类型的资源实例。资源、资源tag默认按照创建时间倒序。
func (*AsClient) ListScalingActivityLogs ¶
func (c *AsClient) ListScalingActivityLogs(request *model.ListScalingActivityLogsRequest) (*model.ListScalingActivityLogsResponse, error)
根据输入条件过滤查询伸缩活动日志。查询结果分页显示。可根据起始时间,截止时间,起始行号,记录数进行条件过滤查询。若不加过滤条件默认查询最多20条伸缩活动日志信息。
func (*AsClient) ListScalingActivityV2Logs ¶
func (c *AsClient) ListScalingActivityV2Logs(request *model.ListScalingActivityV2LogsRequest) (*model.ListScalingActivityV2LogsResponse, error)
根据输入条件过滤查询伸缩活动日志,支持查询实例伸缩、ELB迁移、实例备用等类型活动。查询结果分页显示。查询伸缩活动日志V2版本与V1版本区别在于,V2版本展示了更详细的实例伸缩日志,如ELB迁移日志,实例备用日志信息。可根据起始时间,截止时间,起始行号,记录数,伸缩活动类型等作为条件过滤查询。若不加过滤条件默认查询最多20条伸缩活动日志信息。
func (*AsClient) ListScalingConfigs ¶
func (c *AsClient) ListScalingConfigs(request *model.ListScalingConfigsRequest) (*model.ListScalingConfigsResponse, error)
根据输入条件过滤查询弹性伸缩配置。查询结果分页显示。可以根据伸缩配置名称,镜像ID,起始行号,记录条数进行条件过滤查询。若不加过滤条件默认最多查询租户下20条伸缩配置信息。
func (*AsClient) ListScalingGroups ¶
func (c *AsClient) ListScalingGroups(request *model.ListScalingGroupsRequest) (*model.ListScalingGroupsResponse, error)
根据输入条件过滤查询弹性伸缩组列表。查询结果分页显示。可根据伸缩组名称,伸缩配置ID,伸缩组状态,企业项目ID,起始行号,记录条数进行条件过滤查询。若不加过滤条件默认最多查询租户下20条伸缩组信息。
func (*AsClient) ListScalingInstances ¶
func (c *AsClient) ListScalingInstances(request *model.ListScalingInstancesRequest) (*model.ListScalingInstancesResponse, error)
根据输入条件过滤查询弹性伸缩组中实例信息。查询结果分页显示。可根据实例在伸缩组中的生命周期状态,实例健康状态,实例保护状态,起始行号,记录条数进行条件过滤查询。若不加过滤条件默认查询组内最多20条实例信息
func (*AsClient) ListScalingNotifications ¶
func (c *AsClient) ListScalingNotifications(request *model.ListScalingNotificationsRequest) (*model.ListScalingNotificationsResponse, error)
根据伸缩组ID查询指定弹性伸缩组的通知列表。
func (*AsClient) ListScalingPolicies ¶
func (c *AsClient) ListScalingPolicies(request *model.ListScalingPoliciesRequest) (*model.ListScalingPoliciesResponse, error)
根据输入条件过滤查询弹性伸缩策略。查询结果分页显示。可根据伸缩策略名称,策略类型,伸缩策略ID,起始行号,记录数进行条件过滤查询。若不加过滤条件默认查询租户下指定伸缩组内最多20条伸缩策略信息。
func (*AsClient) ListScalingPolicyExecuteLogs ¶
func (c *AsClient) ListScalingPolicyExecuteLogs(request *model.ListScalingPolicyExecuteLogsRequest) (*model.ListScalingPolicyExecuteLogsResponse, error)
根据输入条件过滤查询策略执行的历史记录。查询结果分页显示。可根据日志ID,伸缩资源类型,伸缩资源ID,策略执行类型,查询额起始,查询截止时间,查询起始行号,查询记录数进行条件过滤查询。若不加过滤条件默认查询最多20条策略执行日志信息。
func (*AsClient) ListScalingTagInfosByResourceId ¶
func (c *AsClient) ListScalingTagInfosByResourceId(request *model.ListScalingTagInfosByResourceIdRequest) (*model.ListScalingTagInfosByResourceIdResponse, error)
根据项目ID和资源ID查询指定资源类型的资源标签列表。
func (*AsClient) ListScalingTagInfosByTenantId ¶
func (c *AsClient) ListScalingTagInfosByTenantId(request *model.ListScalingTagInfosByTenantIdRequest) (*model.ListScalingTagInfosByTenantIdResponse, error)
根据项目ID查询指定资源类型的标签列表。
func (*AsClient) ListScalingV2Policies ¶
func (c *AsClient) ListScalingV2Policies(request *model.ListScalingV2PoliciesRequest) (*model.ListScalingV2PoliciesResponse, error)
根据输入条件过滤查询弹性伸缩策略。查询结果分页显示。查询弹性伸缩策略V2版本与V1版本的区别在于,V2版本响应含伸缩资源类型。可根据伸缩策略名称,策略类型,伸缩策略ID,起始行号,记录数进行条件过滤查询。若不加过滤条件默认查询该租户下指定资源下最多20条伸缩策略信息。
func (*AsClient) PauseScalingGroup ¶
func (c *AsClient) PauseScalingGroup(request *model.PauseScalingGroupRequest) (*model.PauseScalingGroupResponse, error)
启用或停止一个指定弹性伸缩组。已停用状态的伸缩组,不会自动触发任何伸缩活动。当伸缩组正在进行伸缩活动,即使停用,正在进行的伸缩活动也不会立即停止。
func (*AsClient) PauseScalingPolicy ¶
func (c *AsClient) PauseScalingPolicy(request *model.PauseScalingPolicyRequest) (*model.PauseScalingPolicyResponse, error)
立即执行或启用或停止一个指定弹性伸缩策略。当伸缩组、伸缩策略状态处于INSERVICE时,伸缩策略才能被正确执行,否则会执行失败。
func (*AsClient) ResumeScalingGroup ¶
func (c *AsClient) ResumeScalingGroup(request *model.ResumeScalingGroupRequest) (*model.ResumeScalingGroupResponse, error)
启用或停止一个指定弹性伸缩组。已停用状态的伸缩组,不会自动触发任何伸缩活动。当伸缩组正在进行伸缩活动,即使停用,正在进行的伸缩活动也不会立即停止。
func (*AsClient) ResumeScalingPolicy ¶
func (c *AsClient) ResumeScalingPolicy(request *model.ResumeScalingPolicyRequest) (*model.ResumeScalingPolicyResponse, error)
立即执行或启用或停止一个指定弹性伸缩策略。当伸缩组、伸缩策略状态处于INSERVICE时,伸缩策略才能被正确执行,否则会执行失败。
func (*AsClient) ShowApiVersion ¶
func (c *AsClient) ShowApiVersion(request *model.ShowApiVersionRequest) (*model.ShowApiVersionResponse, error)
根据租户id和资源id查询指定资源类型的标签列表
func (*AsClient) ShowLifeCycleHook ¶
func (c *AsClient) ShowLifeCycleHook(request *model.ShowLifeCycleHookRequest) (*model.ShowLifeCycleHookResponse, error)
根据伸缩组ID及生命周期挂钩名称查询指定的生命周期挂钩详情。
func (*AsClient) ShowPolicyAndInstanceQuota ¶
func (c *AsClient) ShowPolicyAndInstanceQuota(request *model.ShowPolicyAndInstanceQuotaRequest) (*model.ShowPolicyAndInstanceQuotaResponse, error)
根据伸缩组ID查询指定弹性伸缩组下的伸缩策略和伸缩实例的配额总数及已使用配额数。
func (*AsClient) ShowResourceQuota ¶
func (c *AsClient) ShowResourceQuota(request *model.ShowResourceQuotaRequest) (*model.ShowResourceQuotaResponse, error)
查询指定租户下的弹性伸缩组、伸缩配置、伸缩带宽策略、伸缩策略和伸缩实例的配额总数及已使用配额数。
func (*AsClient) ShowScalingConfig ¶
func (c *AsClient) ShowScalingConfig(request *model.ShowScalingConfigRequest) (*model.ShowScalingConfigResponse, error)
根据伸缩配置ID查询一个弹性伸缩配置的详细信息。
func (*AsClient) ShowScalingGroup ¶
func (c *AsClient) ShowScalingGroup(request *model.ShowScalingGroupRequest) (*model.ShowScalingGroupResponse, error)
查询一个指定弹性伸缩组详情。
func (*AsClient) ShowScalingPolicy ¶
func (c *AsClient) ShowScalingPolicy(request *model.ShowScalingPolicyRequest) (*model.ShowScalingPolicyResponse, error)
查询指定弹性伸缩策略信息。
func (*AsClient) ShowScalingV2Policy ¶
func (c *AsClient) ShowScalingV2Policy(request *model.ShowScalingV2PolicyRequest) (*model.ShowScalingV2PolicyResponse, error)
查询指定弹性伸缩策略信息。
func (*AsClient) UpdateLifeCycleHook ¶
func (c *AsClient) UpdateLifeCycleHook(request *model.UpdateLifeCycleHookRequest) (*model.UpdateLifeCycleHookResponse, error)
修改一个指定生命周期挂钩中的信息。
func (*AsClient) UpdateScalingGroup ¶
func (c *AsClient) UpdateScalingGroup(request *model.UpdateScalingGroupRequest) (*model.UpdateScalingGroupResponse, error)
修改一个指定弹性伸缩组中的信息。更换伸缩组的伸缩配置,伸缩组中已经存在的使用之前伸缩配置创建的云服务器云主机不受影响。伸缩组为没有正在进行的伸缩活动时,可以修改伸缩组的子网、可用区和负载均衡配置。当伸缩组的期望实例数改变时,会触发伸缩活动加入或移出实例。期望实例数必须大于或等于最小实例数,必须小于或等于最大实例数。
func (*AsClient) UpdateScalingPolicy ¶
func (c *AsClient) UpdateScalingPolicy(request *model.UpdateScalingPolicyRequest) (*model.UpdateScalingPolicyResponse, error)
修改指定弹性伸缩策略。
func (*AsClient) UpdateScalingV2Policy ¶
func (c *AsClient) UpdateScalingV2Policy(request *model.UpdateScalingV2PolicyRequest) (*model.UpdateScalingV2PolicyResponse, error)
修改指定弹性伸缩策略。修改弹性伸缩策略V2版本与V1版本的区别在于,V2版本支持修改伸缩资源类型。