Querying an Instance
Function
This API is used to query the details about a specified instance.
URI
GET /v2/{project_id}/instances/{instance_id}
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Definition Project ID. For details about how to obtain it, see Obtaining a Project ID. Constraints N/A Range N/A Default Value N/A |
|
instance_id |
Yes |
String |
Definition Instance ID. You can call the API for querying all instances to obtain the instance ID. The instance ID is in the response body. Constraints N/A Range N/A Default Value N/A |
Request Parameters
None
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
name |
String |
Definition Instance name. Range N/A |
|
engine |
String |
Definition Message engine type. Range |
|
status |
String |
Definition Status. Range For details, see Instance Status. |
|
description |
String |
Definition Message description. Range N/A |
|
type |
String |
Definition Instance type. Range |
|
specification |
String |
Definition Instance specification. Range N/A |
|
engine_version |
String |
Definition Instance version. Range |
|
instance_id |
String |
Definition Instance ID. Range N/A |
|
charging_mode |
Integer |
Definition Billing mode. Range 1: pay-per-use; 0: yearly/monthly. |
|
vpc_id |
String |
Definition VPC ID. Range N/A |
|
vpc_name |
String |
Definition VPC name. Range N/A |
|
created_at |
String |
Definition Time when creation is complete. The time is in the format of timestamp, that is, the offset milliseconds from 1970-01-01 00:00:00 UTC to the specified time. Range N/A |
|
product_id |
String |
Definition RocketMQ instance flavors. Range
|
|
security_group_id |
String |
Definition Security group ID. Range N/A |
|
security_group_name |
String |
Definition Security group name. Range N/A |
|
subnet_id |
String |
Definition Subnet ID. Range N/A |
|
subnet_name |
String |
Definition Subnet name. Range N/A |
|
subnet_cidr |
String |
Definition Subnet route Range N/A |
|
available_zones |
Array of strings |
Definition List of AZ IDs. Range N/A |
|
available_zone_names |
Array of strings |
Definition List of AZ names. |
|
user_id |
String |
Definition User ID. Range N/A |
|
user_name |
String |
Definition Username. Range N/A |
|
maintain_begin |
String |
Definition Time at which the maintenance window starts. The format is HH:mm:ss. Range N/A |
|
maintain_end |
String |
Definition Time at which the maintenance window ends. The format is HH:mm:ss. Range N/A |
|
enable_log_collection |
Boolean |
Definition Whether log collection is enabled. Range |
|
storage_space |
Integer |
Definition Storage space, in GB. Range Different instance specifications support different storage configurations. |
|
used_storage_space |
Integer |
Definition Used message storage space, in GB. Range N/A |
|
enable_publicip |
Boolean |
Definition Whether to enable public access. Range |
|
publicip_id |
String |
Definition ID of the EIP bound to the instance. Use commas (,) to separate multiple EIP IDs. This parameter is mandatory if public access is enabled (that is, enable_publicip is set to true). Range N/A |
|
publicip_address |
String |
Definition Public IP address. Range N/A |
|
ssl_enable |
Boolean |
Definition Whether SSL is enabled. Range |
|
cross_vpc_info |
String |
Definition Cross-VPC access information. Range N/A |
|
storage_resource_id |
String |
Definition Storage resource ID. Range N/A |
|
storage_spec_code |
String |
Definition Storage specification code. Range |
|
service_type |
String |
Definition Service type. Range |
|
storage_type |
String |
Definition Storage type. Range |
|
extend_times |
Long |
Definition Extension time. Range N/A |
|
ipv6_enable |
Boolean |
Definition Whether IPv6 is enabled. Range |
|
support_features |
String |
Definition Features supported by the instance. Range N/A |
|
disk_encrypted |
Boolean |
Definition Whether disk encryption is enabled. Range |
|
ces_version |
String |
Definition Cloud Eye version. Range N/A |
|
node_num |
Integer |
Definition Number of nodes. (This field is available only for RocketMQ 4.8.0 instances.) Range N/A |
|
new_spec_billing_enable |
Boolean |
Definition Whether billing based on new specifications is enabled. Range |
|
enable_acl |
Boolean |
Definition Whether access control is enabled. Range |
|
broker_num |
Integer |
Definition Number of brokers. Range N/A |
|
dns_enable |
Boolean |
Definition Whether to enable domain name access to an instance. Range |
|
namesrv_address |
String |
Definition Metadata address. Range N/A |
|
namesrv_domain_name |
String |
Definition Metadata domain name. Range N/A |
|
broker_address |
String |
Definition Service data address. Range N/A |
|
public_namesrv_address |
String |
Definition Public network metadata address. Range N/A |
|
public_namesrv_domain_name |
String |
Definition Public metadata domain name. Range N/A |
|
public_broker_address |
String |
Definition Public network service data address. Range N/A |
|
grpc_address |
String |
Definition gRPC connection address (displayed only for RocketMQ 5.x). Range N/A |
|
grpc_domain_name |
String |
Definition gRPC connection domain name (displayed only for RocketMQ 5.x). Range N/A |
|
public_grpc_address |
String |
Definition Public gRPC connection address (displayed only for RocketMQ 5.x). Range N/A |
|
public_grpc_domain_name |
String |
Definition Public gRPC domain name (displayed only for RocketMQ 5.x). Range N/A |
|
enterprise_project_id |
String |
Definition Enterprise project ID. Range N/A |
|
tags |
Array of TagEntity objects |
Definition Tag list. Range N/A |
|
total_storage_space |
Integer |
Definition Total storage space. Range N/A |
|
resource_spec_code |
String |
Definition Resource flavor. Range N/A |
|
produce_portion |
Integer |
Definition Production TPS proportion. Range N/A |
|
consume_portion |
Integer |
Definition Consumption TPS proportion. Range N/A |
|
dr_enable |
Boolean |
Definition Whether the instance has disaster recovery (DR). Range |
|
quota_address |
String |
Definition Quota address. Range N/A |
|
max_msg_process_tps |
Integer |
Definition Maximum message TPS. Range N/A |
|
config_ssl_need_restart_process |
Boolean |
Definition Whether a restart is required to configure SSL. Range |
|
tls_mode |
String |
Definition Security protocol used by the instance. Range N/A |
|
arch_type |
String |
Definition Architecture type. Range |
|
auto_volume_expand_enable |
Boolean |
Definition Whether to enable automatic disk capacity expansion. Range |
Example Requests
Querying details of a specified instance
GET https://{endpoint}/v2/{project_id}/instances/{instance_id}
Example Responses
Status code: 200
Instance queried successfully.
{
"name" : "reliability-test",
"engine" : "reliability",
"status" : "RUNNING",
"description" : "",
"type" : "single.basic",
"specification" : "rocketmq.b1.large.1, 500 tps",
"engine_version" : "5.x",
"instance_id" : "68fdc9a8-805e-439d-8dd9-25adc1c58bf6",
"resource_spec_code" : "",
"charging_mode" : 1,
"vpc_id" : "3db8490c-4d6d-4d8f-8d3f-047b0de4c5cf",
"vpc_name" : "vpc-1101840",
"created_at" : "1636699753874",
"product_id" : "rocketmq.b1.large.1",
"security_group_id" : "23c5977f-ff33-4b95-a73e-08d8a0bc4e6c",
"security_group_name" : "security_group_test",
"subnet_id" : "0a0f1fcb-f019-458d-b9e5-301867394d50",
"subnet_name" : "subnet-test",
"subnet_cidr" : "192.168.64.0/18",
"available_zones" : [ "9f1c5806706d4c1fb0eb72f0a9b18c77" ],
"available_zone_names" : [ "AZ3" ],
"user_id" : "0b01fbb53600d4671fa8c00673c71260",
"user_name" : "user_test",
"maintain_begin" : "02:00:00",
"maintain_end" : "06:00:00",
"enable_log_collection" : false,
"storage_space" : 558,
"total_storage_space" : 600,
"used_storage_space" : 28,
"enable_publicip" : true,
"publicip_id" : "83924171-7014-48f0-a6b2-c714e7a090dd",
"publicip_address" : "***",
"ssl_enable" : false,
"cross_vpc_info" : "{\"192.168.93.114\":{\"advertised_ip\":\"192.168.93.114\",\"broker_port\":\"10100\",\"port_id\":\"b3de3981-1f73-4e6f-b35a-78833b783364\",\"namesrv_port\":\"8300\"}}",
"storage_resource_id" : "164bdaef-2e67-4fd5-be8b-a18f91d455a2",
"storage_spec_code" : "dms.physical.storage.ultra.v2",
"service_type" : "advanced",
"storage_type" : "hec",
"enterprise_project_id" : "0",
"extend_times" : 0,
"ipv6_enable" : false,
"support_features" : "features.log.collection",
"disk_encrypted" : false,
"ces_version" : "linux,v1,v2,v3,v4",
"new_spec_billing_enable" : true,
"dns_enable" : false,
"dr_enable" : false,
"config_ssl_need_restart_process" : false,
"enable_acl" : false,
"namesrv_address" : "192.168.93.114:8100",
"broker_address" : "192.168.64.0/18:10100",
"public_namesrv_address" : "100.85.116.211:8200",
"public_broker_address" : "100.85.116.211:10101",
"grpc_address" : "192.168.93.114:8080",
"public_grpc_address" : "100.85.116.211:8081"
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
Instance queried successfully. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.