Updated on 2025-01-06 GMT+08:00

Querying a Created FlexusL Instance

Function

This API is used to query information about a created FlexusL instance, including the instance name, instance ID, and EIP. It is the Config API for listing all resources. This section lists the key information about API usage. For more information about the API, see Querying All Resources Under Your Account.

Constraints

You must have the rms:resources:list permissions.

URI

GET /v1/resource-manager/domains/{domain_id}/all-resources

When querying a created FlexusL instance, pay attention to the Query parameters described in the following table.

Table 1 Query parameters

Parameter

Mandatory

Description

region_id

No

Region ID. It specifies whether to query created FlexusL instances by region.

  • If this parameter is specified, the created FlexusL instances are queried by region.
  • If this parameter is not specified, FlexusL instances created in all regions are queried.

type

Yes

Resource type list. To query a FlexusL instance, set this parameter to hcss.l-instance.

limit

No

limit and marker are both required for pagination query.

marker

Response Message

The common query information is as follows.

Item

Field

ID of a FlexusL instance.

id

Name of a FlexusL instance.

name

Region where the FlexusL instance is located.

region_id

Specification code. For details about the specifications, see Table 12.

resource_spec_code

Order ID.

order_id

Cloud server information

Obtain the following based on the logical_resource_type value that is huaweicloudinternal_ecs_instance:

  • physical_resource_id: cloud server ID
  • physical_resource_name: cloud server name

Data package information

Obtain the following based on the logical_resource_type value that is huaweicloudinternal_cbc_freeresource:

  • physical_resource_id: data package ID

EIP of a FlexusL instance.

public_ip_address

Example Request

Query information about all FlexusL instances of the current user.

GET https://{endpoint}/v1/resource-manager/domains/{domain_id}/all-resources?type=hcss.l-instance

Example Response

