Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Situation Awareness
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
Software Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive

Querying AS Group Details

Updated on 2022-08-15 GMT+08:00

Function

This API is used to query details about a specified AS group by group ID.

URI

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

Table 1 Parameter description

Parameter

Mandatory

Type

Description

project_id

Yes

String

Specifies the project ID.

scaling_group_id

Yes

String

Specifies the AS group ID.

Request Message

  • Request parameters

    None

  • Example request

    This example shows how to query details about the AS group with ID d4e50321-3777-4135-97f8-9f5e9714a4b0.

    GET https://{Endpoint}/autoscaling-api/v1/{project_id}/scaling_group/d4e50321-3777-4135-97f8-9f5e9714a4b0

Response Message

  • Response parameters
    Table 2 Response parameters

    Parameter

    Type

    Description

    scaling_group

    scaling_groups object

    Specifies details about the AS group.

    Table 3 scaling_groups field description

    Parameter

    Type

    Description

    scaling_group_name

    String

    Specifies the name of the AS group.

    scaling_group_id

    String

    Specifies the AS group ID.

    scaling_group_status

    String

    Specifies the status of the AS group.

    scaling_configuration_id

    String

    Specifies the AS configuration ID.

    scaling_configuration_name

    String

    Specifies the AS configuration name.

    current_instance_number

    Integer

    Specifies the number of current instances in the AS group.

    desire_instance_number

    Integer

    Specifies the expected number of instances in the AS group.

    min_instance_number

    Integer

    Specifies the minimum number of instances in the AS group.

    max_instance_number

    Integer

    Specifies the maximum number of instances in the AS group.

    cool_down_time

    Integer

    Specifies the cooldown period (s).

    lbaas_listeners

    Array of lbaas_listeners objects

    Specifies enhanced load balancers. For details, see Table 4.

    available_zones

    Array of strings

    Specifies the AZ information.

    networks

    Array of networks objects

    Specifies the network information. For details, see Table 5.

    security_groups

    Array of security_groups objects

    Specifies the security group information. For details, see Table 6.

    create_time

    String

    Specifies the time when an AS group was created. The time format complies with UTC.

    vpc_id

    String

    Specifies the ID of the VPC to which the AS group belongs.

    detail

    String

    Specifies details about the AS group. If a scaling action fails, this parameter is used to record errors.

    is_scaling

    Boolean

    Specifies the scaling flag of the AS group.

    health_periodic_audit_method

    String

    Specifies the health check method.

    health_periodic_audit_time

    Integer

    Specifies the health check interval.

    health_periodic_audit_grace_period

    Integer

    Specifies the grace period for health check.

    instance_terminate_policy

    String

    Specifies the instance removal policy.

    notifications

    Array of strings

    Specifies the notification mode.

    EMAIL refers to notification by email.

    delete_publicip

    Boolean

    Specifies whether to delete the EIP bound to the ECS when deleting the ECS.

    delete_volume

    Boolean

    Specifies whether to delete the data disks attached to the ECS when deleting the ECS.

    cloud_location_id

    String

    This parameter is reserved.

    activity_type

    String

    Specifies the type of the AS action.

    multi_az_priority_policy

    String

    Specifies the priority policy used to select target AZs when adjusting the number of instances in an AS group.

    description

    String

    Specifies the description of the AS group.

    Table 4 networks field description

    Parameter

    Type

    Description

    id

    String

    Specifies the subnet ID.

  • Example response
    {
        "scaling_group": {
          "networks": [
                    {
                        "id": " a8327883-6b07-4497-9c61-68d03ee193a ",
                        "ipv6_enable": true,
                        "ipv6_bandwidth": 
                            {         
                                  "id": "076ee2ff-f23e-4338-b8ac-1bc7278532d5"
                            }
                    }
            ],
            "available_zones": [
                   "XXXa",
                   "XXXb"
            ],
            "detail": null,
            "scaling_group_name": "api_gateway_modify",
            "scaling_group_id": "d4e50321-3777-4135-97f8-9f5e9714a4b0",
            "scaling_group_status": "INSERVICE",
            "scaling_configuration_id": "53579851-3841-418d-a97b-9cecdb663a90",
            "scaling_configuration_name": "press",
            "current_instance_number": 7,
            "desire_instance_number": 8,
            "min_instance_number": 0,
            "max_instance_number": 100,
            "cool_down_time": 900,
            "lb_listener_id": null,
            "security_groups": [
                {
                    "id": "23b7b999-0a30-4b48-ae8f-ee201a88a6ab"
                }
            ],
            "create_time": "2015-09-01T08:36:10Z",
            "vpc_id": "3e22f934-800d-4bb4-a588-0b9a76108190",
            "health_periodic_audit_method": "NOVA_AUDIT",
            "health_periodic_audit_time": 5,
            "health_periodic_audit_grace_period": 600,
            "instance_terminate_policy": "OLD_CONFIG_OLD_INSTANCE",
            "is_scaling": true,
            "delete_publicip": false,
            "notifications": null,
            
            "activity_type": "MODIFY_ELB",
            "multi_az_priority_policy": "PICK_FIRST"
      
        }
    }

Returned Values

  • Normal

    200

  • Abnormal

    Returned Value

    Description

    400 Bad Request

    The server failed to process the request.

    401 Unauthorized

    You must enter the username and password to access the requested page.

    403 Forbidden

    You are forbidden to access the requested page.

    404 Not Found

    The server could not find the requested page.

    405 Method Not Allowed

    You are not allowed to use the method specified in the request.

    406 Not Acceptable

    The response generated by the server could not be accepted by the client.

    407 Proxy Authentication Required

    You must use the proxy server for authentication so that the request can be processed.

    408 Request Timeout

    The request timed out.

    409 Conflict

    The request could not be processed due to a conflict.

    500 Internal Server Error

    Failed to complete the request because of an internal service error.

    501 Not Implemented

    Failed to complete the request because the server does not support the requested function.

    502 Bad Gateway

    Failed to complete the request because the request is invalid.

    503 Service Unavailable

    Failed to complete the request because the system is unavailable.

    504 Gateway Timeout

    A gateway timeout error occurred.

Error Codes

See Error Codes.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback