更新时间:2024-10-12 GMT+08:00
查询已创建的Flexus L实例
功能介绍
查询已创建的Flexus L实例信息,包括实例名称、实例ID、公网IP等,所用接口为“配置审计”服务的“列举所有资源”接口。本节列举了接口使用过程中的关键信息,接口更多信息详见列举所有资源。
接口约束
需要当前用户有rms:resources:list权限。
URI
GET /v1/resource-manager/domains/{domain_id}/all-resources
查询已创建的Flexus L实例时,仅需关注以下Query参数。
参数 |
是否必选 |
描述 |
---|---|---|
region_id |
可选 |
区域ID。该参数表示是否按区域查询已创建的Flexus L实例。
|
type |
必选 |
资源类型列表。查询Flexus L实例时,该参数为“hcss.l-instance”。 |
limit |
可选 |
分页查询时结合使用limit、marker。 |
marker |
响应消息
常用的查询信息如下。
参数 |
说明 |
---|---|
id |
Flexus L实例ID。 |
name |
Flexus L实例名称。 |
region_id |
Flexus L实例所在区域。 |
resource_spec_code |
规格编码,具体规格详见规格编码的规格。 |
order_id |
订单订单编号。 |
physical_resource_id |
云主机ID。 |
physical_resource_name |
云主机名称。 |
public_ip_address |
Flexus L实例的公网IP。 |
请求示例
查询当前用户所有Flexus L实例信息。
GET https://{endpoint}/v1/resource-manager/domains/{domain_id}/all-resources?type=hcss.l-instance
相应示例
"resources": [ { "id": "66e3e9f8b271f8319ef19e86", //Flexus L实例ID "name": "BT-cn-north-4-X6p4", //Flexus L实例名称 "provider": "hcss", "type": "l-instance", "region_id": "cn-north-4", //Flexus L实例所在区域 "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" }, "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", //云主机ID "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.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", "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", //公网IP "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 } }