diff --git a/docs/as/dev/ALL_META.TXT.json b/docs/as/dev/ALL_META.TXT.json new file mode 100644 index 000000000..d2a74e234 --- /dev/null +++ b/docs/as/dev/ALL_META.TXT.json @@ -0,0 +1,202 @@ +[ + { + "uri":"en-us_topic_0110252694.html", + "product_code":"as", + "code":"1", + "des":"This document describes how to call the APIs of Auto Scaling (AS) to use basic functions of the service.For details about how to use APIs, see API Usage Guidelines.", + "doc_type":"devg", + "kw":"Overview,Developer Guide", + "title":"Overview", + "githuburl":"" + }, + { + "uri":"en-us_topic_0110252697.html", + "product_code":"as", + "code":"2", + "des":"AS GroupAn AS group consists of a collection of instances that apply to the same scenario. It is the basis for enabling or disabling AS policies and performing scaling ac", + "doc_type":"devg", + "kw":"Basic Concepts,Developer Guide", + "title":"Basic Concepts", + "githuburl":"" + }, + { + "uri":"en-us_topic_0110252699.html", + "product_code":"as", + "code":"3", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"devg", + "kw":"Common Operations", + "title":"Common Operations", + "githuburl":"" + }, + { + "uri":"en-us_topic_0110252700.html", + "product_code":"as", + "code":"4", + "des":"An AS configuration specifies the specifications of the ECSs to be added to an AS group, including the ECS specifications, images, and disks. You can create an AS configu", + "doc_type":"devg", + "kw":"Creating an AS Configuration,Common Operations,Developer Guide", + "title":"Creating an AS Configuration", + "githuburl":"" + }, + { + "uri":"en-us_topic_0110252701.html", + "product_code":"as", + "code":"5", + "des":"An AS group consists of a collection of instances that apply to the same scenario. It is the basis for enabling or disabling AS policies and performing scaling actions.If", + "doc_type":"devg", + "kw":"Creating an AS Group,Common Operations,Developer Guide", + "title":"Creating an AS Group", + "githuburl":"" + }, + { + "uri":"en-us_topic_0110252702.html", + "product_code":"as", + "code":"6", + "des":"An AS group consists of a collection of instances that apply to the same scenario. It is the basis for enabling or disabling AS policies and performing scaling actions.On", + "doc_type":"devg", + "kw":"Enabling an AS Group,Common Operations,Developer Guide", + "title":"Enabling an AS Group", + "githuburl":"" + }, + { + "uri":"en-us_topic_0110252703.html", + "product_code":"as", + "code":"7", + "des":"An AS policy specifies a condition for triggering a scaling action. When the trigger condition is met, a scaling action occurs.If you use a token for authentication, you ", + "doc_type":"devg", + "kw":"Creating an AS Policy,Common Operations,Developer Guide", + "title":"Creating an AS Policy", + "githuburl":"" + }, + { + "uri":"en-us_topic_0110252684.html", + "product_code":"as", + "code":"8", + "des":"An instance is an ECS in an AS group.Adding Instances to or Removing Instances from an AS GroupIf you use a token for authentication, you must call the IAM API to obtain ", + "doc_type":"devg", + "kw":"Performing Operations on Instances in Batches,Common Operations,Developer Guide", + "title":"Performing Operations on Instances in Batches", + "githuburl":"" + }, + { + "uri":"en-us_topic_0110252685.html", + "product_code":"as", + "code":"9", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"devg", + "kw":"Appendix", + "title":"Appendix", + "githuburl":"" + }, + { + "uri":"en-us_topic_0110252686.html", + "product_code":"as", + "code":"10", + "des":"Response parameters are as follows.Parameter descriptionDescriptions of vpcs fieldsDescription of the route fieldExample response", + "doc_type":"devg", + "kw":"Response Parameters for Querying VPCs,Appendix,Developer Guide", + "title":"Response Parameters for Querying VPCs", + "githuburl":"" + }, + { + "uri":"en-us_topic_0110252687.html", + "product_code":"as", + "code":"11", + "des":"Response parameters are as follows.Parameter descriptionDescriptions of subnets fieldsExample response", + "doc_type":"devg", + "kw":"Response Parameters for Querying Subnets,Appendix,Developer Guide", + "title":"Response Parameters for Querying Subnets", + "githuburl":"" + }, + { + "uri":"en-us_topic_0110252688.html", + "product_code":"as", + "code":"12", + "des":"Response parameters are as follows.Parameter descriptionExample response", + "doc_type":"devg", + "kw":"Response Parameters for Querying Security Groups,Appendix,Developer Guide", + "title":"Response Parameters for Querying Security Groups", + "githuburl":"" + }, + { + "uri":"en-us_topic_0110252689.html", + "product_code":"as", + "code":"13", + "des":"Response parameters are as follows.Parameter descriptionExample response", + "doc_type":"devg", + "kw":"Response Parameters for Querying Images,Appendix,Developer Guide", + "title":"Response Parameters for Querying Images", + "githuburl":"" + }, + { + "uri":"en-us_topic_0110252690.html", + "product_code":"as", + "code":"14", + "des":"Response parameters are as follows.Parameter descriptionExample response", + "doc_type":"devg", + "kw":"Response Parameters for Querying SSH Key Pairs,Appendix,Developer Guide", + "title":"Response Parameters for Querying SSH Key Pairs", + "githuburl":"" + }, + { + "uri":"en-us_topic_0110252691.html", + "product_code":"as", + "code":"15", + "des":"Response parameters are as follows.Parameter descriptionlinks field data structure descriptionExample response", + "doc_type":"devg", + "kw":"Response Parameters for Querying ECSs,Appendix,Developer Guide", + "title":"Response Parameters for Querying ECSs", + "githuburl":"" + }, + { + "uri":"en-us_topic_0110252693.html", + "product_code":"as", + "code":"16", + "des":"Response parameters are as follows.Parameter descriptionscaling_groups field data structure descriptionlbaas_listeners field data structure descriptionnetworks field data", + "doc_type":"devg", + "kw":"Response Parameters for Querying AS Groups,Appendix,Developer Guide", + "title":"Response Parameters for Querying AS Groups", + "githuburl":"" + }, + { + "uri":"en-us_topic_0110252695.html", + "product_code":"as", + "code":"17", + "des":"Response parameters are as follows.Parameter descriptionscaling_configurations field descriptioninstance_config field descriptiondisk field descriptionpersonality field d", + "doc_type":"devg", + "kw":"Response Parameters for Querying AS Configurations,Appendix,Developer Guide", + "title":"Response Parameters for Querying AS Configurations", + "githuburl":"" + }, + { + "uri":"en-us_topic_0110252696.html", + "product_code":"as", + "code":"18", + "des":"Response parameters are as follows.Parameter descriptionscaling_group_instances field data structure descriptionExample response", + "doc_type":"devg", + "kw":"Response Parameters for Querying Instances in an AS Group,Appendix,Developer Guide", + "title":"Response Parameters for Querying Instances in an AS Group", + "githuburl":"" + }, + { + "uri":"en-us_topic_0136596144.html", + "product_code":"as", + "code":"19", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"devg", + "kw":"ICMP-Port Range Relationship Table,Appendix,Developer Guide", + "title":"ICMP-Port Range Relationship Table", + "githuburl":"" + }, + { + "uri":"en-us_topic_0139616237.html", + "product_code":"as", + "code":"20", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"devg", + "kw":"Change History,Developer Guide", + "title":"Change History", + "githuburl":"" + } +] \ No newline at end of file diff --git a/docs/as/dev/CLASS.TXT.json b/docs/as/dev/CLASS.TXT.json new file mode 100644 index 000000000..795420fc1 --- /dev/null +++ b/docs/as/dev/CLASS.TXT.json @@ -0,0 +1,182 @@ +[ + { + "desc":"This document describes how to call the APIs of Auto Scaling (AS) to use basic functions of the service.For details about how to use APIs, see API Usage Guidelines.", + "product_code":"as", + "title":"Overview", + "uri":"en-us_topic_0110252694.html", + "doc_type":"devg", + "p_code":"", + "code":"1" + }, + { + "desc":"AS GroupAn AS group consists of a collection of instances that apply to the same scenario. It is the basis for enabling or disabling AS policies and performing scaling ac", + "product_code":"as", + "title":"Basic Concepts", + "uri":"en-us_topic_0110252697.html", + "doc_type":"devg", + "p_code":"", + "code":"2" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"as", + "title":"Common Operations", + "uri":"en-us_topic_0110252699.html", + "doc_type":"devg", + "p_code":"", + "code":"3" + }, + { + "desc":"An AS configuration specifies the specifications of the ECSs to be added to an AS group, including the ECS specifications, images, and disks. You can create an AS configu", + "product_code":"as", + "title":"Creating an AS Configuration", + "uri":"en-us_topic_0110252700.html", + "doc_type":"devg", + "p_code":"3", + "code":"4" + }, + { + "desc":"An AS group consists of a collection of instances that apply to the same scenario. It is the basis for enabling or disabling AS policies and performing scaling actions.If", + "product_code":"as", + "title":"Creating an AS Group", + "uri":"en-us_topic_0110252701.html", + "doc_type":"devg", + "p_code":"3", + "code":"5" + }, + { + "desc":"An AS group consists of a collection of instances that apply to the same scenario. It is the basis for enabling or disabling AS policies and performing scaling actions.On", + "product_code":"as", + "title":"Enabling an AS Group", + "uri":"en-us_topic_0110252702.html", + "doc_type":"devg", + "p_code":"3", + "code":"6" + }, + { + "desc":"An AS policy specifies a condition for triggering a scaling action. When the trigger condition is met, a scaling action occurs.If you use a token for authentication, you ", + "product_code":"as", + "title":"Creating an AS Policy", + "uri":"en-us_topic_0110252703.html", + "doc_type":"devg", + "p_code":"3", + "code":"7" + }, + { + "desc":"An instance is an ECS in an AS group.Adding Instances to or Removing Instances from an AS GroupIf you use a token for authentication, you must call the IAM API to obtain ", + "product_code":"as", + "title":"Performing Operations on Instances in Batches", + "uri":"en-us_topic_0110252684.html", + "doc_type":"devg", + "p_code":"3", + "code":"8" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"as", + "title":"Appendix", + "uri":"en-us_topic_0110252685.html", + "doc_type":"devg", + "p_code":"", + "code":"9" + }, + { + "desc":"Response parameters are as follows.Parameter descriptionDescriptions of vpcs fieldsDescription of the route fieldExample response", + "product_code":"as", + "title":"Response Parameters for Querying VPCs", + "uri":"en-us_topic_0110252686.html", + "doc_type":"devg", + "p_code":"9", + "code":"10" + }, + { + "desc":"Response parameters are as follows.Parameter descriptionDescriptions of subnets fieldsExample response", + "product_code":"as", + "title":"Response Parameters for Querying Subnets", + "uri":"en-us_topic_0110252687.html", + "doc_type":"devg", + "p_code":"9", + "code":"11" + }, + { + "desc":"Response parameters are as follows.Parameter descriptionExample response", + "product_code":"as", + "title":"Response Parameters for Querying Security Groups", + "uri":"en-us_topic_0110252688.html", + "doc_type":"devg", + "p_code":"9", + "code":"12" + }, + { + "desc":"Response parameters are as follows.Parameter descriptionExample response", + "product_code":"as", + "title":"Response Parameters for Querying Images", + "uri":"en-us_topic_0110252689.html", + "doc_type":"devg", + "p_code":"9", + "code":"13" + }, + { + "desc":"Response parameters are as follows.Parameter descriptionExample response", + "product_code":"as", + "title":"Response Parameters for Querying SSH Key Pairs", + "uri":"en-us_topic_0110252690.html", + "doc_type":"devg", + "p_code":"9", + "code":"14" + }, + { + "desc":"Response parameters are as follows.Parameter descriptionlinks field data structure descriptionExample response", + "product_code":"as", + "title":"Response Parameters for Querying ECSs", + "uri":"en-us_topic_0110252691.html", + "doc_type":"devg", + "p_code":"9", + "code":"15" + }, + { + "desc":"Response parameters are as follows.Parameter descriptionscaling_groups field data structure descriptionlbaas_listeners field data structure descriptionnetworks field data", + "product_code":"as", + "title":"Response Parameters for Querying AS Groups", + "uri":"en-us_topic_0110252693.html", + "doc_type":"devg", + "p_code":"9", + "code":"16" + }, + { + "desc":"Response parameters are as follows.Parameter descriptionscaling_configurations field descriptioninstance_config field descriptiondisk field descriptionpersonality field d", + "product_code":"as", + "title":"Response Parameters for Querying AS Configurations", + "uri":"en-us_topic_0110252695.html", + "doc_type":"devg", + "p_code":"9", + "code":"17" + }, + { + "desc":"Response parameters are as follows.Parameter descriptionscaling_group_instances field data structure descriptionExample response", + "product_code":"as", + "title":"Response Parameters for Querying Instances in an AS Group", + "uri":"en-us_topic_0110252696.html", + "doc_type":"devg", + "p_code":"9", + "code":"18" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"as", + "title":"ICMP-Port Range Relationship Table", + "uri":"en-us_topic_0136596144.html", + "doc_type":"devg", + "p_code":"9", + "code":"19" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"as", + "title":"Change History", + "uri":"en-us_topic_0139616237.html", + "doc_type":"devg", + "p_code":"", + "code":"20" + } +] \ No newline at end of file diff --git a/docs/as/dev/PARAMETERS.txt b/docs/as/dev/PARAMETERS.txt new file mode 100644 index 000000000..6da8d5f07 --- /dev/null +++ b/docs/as/dev/PARAMETERS.txt @@ -0,0 +1,3 @@ +version="" +language="en-us" +type="" \ No newline at end of file diff --git a/docs/as/dev/en-us_topic_0110252684.html b/docs/as/dev/en-us_topic_0110252684.html new file mode 100644 index 000000000..348977dc1 --- /dev/null +++ b/docs/as/dev/en-us_topic_0110252684.html @@ -0,0 +1,27 @@ + + +
{
+ "action": "REMOVE",
+ "instances_id": [
+ "instance_id_1",
+ "instance_id_2"
+ ],
+ "instance_delete": "yes"
+}
+Response parameters are as follows.
+Parameter description
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
vpcs + |
+Array of vpcs objects + |
+Specifies the VPC objects. + |
+
Descriptions of vpcs fields
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
id + |
+String + |
+Specifies a resource ID in UUID format. + |
+
name + |
+String + |
+
|
+
description + |
+String + |
+
|
+
cidr + |
+String + |
+
|
+
status + |
+String + |
+
|
+
routes + |
+Array of route objects + |
+
|
+
enable_shared_snat + |
+Boolean + |
+Specifies whether the shared SNAT function is enabled. The value true indicates that the function is enabled, and the value false indicates that the function is not enabled. + |
+
Description of the route field
+ +Name + |
+Type + |
+Description + |
+
|---|---|---|
destination + |
+String + |
+
|
+
nexthop + |
+String + |
+
|
+
Example response
+{
+ "vpc":
+ {
+ "id": "99d9d709-8478-4b46-9f3f-2206b1023fd3",
+ "name": "vpc",
+ "description": "test",
+ "cidr": "192.168.0.0/16",
+ "status": "CREATING",
+ "enterprise_project_id": "0aad99bc-f5f6-4f78-8404-c598d76b0ed2",
+ "routes": []
+ }
+}
+Response parameters are as follows.
+Parameter description
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
subnets + |
+Array of subnets objects + |
+Specifies the subnets objects. + |
+
Descriptions of subnets fields
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
id + |
+String + |
+Specifies a resource ID in UUID format. + |
+
name + |
+String + |
+
|
+
description + |
+String + |
+
|
+
cidr + |
+String + |
+Specifies the subnet CIDR block. + |
+
gateway_ip + |
+String + |
+Specifies the subnet gateway address. + |
+
dhcp_enable + |
+Boolean + |
+Specifies whether the DHCP function is enabled for the subnet. + |
+
primary_dns + |
+String + |
+Specifies the IP address of DNS server 1 on the subnet. + |
+
secondary_dns + |
+String + |
+Specifies the IP address of DNS server 2 on the subnet. + |
+
dnsList + |
+Array of strings + |
+Specifies the IP address list of DNS servers on the subnet. + |
+
availability_zone + |
+String + |
+Identifies the AZ to which the subnet belongs. + |
+
vpc_id + |
+String + |
+Specifies the ID of the VPC to which the subnet belongs. + |
+
status + |
+String + |
+
|
+
neutron_network_id + |
+String + |
+Specifies the ID of the corresponding network (OpenStack Neutron API). + |
+
neutron_subnet_id + |
+String + |
+Specifies the ID of the corresponding subnet (OpenStack Neutron API). + |
+
extra_dhcp_opts + |
+Array of extra_dhcp_opt objects + |
+Specifies the NTP server address configured for the subnet. For details, see Table 3. + |
+
Example response
+{
+ "subnets": [
+ {
+ "id": "4779ab1c-7c1a-44b1-a02e-93dfc361b32d",
+ "name": "subnet",
+ "cidr": "192.168.20.0/24",
+ "dnsList": [
+ "114.xx.xx.114",
+ "114.xx.xx.115"
+ ],
+ "status": "ACTIVE",
+ "vpc_id": "3ec3b33f-ac1c-4630-ad1c-7dba1ed79d85",
+ "gateway_ip": "192.168.20.1",
+ "dhcp_enable": true,
+ "primary_dns": "114.xx.xx.114",
+ "secondary_dns": "114.xx.xx.115",
+ "availability_zone": "aa-bb-cc",//For example, the AZ is aa-bb-cc.
+ "neutron_network_id": "4779ab1c-7c1a-44b1-a02e-93dfc361b32d",
+ "neutron_subnet_id": "213cb9d-3122-2ac1-1a29-91ffc1231a12",
+ "extra_dhcp_opts": [
+ {
+ "opt_value": "10.100.0.33,10.100.0.34",
+ "opt_name": "ntp"
+ }
+ ]
+ },
+ {
+ "id": "531dec0f-3116-411b-a21b-e612e42349fd",
+ "name": "Subnet1",
+ "description": "",
+ "cidr": "192.168.1.0/24",
+ "dnsList": [
+ "114.xx.xx.114",
+ "114.xx.xx.115"
+ ],
+ "status": "ACTIVE",
+ "vpc_id": "3ec3b33f-ac1c-4630-ad1c-7dba1ed79d85",
+ "gateway_ip": "192.168.1.1",
+ "dhcp_enable": true,
+ "primary_dns": "114.xx.xx.114",
+ "secondary_dns": "114.xx.xx.115",
+ "availability_zone": "aa-bb-cc",//For example, the AZ is aa-bb-cc.
+ "neutron_network_id": "531dec0f-3116-411b-a21b-e612e42349fd",
+ "neutron_subnet_id": "1aac193-a2ad-f153-d122-12d64c2c1d78",
+ "extra_dhcp_opts": [
+ {
+ "opt_value": "10.100.0.33,10.100.0.34",
+ "opt_name": "ntp"
+ }
+ ]
+ }
+ ]
+}
+Response parameters are as follows.
+Parameter description
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
security_groups + |
+Array of security_group objects + |
+Specifies the security group objects. For details, see Table 2. + |
+
Name + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
name + |
+Yes + |
+String + |
+
|
+
vpc_id + |
+No + |
+String + |
+Specifies the resource ID of the VPC to which the security group belongs. + NOTE:
+This parameter has been discarded, it is not recommended to use it. + |
+
enterprise_project_id + |
+No + |
+String + |
+
NOTE:
+This parameter is unsupported. Do not use it. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
id + |
+String + |
+Specifies the security group rule ID, which uniquely identifies the security group rule. + |
+
description + |
+String + |
+
|
+
security_group_id + |
+String + |
+Specifies the security group rule ID, which uniquely identifies the security group rule. + |
+
direction + |
+String + |
+
|
+
ethertype + |
+String + |
+
|
+
protocol + |
+String + |
+
|
+
port_range_min + |
+int + |
+
|
+
port_range_max + |
+int + |
+
|
+
remote_ip_prefix + |
+String + |
+
|
+
remote_group_id + |
+String + |
+
|
+
Example response
+{
+ "security_groups": [
+ {
+ "id": "16b6e77a-08fa-42c7-aa8b-106c048884e6",
+ "name": "qq",
+ "description": "qq",
+ "vpc_id": "3ec3b33f-ac1c-4630-ad1c-7dba1ed79d85",
+
+ "security_group_rules": [
+ {
+ "direction": "egress",
+ "ethertype": "IPv4",
+ "id": "369e6499-b2cb-4126-972a-97e589692c62",
+ "description": "",
+ "security_group_id": "16b6e77a-08fa-42c7-aa8b-106c048884e6"
+ },
+ {
+ "direction": "ingress",
+ "ethertype": "IPv4",
+ "id": "0222556c-6556-40ad-8aac-9fd5d3c06171",
+ "description": "",
+ "remote_group_id": "16b6e77a-08fa-42c7-aa8b-106c048884e6",
+ "security_group_id": "16b6e77a-08fa-42c7-aa8b-106c048884e6"
+ }
+ ]
+ },
+ {
+ "id": "9c0f56be-a9ac-438c-8c57-fce62de19419",
+ "name": "default",
+ "description": "qq",
+ "vpc_id": "13551d6b-755d-4757-b956-536f674975c0",
+
+ "security_group_rules": [
+ {
+ "direction": "egress",
+ "ethertype": "IPv4",
+ "id": "95479e0a-e312-4844-b53d-a5e4541b783f",
+ "description": "",
+ "security_group_id": "9c0f56be-a9ac-438c-8c57-fce62de19419"
+ },
+ {
+ "direction": "ingress",
+ "ethertype": "IPv4",
+ "id": "0c4a2336-b036-4fa2-bc3c-1a291ed4c431",
+ "description": "",
+ "remote_group_id": "9c0f56be-a9ac-438c-8c57-fce62de19419",
+ "security_group_id": "9c0f56be-a9ac-438c-8c57-fce62de19419"
+ }
+ ]
+ }
+ ]
+}
+Response parameters are as follows.
+Parameter description
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
file + |
+Yes + |
+String + |
+Specifies the URL for uploading and downloading the image file. + |
+
owner + |
+Yes + |
+String + |
+Specifies the tenant to which the image belongs. + |
+
id + |
+Yes + |
+String + |
+Indicates the image ID. + |
+
size + |
+Yes + |
+Long + |
+This parameter is unavailable currently. + |
+
self + |
+Yes + |
+String + |
+Specifies the image URL. + |
+
schema + |
+Yes + |
+String + |
+Specifies the image schema. + |
+
status + |
+Yes + |
+String + |
+Specifies the image status. Possible values are: +
|
+
tags + |
+Yes + |
+List<String> + |
+Specifies the image tags using which the user can manage private images in a user-defined way. Users can use the image tag interface to add different tags for each image and filter images by tag. + |
+
visibility + |
+Yes + |
+String + |
+Specifies whether the image can be seen by other tenants. The value can be private or public. + |
+
name + |
+Yes + |
+String + |
+Specifies the image name. + |
+
checksum + |
+Yes + |
+String + |
+This parameter is unavailable currently. + |
+
deleted + |
+Yes + |
+Boolean + |
+Specifies whether the image has been deleted. The value can be true or false. + |
+
protected + |
+Yes + |
+Boolean + |
+Specifies whether the image is protected. A protected image cannot be deleted. The value of this parameter can be true or false. + |
+
container_format + |
+Yes + |
+String + |
+Specifies the container type. + |
+
min_ram + |
+Yes + |
+Int + |
+Specifies the minimum memory size (MB) required for running the image. The parameter value depends on the ECS specifications limit. The value is generally set to 0. + |
+
updated_at + |
+Yes + |
+String + |
+Specifies the time when a DR drill was updated. The value is in UTC format. + |
+
__os_bit + |
+No + |
+String + |
+Specifies the number of bits in the operating system: 32 or 64. + |
+
__os_version + |
+No + |
+String + |
+Specifies the OS version. + |
+
__description + |
+No + |
+String + |
+Provides supplementary information about the image. + |
+
disk_format + |
+Yes + |
+String + |
+Specifies the image format. The value can be vhd, raw, or qcow2. + |
+
__isregistered + |
+No + |
+String + |
+Specifies whether the image has been registered. The value can be true or false. + |
+
__platform + |
+No + |
+String + |
+Specifies the image platform type. The value can be Windows, Ubuntu, RedHat, SUSE, CentOS, Debian, OpenSUSE, Oracle Linux, Fedora, Other, CoreOS, or EulerOS. + |
+
__os_type + |
+No + |
+String + |
+Specifies the operating system type. The value can be Linux, Windows, or Other. + |
+
min_disk + |
+Yes + |
+Int + |
+Specifies the minimum disk space (GB) required for running the image. The value ranges from 1 GB to 1024 GB. + |
+
virtual_env_type + |
+Yes + |
+String + |
+Specifies the environment where the image is used. The value can be FusionCompute, Ironic, or DataImage. For an ECS image, the value is FusionCompute. For a data disk image, the value is DataImage. For a BMS image, the value is Ironic. + |
+
__image_source_type + |
+No + |
+String + |
+Specifies the image backend storage type. Only UDS is supported currently. + |
+
__imagetype + |
+No + |
+String + |
+Specifies the image type. The following types are supported: +
|
+
created_at + |
+No + |
+String + |
+Specifies the time when a DR drill was created. The value is in UTC format. + |
+
virtual_size + |
+No + |
+Int + |
+This parameter is unavailable currently. + |
+
deleted_at + |
+No + |
+String + |
+Specifies the time when the image was deleted. The value is in UTC format. + |
+
__originalimagename + |
+No + |
+String + |
+Specifies the parent image ID. +If the image is a public image or it is created using a file, this value is left empty. + |
+
__backup_id + |
+No + |
+String + |
+Backup ID To create an image using a backup, set the value to the backup ID. Otherwise, this value is left empty. + |
+
__productcode + |
+No + |
+String + |
+Specifies the ID of the market image product. + |
+
__image_size + |
+No + |
+String + |
+Specifies the size (bytes) of the image file. + |
+
__data_origin + |
+No + |
+String + |
+Specifies the image resource. +If the image is a public image, this parameter is left empty. + |
+
__support_xen + |
+No + |
+String + |
+Specifies whether the image supports Xen. If yes, the value is true. Otherwise, this attribute is not required. + |
+
__support_largememory + |
+No + |
+String + |
+Specifies whether the image supports large-memory ECSs. If the image supports large-memory ECSs, the value is true. Otherwise, this attribute is not required. + |
+
__support_diskintensive + |
+No + |
+String + |
+Specifies whether the image supports disk-intensive ECSs. If the image supports disk-intensive ECSs, the value is true. Otherwise, this attribute is not required. + |
+
__support_highperformance + + |
+No + |
+String + |
+Specifies whether the image supports high-performance ECSs. If the image supports high-performance ECSs, the value is true. Otherwise, this attribute is not required. + |
+
__support_xen_gpu_type + |
+No + |
+String + + |
+Specifies whether the image supports GPU-optimized ECSs on the Xen platform. If the GPU-optimized image is not supported on Xen, this attribute is not required. This attribute cannot co-exist with __support_xen. + |
+
__support_xen_hana + |
+No + |
+String + |
+Specifies whether the image supports HANA ECSs on the Xen platform. If yes, the value is true. Otherwise, this attribute is not required. +This attribute cannot co-exist with __support_xen. + |
+
__support_kvm_infiniband + |
+No + |
+String + |
+Specifies whether the image supports ECSs with the InfiniBand NIC on the KVM platform. If yes, the value is true. Otherwise, this attribute is not required. +This attribute cannot co-exist with __support_xen. + |
+
Example response
+STATUS CODE 200+
1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 +10 +11 +12 +13 +14 +15 +16 +17 +18 +19 +20 +21 +22 +23 +24 +25 +26 +27 +28 +29 +30 +31 +32 +33 +34 +35 +36 +37 +38 +39 +40 +41 +42 +43 +44 +45 +46 +47 +48 +49 +50 +51 +52 +53 +54 +55 +56 +57 +58 +59 +60 +61 +62 +63 +64 +65 +66 +67 +68 +69 +70 | {
+ "images": [
+ {
+ "schema": "/v2/schemas/image",
+ "min_disk": 100,
+ "created_at": "2018-09-06T14:03:27Z",
+ "__image_source_type": "uds",
+ "container_format": "bare",
+ "file": "/v2/images/bc6bed6e-ba3a-4447-afcc-449174a3eb52/file",
+ "updated_at": "2018-09-06T15:17:33Z",
+ "protected": true,
+ "checksum": "d41d8cd98f00b204e9800998ecf8427e",
+ "__support_kvm_fpga_type": "VU9P",
+ "id": "bc6bed6e-ba3a-4447-afcc-449174a3eb52",
+ "__isregistered": "true",
+ "min_ram": 2048,
+ "__lazyloading": "true",
+ "owner": "1bed856811654c1cb661a6ca845ebc77",
+ "__os_type": "Linux",
+ "__imagetype": "gold",
+ "visibility": "public",
+ "virtual_env_type": "FusionCompute",
+ "tags": [],
+ "__platform": "CentOS",
+ "size": 0,
+ "__os_bit": "64",
+ "__os_version": "CentOS 7.3 64bit",
+ "name": "CentOS 7.3 64bit vivado",
+ "self": "/v2/images/bc6bed6e-ba3a-4447-afcc-449174a3eb52",
+ "disk_format": "zvhd2",
+ "virtual_size": null,
+ "hw_firmware_type": "bios",
+ "status": "active",
+ "__support_fc_inject":"true"
+ },
+ {
+ "schema": "/v2/schemas/image",
+ "min_disk": 100,
+ "created_at": "2018-09-06T14:03:05Z",
+ "__image_source_type": "uds",
+ "container_format": "bare",
+ "file": "/v2/images/0328c25e-c840-4496-81ac-c4e01b214b1f/file",
+ "updated_at": "2018-09-25T14:27:40Z",
+ "protected": true,
+ "checksum": "d41d8cd98f00b204e9800998ecf8427e",
+ "__support_kvm_fpga_type": "VU9P_COMMON",
+ "id": "0328c25e-c840-4496-81ac-c4e01b214b1f",
+ "__isregistered": "true",
+ "min_ram": 2048,
+ "__lazyloading": "true",
+ "owner": "1bed856811654c1cb661a6ca845ebc77",
+ "__os_type": "Linux",
+ "__imagetype": "gold",
+ "visibility": "public",
+ "virtual_env_type": "FusionCompute",
+ "tags": [],
+ "__platform": "CentOS",
+ "size": 0,
+ "__os_bit": "64",
+ "__os_version": "CentOS 7.3 64bit",
+ "name": "CentOS 7.3 64bit with sdx",
+ "self": "/v2/images/0328c25e-c840-4496-81ac-c4e01b214b1f",
+ "disk_format": "zvhd2",
+ "virtual_size": null,
+ "hw_firmware_type": "bios",
+ "status": "active",
+ "__support_fc_inject":"true"
+ }
+ ]
+}
+ |
Response parameters are as follows.
+Parameter description
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
keypairs + |
+List data structure + |
+Specifies key pairs. For details, see Table 1. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
keypair + |
+Dictionary data structure + |
+Specifies details about a key pair. For details, see Table 2. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
fingerprint + |
+String + |
+Specifies fingerprint information about the key pair. + |
+
name + |
+String + |
+Specifies the key pair name. + |
+
type + |
+String + |
+Specifies the key type, which is ssh by default. +This parameter is supported in microversion 2.2 and later. + |
+
public_key + |
+String + |
+Specifies information about the public key. + |
+
Example response
+{
+ "keypairs": [
+ {
+ "keypair": {
+ "fingerprint": "15:b0:f8:b3:f9:48:63:71:cf:7b:5b:38:6d:44:2d:4a",
+ "name": "keypair-601a2305-4f25-41ed-89c6-2a966fc8027a",
+ "type": "ssh",
+ "public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQC+Eo/RZRngaGTkFs7I62ZjsIlO79KklKbMXi8F+KITD4bVQHHn+kV+4gRgkgCRbdoDqoGfpaDFs877DYX9n4z6FrAIZ4PES8TNKhatifpn9NdQYWA+IkU8CuvlEKGuFpKRi/k7JLos/gHi2hy7QUwgtRvcefvD/vgQZOVw/mGR9Q== Generated-by-Nova\n"
+ }
+ }
+ ]
+}
+Response parameters are as follows.
+Parameter description
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
servers + |
+List data structure + |
+Specifies the ECSs to be queried. For details, see Table 1. + |
+
servers_links + |
+Array of objects + |
+Specifies the link of the next page in pagination query. For details, see Table 2. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
name + |
+String + |
+Specifies the ECS name. + |
+
id + |
+String + |
+Specifies the unique identifier of the ECS. + |
+
links + |
+List data structure + |
+Specifies ECS shortcut links. For details, see Table 2. + |
+
links field data structure description
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
rel + |
+String + |
+Specifies the shortcut link marker name. + |
+
href + |
+String + |
+Specifies the shortcut link. + |
+
Example response
+{
+ "servers": [
+ {
+ "id": "616fb98f-46ca-475e-917e-2563e5a8cd19",
+ "links": [
+ {
+ "href": "http://openstack.example.com/v2/openstack/servers/616fb98f-46ca-475e-917e-2563e5a8cd19",
+ "rel": "self"
+ },
+ {
+ "href": "http://openstack.example.com/openstack/servers/616fb98f-46ca-475e-917e-2563e5a8cd19",
+ "rel": "bookmark"
+ }
+ ],
+ "name": "new-server-test"
+ }
+ ]
+}
+Response parameters are as follows.
+Parameter description
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
total_number + |
+Integer + |
+Specifies the total number of resources. + |
+
start_number + |
+Integer + |
+Specifies the start number of query records. + |
+
limit + |
+Integer + |
+Specifies the maximum number of resources to be queried. + |
+
scaling_groups + |
+Array of scaling_groups objects + |
+Specifies the scaling group list. + |
+
scaling_groups field data structure 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, in seconds. + |
+
lb_listener_id + |
+String + |
+Specifies the ID of a typical ELB listener. ELB listener IDs are separated using commas (,). + |
+
lbaas_listeners + |
+List data structure + |
+Specifies information about an enhanced load balancer. . + |
+
available_zones + |
+List<String> + |
+Specifies the AZ information. + |
+
networks + |
+List data structure + |
+Specifies the network information. For details, see Table 4. + |
+
security_groups + |
+List data structure + |
+Specifies the security group information. For details, see Table 5. + |
+
create_time + |
+String + |
+Specifies the time when the 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. + |
+
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 + |
+List<String> + |
+Specifies the notification method. +EMAIL refers to notification by email. + |
+
delete_publicip + |
+Boolean + |
+Specifies whether to delete the EIP bound to an ECS when deleting the ECS. + |
+
cloud_location_id + |
+String + |
+This parameter is reserved. + |
+
enterprise_project_id + |
+String + |
+Specifies the enterprise project ID. + |
+
activity_type + |
+String + |
+Specifies the type of the scaling action. + |
+
lbaas_listeners field data structure description
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
listener_id + |
+String + |
+Specifies the listener ID. + |
+
pool_id + |
+String + |
+Specifies the backend ECS group ID. + |
+
protocol_port + |
+Integer + |
+Specifies the backend protocol ID, which is the port on which a backend ECS listens for traffic. + |
+
weight + |
+Integer + |
+Specifies the weight, which determines the portion of requests a backend ECS processes when being compared to other backend ECSs added to the same listener. + |
+
networks field data structure description
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
id + |
+String + |
+Specifies the subnet ID. + |
+
security_groups field data structure description
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
id + |
+String + |
+Specifies the security group ID. + |
+
Example response
+{
+ "limit": 20,
+ "scaling_groups": [
+ {
+ "networks": [
+ {
+ "id": "a8327883-6b07-4497-9c61-68d03ee193a",
+ "ipv6_enable": false,
+ "ipv6_bandwidth": null,
+ }
+ ],
+ "available_zones": [
+ "XXXa",
+ "XXXb"
+ ],
+ "detail": null,
+ "scaling_group_name": "as-group-test",
+ "scaling_group_id": "77a7a397-7d2f-4e79-9da9-6a35e2709150",
+ "scaling_group_status": "INSERVICE",
+ "scaling_configuration_id": "1d281494-6085-4579-b817-c1f813be835f",
+ "scaling_configuration_name": "healthCheck",
+ "current_instance_number": 0,
+ "desire_instance_number": 1,
+ "min_instance_number": 0,
+ "max_instance_number": 500,
+ "cool_down_time": 300,
+ "lb_listener_id": "f06c0112570743b51c0e8fbe1f235bab",
+ "security_groups": [
+ {
+ "id": "8a4b1d5b-0054-419f-84b1-5c8a59ebc829"
+ }
+ ],
+ "create_time": "2015-07-23T02:46:29Z",
+ "vpc_id": "863ccae2-ee85-4d27-bc5b-3ba2a198a9e2",
+ "health_periodic_audit_method": "ELB_AUDIT",
+ "health_periodic_audit_time": 5,
+ "health_periodic_audit_grace_period": 600,
+ "instance_terminate_policy": "OLD_CONFIG_OLD_INSTANCE",
+ "is_scaling": false,
+ "delete_publicip": false,
+ "notifications": [
+ "EMAIL"
+ ]
+ "enterprise_project_id": "c92b1a5d-6f20-43f2-b1b7-7ce35e58e413",
+ "multi_az_priority_policy": "PICK_FIRST"
+ }
+ ],
+ "total_number": 1,
+ "start_number": 0
+}
+This document describes how to call the APIs of Auto Scaling (AS) to use basic functions of the service.
+For details about how to use APIs, see API Usage Guidelines.
+Response parameters are as follows.
+Parameter description
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
total_number + |
+Integer + |
+Specifies the total number of resources. + |
+
start_number + |
+Integer + |
+Specifies the start line number. + |
+
limit + |
+Integer + |
+Specifies the maximum number of resources to be queried. + |
+
scaling_configurations + |
+Array of scaling_configurations objects + |
+Specifies the AS configuration list. + |
+
scaling_configurations field 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. +The value supports fuzzy matching. + |
+
instance_config + |
+instance_config object + |
+Specifies the information about instance configurations. + |
+
create_time + |
+String + |
+Specifies the time when the AS configuration was created. The time format complies with UTC. + |
+
scaling_group_id + |
+String + |
+Specifies the ID of the AS group to which the AS configuration is bound. + |
+
instance_config field description
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
flavorRef + |
+String + |
+Specifies the ECS flavor ID. + |
+
imageRef + |
+String + |
+Specifies the image ID. It is same as image_id. + |
+
disk + |
+Array + |
+Specifies the disk group information. + |
+
key_name + |
+String + |
+Specifies the name of the SSH key pair used to log in to the ECS. + |
+
key_fingerprint + |
+String + |
+Specifies the fingerprint of the SSH key pair used to log in to the ECS. + |
+
instance_name + |
+String + |
+This parameter is reserved. + |
+
instance_id + |
+String + |
+This parameter is reserved. + |
+
adminPass + |
+String + |
+This parameter is reserved. + |
+
personality + |
+Array + |
+Specifies information about the injected file. + |
+
public_ip + |
+Object + |
+Specifies the EIP of the ECS. + |
+
user_data + |
+String + |
+Specifies the Cloud-Init user data, which is encoded using Base64. + |
+
metadata + |
+Object + |
+Specifies the ECS metadata. For details, see Table 10. + |
+
security_groups + |
+Array + |
+Specifies the security group information. + |
+
server_group_id + |
+String + |
+This parameter is reserved. + |
+
tenancy + |
+String + |
+This parameter is reserved. + |
+
dedicated_host_id + |
+String + |
+This parameter is reserved. + |
+
market_type + |
+String + |
+This parameter is reserved. + |
+
multi_flavor_priority_policy + |
+String + |
+This parameter is reserved. + |
+
disk field 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. + |
+
metadata + |
+Object + |
+Specifies the metadata for creating disks. For details, see Table 5. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
__system__encrypted + |
+String + |
+Specifies encryption in metadata. The value can be 0 (encryption disabled) or 1 (encryption enabled). +If this parameter does not exist, the disk will not be encrypted by default. + |
+
__system__cmkid + |
+String + |
+Specifies the CMK ID, which indicates encryption in metadata. This parameter is used with __system__encrypted. + NOTE:
+For details about how to obtain the CMK ID, see "Querying the List of CMKs" in Key Management Service API Reference. + |
+
personality field 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 description
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
eip + |
+eip object + |
+Specifies the EIP automatically assigned to the ECS. + |
+
eip field description
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
ip_type + |
+String + |
+Specifies the IP address type. + |
+
bandwidth + |
+bandwidth object + |
+Specifies the bandwidth of an IP address. + |
+
bandwidth field 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: +
|
+
charging_mode + |
+String + |
+Specifies the bandwidth billing mode. +
|
+
metadata field description
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
admin_pass + |
+String + |
+Specifies the password of the Administrator account for a Windows ECS. + |
+
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"
+ }],
+ "multi_flavor_priority_policy": "PICK_FIRST"
+ },
+ "create_time": "2015-07-22T01:08:41Z"
+ }
+ ]
+}
+Response parameters are as follows.
+Parameter description
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
total_number + |
+Integer + |
+Specifies the total number of resources. + |
+
start_number + |
+Integer + |
+Specifies the start line number. + |
+
limit + |
+Integer + |
+Specifies the maximum number of resources to be queried. + |
+
scaling_group_instances + |
+Array of scaling_group_instances objects + |
+Specifies details about the instances in the AS group. + |
+
scaling_group_instances field data structure description
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
instance_id + |
+String + |
+Specifies the instance ID. + |
+
instance_name + |
+String + |
+Specifies the instance name. + |
+
scaling_group_id + |
+String + |
+Specifies the ID of the AS group to which the instance belongs. + |
+
scaling_group_name + |
+String + |
+Specifies the name of the AS group to which the instance belongs. +Supports fuzzy search. + |
+
life_cycle_state + |
+String + |
+Specifies the instance lifecycle status in the AS group. +
|
+
health_status + |
+String + |
+Specifies the instance health status. +
|
+
scaling_configuration_name + |
+String + |
+Specifies the AS configuration name. + |
+
scaling_configuration_id + |
+String + |
+Specifies the AS configuration ID. +If the returned value is not empty, the instance is an ECS automatically created in a scaling action. +If the returned value is empty, the instance is an ECS manually added to the AS group. + |
+
create_time + |
+String + |
+Specifies the time when the instance is added to the AS group. The time format complies with UTC. + |
+
protect_from_scaling_down + |
+Boolean + |
+Specifies the instance protection status. + |
+
Example response
+{
+ "limit": 10,
+ "total_number": 1,
+ "start_number": 0,
+ "scaling_group_instances": [
+ {
+ "instance_id": "b25c1589-c96c-465b-9fef-d06540d1945c",
+ "scaling_group_id": "e5d27f5c-dd76-4a61-b4bc-a67c5686719a",
+ "scaling_group_name": "discuz",
+ "life_cycle_state": "INSERVICE",
+ "health_status": "NORMAL",
+ "scaling_configuration_name": "discuz",
+ "scaling_configuration_id": "ca3dcd84-d197-4c4f-af2a-cf8ba39696ac",
+ "create_time": "2015-07-23T06:47:33Z",
+ "instance_name": "discuz_3D210808",
+ "protect_from_scaling_down": false
+ }
+ ]
+}
+AS Group
+An AS group consists of a collection of instances that apply to the same scenario. It is the basis for enabling or disabling AS policies and performing scaling actions.
+AS Configuration
+An AS configuration is an Elastic Cloud Server (ECS) instance template in an AS group, specifying specifications of the ECS to be added, including the ECS type, vCPU, memory, image, disk, and login mode.
+AS Policy
+An AS policy specifies a condition for triggering a scaling action.
+AS supports the following policies:
+Alarm: AS automatically increases or decreases the number of instances in an AS group or sets the number of instances to a specified value if Cloud Eye generates an alarm for a configured metric, such as CPU usage.
+Periodic: AS increases or decreases the number of instances in an AS group or sets the number of instances to a specified value at a configured interval, such as one day, one week, or month.
+Scheduled: AS automatically increases or decreases the number of instances in an AS group or sets the number of instances to a specified value at a specified time.
+Instance
+An instance is an ECS in an AS group.
+Scaling Action
+A scaling action adds or removes instances to or from an AS group so that the number of instances in the AS group is the same as the expected number for proper service running.
+When the number of instances in an AS group is not the same as expected, a scaling action is triggered. Specifically, when the scaling condition is met or you manually change the expected number of instances, a scaling action is triggered.
+You have obtained the Auto Scaling API Reference.
+An AS configuration specifies the specifications of the ECSs to be added to an AS group, including the ECS specifications, images, and disks. You can create an AS configuration using an existing ECS or create a new AS configuration.
+{
+ "scaling_configuration_name": "as-config-test",
+ "instance_config": {
+ "flavorRef": "103", //ECS flavor ID
+ "imageRef": "627a1223-2ca3-46a7-8d5f-7aef22c74ee6", //Image ID
+ "disk": [
+ {
+ "size": 40,
+ "volume_type": "SATA",
+ "disk_type": "SYS"
+ }
+ ],
+ "key_name": "as-keypair-test" //SSH key pair
+}
+}
+scaling_configuration_id is returned if the request is successful.
+An AS group consists of a collection of instances that apply to the same scenario. It is the basis for enabling or disabling AS policies and performing scaling actions.
+{
+ "scaling_group_name": "as-group-test",
+ "scaling_configuration_id": "47683a91-93ee-462a-a7d7-484c006f4440",
+ "desire_instance_number": 0,
+ "min_instance_number": 0,
+ "max_instance_number": 10,
+ "cool_down_time": 300,
+ "health_periodic_audit_method": "NOVA_AUDIT",
+ "health_periodic_audit_time": 5,
+ "instance_terminate_policy": "OLD_CONFIG_OLD_INSTANCE",
+ "vpc_id": "a8327883-6b07-4497-9c61-68d03ee193a",
+ "networks": [
+ {
+ "id": "3cd35bca-5a10-416f-8994-f79169559870"
+ }
+ ],
+ "security_groups": [
+ {
+ "id": "23b7b999-0a30-4b48-ae8f-ee201a88a6ab"
+ }
+ ]
+}
+scaling_group_id is returned if the request is successful.
+{
+ "action": "resume"
+}
+An AS policy specifies a condition for triggering a scaling action. When the trigger condition is met, a scaling action occurs.
+{
+ "scaling_policy_name": "as-policy-test",
+ "scaling_policy_action": {
+ "operation": "ADD",
+ "instance_number": 1
+ },
+ "cool_down_time": 900,
+ "scheduled_policy": {
+ "launch_time": "16:00",
+ "recurrence_type": "Weekly",
+ "recurrence_value": "1,3,5",
+ "start_time": "2018-05-04T03:34Z",
+ "end_time": "2018-12-27T03:34Z"
+ },
+ "scaling_policy_type": "RECURRENCE",
+ "scaling_group_id": "5bc3aa02-b83e-454c-aba1-4d2095c68f8b"
+}
+scaling_policy_id is returned if the request is successful.
+ICMP Type + |
+port_range_min + |
+port_range_max + |
+
|---|---|---|
Any + |
+NULL + |
+NULL + |
+
Echo + |
+8 + |
+0 + |
+
Echo reply + |
+0 + |
+0 + |
+
Fragment need DF set + |
+3 + |
+4 + |
+
Host redirect + |
+5 + |
+1 + |
+
Host TOS redirect + |
+5 + |
+3 + |
+
Host unreachable + |
+3 + |
+1 + |
+
Information reply + |
+16 + |
+0 + |
+
Information request + |
+15 + |
+0 + |
+
Net redirect + |
+5 + |
+0 + |
+
Net TOS redirect + |
+5 + |
+2 + |
+
Net unreachable + |
+3 + |
+0 + |
+
Parameter problem + |
+12 + |
+0 + |
+
Port unreachable + |
+3 + |
+3 + |
+
Protocol unreachable + |
+3 + |
+2 + |
+
Reassembly timeout + |
+11 + |
+1 + |
+
Source quench + |
+4 + |
+0 + |
+
Source route failed + |
+3 + |
+5 + |
+
Timestamp reply + |
+14 + |
+0 + |
+
Timestamp request + |
+13 + |
+0 + |
+
TTL exceeded + |
+11 + |
+0 + |
+
Released On + |
+What's New + |
+
|---|---|
2021-10-20 + |
+This release incorporates the following change: +Change +Updated response parameters in Response Parameters for Querying ECSs. + |
+
2018-11-08 + |
+This issue is the first official release. + |
+