v1

package
v0.1.67 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

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 added in v0.0.50

func GenReqDefForBatchUnsetScalingInstancesStantby() *def.HttpRequestDef

func GenReqDefForCreateGroupScheduledTask added in v0.1.48

func GenReqDefForCreateGroupScheduledTask() *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 GenReqDefForDeleteGroupScheduledTask added in v0.1.48

func GenReqDefForDeleteGroupScheduledTask() *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 GenReqDefForListGroupScheduledTasks added in v0.1.48

func GenReqDefForListGroupScheduledTasks() *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 GenReqDefForUpdateGroupScheduledTask added in v0.1.48

func GenReqDefForUpdateGroupScheduledTask() *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

AttachCallbackInstanceLifeCycleHook 伸缩实例生命周期回调

通过生命周期操作令牌或者通过实例ID和生命周期挂钩名称对伸缩实例指定的挂钩进行回调操作。如果在超时时间结束前已完成自定义操作,选择终止或继续完成生命周期操作。如果需要更多时间完成自定义操作,选择延长超时时间,实例保持等待状态的时间将增加1小时。只有实例的生命周期挂钩状态为 HANGING 时才可以进行回调操作。

Please refer to HUAWEI cloud API Explorer for details.

func (*AsClient) AttachCallbackInstanceLifeCycleHookInvoker added in v0.0.90

func (c *AsClient) AttachCallbackInstanceLifeCycleHookInvoker(request *model.AttachCallbackInstanceLifeCycleHookRequest) *AttachCallbackInstanceLifeCycleHookInvoker

AttachCallbackInstanceLifeCycleHookInvoker 伸缩实例生命周期回调

func (*AsClient) BatchAddScalingInstances

BatchAddScalingInstances 批量添加实例

批量移出伸缩组中的实例或批量添加伸缩组外的实例。批量对伸缩组中的实例设置或取消其实例保护属性。批量将伸缩组中的实例转入或移出备用状态。说明:- 单次最多批量操作实例个数为10。批量添加后实例数不能大于伸缩组的最大实例数,批量移出后实例数不能小于伸缩组的最小实例数。- 当伸缩组处于INSERVICE状态且没有伸缩活动时,才能添加实例。- 当伸缩组没有伸缩活动时,才能移出实例。- 向伸缩组中添加实例时,必须保证实例所在的可用区包含于伸缩组的可用区内。- 实例处于INSERVICE状态时才可以进行移出、设置或取消实例保护属性等操作。- 当伸缩组发生自动缩容活动时,设置了实例保护的实例不会被移出伸缩组。- 批量移出弹性伸缩组中的实例时,若该实例加入伸缩组时绑定的监听器和伸缩组本身的监听器相同,会解绑定实例和监听器。若该实例加入伸缩组时绑定的监听器和伸缩组本身的监听器不同,会保留实例和监听器的绑定关系。

Please refer to HUAWEI cloud API Explorer for details.

func (*AsClient) BatchAddScalingInstancesInvoker added in v0.0.90

func (c *AsClient) BatchAddScalingInstancesInvoker(request *model.BatchAddScalingInstancesRequest) *BatchAddScalingInstancesInvoker

BatchAddScalingInstancesInvoker 批量添加实例

func (*AsClient) BatchDeleteScalingConfigs

BatchDeleteScalingConfigs 批量删除弹性伸缩配置

批量删除指定弹性伸缩配置。被伸缩组使用的伸缩配置不能被删除。单次最多删除伸缩配置个数为50。

Please refer to HUAWEI cloud API Explorer for details.

func (*AsClient) BatchDeleteScalingConfigsInvoker added in v0.0.90

func (c *AsClient) BatchDeleteScalingConfigsInvoker(request *model.BatchDeleteScalingConfigsRequest) *BatchDeleteScalingConfigsInvoker

BatchDeleteScalingConfigsInvoker 批量删除弹性伸缩配置

func (*AsClient) BatchDeleteScalingPolicies

BatchDeleteScalingPolicies 批量删除弹性伸缩策略。

批量启用、停用或者删除弹性伸缩策略。单次最多批量操作伸缩策略个数为20。

Please refer to HUAWEI cloud API Explorer for details.

func (*AsClient) BatchDeleteScalingPoliciesInvoker added in v0.0.90

func (c *AsClient) BatchDeleteScalingPoliciesInvoker(request *model.BatchDeleteScalingPoliciesRequest) *BatchDeleteScalingPoliciesInvoker

BatchDeleteScalingPoliciesInvoker 批量删除弹性伸缩策略。

func (*AsClient) BatchPauseScalingPolicies

BatchPauseScalingPolicies 批量停用弹性伸缩策略。

批量启用、停用或者删除弹性伸缩策略。单次最多批量操作伸缩策略个数为20。

Please refer to HUAWEI cloud API Explorer for details.

func (*AsClient) BatchPauseScalingPoliciesInvoker added in v0.0.90

func (c *AsClient) BatchPauseScalingPoliciesInvoker(request *model.BatchPauseScalingPoliciesRequest) *BatchPauseScalingPoliciesInvoker

BatchPauseScalingPoliciesInvoker 批量停用弹性伸缩策略。

func (*AsClient) BatchProtectScalingInstances

BatchProtectScalingInstances 批量设置实例保护

批量移出伸缩组中的实例或批量添加伸缩组外的实例。批量对伸缩组中的实例设置或取消其实例保护属性。批量将伸缩组中的实例转入或移出备用状态。

Please refer to HUAWEI cloud API Explorer for details.

func (*AsClient) BatchProtectScalingInstancesInvoker added in v0.0.90

func (c *AsClient) BatchProtectScalingInstancesInvoker(request *model.BatchProtectScalingInstancesRequest) *BatchProtectScalingInstancesInvoker

BatchProtectScalingInstancesInvoker 批量设置实例保护

func (*AsClient) BatchRemoveScalingInstances

BatchRemoveScalingInstances 批量移除实例

批量移出伸缩组中的实例或批量添加伸缩组外的实例。批量对伸缩组中的实例设置或取消其实例保护属性。批量将伸缩组中的实例转入或移出备用状态。

Please refer to HUAWEI cloud API Explorer for details.

func (*AsClient) BatchRemoveScalingInstancesInvoker added in v0.0.90

func (c *AsClient) BatchRemoveScalingInstancesInvoker(request *model.BatchRemoveScalingInstancesRequest) *BatchRemoveScalingInstancesInvoker

BatchRemoveScalingInstancesInvoker 批量移除实例

func (*AsClient) BatchResumeScalingPolicies

BatchResumeScalingPolicies 批量启用弹性伸缩策略。

批量启用、停用或者删除弹性伸缩策略。单次最多批量操作伸缩策略个数为20。

Please refer to HUAWEI cloud API Explorer for details.

func (*AsClient) BatchResumeScalingPoliciesInvoker added in v0.0.90

func (c *AsClient) BatchResumeScalingPoliciesInvoker(request *model.BatchResumeScalingPoliciesRequest) *BatchResumeScalingPoliciesInvoker

BatchResumeScalingPoliciesInvoker 批量启用弹性伸缩策略。

func (*AsClient) BatchSetScalingInstancesStandby

BatchSetScalingInstancesStandby 批量将实例转为备用状态

批量移出伸缩组中的实例或批量添加伸缩组外的实例。批量对伸缩组中的实例设置或取消其实例保护属性。批量将伸缩组中的实例转入或移出备用状态。

Please refer to HUAWEI cloud API Explorer for details.

func (*AsClient) BatchSetScalingInstancesStandbyInvoker added in v0.0.90

func (c *AsClient) BatchSetScalingInstancesStandbyInvoker(request *model.BatchSetScalingInstancesStandbyRequest) *BatchSetScalingInstancesStandbyInvoker

BatchSetScalingInstancesStandbyInvoker 批量将实例转为备用状态

func (*AsClient) BatchUnprotectScalingInstances

BatchUnprotectScalingInstances 批量取消实例保护

批量移出伸缩组中的实例或批量添加伸缩组外的实例。批量对伸缩组中的实例设置或取消其实例保护属性。批量将伸缩组中的实例转入或移出备用状态。

Please refer to HUAWEI cloud API Explorer for details.

func (*AsClient) BatchUnprotectScalingInstancesInvoker added in v0.0.90

func (c *AsClient) BatchUnprotectScalingInstancesInvoker(request *model.BatchUnprotectScalingInstancesRequest) *BatchUnprotectScalingInstancesInvoker

BatchUnprotectScalingInstancesInvoker 批量取消实例保护

func (*AsClient) BatchUnsetScalingInstancesStantby added in v0.0.50

BatchUnsetScalingInstancesStantby 批量将实例移出备用状态

批量移出伸缩组中的实例或批量添加伸缩组外的实例。批量对伸缩组中的实例设置或取消其实例保护属性。批量将伸缩组中的实例转入或移出备用状态。

Please refer to HUAWEI cloud API Explorer for details.

func (*AsClient) BatchUnsetScalingInstancesStantbyInvoker added in v0.0.90

func (c *AsClient) BatchUnsetScalingInstancesStantbyInvoker(request *model.BatchUnsetScalingInstancesStantbyRequest) *BatchUnsetScalingInstancesStantbyInvoker

BatchUnsetScalingInstancesStantbyInvoker 批量将实例移出备用状态

func (*AsClient) CreateGroupScheduledTask added in v0.1.48

CreateGroupScheduledTask 创建计划任务

创建计划任务

Please refer to HUAWEI cloud API Explorer for details.

func (*AsClient) CreateGroupScheduledTaskInvoker added in v0.1.48

func (c *AsClient) CreateGroupScheduledTaskInvoker(request *model.CreateGroupScheduledTaskRequest) *CreateGroupScheduledTaskInvoker

CreateGroupScheduledTaskInvoker 创建计划任务

func (*AsClient) CreateLifyCycleHook

func (c *AsClient) CreateLifyCycleHook(request *model.CreateLifyCycleHookRequest) (*model.CreateLifyCycleHookResponse, error)

CreateLifyCycleHook 创建生命周期挂钩

创建生命周期挂钩,可为伸缩组添加一个或多个生命周期挂钩,最多添加5个。添加生命周期挂钩后,当伸缩组进行伸缩活动时,实例将被生命周期挂钩挂起并置于等待状态(正在加入伸缩组或正在移出伸缩组),实例将保持此状态直至超时时间结束或者用户手动回调。用户能够在实例保持等待状态的时间段内执行自定义操作,例如,用户可以在新启动的实例上安装或配置软件,也可以在实例终止前从实例中下载日志文件。

Please refer to HUAWEI cloud API Explorer for details.

func (*AsClient) CreateLifyCycleHookInvoker added in v0.0.90

func (c *AsClient) CreateLifyCycleHookInvoker(request *model.CreateLifyCycleHookRequest) *CreateLifyCycleHookInvoker

CreateLifyCycleHookInvoker 创建生命周期挂钩

func (*AsClient) CreateScalingConfig

func (c *AsClient) CreateScalingConfig(request *model.CreateScalingConfigRequest) (*model.CreateScalingConfigResponse, error)

CreateScalingConfig 创建弹性伸缩配置

创建弹性伸缩配置。伸缩配置是伸缩组内实例(弹性云服务器云主机)的模板,定义了伸缩组内待添加的实例的规格数据。伸缩配置与伸缩组是解耦的,同一伸缩配置可以被多个伸缩组使用。默认最多可以创建100个伸缩配置。

Please refer to HUAWEI cloud API Explorer for details.

func (*AsClient) CreateScalingConfigInvoker added in v0.0.90

func (c *AsClient) CreateScalingConfigInvoker(request *model.CreateScalingConfigRequest) *CreateScalingConfigInvoker

CreateScalingConfigInvoker 创建弹性伸缩配置

func (*AsClient) CreateScalingGroup

func (c *AsClient) CreateScalingGroup(request *model.CreateScalingGroupRequest) (*model.CreateScalingGroupResponse, error)

CreateScalingGroup 创建弹性伸缩组

伸缩组是具有相同应用场景的实例的集合,是启停伸缩策略和进行伸缩活动的基本单位。伸缩组内定义了最大实例数、期望实例数、最小实例数、虚拟私有云、子网、负载均衡等信息。默认最多可以创建10个伸缩组。如果伸缩组配置了负载均衡,在添加或移除实例时,会自动为实例绑定或解绑负载均衡监听器。如果伸缩组使用负载均衡健康检查方式,伸缩组中的实例需要启用负载均衡器的监听端口才能通过健康检查。端口启用可在安全组中进行配置,可参考添加安全组规则进行操作。

Please refer to HUAWEI cloud API Explorer for details.

func (*AsClient) CreateScalingGroupInvoker added in v0.0.90

func (c *AsClient) CreateScalingGroupInvoker(request *model.CreateScalingGroupRequest) *CreateScalingGroupInvoker

CreateScalingGroupInvoker 创建弹性伸缩组

func (*AsClient) CreateScalingNotification

CreateScalingNotification 配置伸缩组通知

给弹性伸缩组配置通知功能。每调用一次该接口,伸缩组即配置一个通知主题及其通知场景,每个伸缩组最多可以增加5个主题。通知主题由用户事先在SMN创建并进行订阅,当通知主题对应的通知场景出现时,伸缩组会向用户的订阅终端发送通知。

Please refer to HUAWEI cloud API Explorer for details.

func (*AsClient) CreateScalingNotificationInvoker added in v0.0.90

func (c *AsClient) CreateScalingNotificationInvoker(request *model.CreateScalingNotificationRequest) *CreateScalingNotificationInvoker

CreateScalingNotificationInvoker 配置伸缩组通知

func (*AsClient) CreateScalingPolicy

func (c *AsClient) CreateScalingPolicy(request *model.CreateScalingPolicyRequest) (*model.CreateScalingPolicyResponse, error)

CreateScalingPolicy 创建弹性伸缩策略

创建弹性伸缩策略。伸缩策略定义了伸缩组内实例的扩张和收缩操作。如果执行伸缩策略造成伸缩组期望实例数与伸缩组内实例数不符,弹性伸缩会自动调整实例资源,以匹配期望实例数。当前伸缩策略支持告警触发策略,周期触发策略,定时触发策略。在策略执行具体动作中,可设置实例变化的个数,或根据当前实例的百分比数进行伸缩。

Please refer to HUAWEI cloud API Explorer for details.

func (*AsClient) CreateScalingPolicyInvoker added in v0.0.90

func (c *AsClient) CreateScalingPolicyInvoker(request *model.CreateScalingPolicyRequest) *CreateScalingPolicyInvoker

CreateScalingPolicyInvoker 创建弹性伸缩策略

func (*AsClient) CreateScalingTagInfo

func (c *AsClient) CreateScalingTagInfo(request *model.CreateScalingTagInfoRequest) (*model.CreateScalingTagInfoResponse, error)

