• Auto Scaling

as
  1. Help Center
  2. Auto Scaling
  3. Developer Guide
  4. Appendix
  5. Response Parameters for Querying AS Configurations

Response Parameters for Querying AS Configurations

Response parameters are as follows.

Parameter description

Table 1 Response parameters

Parameter

Type

Description

total_number

Integer

Specifies the total number of query records.

start_number

Integer

Specifies the start line number.

limit

Integer

Specifies the number of query records.

scaling_configurations

List data structure

Specifies the AS configuration list.

scaling_configurations field data structure description

Table 2 scaling_configurations field data structure description

Parameter

Type

Description

scaling_configuration_id

String

Specifies the AS configuration ID. This parameter is globally unique.

tenant

String

Specifies the tenant ID.

scaling_configuration_name

String

Specifies the AS configuration name.

instance_config

Dictionary data structure

Specifies the information about instance configurations.

create_time

String

Specifies the time when AS configurations are created. The time format complies with UTC.

instance_config field data structure description

Table 3 instance_config field data structure description

Parameter

Type

Description

flavorRef

String

Specifies the ECS flavor ID.

imageRef

String

Specifies the image ID. It is same as image_id.

disk

List data structure

Specifies the disk group information.

key_name

String

Specifies the name of the SSH key pair used to log in to the ECS.

instance_name

String

This field is reserved.

instance_id

String

This field is reserved.

adminPass

String

This field is reserved.

personality

List data structure

Specifies information about the injected file.

public_ip

Dictionary data structure

Specifies the EIP of the ECS.

user_data

String

Specifies the Cloud-Init user data, which is encoded using Base64.

metadata

Dictionary data structure

Specifies the metadata of ECSs to be created.

security_groups

List data structure

Specifies the security group information.

disk field data structure description

Table 4 disk field data structure description

Parameter

Type

Description

size

Integer

Specifies the disk size. The unit is GB.

volume_type

String

Specifies the disk type.

disk_type

String

Specifies whether the disk is a system disk or a data disk. DATA indicates a data disk. SYS indicates a system disk.

dedicated_storage_id

String

Specifies the ID of the DSS device for the disk.

data_disk_image_id

String

Specifies the ID of the data disk image for creating a data disk.

snapshot_id

String

Specifies the disk backup snapshot ID.

personality field data structure description

Table 5 personality field data structure description

Parameter

Type

Description

path

String

Specifies the path of the injected file.

content

String

Specifies the content of the file to be injected. The file content is encoded using Base64.

public_ip field data structure description

Table 6 public_ip field data structure description

Parameter

Type

Description

eip

Dictionary data structure

Specifies the configuration parameter for creating an EIP that will be automatically assigned to the ECS.

eip field data structure description

Table 7 eip field data structure description

Parameter

Type

Description

ip_type

String

Specifies the IP address type.

bandwidth

Dictionary data structure

Specifies the bandwidth of the IP address.

bandwidth field data structure description

Table 8 bandwidth field data structure description

Parameter

Type

Description

size

Integer

Specifies the bandwidth (Mbit/s).

share_type

String

Specifies the bandwidth sharing type.

Enumerated values of the sharing type:

PER indicates dedicated bandwidth.

charging_mode

String

Specifies the bandwidth charging mode.

  • If the field value is traffic, the ECS service is charged by traffic.

metadata field data structure description

Table 9 metadata field data structure description

Parameter

Type

Description

User-defined field key pair

String

Specifies the key and value pair of the metadata.

Example response

{
    "limit": 20,
    "total_number": 2,
    "start_number": 0,
    "scaling_configurations": [
        {
            "tenant": "ce061903a53545dcaddb300093b477d2",
            "scaling_configuration_id": "6afe46f9-7d3d-4046-8748-3b2a1085ad86",
            "scaling_configuration_name": " config_name_1",
            "instance_config": {
                "disk": [
                    {
                        "size": 40,
                        "volume_type": "SATA",
                        "disk_type": "SYS"
                    },
                    {
                        "size": 100,
                        "volume_type": "SATA",
                        "disk_type": "DATA"
                    }
                ],
                "personality": null,
                "instance_name": null,
                "instance_id": null,
                "flavorRef": "103",
                "imageRef": "37ca2b35-6fc7-47ab-93c7-900324809c5c",
                "key_name": "keypair01",
                "public_ip": null,
                "user_data": null,
                "metadate": {},
                "security_groups": [{
                     "id": "6c22a6c0-b5d2-4a84-ac56-51090dcc33be"
                }],
            },
            "create_time": "2015-07-23T01:04:07Z"
        },
        {
            "tenant": "ce061903a53545dcaddb300093b477d2",
            "scaling_configuration_id": "24a8c5f3-c713-4aba-ac29-c17101009e5d",
            "scaling_configuration_name": "config_name_2",
            "instance_config": {
                "disk": [
                    {
                        "size": 40,
                        "volume_type": "SATA",
                        "disk_type": "SYS"
                    }
                ],
                "personality": null,
                "instance_name": null,
                "instance_id": null,
                "flavorRef": "103",
                "imageRef": "37ca2b35-6fc7-47ab-93c7-900324809c5c",
                "key_name": "keypair01",
                "public_ip": null,
                "user_data": null,
                "metadata": {},
                "security_groups": [{
                     "id": "6c22a6c0-b5d2-4a84-ac56-51090dcc33be"
                }],
            },
            "create_time": "2015-07-22T01:08:41Z"
        }
    ]
}