"resources": [
  {
   "id": "66e3e9f8b271f8319ef19e86",  //FlexusL instance ID
   "name": "BT-cn-north-4-X6p4",    //FlexusL instance name
   "provider": "hcss",
   "type": "l-instance",
   "region_id": "cn-north-4",     //Region of the FlexusL instance
   "project_id": "067cf8aecf3845d1ad7a5d308322f13b",
   "project_name": "cn-north-4",
   "ep_id": "0",
   "ep_name": "default",
   "checksum": "a9c783ed32927aff443932a9cf43cb8e3dd8a5bf1ddd4ae0495aa182c4e02938",
   "created": "2024-09-13T07:30:00.000Z",
   "updated": "2024-09-13T07:31:11.000Z",
   "provisioning_state": "Succeeded",
   "state": "Normal",
   "tags": {},
   "properties": {
    "metadata": {
     "charging_mode": "prePaid",
     "resource_type": "hws.resource.type.hecsfusion",
     "resource_spec_code": "ahf.large.1.40g.2m.linux", //Specification code
     "order_id": "CS2409131529QL4NJ",   //Order ID
     "cloud_service_type": "hws.service.type.hcss"
    },
    "instance_name": "BT-cn-north-4-X6p4",
    "create_time": "2024-09-13T07:30:00Z",
    "description": "",
    "resources": [
     {
      "physical_resource_type": "hws.resource.type.marketplace",
      "logical_resource_type": "hws.resource.type.marketplace",
      "physical_resource_id": "66e3e9f8b271f8319ef19e86_f267d4ce-0d85-41ce-99c3-f5c4b3ca4640_0",
      "logical_resource_name": "huaweicloudinternal_ecs_instance_image",
      "cloud_service_type": "hws.service.type.marketplace"
     },
     {
      "physical_resource_type": "hws.resource.type.vm",
      "logical_resource_type": "huaweicloudinternal_ecs_instance",
      "physical_resource_id": "72a270de-665a-4f46-8d64-24ad6edccdd2",  //Cloud server ID
      "physical_resource_name": "hcss_ecs_ff60",  //Cloud server name
      "resource_attributes": [
       {
        "value": "null",
        "key": "admin_pass"
       },
       {
        "value": "cn-north-4g",
        "key": "availability_zone"
       },
       {
        "value": "null",
        "key": "batch_create_in_multi_az"
       },
       {
        "value": "[]",
        "key": "data_volumes"
       },
       {
        "value": "null",
        "key": "description"
       },
       {
        "value": "{\"chargingMode\":\"prePaid\",\"imageproductid\":\"OFFI890411017782276096\",\"orderID\":\"CS2409131529QL4NJ\",\"productID\":\"OFFI1017640863722074117\"}",
        "key": "extendparam"
       },
       {
        "value": "at7.large.1",
        "key": "flavor_id"
       },
       {
        "value": "null",
        "key": "frozen"
       },
       {
        "value": "72a270de-665a-4f46-8d64-24ad6edccdd2",
        "key": "id"
       },
       {
        "value": "f267d4ce-0d85-41ce-99c3-f5c4b3ca4640",
        "key": "image_id"
       },
       {
        "value": "null",
        "key": "is_auto_rename"
       },
       {
        "value": "null",
        "key": "key_name"
       },
       {
        "value": "{\"__support_agent_list\":\"hss,hss-pc,ces\"}",
        "key": "metadata"
       },
       {
        "value": "hcss_ecs_ff60",
        "key": "name"
       },
       {
        "value": "[{\"ip_address\":\"\",\"ipv6_bandwidth\":[],\"ipv6_enable\":false,\"subnet_id\":\"d99a81d0-4262-4a0b-8258-8ac2357d7bcf\"}]",
        "key": "nics"
       },
       {
        "value": "null",
        "key": "os_scheduler_hints"
       },
       {
        "value": "db18e1cd-7fea-4e8d-95b0-e31db879b8ee",
        "key": "primary_port_id"
       },
       {
        "value": "[]",
        "key": "publicip"
       },
       {
        "value": "[{\"cluster_id\":\"\",\"cluster_type\":\"\",\"extendparam\":{\"orderID\":\"CS2409131529QL4NJ\"},\"hw_passthrough\":false,\"iops\":0,\"metadata\":{},\"size\":40,\"throughput\":0,\"volumetype\":\"SAS_for_smb\"}]",
        "key": "root_volume"
       },
       {
        "value": "[{\"id\":\"b88fdd7e-fe03-4e3f-ab64-1e5e1f8de0d9\"}]",
        "key": "security_groups"
       },
       {
        "value": "[]",
        "key": "server_tags"
       },
       {
        "value": "0",
        "key": "status"
       },
       {
        "value": "2cda750e-d6d8-4153-b4cc-e15fb22e6ea8",
        "key": "system_disk_id"
       },
       {
        "value": "[\"_sys_type_hcss_l\"]",
        "key": "tags"
       },
       {
        "value": "null",
        "key": "timeouts"
       },
       {
        "value": "null",
        "key": "total_count"
       },
       {
        "value": "null",
        "key": "user_data"
       },
       {
        "value": "4022721e-0476-41ea-91f4-1883065a68cc",
        "key": "vpc_id"
       },
       {
        "value": "2024-09-13T07:31:11Z",
        "key": "cors_crm_updated_at"
       }
      ],
      "logical_resource_name": "huaweicloudinternal_ecs_instance_light_server_compute_instance",
      "cloud_service_type": "hws.service.type.ec2"
     },
     {
      "physical_resource_type": "hws.resource.type.volume",
      "logical_resource_type": "hws.resource.type.volume",
      "physical_resource_id": "2cda750e-d6d8-4153-b4cc-e15fb22e6ea8",
      "logical_resource_name": "huaweicloudinternal_ecs_instance_system_disk",
      "cloud_service_type": "hws.service.type.ebs"
     },
     {
      "physical_resource_type": "hws.resource.type.bandwidth",
      "logical_resource_type": "huaweicloudinternal_cbc_freeresource",
      "physical_resource_id": "4fb5cd67-73f8-4313-bc1b-f76ed15c9d09", //: Data package ID
      "resource_attributes": [
       {
        "value": "null",
        "key": "bundle_product_id"
       },
       {
        "value": "3c24f6f8852945a0af194f93ce075fbd",
        "key": "customer_id"
       },
       {
        "value": "2024-10-13 16:00:00",
        "key": "end_time"
       },
       {
        "value": "null",
        "key": "enterprise_project_id"
       },
       {
        "value": "4fb5cd67-73f8-4313-bc1b-f76ed15c9d09",
        "key": "id"
       },
       {
        "value": "CS2409131529QL4NJ",
        "key": "order_id"
       },
       {
        "value": "32bd0fdf-772b-41a8-8495-afbc5a46e00f",
        "key": "oriented_resource_id"
       },
       {
        "value": "OFFI879567668502900737",
        "key": "product_id"
       },
       {
        "value": "cn-north-4",
        "key": "region_code"
       },
       {
        "value": "2024-09-13T07:31:11Z",
        "key": "cors_crm_updated_at"
       }
      ],
      "logical_resource_name": "huaweicloudinternal_cbc_freeresource_cbc_freeresource",
      "cloud_service_type": "hws.service.type.vpc"
     },
     {
      "physical_resource_type": "hws.resource.type.ip",
      "logical_resource_type": "huaweicloudinternal_eip",
      "physical_resource_id": "ad75ed90-2cd5-4f96-a65c-c4cb0b3690c0",
      "resource_attributes": [
       {
        "value": "hcss_eip_ff60",
        "key": "alias"
       },
       {
        "value": "null",
        "key": "associate_instance_id"
       },
       {
        "value": "null",
        "key": "associate_instance_type"
       },
       {
        "value": "[{\"billing_info\":\"\",\"charge_mode\":\"traffic\",\"id\":\"32bd0fdf-772b-41a8-8495-afbc5a46e00f\",\"name\":\"hcss_bandwidth_ff60\",\"share_type\":\"PER\",\"size\":2,\"status\":0}]",
        "key": "bandwidth"   
       },
       {
        "value": "null",
        "key": "billing_info"
       },
       {
        "value": "null",
        "key": "cascade_delete_by_instance"
       },
       {
        "value": "null",
        "key": "description"
       },
       {
        "value": "null",
        "key": "eip_id"
       },
       {
        "value": "null",
        "key": "enterprise_project_id"
       },
       {
        "value": "ad75ed90-2cd5-4f96-a65c-c4cb0b3690c0",
        "key": "id"
       },
       {
        "value": "4",
        "key": "ip_version"
       },
       {
        "value": "119.3.166.187",     //EIP
        "key": "public_ip_address"
       },
       {
        "value": "",
        "key": "public_ipv6_address"
       },
       {
        "value": "5_bgp",
        "key": "publicip_pool_name"
       },
       {
        "value": "0",
        "key": "status"
       },
       {
        "value": "null",
        "key": "type"
       },
       {
        "value": "2024-09-13T07:31:11Z",
        "key": "cors_crm_updated_at"
       }
      ],
      "logical_resource_name": "huaweicloudinternal_eip_light_server_eip",
      "cloud_service_type": "hws.service.type.vpc"
     },
     {
      "physical_resource_type": "",
      "logical_resource_type": "huaweicloudinternal_eip_attach",
      "physical_resource_id": "ad75ed90-2cd5-4f96-a65c-c4cb0b3690c0",
      "resource_attributes": [
       {
        "value": "db18e1cd-7fea-4e8d-95b0-e31db879b8ee",
        "key": "associate_instance_id"
       },
       {
        "value": "PORT",
        "key": "associate_instance_type"
       },
       {
        "value": "null",
        "key": "cascade_delete_by_instance"
       },
       {
        "value": "ad75ed90-2cd5-4f96-a65c-c4cb0b3690c0",
        "key": "eip_id"
       },
       {
        "value": "ad75ed90-2cd5-4f96-a65c-c4cb0b3690c0",
        "key": "id"
       },
       {
        "value": "2024-09-13T07:31:11Z",
        "key": "cors_crm_updated_at"
       }
      ],
      "logical_resource_name": "huaweicloudinternal_eip_attach_light_server_eip_attach_ecs",
      "cloud_service_type": ""
     },
     {
      "physical_resource_type": "",
      "logical_resource_type": "huaweicloudinternal_eip_bandwidth_lock",
      "physical_resource_id": "32bd0fdf-772b-41a8-8495-afbc5a46e00f",
      "resource_attributes": [
       {
        "value": "resize,change_charge_mode,delete",
        "key": "action"
       },
       {
        "value": "32bd0fdf-772b-41a8-8495-afbc5a46e00f",
        "key": "bandwidth_id"
       },
       {
        "value": "32bd0fdf-772b-41a8-8495-afbc5a46e00f",
        "key": "id"
       },
       {
        "value": "hcss",
        "key": "scene"
       },
       {
        "value": "72a270de-665a-4f46-8d64-24ad6edccdd2",
        "key": "source_id"
       },
       {
        "value": "hcss",
        "key": "source_type"
       },
       {
        "value": "2024-09-13T07:31:11Z",
        "key": "cors_crm_updated_at"
       }
      ],
      "logical_resource_name": "huaweicloudinternal_eip_bandwidth_lock_light_server_bandwidth_lock_ecs",
      "cloud_service_type": ""
     },
     {
      "physical_resource_type": "",
      "logical_resource_type": "huaweicloudinternal_eip_lock",
      "physical_resource_id": "ad75ed90-2cd5-4f96-a65c-c4cb0b3690c0",
      "resource_attributes": [
       {
        "value": "associate_instance,disassociate_instance,change_bandwidth,delete,change_charge_mode",
        "key": "action"
       },
       {
        "value": "ad75ed90-2cd5-4f96-a65c-c4cb0b3690c0",
        "key": "eip_id"
       },
       {
        "value": "ad75ed90-2cd5-4f96-a65c-c4cb0b3690c0",
        "key": "id"
       },
       {
        "value": "hcss",
        "key": "scene"
       },
       {
        "value": "72a270de-665a-4f46-8d64-24ad6edccdd2",
        "key": "source_id"
       },
       {
        "value": "hcss",
        "key": "source_type"
       },
       {
        "value": "2024-09-13T07:31:11Z",
        "key": "cors_crm_updated_at"
       }
      ],
      "logical_resource_name": "huaweicloudinternal_eip_lock_light_server_eip_lock_ecs",
      "cloud_service_type": ""
     }
    ],
    "custom_tags": [
     {
      "value": "light_server",
      "key": "product_type"
     },
     {
      "value": "basic",
      "key": "plan_type"
     },
     {
      "value": "BT",
      "key": "image_name"
     },
     {
      "value": "application",
      "key": "image_type"
     }
    ],
    "product_name": "BT_light_server_8_0",
    "platform": "SMB",
    "plan_name": "basic_v12",
    "update_time": "2024-09-13T07:31:11Z",
    "instance_id": "66e3e9f8b271f8319ef19e86",
    "product_id": "64c12fefcd938770a92ea433",
    "region": "cn-north-4",
    "plan_id": "66b03ab8bb1fd66087123683",
    "status": "RUNNING"
   }
  }
 ],
 "page_info": {
  "current_count": 1,
  "next_marker": null
 }
}