文档首页 > > 开发指南> API & SDK 对应关系> Java> AS

AS

分享
更新时间: 2019/11/15 GMT+08:00

基于AS v1 API的SDK接口如下,调用方式请参考示例代码。

Interface

Method

API

AutoScalingGroupService

String create(ScalingGroupCreate group)

POST /autoscaling-api/v1/{project_id}/scaling_group

链接

List<? extends ScalingGroup> list()

GET /autoscaling-api/v1/{project_id}/scaling_group

链接

ScalingGroup get(String groupId)

GET /autoscaling-api/v1/{project_id}/scaling_group/{scaling_group_id}

链接

String update(String groupId, ScalingGroupUpdate group)

PUT /autoscaling-api/v1/{project_id}/scaling_group/{scaling_group_id}

链接

ActionResponse delete(String groupId)

DELETE /autoscaling-api/v1/{project_id}/scaling_group/{scaling_group_id

链接

ActionResponse resume(String groupId)

POST /autoscaling-api/v1/{project_id}/scaling_group/{scaling_group_id}/action

链接

ActionResponse pause(String groupId)

POST /autoscaling-api/v1/{project_id}/scaling_group/{scaling_group_id}/action

链接

AutoScalingConfigService

String create(ScalingConfigCreate config)

POST /autoscaling-api/v1/{project_id}/scaling_configuration

链接

List<? extends ScalingConfig> list()

GET /autoscaling-api/v1/{project_id}/scaling_configuration

链接

ScalingConfig get(String configId)

GET /autoscaling-api/v1/{project_id}/scaling_configuration/{scaling_configuration_id}

链接

ActionResponse delete(String configId)

DELETE /autoscaling-api/v1/{project_id}/scaling_configuration/{scaling_configuration_id}

链接

ActionResponse delete(List<String> configIds)

POST /autoscaling-api/v1/{project_id}/scaling_configurations

链接

AutoScalingGroupInstanceService

List<? extends ScalingGroupInstance> list(String groupId, ScalingGroupInstanceListOptions options)

GET /autoscaling-api/v1/{project_id}/scaling_group_instance/{scaling_group_id}/list

链接

ActionResponse delete(String instanceId, boolean deleteInstance)

DELETE /autoscaling-api/v1/{project_id}/scaling_group_instance/{instance_id}

链接

ActionResponse batchAdd(String groupId, List<String> instanceIds, boolean deleteInstance)

POST /autoscaling-api/v1/{project_id}/scaling_group_instance/{scaling_group_id}/action

链接

ActionResponse batchRemove(String groupId, List<String> instanceIds, boolean deleteInstance)

POST /autoscaling-api/v1/{project_id}/scaling_group_instance/{scaling_group_id}/action

链接

AutoScalingPolicyService

String create(ScalingPolicyCreateUpdate policy)

POST /autoscaling-api/v1/{project_id}/scaling_policy

链接

String update(ScalingPolicyCreateUpdate policy)

PUT /autoscaling-api/v1/{project_id}/scaling_policy/{scaling_policy_id}

链接

List<? extends ScalingPolicy> list(String groupId)

GET /autoscaling-api/v1/{project_id}/scaling_policy/{scaling_group_id}/list

链接

ScalingPolicy get(String policyId)

GET /autoscaling-api/v1/{project_id}/scaling_policy/{scaling_policy_id}

链接

ActionResponse execute(String policyId)

POST /autoscaling-api/v1/{project_id}/scaling_policy/{scaling_policy_id}/action

链接

ActionResponse resume(String policyId)

POST /autoscaling-api/v1/{project_id}/scaling_policy/{scaling_policy_id}/action

链接

ActionResponse pause(String policyId)

POST /autoscaling-api/v1/{project_id}/scaling_policy/{scaling_policy_id}/action

链接

ActionResponse delete(String policyId)

DELETE /autoscaling-api/v1/{project_id}/scaling_policy/{scaling_policy_id}

链接

AutoScalingActivityLogService

list(String groupId, ScalingActivityLogListOptions options)

GET /autoscaling-api/v1/{project_id}/scaling_activity_log/{scaling_group_id}

链接

AutoScalingQuotaService

List<Quota> list()

GET /autoscaling-api/v1/{project_id}/quotas

链接

List<Quota> list(String groupId)

GET /autoscaling-api/v1/{project_id}/quotas/{scaling_group_id}

链接

AutoScalingLifecycleHookService

ASAutoScalingLifecycleHook create(ASAutoScalingLifecycleHook lifecycleHook, String groupId)

POST /autoscaling-api/v1/{project_id}/scaling_lifecycle_hook/{scaling_group_id}

链接

List<? extends ASAutoScalingLifecycleHook> list(String groupId)

GET /autoscaling-api/v1/{project_id}/scaling_lifecycle_hook/{scaling_group_id}/list

链接

ASAutoScalingLifecycleHook list(String groupId, String lifecycleHookName)

GET /autoscaling-api/v1/{project_id}/scaling_lifecycle_hook/{scaling_group_id}/{lifecycle_hook_name}

链接

ActionResponse delete(String groupId, String lifecycleHookName)

DELETE /autoscaling-api/v1/{project_id}/scaling_lifecycle_hook/{scaling_group_id}/{lifecycle_hook_name}

链接

ASAutoScalingLifecycleHook update(String groupId, String lifecycleHookName, ASAutoScalingLifecycleHook lifecycleHook)

PUT /autoscaling-api/v1/{project_id}/scaling_lifecycle_hook/{scaling_group_id}/{lifecycle_hook_name}

链接

List<? extends AutoScalingInstanceHangupInfo> scalingInstanceHangup(String groupId, ScalingInstanceOptions instanceId)

GET /autoscaling-api/v1/{project_id}/scaling_instance_hook/{scaling_group_id}/list

链接

ActionResponse scalingInstanceHookCallback(String groupId, ASAutoScalingLifecycleInstanceCallback lifecycleInstanceCallback)

PUT /autoscaling-api/v1/{project_id}/scaling_instance_hook/{scaling_group_id}/callback

链接

AutoScalingInformService

ASAutoScalingInform deploy(String groupId, ASAutoScalingInform info)

PUT /autoscaling-api/v1/{project_id}/scaling_notification/{scaling_group_id}

链接

ASAutoScalingTopics list(String groupId)

GET /autoscaling-api/v1/{project_id}/scaling_notification/{scaling_group_id}

链接

ActionResponse delete(String groupId, String topicUrn)

DELETE /autoscaling-api/v1/{project_id}/scaling_notification/{scaling_group_id}/{topic_urn}

链接

分享:

    相关文档

    相关产品

文档是否有解决您的问题?

提交成功!

非常感谢您的反馈,我们会继续努力做到更好!

反馈提交失败,请稍后再试!

*必选

请至少选择或填写一项反馈信息

字符长度不能超过200

提交反馈 取消

如您有其它疑问,您也可以通过华为云社区问答频道来与我们联系探讨

跳转到云社区