Querying Created FlexusL Instances
Function
This API is used to query information about created FlexusL instances, including the instance name, instance ID, and EIP. It is the Config API for querying all resources under an account. This section lists the key information about API usage. For more information about the API, see Querying All Resources Under an Account.
Authorization
Each account has all of the permissions required to call all APIs, but IAM users must have the required permissions specifically assigned. For details about the required permissions, see Permissions Policies and Supported Actions.
URI
GET /v1/resource-manager/domains/{domain_id}/all-resources
When querying created FlexusL instances, you only need to pay attention to the Query parameters described in the following table.
| Parameter | Mandatory | Description |
|---|---|---|
| region_id | No | Definition Region ID. It specifies whether to query created FlexusL instances by region. For the region IDs supported by FlexusL instances, see the value range below.
Constraints N/A Range Currently, the following regions are supported: ap-southeast-1 (CN-Hong Kong), ap-southeast-3 (AP-Singapore), ap-southeast-2 (AP-Bangkok), tr-west-1 (TR-Istanbul), sa-brazil-1 (LA-Sao Paulo1), me-east-1 (ME-Riyadh), and la-north-2 (LA-Mexico City2). Default Value N/A |
| type | Yes | Definition Resource type list. Constraints N/A Range To query FlexusL instances, set this parameter to hcss.l-instance. Default Value N/A |
| limit | No | Definition Maximum number of resources that can be returned for each request during paginated queries. Constraints N/A Range Minimum value: 1 Maximum value: 200 Default Value Default value: 100 |
| marker | No | Definition Pagination parameter. The marker returned in the previous request is used as the input to obtain the current page. Constraints N/A Range The value can contain 4 to 400 characters. Only letters, digits, underscores (_), hyphens (-), equal signs (=), plus signs (+), and slashes (/) are allowed. Default Value N/A |
Response
The following describes common response parameters of FlexusL instances.
| Parameter | Type | Description |
|---|---|---|
| id | String | Definition ID of a FlexusL instance. Range N/A |
| name | String | Definition Name of a FlexusL instance. Range N/A |
| region_id | String | Definition Region where a FlexusL instance resides. Range N/A |
| properties | Map<String,Object> | Definition Resource property details. For details, see Table 3. |
| Parameter | Type | Description |
|---|---|---|
| metadata | Map<String,String> | Definition FlexusL instance metadata. For details, see Table 4. |
| resources | Array of objects | Definition Resources packaged in a FlexusL instance. For details see Table 5. |
| Parameter | Type | Description |
|---|---|---|
| charging_mode | String | Definition Billing mode. Range prePaid: yearly/monthly billing mode. |
| order_id | String | Definition Order ID. Range N/A |
| resource_spec_code | String | Definition Specification code. Range For details, see Appendix 2: Specifications Corresponding to Specification Codes. |
| Parameter | Type | Description |
|---|---|---|
| logical_resource_type | String | Definition Type of resources packaged in a FlexusL instance. Range
|
| physical_resource_id | String | Definition Resource ID. Range
|
| physical_resource_name | String | Definition Resource name. Range This field indicates a cloud server name if logical_resource_type is set to huaweicloudinternal_ecs_instance. |
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",
"name": "BT-cn-north-4-X6p4",
"provider": "hcss",
"type": "l-instance",
"region_id": "cn-north-4",
"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",
"order_id": "CS2409131529QL4NJ",
"cloud_service_type": "hws.service.type.hcss"
},
"description": "",
"resources": [
{
"physical_resource_type": "hws.resource.type.vm",
"logical_resource_type": "huaweicloudinternal_ecs_instance",
"physical_resource_id": "72a270de-665a-4f46-8d64-24ad6edccdd2",
"physical_resource_name": "hcss_ecs_ff60",
"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.bandwidth",
"logical_resource_type": "huaweicloudinternal_cbc_freeresource",
"physical_resource_id": "4fb5cd67-73f8-4313-bc1b-f76ed15c9d09",
"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"
}
],
"product_name": "BT_light_server_8_0",
"platform": "SMB",
"plan_name": "basic_v12",
"product_id": "64c12fefcd938770a92ea433",
"plan_id": "66b03ab8bb1fd66087123683",
"status": "RUNNING"
}
}
],
"page_info": {
"current_count": 1,
"next_marker": null
}
} What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot