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

AS

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

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

Interface

Method

API

Configures

Create(client *gophercloud.ServiceClient, opts CreateOptsBuilder)

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

链接

Delete(client *gophercloud.ServiceClient, scalingConfigurationId string)

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

链接

DeleteWithBatch(client *gophercloud.ServiceClient, opts DeleteWithBatchOptsBuilder)

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

链接

Get(client *gophercloud.ServiceClient, scalingConfigurationId string)

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

链接

List(client *gophercloud.ServiceClient, opts ListOptsBuilder)

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

链接

Groups

Create(client *gophercloud.ServiceClient, opts CreateOptsBuilder)

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

链接

Delete(client *gophercloud.ServiceClient, scalingGroupId string, opts DeleteOptsBuilder)

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

链接

Enable(client *gophercloud.ServiceClient, scalingGroupId string, opts EnableOptsBuilder)

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

链接

Get(client *gophercloud.ServiceClient, scalingGroupId string)

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

链接

List(client *gophercloud.ServiceClient, opts ListOptsBuilder)

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

链接

Update(client *gophercloud.ServiceClient, scalingGroupId string, opts UpdateOptsBuilder)

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

链接

Instances

Action(client *gophercloud.ServiceClient, scalingGroupId string, opts ActionOptsBuilder)

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

链接

Delete(client *gophercloud.ServiceClient, instanceId string, opts DeleteOptsBuilder)

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

链接

List(client *gophercloud.ServiceClient, scalingGroupId string, opts ListOptsBuilder)

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

链接

LifecycleHooks

CallBack(client *gophercloud.ServiceClient, scalingGroupId string, opts CallBackOptsBuilder)

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

链接

Create(client *gophercloud.ServiceClient,scalingGroupId string, opts CreateOptsBuilder)

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

链接

Delete(client *gophercloud.ServiceClient,scalingGroupId string,lifecycleHookName string)

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

链接

Get(client *gophercloud.ServiceClient, scalingGroupId string, lifecycleHookName string)

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

链接

List(client *gophercloud.ServiceClient, scalingGroupId string)

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

链接

ListWithSuspension(client *gophercloud.ServiceClient, scalingGroupId string, opts ListWithSuspensionOptsBuilder)

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

链接

Update(client *gophercloud.ServiceClient, scalingGroupId string, lifecycleHookName string, opts UpdateOptsBuilder)

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

链接

Logs

List(client *gophercloud.ServiceClient, scalingGroupId string, opts ListOptsBuilder)

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

链接

Notifications

Delete(client *gophercloud.ServiceClient, scalingGroupId string, topicUrn string)

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

链接

ConfigNotification(client *gophercloud.ServiceClient, scalingGroupId string, opts ConfigNotificationOptsBuilder)

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

链接

List(client *gophercloud.ServiceClient, scalingGroupId string)

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

链接

Policies

Action(client *gophercloud.ServiceClient, scalingPolicyId string, opts ActionOptsBuilder)

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

链接

Create(client *gophercloud.ServiceClient, opts CreateOptsBuilder)

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

链接

Delete(client *gophercloud.ServiceClient, scalingPolicyId string)

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

链接

Get(client *gophercloud.ServiceClient, scalingPolicyId string)

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

链接

List(client *gophercloud.ServiceClient, scalingGroupId string, opts ListOptsBuilder)

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

链接

Update(client *gophercloud.ServiceClient, scalingPolicyId string,opts UpdateOptsBuilder)

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

链接

PolicyLogs

List(client *gophercloud.ServiceClient, scalingPolicyId string, opts ListOptsBuilder)

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

链接

Quotas

List(client *gophercloud.ServiceClient)

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

链接

ListWithInstances(client *gophercloud.ServiceClient, scalingGroupId string)

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

链接

Tags

ListResourceTags(client *gophercloud.ServiceClient, resourceType string, resourceId string)

GET /autoscaling-api/v1/{project_id}/{resource_type}/{resource_id}/tags

链接

ListTenantTags(client *gophercloud.ServiceClient, resourceType string)

GET /autoscaling-api/v1/{project_id}/{resource_type}/tags

链接

ListInstanceTags(client *gophercloud.ServiceClient, resourceType string, opts InstanceOptsBuilder)

POST /autoscaling-api/v1/{project_id}/{resource_type}/resource_instances/action

链接

Update(client *gophercloud.ServiceClient, resourceType string, resourceId string, opts UpdateOptsBuilder)

POST /autoscaling-api/v1/{project_id}/{resource_type}/{resource_id}/tags/action

链接

基于AS v2.0 Go SDK的SDK接口如下,调用方式请参考示例代码。

Interface

Method

API

Policies

Create(client *gophercloud.ServiceClient, opts CreateOptsBuilder)

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

链接

Get(client *gophercloud.ServiceClient, scalingPolicyId string)

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

链接

GetPolicyListByResourceID(client *gophercloud.ServiceClient, scalingResourceId string, opts ResourceListOptsBuilder)

GET /autoscaling-api/v2/{project_id}/scaling_policy/{scaling_resource_id}/list

链接

Update(client *gophercloud.ServiceClient, scalingPolicyId string, opts UpdateOptsBuilder)

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

链接

List(client *gophercloud.ServiceClient, opts ListOptsBuilder)

GET /autoscaling-api/v2/{project_id}/scaling_policy

链接

分享:

    相关文档

    相关产品

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

提交成功!

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

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

*必选

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

字符长度不能超过200

提交反馈 取消

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

跳转到云社区