Querying an Instance
This API is out-of-date and may not be maintained in the future. Please use the API described in Querying an Instance.
Function
This API is used to query the details about an instance.
Request
Request parameters
None.
Example request
GET https://{dms_endpoint}/v1.0/{project_id}/instances/{instance_id}
Response
Response parameters
Table 2 describes the parameters.
Parameter |
Type |
Description |
---|---|---|
name |
String |
Indicates the instance name. |
engine |
String |
Indicates the message engine. |
engine_version |
String |
Indicates the version of the message engine. |
specification |
String |
Indicates the instance specification. |
storage_space |
Integer |
Indicates the message storage space. Unit: GB |
partition_num |
String |
Indicates the total number of partitions in a Kafka instance. |
used_storage_space |
Integer |
Indicates the used message storage space. Unit: GB |
connect_address |
String |
Indicates the IP address of an instance. |
port |
Integer |
Indicates the port number of an instance. |
status |
String |
Indicates the status of an instance. For details, see Instance Status. |
instance_id |
String |
Indicates the instance ID. |
resource_spec_code |
String |
Indicates the resource specifications identifier.
|
type |
String |
Indicates the instance type. Value: cluster |
charging_mode |
Integer |
Indicates the billing mode. |
vpc_id |
String |
Indicates the ID of a VPC. |
vpc_name |
String |
Indicates the name of a VPC. |
created_at |
String |
Indicates the time when an instance is created. 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. |
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. |
subnet_name |
String |
Indicates the subnet name. |
subnet_cidr |
String |
Indicates the subnet CIDR block. |
available_zones |
Array |
Indicates the ID of the AZ to which the instance node belongs. The AZ ID is returned. |
user_id |
String |
Indicates the user ID. |
user_name |
String |
Indicates the username. |
access_user |
String |
Indicates the username of an instance. |
maintain_begin |
String |
Indicates the time at which a maintenance time window starts. Format: HH:mm:ss |
maintain_end |
String |
Indicates the time at which a maintenance time window ends. Format: HH:mm:ss |
enable_publicip |
Boolean |
Indicates whether to enable public access for an instance.
|
ssl_enable |
Boolean |
Indicates whether to enable security authentication.
|
enterprise_project_id |
String |
Indicates the enterprise project ID. |
enable_auto_topic |
Boolean |
Indicates whether automatic topic creation is enabled.
|
total_storage_space |
Integer |
Indicates the message storage space. Unit: GB |
storage_resource_id |
String |
Indicates the storage resource ID. |
storage_spec_code |
String |
Indicates the I/O specification. |
service_type |
String |
Indicates the service type. |
storage_type |
String |
Indicates the storage type. |
retention_policy |
String |
Indicates the message retention policy. |
kafka_public_status |
String |
Indicates whether Kafka public access is enabled. |
public_bandwidth |
Integer |
Indicates the public network bandwidth. |
public_connect_address |
String |
Indicates the instance IP address for public access. This parameter is displayed only when public access is enabled. |
enable_log_collection |
Boolean |
Indicates whether log collection is enabled. |
cross_vpc_info |
String |
Indicates cross-VPC access information. |
ipv6_enable |
Boolean |
Indicates whether IPv6 is enabled. |
ipv6_connect_addresses |
Array of strings |
Indicates the IPv6 connection address. |
rest_enable |
Boolean |
Indicates whether the Kafka REST function is enabled. |
rest_connect_address |
String |
Indicates the Kafka REST connection address. |
message_query_inst_enable |
Boolean |
Indicates whether message query is enabled. |
vpc_client_plain |
Boolean |
Indicates whether intra-VPC plaintext access is enabled. |
support_features |
String |
Indicates the list of features supported by the Kafka instance. |
trace_enable |
Boolean |
Indicates whether message tracing is enabled. |
pod_connect_address |
String |
Indicates the connection address on the tenant side. |
disk_encrypted |
Boolean |
Indicates whether disk encryption is enabled.
|
kafka_private_connect_address |
String |
Indicates the private connection address of a Kafka instance. |
ces_version |
String |
Indicates the Cloud Eye version. |
Example response
{ "name": "kafka-1823069716", "engine": "kafka", "port": 9093, "status": "RUNNING", "type": "cluster", "specification": "100MB", "engine_version": "2.3.0", "connect_address": "192.168.0.24,192.168.0.105,192.168.0.103", "instance_id": "abbc2f59-7c67-4ca4-8493-cef0624e0d45", "resource_spec_code": "dms.instance.kafka.cluster.c3.mini", "charging_mode": 1, "vpc_id": "1511c95c-540c-42b7-ae78-72fdb3502dc4", "vpc_name": "vpc-111", "created_at": "1586761206802", "product_id": "00300-30308-0--0", "security_group_id": "0b605722-22ce-4727-bde8-e5366aff941d", "security_group_name": "sg-Kafka", "subnet_id": "f8f80ddd-09f7-4f79-a702-3d5f74f215a3", "subnet_name": "subnet-111", "subnet_cidr": "192.168.0.0/24", "available_zones": ["xxx"], "user_id": "5f94abe9222e4d05a98986c348ee8afa", "user_name": "hby-zwx822581", "access_user": "kafka-1823069716", "maintain_begin": "22:00:00", "maintain_end": "02:00:00", "storage_space": 492, "total_storage_space": 600, "used_storage_space": 25, "partition_num": "300", "enable_publicip": true, "ssl_enable": true, "public_connect_address": "10.185.73.68:9095,10.185.73.75:9095,10.185.74.250:9095", "storage_resource_id": "3666e27b-4a6e-4237-8531-c1f8851eedcd", "storage_spec_code": "dms.physical.storage.high", "service_type": "advanced", "storage_type": "hec", "retention_policy": "produce_reject", "kafka_public_status": "true", "public_bandwidth": 6 }
Status Code
Table 3 describes the status code of successful operations. For details about other status codes, see Status Code.
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