Querying an Instance
Function
This API is used to query the details about an instance.
This API is an out-of-date version and may not be maintained in the future. Please use the API described in Querying an Instance.
Call Method
For details, see How to Call an API.
URI
GET /v2/{engine}/{project_id}/instances/{instance_id}
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
engine |
Yes |
String |
Engine. |
|
project_id |
Yes |
String |
Project ID. For details, see Obtaining a Project ID. |
|
instance_id |
Yes |
String |
Instance ID. |
Request
None
Response
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
access_user |
String |
Indicates a username. A username consists of 4 to 64 characters and supports only letters, digits, and hyphens (-). |
|
broker_num |
Integer |
Number of brokers. |
|
name |
String |
Instance name. |
|
engine |
String |
Message engine. |
|
engine_version |
String |
Version of the message engine. |
|
specification |
String |
Instance specifications.
|
|
storage_space |
Integer |
Message storage space, in GB. |
|
used_storage_space |
Integer |
Used message storage space, in GB. |
|
dns_enable |
Boolean |
Whether to enable domain name access to an instance.
|
|
connect_address |
String |
Instance IP address for private access. |
|
connect_domain_name |
String |
Instance domain name for private access. |
|
public_connect_address |
String |
Instance IP address for public access. |
|
public_connect_domain_name |
String |
Instance domain name for public access. |
|
port |
Integer |
Instance connection port. |
|
status |
String |
Status of an instance. |
|
description |
String |
Instance description. |
|
instance_id |
String |
Instance ID. |
|
resource_spec_code |
String |
Indicates the resource specifications identifier.
|
|
charging_mode |
Integer |
Indicates a billing mode. 1: pay-per-use mode; 0: yearly/monthly billing. |
|
vpc_id |
String |
VPC ID. |
|
vpc_name |
String |
VPC name. |
|
created_at |
String |
Time when the 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. |
|
user_id |
String |
User ID. |
|
user_name |
String |
Username. |
|
order_id |
String |
Indicates an order ID. This parameter has a value only when the billing mode is yearly/monthly mode. |
|
maintain_begin |
String |
Time at which the maintenance time window starts. Format: HH:mm:ss. |
|
maintain_end |
String |
Time at which the maintenance window ends. The format is HH:mm:ss. |
|
enable_publicip |
Boolean |
Indicates whether to enable public access for a RabbitMQ instance.
|
|
publicip_address |
String |
Indicates the EIP bound to a RabbitMQ instance. The value of this parameter is null if public access is disabled. |
|
publicip_id |
String |
Indicates the ID of the EIP bound to a RabbitMQ instance. The value of this parameter is null if public access is disabled. |
|
management_connect_address |
String |
Indicates the management address of a RabbitMQ instance. |
|
management_connect_domain_name |
String |
Indicates the management domain name of a RabbitMQ instance. |
|
public_management_connect_address |
String |
Indicates the public management address of a RabbitMQ instance. |
|
public_management_connect_domain_name |
String |
Indicates the public management domain name of a RabbitMQ instance. |
|
ssl_enable |
Boolean |
Indicates whether to enable security authentication.
|
|
enterprise_project_id |
String |
Indicates the enterprise project ID. |
|
is_logical_volume |
Boolean |
Distinguishes old instances from new instances during instance capacity expansion.
|
|
extend_times |
Integer |
Times of scaling up the instance disk. |
|
type |
String |
Indicates the instance type. Value: cluster. |
|
product_id |
String |
Indicates the product ID. |
|
security_group_id |
String |
Indicates the security group ID. |
|
security_group_name |
String |
Indicates the security group name. |
|
subnet_id |
String |
Indicates the subnet ID. |
|
available_zones |
Array of strings |
Indicates the ID of the AZ to which the instance node belongs. The AZ ID is returned. |
|
total_storage_space |
Integer |
Total message storage space, in GB. |
|
storage_resource_id |
String |
Storage resource ID. |
|
storage_spec_code |
String |
I/O specification. |
|
ipv6_enable |
Boolean |
Indicates whether IPv6 is enabled. |
|
ipv6_connect_addresses |
Array of strings |
Indicates the IPv6 connection address. |
|
tags |
Array of TagEntity objects |
Tag list. |
|
Parameter |
Type |
Description |
|---|---|---|
|
key |
String |
Tag key, which:
|
|
value |
String |
Tag value.
|
Example Request
GET https://{endpoint}/v2/{engine}/{project_id}/instances/{instance_id}
Example Response
Status code: 200
The query is successful.
{
"name" : "api-explorer",
"engine" : "rabbitmq",
"port" : 5672,
"status" : "RUNNING",
"type" : "single",
"specification" : "2vCPUs 4GB",
"engine_version" : "3.8.35",
"connect_address" : "192.168.0.74",
"instance_id" : "de873040-d661-4770-aa96-9329c71d7c8a",
"resource_spec_code" : "dms.instance.rabbitmq.single.c3.2u4g",
"charging_mode" : 1,
"vpc_id" : "40a6501e-85ca-4449-a0db-b8bc7f0cec28",
"vpc_name" : "vpc-a400",
"created_at" : "1590047080687",
"product_id" : "00300-30109-0--0",
"security_group_id" : "bfd68e26-f8ef-4a91-a373-0a8f5c198601",
"security_group_name" : "Sys-default",
"subnet_id" : "a7f9a564-30dd-4059-8124-364ca6554578",
"available_zones" : [ "9f1c5806706d4c1fb0eb72f0a9b18c77" ],
"user_id" : "3df5acbc24a54fadb62a043c9000a307",
"user_name" : "paas_dms_01",
"maintain_begin" : "22:00:00",
"maintain_end" : "02:00:00",
"storage_space" : 88,
"total_storage_space" : 100,
"used_storage_space" : 4,
"enable_publicip" : false,
"ssl_enable" : false,
"management_connect_address" : "http://192.168.0.74:15672",
"storage_resource_id" : "52be287d-1d6a-4d30-937e-185b3f176fc4",
"storage_spec_code" : "dms.physical.storage.normal",
"enterprise_project_id" : "0",
"tags" : [ {
"key" : "key1",
"value" : "value1"
}, {
"key" : "key2",
"value" : "value2"
} ],
"is_logical_volume" : true,
"extend_times" : 0,
"ipv6_enable" : false,
"ipv6_connect_addresses" : [ ],
"broker_num" : 1,
"access_user" : "root_0"
}
Status Code
|
Status Code |
Description |
|---|---|
|
200 |
The query is successful. |
Error Code
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank 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