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

AS

分享
更新时间: 2019/11/15 GMT+08:00
基于AS v1 API的SDK接口如下,调用方式举例:conn.auto_scaling.create_group()

Interface

Method

API

Group Operations

create_group(self, **attrs)

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

链接

groups(self, **query)

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

链接

get_group(self, group)

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

链接

update_group(self, group, **attrs)

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

链接

delete_group(self, group, ignore_missing=True)

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

链接

resume_group(self, group)

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

链接

pause_group(self, group)

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

链接

Config Operations

create_config(self, name, **attrs)

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

链接

configs(self, **query)

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

链接

get_config(self, config)

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

链接

delete_config(self, config, ignore_missing=True)

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

链接

batch_delete_configs(self, configs)

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

链接

Instance Operations

instances(self, group, **query)

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

链接

remove_instance(self, instance, delete_instance=False, ignore_missing=True)

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

链接

batch_add_instances(self, group, instances)

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

链接

batch_remove_instances(self, group, instances, delete_instance=False)

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

链接

Policy Operations

create_policy(self, **attrs)

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

链接

update_policy(self, policy, **attrs)

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

链接

policies(self, group, **query)

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

链接

get_policy(self, policy)

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

链接

execute_policy(self, policy)

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

链接

resume_policy(self, policy)

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

链接

pause_policy(self, policy)

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

链接

delete_policy(self, policy, ignore_missing=True)

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

链接

Activity Operations

activities(self, group, **query)

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

链接

Quota Operations

quotas(self, group=None)

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

链接

quotas(self, group=None)

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

链接

Lifecycle_hook Operations

create_lifecycle_hook(self, group, **attrs)

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

链接

lifecycle_hooks(self, group)

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

链接

get_lifecycle_hook(self, group, lifecycle_hook)

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

链接

update_lifecycle_hook(self, group, lifecycle_hook, **attrs)

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

链接

delete_lifecycle_hook(self, group, lifecycle_hook)

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

链接

call_back_instance(self, group, **attrs)

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

链接

get_group_hanging_instance(self, group, **query)

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

链接

Notification Operations

create_notification(self, group, **data)

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

链接

notifications(self, group)

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

链接

delete_notification(self, group, topic)

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

链接

分享:

    相关文档

    相关产品

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

提交成功!

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

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

*必选

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

字符长度不能超过200

提交反馈 取消

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

跳转到云社区