CreateScalingTagInfo 创建标签

创建或删除指定资源的标签。每个伸缩组最多添加10个标签。

Please refer to HUAWEI cloud API Explorer for details.

func (*AsClient) CreateScalingTagInfoInvoker added in v0.0.90

func (c *AsClient) CreateScalingTagInfoInvoker(request *model.CreateScalingTagInfoRequest) *CreateScalingTagInfoInvoker

CreateScalingTagInfoInvoker 创建标签

func (*AsClient) CreateScalingV2Policy

CreateScalingV2Policy 创建弹性伸缩策略(V2版本)

可针对不同类型资源如伸缩组或带宽,创建弹性伸缩策略。创建弹性伸缩策略V2版本与V1版本的区别在于,V2版本支持创建对带宽资源进行调整的策略,通过伸缩资源类型区分伸缩资源。

Please refer to HUAWEI cloud API Explorer for details.

func (*AsClient) CreateScalingV2PolicyInvoker added in v0.0.90

func (c *AsClient) CreateScalingV2PolicyInvoker(request *model.CreateScalingV2PolicyRequest) *CreateScalingV2PolicyInvoker

CreateScalingV2PolicyInvoker 创建弹性伸缩策略(V2版本)

func (*AsClient) DeleteGroupScheduledTask added in v0.1.48

DeleteGroupScheduledTask 删除计划任务

删除计划任务

Please refer to HUAWEI cloud API Explorer for details.

func (*AsClient) DeleteGroupScheduledTaskInvoker added in v0.1.48

func (c *AsClient) DeleteGroupScheduledTaskInvoker(request *model.DeleteGroupScheduledTaskRequest) *DeleteGroupScheduledTaskInvoker

DeleteGroupScheduledTaskInvoker 删除计划任务

func (*AsClient) DeleteLifecycleHook

func (c *AsClient) DeleteLifecycleHook(request *model.DeleteLifecycleHookRequest) (*model.DeleteLifecycleHookResponse, error)

DeleteLifecycleHook 删除生命周期挂钩

删除一个指定生命周期挂钩。伸缩组进行伸缩活动时,不允许删除该伸缩组内的生命周期挂钩。

Please refer to HUAWEI cloud API Explorer for details.

func (*AsClient) DeleteLifecycleHookInvoker added in v0.0.90

func (c *AsClient) DeleteLifecycleHookInvoker(request *model.DeleteLifecycleHookRequest) *DeleteLifecycleHookInvoker

DeleteLifecycleHookInvoker 删除生命周期挂钩

func (*AsClient) DeleteScalingConfig

func (c *AsClient) DeleteScalingConfig(request *model.DeleteScalingConfigRequest) (*model.DeleteScalingConfigResponse, error)

DeleteScalingConfig 删除弹性伸缩配置

删除一个指定弹性伸缩配置。

Please refer to HUAWEI cloud API Explorer for details.

func (*AsClient) DeleteScalingConfigInvoker added in v0.0.90

func (c *AsClient) DeleteScalingConfigInvoker(request *model.DeleteScalingConfigRequest) *DeleteScalingConfigInvoker

DeleteScalingConfigInvoker 删除弹性伸缩配置

func (*AsClient) DeleteScalingGroup

func (c *AsClient) DeleteScalingGroup(request *model.DeleteScalingGroupRequest) (*model.DeleteScalingGroupResponse, error)

DeleteScalingGroup 删除弹性伸缩组

删除一个指定弹性伸缩组。force_delete属性表示如果伸缩组存在ECS实例或正在进行伸缩活动,是否强制删除伸缩组并移出和释放ECS实例。默认值为no,表示不强制删除伸缩组。如果force_delete的值为no,必须满足以下两个条件,才能删除伸缩组:条件一:伸缩组没有正在进行的伸缩活动。条件二:伸缩组当前的ECS实例数量(current_instance_number)为0。如果force_delete的值为yes,伸缩组会被置于DELETING状态,拒绝接收新的伸缩活动请求,然后等待已有的伸缩活动完成,最后将伸缩组内所有ECS实例移出伸缩组(用户手动添加的ECS实例会被移出伸缩组,弹性伸缩自动创建的ECS实例会被自动删除)并删除伸缩组。

Please refer to HUAWEI cloud API Explorer for details.

func (*AsClient) DeleteScalingGroupInvoker added in v0.0.90

func (c *AsClient) DeleteScalingGroupInvoker(request *model.DeleteScalingGroupRequest) *DeleteScalingGroupInvoker

DeleteScalingGroupInvoker 删除弹性伸缩组

func (*AsClient) DeleteScalingInstance

DeleteScalingInstance 移出弹性伸缩组实例

从弹性伸缩组中移出一个指定实例。实例处于INSERVICE且移出后实例数不能小于伸缩组的最小实例数时才可以移出。当伸缩组没有伸缩活动时,才能移出实例。

Please refer to HUAWEI cloud API Explorer for details.

func (*AsClient) DeleteScalingInstanceInvoker added in v0.0.90

func (c *AsClient) DeleteScalingInstanceInvoker(request *model.DeleteScalingInstanceRequest) *DeleteScalingInstanceInvoker

DeleteScalingInstanceInvoker 移出弹性伸缩组实例

func (*AsClient) DeleteScalingNotification

DeleteScalingNotification 删除伸缩组通知

删除指定的弹性伸缩组中指定的通知。

Please refer to HUAWEI cloud API Explorer for details.

func (*AsClient) DeleteScalingNotificationInvoker added in v0.0.90

func (c *AsClient) DeleteScalingNotificationInvoker(request *model.DeleteScalingNotificationRequest) *DeleteScalingNotificationInvoker

DeleteScalingNotificationInvoker 删除伸缩组通知

func (*AsClient) DeleteScalingPolicy

func (c *AsClient) DeleteScalingPolicy(request *model.DeleteScalingPolicyRequest) (*model.DeleteScalingPolicyResponse, error)

DeleteScalingPolicy 删除弹性伸缩策略

删除一个指定弹性伸缩策略。

Please refer to HUAWEI cloud API Explorer for details.

func (*AsClient) DeleteScalingPolicyInvoker added in v0.0.90

func (c *AsClient) DeleteScalingPolicyInvoker(request *model.DeleteScalingPolicyRequest) *DeleteScalingPolicyInvoker

DeleteScalingPolicyInvoker 删除弹性伸缩策略

func (*AsClient) DeleteScalingTagInfo

func (c *AsClient) DeleteScalingTagInfo(request *model.DeleteScalingTagInfoRequest) (*model.DeleteScalingTagInfoResponse, error)

DeleteScalingTagInfo 删除标签

创建或删除指定资源的标签。每个伸缩组最多添加10个标签。

Please refer to HUAWEI cloud API Explorer for details.

func (*AsClient) DeleteScalingTagInfoInvoker added in v0.0.90

func (c *AsClient) DeleteScalingTagInfoInvoker(request *model.DeleteScalingTagInfoRequest) *DeleteScalingTagInfoInvoker

DeleteScalingTagInfoInvoker 删除标签

func (*AsClient) ExecuteScalingPolicy

func (c *AsClient) ExecuteScalingPolicy(request *model.ExecuteScalingPolicyRequest) (*model.ExecuteScalingPolicyResponse, error)

ExecuteScalingPolicy 执行弹性伸缩策略。

立即执行或启用或停止一个指定弹性伸缩策略。当伸缩组、伸缩策略状态处于INSERVICE时,伸缩策略才能被正确执行,否则会执行失败。

Please refer to HUAWEI cloud API Explorer for details.

func (*AsClient) ExecuteScalingPolicyInvoker added in v0.0.90

func (c *AsClient) ExecuteScalingPolicyInvoker(request *model.ExecuteScalingPolicyRequest) *ExecuteScalingPolicyInvoker

ExecuteScalingPolicyInvoker 执行弹性伸缩策略。

func (*AsClient) ListAllScalingV2Policies

ListAllScalingV2Policies 查询弹性伸缩策略全量列表(V2版本)

根据输入条件过滤查询弹性伸缩策略,支持查询当前租户下全量伸缩策略。查询结果分页显示。可根据伸缩资源ID,伸缩资源类型,伸缩策略名称,伸缩策略ID,告警ID,企业项目ID,起始行号,记录数,排序方式等条件进行过滤查询。若不加过滤添加默认查询该租户下最多20条伸缩策略信息。

Please refer to HUAWEI cloud API Explorer for details.

func (*AsClient) ListAllScalingV2PoliciesInvoker added in v0.0.90

func (c *AsClient) ListAllScalingV2PoliciesInvoker(request *model.ListAllScalingV2PoliciesRequest) *ListAllScalingV2PoliciesInvoker

ListAllScalingV2PoliciesInvoker 查询弹性伸缩策略全量列表(V2版本)

func (*AsClient) ListApiVersions

func (c *AsClient) ListApiVersions(request *model.ListApiVersionsRequest) (*model.ListApiVersionsResponse, error)

ListApiVersions 查询弹性伸缩API所有版本信息

查询弹性伸缩API所有版本信息

Please refer to HUAWEI cloud API Explorer for details.

func (*AsClient) ListApiVersionsInvoker added in v0.0.90

func (c *AsClient) ListApiVersionsInvoker(request *model.ListApiVersionsRequest) *ListApiVersionsInvoker

ListApiVersionsInvoker 查询弹性伸缩API所有版本信息

func (*AsClient) ListGroupScheduledTasks added in v0.1.48

ListGroupScheduledTasks 查询计划任务列表

查询计划任务列表

Please refer to HUAWEI cloud API Explorer for details.

func (*AsClient) ListGroupScheduledTasksInvoker added in v0.1.48

func (c *AsClient) ListGroupScheduledTasksInvoker(request *model.ListGroupScheduledTasksRequest) *ListGroupScheduledTasksInvoker

ListGroupScheduledTasksInvoker 查询计划任务列表

func (*AsClient) ListHookInstances

func (c *AsClient) ListHookInstances(request *model.ListHookInstancesRequest) (*model.ListHookInstancesResponse, error)

ListHookInstances 查询伸缩实例挂起信息

添加生命周期挂钩后,当伸缩组进行伸缩活动时,实例将被挂钩挂起并置于等待状态,根据输入条件过滤查询弹性伸缩组中伸缩实例的挂起信息。可根据实例ID进行条件过滤查询。若不加过滤条件默认查询指定伸缩组内所有实例挂起信息。

Please refer to HUAWEI cloud API Explorer for details.

func (*AsClient) ListHookInstancesInvoker added in v0.0.90

func (c *AsClient) ListHookInstancesInvoker(request *model.ListHookInstancesRequest) *ListHookInstancesInvoker

ListHookInstancesInvoker 查询伸缩实例挂起信息

func (*AsClient) ListLifeCycleHooks

func (c *AsClient) ListLifeCycleHooks(request *model.ListLifeCycleHooksRequest) (*model.ListLifeCycleHooksResponse, error)

ListLifeCycleHooks 查询生命周期挂钩列表

根据伸缩组ID查询生命周期挂钩列表。

Please refer to HUAWEI cloud API Explorer for details.

func (*AsClient) ListLifeCycleHooksInvoker added in v0.0.90

func (c *AsClient) ListLifeCycleHooksInvoker(request *model.ListLifeCycleHooksRequest) *ListLifeCycleHooksInvoker

ListLifeCycleHooksInvoker 查询生命周期挂钩列表

func (*AsClient) ListResourceInstances

ListResourceInstances 查询资源实例

根据项目ID查询指定资源类型的资源实例。资源、资源tag默认按照创建时间倒序。

Please refer to HUAWEI cloud API Explorer for details.

func (*AsClient) ListResourceInstancesInvoker added in v0.0.90

func (c *AsClient) ListResourceInstancesInvoker(request *model.ListResourceInstancesRequest) *ListResourceInstancesInvoker

ListResourceInstancesInvoker 查询资源实例

func (*AsClient) ListScalingActivityLogs

ListScalingActivityLogs 查询伸缩活动日志

根据输入条件过滤查询伸缩活动日志。查询结果分页显示。可根据起始时间,截止时间,起始行号,记录数进行条件过滤查询。若不加过滤条件默认查询最多20条伸缩活动日志信息。

Please refer to HUAWEI cloud API Explorer for details.

func (*AsClient) ListScalingActivityLogsInvoker added in v0.0.90

func (c *AsClient) ListScalingActivityLogsInvoker(request *model.ListScalingActivityLogsRequest) *ListScalingActivityLogsInvoker

ListScalingActivityLogsInvoker 查询伸缩活动日志

func (*AsClient) ListScalingActivityV2Logs

ListScalingActivityV2Logs 查询伸缩活动日志v2版本

根据输入条件过滤查询伸缩活动日志,支持查询实例伸缩、ELB迁移、实例备用等类型活动。查询结果分页显示。查询伸缩活动日志V2版本与V1版本区别在于,V2版本展示了更详细的实例伸缩日志,如ELB迁移日志,实例备用日志信息。可根据起始时间,截止时间,起始行号,记录数,伸缩活动类型等作为条件过滤查询。若不加过滤条件默认查询最多20条伸缩活动日志信息。

Please refer to HUAWEI cloud API Explorer for details.

func (*AsClient) ListScalingActivityV2LogsInvoker added in v0.0.90

func (c *AsClient) ListScalingActivityV2LogsInvoker(request *model.ListScalingActivityV2LogsRequest) *ListScalingActivityV2LogsInvoker

ListScalingActivityV2LogsInvoker 查询伸缩活动日志v2版本

func (*AsClient) ListScalingConfigs

func (c *AsClient) ListScalingConfigs(request *model.ListScalingConfigsRequest) (*model.ListScalingConfigsResponse, error)

ListScalingConfigs 查询弹性伸缩配置列表

根据输入条件过滤查询弹性伸缩配置。查询结果分页显示。可以根据伸缩配置名称,镜像ID,起始行号,记录条数进行条件过滤查询。若不加过滤条件默认最多查询租户下20条伸缩配置信息。

Please refer to HUAWEI cloud API Explorer for details.

func (*AsClient) ListScalingConfigsInvoker added in v0.0.90

func (c *AsClient) ListScalingConfigsInvoker(request *model.ListScalingConfigsRequest) *ListScalingConfigsInvoker

ListScalingConfigsInvoker 查询弹性伸缩配置列表

func (*AsClient) ListScalingGroups

func (c *AsClient) ListScalingGroups(request *model.ListScalingGroupsRequest) (*model.ListScalingGroupsResponse, error)

ListScalingGroups 查询弹性伸缩组列表

根据输入条件过滤查询弹性伸缩组列表。查询结果分页显示。可根据伸缩组名称,伸缩配置ID,伸缩组状态,企业项目ID,起始行号,记录条数进行条件过滤查询。若不加过滤条件默认最多查询租户下20条伸缩组信息。

Please refer to HUAWEI cloud API Explorer for details.

func (*AsClient) ListScalingGroupsInvoker added in v0.0.90

func (c *AsClient) ListScalingGroupsInvoker(request *model.ListScalingGroupsRequest) *ListScalingGroupsInvoker

ListScalingGroupsInvoker 查询弹性伸缩组列表

func (*AsClient) ListScalingInstances

func (c *AsClient) ListScalingInstances(request *model.ListScalingInstancesRequest) (*model.ListScalingInstancesResponse, error)

ListScalingInstances 查询弹性伸缩组中的实例列表

根据输入条件过滤查询弹性伸缩组中实例信息。查询结果分页显示。可根据实例在伸缩组中的生命周期状态,实例健康状态,实例保护状态,起始行号,记录条数进行条件过滤查询。若不加过滤条件默认查询组内最多20条实例信息

Please refer to HUAWEI cloud API Explorer for details.

func (*AsClient) ListScalingInstancesInvoker added in v0.0.90

func (c *AsClient) ListScalingInstancesInvoker(request *model.ListScalingInstancesRequest) *ListScalingInstancesInvoker

ListScalingInstancesInvoker 查询弹性伸缩组中的实例列表

func (*AsClient) ListScalingNotifications

ListScalingNotifications 查询伸缩组通知列表

根据伸缩组ID查询指定弹性伸缩组的通知列表。

Please refer to HUAWEI cloud API Explorer for details.

func (*AsClient) ListScalingNotificationsInvoker added in v0.0.90

func (c *AsClient) ListScalingNotificationsInvoker(request *model.ListScalingNotificationsRequest) *ListScalingNotificationsInvoker

ListScalingNotificationsInvoker 查询伸缩组通知列表

func (*AsClient) ListScalingPolicies

func (c *AsClient) ListScalingPolicies(request *model.ListScalingPoliciesRequest) (*model.ListScalingPoliciesResponse, error)

ListScalingPolicies 查询弹性伸缩策略列表

根据输入条件过滤查询弹性伸缩策略。查询结果分页显示。可根据伸缩策略名称,策略类型,伸缩策略ID,起始行号,记录数进行条件过滤查询。若不加过滤条件默认查询租户下指定伸缩组内最多20条伸缩策略信息。

Please refer to HUAWEI cloud API Explorer for details.

func (*AsClient) ListScalingPoliciesInvoker added in v0.0.90

func (c *AsClient) ListScalingPoliciesInvoker(request *model.ListScalingPoliciesRequest) *ListScalingPoliciesInvoker

ListScalingPoliciesInvoker 查询弹性伸缩策略列表

func (*AsClient) ListScalingPolicyExecuteLogs

ListScalingPolicyExecuteLogs 查询策略执行日志

根据输入条件过滤查询策略执行的历史记录。查询结果分页显示。可根据日志ID,伸缩资源类型,伸缩资源ID,策略执行类型,查询额起始,查询截止时间,查询起始行号,查询记录数进行条件过滤查询。若不加过滤条件默认查询最多20条策略执行日志信息。

Please refer to HUAWEI cloud API Explorer for details.

func (*AsClient) ListScalingPolicyExecuteLogsInvoker added in v0.0.90

func (c *AsClient) ListScalingPolicyExecuteLogsInvoker(request *model.ListScalingPolicyExecuteLogsRequest) *ListScalingPolicyExecuteLogsInvoker

ListScalingPolicyExecuteLogsInvoker 查询策略执行日志

func (*AsClient) ListScalingTagInfosByResourceId

ListScalingTagInfosByResourceId 查询资源标签

根据项目ID和资源ID查询指定资源类型的资源标签列表。

Please refer to HUAWEI cloud API Explorer for details.

func (*AsClient) ListScalingTagInfosByResourceIdInvoker added in v0.0.90

func (c *AsClient) ListScalingTagInfosByResourceIdInvoker(request *model.ListScalingTagInfosByResourceIdRequest) *ListScalingTagInfosByResourceIdInvoker

ListScalingTagInfosByResourceIdInvoker 查询资源标签

func (*AsClient) ListScalingTagInfosByTenantId

ListScalingTagInfosByTenantId 查询标签

根据项目ID查询指定资源类型的标签列表。

Please refer to HUAWEI cloud API Explorer for details.

func (*AsClient) ListScalingTagInfosByTenantIdInvoker added in v0.0.90

func (c *AsClient) ListScalingTagInfosByTenantIdInvoker(request *model.ListScalingTagInfosByTenantIdRequest) *ListScalingTagInfosByTenantIdInvoker

ListScalingTagInfosByTenantIdInvoker 查询标签

func (*AsClient) ListScalingV2Policies

ListScalingV2Policies 查询弹性伸缩策略列表(V2版本)

根据输入条件过滤查询弹性伸缩策略。查询结果分页显示。查询弹性伸缩策略V2版本与V1版本的区别在于,V2版本响应含伸缩资源类型。可根据伸缩策略名称,策略类型,伸缩策略ID,起始行号,记录数进行条件过滤查询。若不加过滤条件默认查询该租户下指定资源下最多20条伸缩策略信息。

Please refer to HUAWEI cloud API Explorer for details.

func (*AsClient) ListScalingV2PoliciesInvoker added in v0.0.90

func (c *AsClient) ListScalingV2PoliciesInvoker(request *model.ListScalingV2PoliciesRequest) *ListScalingV2PoliciesInvoker

ListScalingV2PoliciesInvoker 查询弹性伸缩策略列表(V2版本)

func (*AsClient) PauseScalingGroup

func (c *AsClient) PauseScalingGroup(request *model.PauseScalingGroupRequest) (*model.PauseScalingGroupResponse, error)

PauseScalingGroup 停止弹性伸缩组

启用或停止一个指定弹性伸缩组。已停用状态的伸缩组,不会自动触发任何伸缩活动。当伸缩组正在进行伸缩活动,即使停用,正在进行的伸缩活动也不会立即停止。

Please refer to HUAWEI cloud API Explorer for details.

func (*AsClient) PauseScalingGroupInvoker added in v0.0.90

func (c *AsClient) PauseScalingGroupInvoker(request *model.PauseScalingGroupRequest) *PauseScalingGroupInvoker

PauseScalingGroupInvoker 停止弹性伸缩组

func (*AsClient) PauseScalingPolicy

func (c *AsClient) PauseScalingPolicy(request *model.PauseScalingPolicyRequest) (*model.PauseScalingPolicyResponse, error)

PauseScalingPolicy 停止弹性伸缩策略。

立即执行或启用或停止一个指定弹性伸缩策略。当伸缩组、伸缩策略状态处于INSERVICE时,伸缩策略才能被正确执行,否则会执行失败。

Please refer to HUAWEI cloud API Explorer for details.

func (*AsClient) PauseScalingPolicyInvoker added in v0.0.90

func (c *AsClient) PauseScalingPolicyInvoker(request *model.PauseScalingPolicyRequest) *PauseScalingPolicyInvoker

PauseScalingPolicyInvoker 停止弹性伸缩策略。

func (*AsClient) ResumeScalingGroup

func (c *AsClient) ResumeScalingGroup(request *model.ResumeScalingGroupRequest) (*model.ResumeScalingGroupResponse, error)

ResumeScalingGroup 启用弹性伸缩组

启用或停止一个指定弹性伸缩组。已停用状态的伸缩组,不会自动触发任何伸缩活动。当伸缩组正在进行伸缩活动,即使停用,正在进行的伸缩活动也不会立即停止。

Please refer to HUAWEI cloud API Explorer for details.

func (*AsClient) ResumeScalingGroupInvoker added in v0.0.90

func (c *AsClient) ResumeScalingGroupInvoker(request *model.ResumeScalingGroupRequest) *ResumeScalingGroupInvoker

ResumeScalingGroupInvoker 启用弹性伸缩组

func (*AsClient) ResumeScalingPolicy

func (c *AsClient) ResumeScalingPolicy(request *model.ResumeScalingPolicyRequest) (*model.ResumeScalingPolicyResponse, error)

ResumeScalingPolicy 启用弹性伸缩策略。

立即执行或启用或停止一个指定弹性伸缩策略。当伸缩组、伸缩策略状态处于INSERVICE时,伸缩策略才能被正确执行,否则会执行失败。

Please refer to HUAWEI cloud API Explorer for details.

func (*AsClient) ResumeScalingPolicyInvoker added in v0.0.90

func (c *AsClient) ResumeScalingPolicyInvoker(request *model.ResumeScalingPolicyRequest) *ResumeScalingPolicyInvoker

ResumeScalingPolicyInvoker 启用弹性伸缩策略。

func (*AsClient) ShowApiVersion

func (c *AsClient) ShowApiVersion(request *model.ShowApiVersionRequest) (*model.ShowApiVersionResponse, error)

ShowApiVersion 查询弹性伸缩API指定版本信息

根据租户id和资源id查询指定资源类型的标签列表

Please refer to HUAWEI cloud API Explorer for details.

func (*AsClient) ShowApiVersionInvoker added in v0.0.90

func (c *AsClient) ShowApiVersionInvoker(request *model.ShowApiVersionRequest) *ShowApiVersionInvoker

ShowApiVersionInvoker 查询弹性伸缩API指定版本信息

func (*AsClient) ShowLifeCycleHook

func (c *AsClient) ShowLifeCycleHook(request *model.ShowLifeCycleHookRequest) (*model.ShowLifeCycleHookResponse, error)

ShowLifeCycleHook 查询生命周期挂钩详情

根据伸缩组ID及生命周期挂钩名称查询指定的生命周期挂钩详情。

Please refer to HUAWEI cloud API Explorer for details.

func (*AsClient) ShowLifeCycleHookInvoker added in v0.0.90

func (c *AsClient) ShowLifeCycleHookInvoker(request *model.ShowLifeCycleHookRequest) *ShowLifeCycleHookInvoker

ShowLifeCycleHookInvoker 查询生命周期挂钩详情

func (*AsClient) ShowPolicyAndInstanceQuota

ShowPolicyAndInstanceQuota 查询弹性伸缩策略和伸缩实例配额

根据伸缩组ID查询指定弹性伸缩组下的伸缩策略和伸缩实例的配额总数及已使用配额数。

Please refer to HUAWEI cloud API Explorer for details.

func (*AsClient) ShowPolicyAndInstanceQuotaInvoker added in v0.0.90

func (c *AsClient) ShowPolicyAndInstanceQuotaInvoker(request *model.ShowPolicyAndInstanceQuotaRequest) *ShowPolicyAndInstanceQuotaInvoker

ShowPolicyAndInstanceQuotaInvoker 查询弹性伸缩策略和伸缩实例配额

func (*AsClient) ShowResourceQuota

func (c *AsClient) ShowResourceQuota(request *model.ShowResourceQuotaRequest) (*model.ShowResourceQuotaResponse, error)

ShowResourceQuota 查询配额

查询指定租户下的弹性伸缩组、伸缩配置、伸缩带宽策略、伸缩策略和伸缩实例的配额总数及已使用配额数。

Please refer to HUAWEI cloud API Explorer for details.

func (*AsClient) ShowResourceQuotaInvoker added in v0.0.90

func (c *AsClient) ShowResourceQuotaInvoker(request *model.ShowResourceQuotaRequest) *ShowResourceQuotaInvoker

ShowResourceQuotaInvoker 查询配额

func (*AsClient) ShowScalingConfig

func (c *AsClient) ShowScalingConfig(request *model.ShowScalingConfigRequest) (*model.ShowScalingConfigResponse, error)

ShowScalingConfig 查询弹性伸缩配置详情

根据伸缩配置ID查询一个弹性伸缩配置的详细信息。

Please refer to HUAWEI cloud API Explorer for details.

func (*AsClient) ShowScalingConfigInvoker added in v0.0.90

func (c *AsClient) ShowScalingConfigInvoker(request *model.ShowScalingConfigRequest) *ShowScalingConfigInvoker

ShowScalingConfigInvoker 查询弹性伸缩配置详情

func (*AsClient) ShowScalingGroup

func (c *AsClient) ShowScalingGroup(request *model.ShowScalingGroupRequest) (*model.ShowScalingGroupResponse, error)

ShowScalingGroup 查询弹性伸缩组详情

查询一个指定弹性伸缩组详情。

Please refer to HUAWEI cloud API Explorer for details.

func (*AsClient) ShowScalingGroupInvoker added in v0.0.90

func (c *AsClient) ShowScalingGroupInvoker(request *model.ShowScalingGroupRequest) *ShowScalingGroupInvoker

ShowScalingGroupInvoker 查询弹性伸缩组详情

func (*AsClient) ShowScalingPolicy

func (c *AsClient) ShowScalingPolicy(request *model.ShowScalingPolicyRequest) (*model.ShowScalingPolicyResponse, error)

ShowScalingPolicy 查询弹性伸缩策略详情

查询指定弹性伸缩策略信息。

Please refer to HUAWEI cloud API Explorer for details.

func (*AsClient) ShowScalingPolicyInvoker added in v0.0.90

func (c *AsClient) ShowScalingPolicyInvoker(request *model.ShowScalingPolicyRequest) *ShowScalingPolicyInvoker

ShowScalingPolicyInvoker 查询弹性伸缩策略详情

func (*AsClient) ShowScalingV2Policy

func (c *AsClient) ShowScalingV2Policy(request *model.ShowScalingV2PolicyRequest) (*model.ShowScalingV2PolicyResponse, error)

ShowScalingV2Policy 查询指定弹性伸缩策略详情(V2版本)

查询指定弹性伸缩策略信息。

Please refer to HUAWEI cloud API Explorer for details.

func (*AsClient) ShowScalingV2PolicyInvoker added in v0.0.90

func (c *AsClient) ShowScalingV2PolicyInvoker(request *model.ShowScalingV2PolicyRequest) *ShowScalingV2PolicyInvoker

ShowScalingV2PolicyInvoker 查询指定弹性伸缩策略详情(V2版本)

func (*AsClient) UpdateGroupScheduledTask added in v0.1.48

UpdateGroupScheduledTask 更新计划任务

更新计划任务

Please refer to HUAWEI cloud API Explorer for details.

func (*AsClient) UpdateGroupScheduledTaskInvoker added in v0.1.48

func (c *AsClient) UpdateGroupScheduledTaskInvoker(request *model.UpdateGroupScheduledTaskRequest) *UpdateGroupScheduledTaskInvoker

UpdateGroupScheduledTaskInvoker 更新计划任务

func (*AsClient) UpdateLifeCycleHook

func (c *AsClient) UpdateLifeCycleHook(request *model.UpdateLifeCycleHookRequest) (*model.UpdateLifeCycleHookResponse, error)

UpdateLifeCycleHook 修改生命周期挂钩

修改一个指定生命周期挂钩中的信息。

Please refer to HUAWEI cloud API Explorer for details.

func (*AsClient) UpdateLifeCycleHookInvoker added in v0.0.90

func (c *AsClient) UpdateLifeCycleHookInvoker(request *model.UpdateLifeCycleHookRequest) *UpdateLifeCycleHookInvoker

UpdateLifeCycleHookInvoker 修改生命周期挂钩

func (*AsClient) UpdateScalingGroup

func (c *AsClient) UpdateScalingGroup(request *model.UpdateScalingGroupRequest) (*model.UpdateScalingGroupResponse, error)

UpdateScalingGroup 修改弹性伸缩组

修改一个指定弹性伸缩组中的信息。更换伸缩组的伸缩配置,伸缩组中已经存在的使用之前伸缩配置创建的云服务器云主机不受影响。伸缩组为没有正在进行的伸缩活动时,可以修改伸缩组的子网、可用区和负载均衡配置。当伸缩组的期望实例数改变时,会触发伸缩活动加入或移出实例。期望实例数必须大于或等于最小实例数,必须小于或等于最大实例数。

Please refer to HUAWEI cloud API Explorer for details.

func (*AsClient) UpdateScalingGroupInvoker added in v0.0.90

func (c *AsClient) UpdateScalingGroupInvoker(request *model.UpdateScalingGroupRequest) *UpdateScalingGroupInvoker

UpdateScalingGroupInvoker 修改弹性伸缩组

func (*AsClient) UpdateScalingPolicy

func (c *AsClient) UpdateScalingPolicy(request *model.UpdateScalingPolicyRequest) (*model.UpdateScalingPolicyResponse, error)

UpdateScalingPolicy 修改弹性伸缩策略

修改指定弹性伸缩策略。

Please refer to HUAWEI cloud API Explorer for details.

func (*AsClient) UpdateScalingPolicyInvoker added in v0.0.90

func (c *AsClient) UpdateScalingPolicyInvoker(request *model.UpdateScalingPolicyRequest) *UpdateScalingPolicyInvoker

UpdateScalingPolicyInvoker 修改弹性伸缩策略

func (*AsClient) UpdateScalingV2Policy

UpdateScalingV2Policy 修改弹性伸缩策略(V2版本)

修改指定弹性伸缩策略。修改弹性伸缩策略V2版本与V1版本的区别在于,V2版本支持修改伸缩资源类型。

Please refer to HUAWEI cloud API Explorer for details.

func (*AsClient) UpdateScalingV2PolicyInvoker added in v0.0.90

func (c *AsClient) UpdateScalingV2PolicyInvoker(request *model.UpdateScalingV2PolicyRequest) *UpdateScalingV2PolicyInvoker

UpdateScalingV2PolicyInvoker 修改弹性伸缩策略(V2版本)

type AttachCallbackInstanceLifeCycleHookInvoker added in v0.0.90

type AttachCallbackInstanceLifeCycleHookInvoker struct {
	*invoker.BaseInvoker
}

func (*AttachCallbackInstanceLifeCycleHookInvoker) Invoke added in v0.0.90

type BatchAddScalingInstancesInvoker added in v0.0.90

type BatchAddScalingInstancesInvoker struct {
	*invoker.BaseInvoker
}

func (*BatchAddScalingInstancesInvoker) Invoke added in v0.0.90

type BatchDeleteScalingConfigsInvoker added in v0.0.90

type BatchDeleteScalingConfigsInvoker struct {
	*invoker.BaseInvoker
}

func (*BatchDeleteScalingConfigsInvoker) Invoke added in v0.0.90

type BatchDeleteScalingPoliciesInvoker added in v0.0.90

type BatchDeleteScalingPoliciesInvoker struct {
	*invoker.BaseInvoker
}

func (*BatchDeleteScalingPoliciesInvoker) Invoke added in v0.0.90

type BatchPauseScalingPoliciesInvoker added in v0.0.90

type BatchPauseScalingPoliciesInvoker struct {
	*invoker.BaseInvoker
}

func (*BatchPauseScalingPoliciesInvoker) Invoke added in v0.0.90

type BatchProtectScalingInstancesInvoker added in v0.0.90

type BatchProtectScalingInstancesInvoker struct {
	*invoker.BaseInvoker
}

func (*BatchProtectScalingInstancesInvoker) Invoke added in v0.0.90

type BatchRemoveScalingInstancesInvoker added in v0.0.90

type BatchRemoveScalingInstancesInvoker struct {
	*invoker.BaseInvoker
}

func (*BatchRemoveScalingInstancesInvoker) Invoke added in v0.0.90

type BatchResumeScalingPoliciesInvoker added in v0.0.90

type BatchResumeScalingPoliciesInvoker struct {
	*invoker.BaseInvoker
}

func (*BatchResumeScalingPoliciesInvoker) Invoke added in v0.0.90

type BatchSetScalingInstancesStandbyInvoker added in v0.0.90

type BatchSetScalingInstancesStandbyInvoker struct {
	*invoker.BaseInvoker
}

func (*BatchSetScalingInstancesStandbyInvoker) Invoke added in v0.0.90

type BatchUnprotectScalingInstancesInvoker added in v0.0.90

type BatchUnprotectScalingInstancesInvoker struct {
	*invoker.BaseInvoker
}

func (*BatchUnprotectScalingInstancesInvoker) Invoke added in v0.0.90

type BatchUnsetScalingInstancesStantbyInvoker added in v0.0.90

type BatchUnsetScalingInstancesStantbyInvoker struct {
	*invoker.BaseInvoker
}

func (*BatchUnsetScalingInstancesStantbyInvoker) Invoke added in v0.0.90

type CreateGroupScheduledTaskInvoker added in v0.1.48

type CreateGroupScheduledTaskInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateGroupScheduledTaskInvoker) Invoke added in v0.1.48

type CreateLifyCycleHookInvoker added in v0.0.90

type CreateLifyCycleHookInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateLifyCycleHookInvoker) Invoke added in v0.0.90

type CreateScalingConfigInvoker added in v0.0.90

type CreateScalingConfigInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateScalingConfigInvoker) Invoke added in v0.0.90

type CreateScalingGroupInvoker added in v0.0.90

type CreateScalingGroupInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateScalingGroupInvoker) Invoke added in v0.0.90

type CreateScalingNotificationInvoker added in v0.0.90

type CreateScalingNotificationInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateScalingNotificationInvoker) Invoke added in v0.0.90

type CreateScalingPolicyInvoker added in v0.0.90

type CreateScalingPolicyInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateScalingPolicyInvoker) Invoke added in v0.0.90

type CreateScalingTagInfoInvoker added in v0.0.90

type CreateScalingTagInfoInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateScalingTagInfoInvoker) Invoke added in v0.0.90

type CreateScalingV2PolicyInvoker added in v0.0.90

type CreateScalingV2PolicyInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateScalingV2PolicyInvoker) Invoke added in v0.0.90

type DeleteGroupScheduledTaskInvoker added in v0.1.48

type DeleteGroupScheduledTaskInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteGroupScheduledTaskInvoker) Invoke added in v0.1.48

type DeleteLifecycleHookInvoker added in v0.0.90

type DeleteLifecycleHookInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteLifecycleHookInvoker) Invoke added in v0.0.90

type DeleteScalingConfigInvoker added in v0.0.90

type DeleteScalingConfigInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteScalingConfigInvoker) Invoke added in v0.0.90

type DeleteScalingGroupInvoker added in v0.0.90

type DeleteScalingGroupInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteScalingGroupInvoker) Invoke added in v0.0.90

