• CLI

sdk
  1. Help Center
  2. CLI
  3. Developer Guide
  4. Mapping Between API and SDK
  5. Java
  6. AS

AS

Interface

Method

API

Group

osclient.autoScaling().groups().create(group)

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

osclient.autoScaling().groups().list()

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

osclient.autoScaling().groups().get("groupId")

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

osclient.autoScaling().groups().update(group.groupId(), update)

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

osclient.autoScaling().groups().delete("groupId")

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

osclient.autoScaling().groups().resume("groupId")

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

osclient.autoScaling().groups().pause("groupId")

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

config

osv3().autoScaling().configs().create(config)

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

osv3().autoScaling().configs().list()

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

osv3().autoScaling().configs().get("configId")

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

osv3().autoScaling().configs().delete("configId")

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

osv3().autoScaling().configs().delete(Lists.newArrayList("configId"))

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

Instance

osclient.autoScaling() .groupInstances().list("groupId", options)

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

osclient.autoScaling().groupInstances().delete("instanceId", false)

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

osclient.autoScaling().groupInstances() .batchOperate("groupId", instanceIds , false, Action.ADD)

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

osclient.autoScaling().groupInstances() .batchOperate("groupId", instanceIds , false, Action.DELETE)

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

Policy

osclient.autoScaling().policies().create(policy)

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

osclient.autoScaling().policies().update(policy)

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

osclient.autoScaling().policies().list("groupId")

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

osclient.autoScaling().policies().get("policyId")

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

osclient.autoScaling().policies().execute("policyId")

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

osclient.autoScaling().policies().resume("policyId")

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

osclient.autoScaling().policies().pause("policyId")

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

osclient.autoScaling().policies().delete("policyId")

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

Activity

osclient.autoScaling().activityLogs().list("groupId", options)

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

Quota

osclient.autoScaling().quotas().list()

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

osclient.autoScaling().quotas().list("groupId")

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

LifecycleHook

osclient.autoScaling().lifecycleHook().create(lifecycleHook,"groupId")

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

osclient.autoScaling().lifecycleHook().list("groupId")

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

osclient.autoScaling().lifecycleHook().list("groupId","lifecycleHookName")

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

osclient.autoScaling().lifecycleHook().delete("groupId","lifecycleHookName")

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

osclient.autoScaling().lifecycleHook().update("groupId","lifecycleHookName",lifecycleHook)

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

osclient.autoScaling().lifecycleHook().scalingInstanceHangup("groupId",instanceId)

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

osclient.autoScaling().lifecycleHook().scalingInstanceHookCallback("groupId",lifecycleInstanceCallback)

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