type DeleteScalingInstanceInvoker added in v0.0.90

type DeleteScalingInstanceInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteScalingInstanceInvoker) Invoke added in v0.0.90

type DeleteScalingNotificationInvoker added in v0.0.90

type DeleteScalingNotificationInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteScalingNotificationInvoker) Invoke added in v0.0.90

type DeleteScalingPolicyInvoker added in v0.0.90

type DeleteScalingPolicyInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteScalingPolicyInvoker) Invoke added in v0.0.90

type DeleteScalingTagInfoInvoker added in v0.0.90

type DeleteScalingTagInfoInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteScalingTagInfoInvoker) Invoke added in v0.0.90

type ExecuteScalingPolicyInvoker added in v0.0.90

type ExecuteScalingPolicyInvoker struct {
	*invoker.BaseInvoker
}

func (*ExecuteScalingPolicyInvoker) Invoke added in v0.0.90

type ListAllScalingV2PoliciesInvoker added in v0.0.90

type ListAllScalingV2PoliciesInvoker struct {
	*invoker.BaseInvoker
}

func (*ListAllScalingV2PoliciesInvoker) Invoke added in v0.0.90

type ListApiVersionsInvoker added in v0.0.90

type ListApiVersionsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListApiVersionsInvoker) Invoke added in v0.0.90

type ListGroupScheduledTasksInvoker added in v0.1.48

type ListGroupScheduledTasksInvoker struct {
	*invoker.BaseInvoker
}

func (*ListGroupScheduledTasksInvoker) Invoke added in v0.1.48

type ListHookInstancesInvoker added in v0.0.90

type ListHookInstancesInvoker struct {
	*invoker.BaseInvoker
}

func (*ListHookInstancesInvoker) Invoke added in v0.0.90

type ListLifeCycleHooksInvoker added in v0.0.90

type ListLifeCycleHooksInvoker struct {
	*invoker.BaseInvoker
}

func (*ListLifeCycleHooksInvoker) Invoke added in v0.0.90

type ListResourceInstancesInvoker added in v0.0.90

type ListResourceInstancesInvoker struct {
	*invoker.BaseInvoker
}

func (*ListResourceInstancesInvoker) Invoke added in v0.0.90

type ListScalingActivityLogsInvoker added in v0.0.90

type ListScalingActivityLogsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListScalingActivityLogsInvoker) Invoke added in v0.0.90

type ListScalingActivityV2LogsInvoker added in v0.0.90

type ListScalingActivityV2LogsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListScalingActivityV2LogsInvoker) Invoke added in v0.0.90

type ListScalingConfigsInvoker added in v0.0.90

type ListScalingConfigsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListScalingConfigsInvoker) Invoke added in v0.0.90

type ListScalingGroupsInvoker added in v0.0.90

type ListScalingGroupsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListScalingGroupsInvoker) Invoke added in v0.0.90

type ListScalingInstancesInvoker added in v0.0.90

type ListScalingInstancesInvoker struct {
	*invoker.BaseInvoker
}

func (*ListScalingInstancesInvoker) Invoke added in v0.0.90

type ListScalingNotificationsInvoker added in v0.0.90

type ListScalingNotificationsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListScalingNotificationsInvoker) Invoke added in v0.0.90

type ListScalingPoliciesInvoker added in v0.0.90

type ListScalingPoliciesInvoker struct {
	*invoker.BaseInvoker
}

func (*ListScalingPoliciesInvoker) Invoke added in v0.0.90

type ListScalingPolicyExecuteLogsInvoker added in v0.0.90

type ListScalingPolicyExecuteLogsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListScalingPolicyExecuteLogsInvoker) Invoke added in v0.0.90

type ListScalingTagInfosByResourceIdInvoker added in v0.0.90

type ListScalingTagInfosByResourceIdInvoker struct {
	*invoker.BaseInvoker
}

func (*ListScalingTagInfosByResourceIdInvoker) Invoke added in v0.0.90

type ListScalingTagInfosByTenantIdInvoker added in v0.0.90

type ListScalingTagInfosByTenantIdInvoker struct {
	*invoker.BaseInvoker
}

func (*ListScalingTagInfosByTenantIdInvoker) Invoke added in v0.0.90

type ListScalingV2PoliciesInvoker added in v0.0.90

type ListScalingV2PoliciesInvoker struct {
	*invoker.BaseInvoker
}

func (*ListScalingV2PoliciesInvoker) Invoke added in v0.0.90

type PauseScalingGroupInvoker added in v0.0.90

type PauseScalingGroupInvoker struct {
	*invoker.BaseInvoker
}

func (*PauseScalingGroupInvoker) Invoke added in v0.0.90

type PauseScalingPolicyInvoker added in v0.0.90

type PauseScalingPolicyInvoker struct {
	*invoker.BaseInvoker
}

func (*PauseScalingPolicyInvoker) Invoke added in v0.0.90

type ResumeScalingGroupInvoker added in v0.0.90

type ResumeScalingGroupInvoker struct {
	*invoker.BaseInvoker
}

func (*ResumeScalingGroupInvoker) Invoke added in v0.0.90

type ResumeScalingPolicyInvoker added in v0.0.90

type ResumeScalingPolicyInvoker struct {
	*invoker.BaseInvoker
}

func (*ResumeScalingPolicyInvoker) Invoke added in v0.0.90

type ShowApiVersionInvoker added in v0.0.90

type ShowApiVersionInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowApiVersionInvoker) Invoke added in v0.0.90

type ShowLifeCycleHookInvoker added in v0.0.90

type ShowLifeCycleHookInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowLifeCycleHookInvoker) Invoke added in v0.0.90

type ShowPolicyAndInstanceQuotaInvoker added in v0.0.90

type ShowPolicyAndInstanceQuotaInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowPolicyAndInstanceQuotaInvoker) Invoke added in v0.0.90

type ShowResourceQuotaInvoker added in v0.0.90

type ShowResourceQuotaInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowResourceQuotaInvoker) Invoke added in v0.0.90

type ShowScalingConfigInvoker added in v0.0.90

type ShowScalingConfigInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowScalingConfigInvoker) Invoke added in v0.0.90

type ShowScalingGroupInvoker added in v0.0.90

type ShowScalingGroupInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowScalingGroupInvoker) Invoke added in v0.0.90

type ShowScalingPolicyInvoker added in v0.0.90

type ShowScalingPolicyInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowScalingPolicyInvoker) Invoke added in v0.0.90

type ShowScalingV2PolicyInvoker added in v0.0.90

type ShowScalingV2PolicyInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowScalingV2PolicyInvoker) Invoke added in v0.0.90

type UpdateGroupScheduledTaskInvoker added in v0.1.48

type UpdateGroupScheduledTaskInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateGroupScheduledTaskInvoker) Invoke added in v0.1.48

type UpdateLifeCycleHookInvoker added in v0.0.90

type UpdateLifeCycleHookInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateLifeCycleHookInvoker) Invoke added in v0.0.90

type UpdateScalingGroupInvoker added in v0.0.90

type UpdateScalingGroupInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateScalingGroupInvoker) Invoke added in v0.0.90

type UpdateScalingPolicyInvoker added in v0.0.90

type UpdateScalingPolicyInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateScalingPolicyInvoker) Invoke added in v0.0.90

type UpdateScalingV2PolicyInvoker added in v0.0.90

type UpdateScalingV2PolicyInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateScalingV2PolicyInvoker) Invoke added in v0.0.90

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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