Consulta de la lista de especificaciones del producto
Función
Esta API se utiliza para consultar la lista de especificaciones del producto.
URI
GET /v2/{engine}/products
Parámetro |
Obligatorio |
Tipo |
Descripción |
---|---|---|---|
engine |
Sí |
String |
Motor de mensajes |
Parámetro |
Obligatorio |
Tipo |
Descripción |
---|---|---|---|
product_id |
No |
String |
ID del producto |
Parámetros de solicitud
No hay
Parámetros de respuesta
Código de estado: 200
Parámetro |
Tipo |
Descripción |
---|---|---|
engine |
String |
Motor de mensajes de DMS. |
versions |
Array of strings |
Versiones soportadas. |
products |
Array of ListEngineProductsEntity objects |
Detalles de la especificación del producto. |
Parámetro |
Tipo |
Descripción |
---|---|---|
type |
String |
Tipo de producto. Actualmente, se admiten tipos de nodo único y de clúster. |
product_id |
String |
ID del producto |
ecs_flavor_id |
String |
Variante de ECS. |
billing_code |
String |
Modo de facturación. |
arch_types |
Array of strings |
Arquitectura de CPU. |
charging_mode |
Array of strings |
Modo de facturación. monthly: anual/mensual; hourly: pago por uso |
ios |
Array of ListEngineIosEntity objects |
Lista de tipos de E/S de disco compatibles. |
support_features |
Array of ListEngineSupportFeaturesEntity objects |
Lista de características admitidas por instancias de las especificaciones actuales. |
properties |
ListEnginePropertiesEntity object |
Atributo de instancias de las especificaciones actuales. |
Parámetro |
Tipo |
Descripción |
---|---|---|
io_spec |
String |
Código de E/S de disco. |
type |
String |
Tipo de disco |
available_zones |
Array of strings |
AZs disponibles. |
unavailable_zones |
Array of strings |
AZs no disponibles. |
Parámetro |
Tipo |
Descripción |
---|---|---|
name |
String |
Nombre de elemento. |
properties |
Descripción de las características admitidas por la instancia. |
Parámetro |
Tipo |
Descripción |
---|---|---|
max_task |
String |
Número máximo de tareas de volcado. |
min_task |
String |
Número mínimo de tareas de volcado. |
max_node |
String |
Número máximo de nodos de volcado. |
min_node |
String |
Número mínimo de nodos de volcado. |
Parámetro |
Tipo |
Descripción |
---|---|---|
max_partition_per_broker |
String |
Número máximo de particiones de cada corredor. |
max_broker |
String |
Número máximo de corredores. |
max_storage_per_node |
String |
Máximo espacio de almacenamiento de cada corredor. La unidad es GB. |
max_consumer_per_broker |
String |
Número máximo de consumidores de cada corredor. |
min_broker |
String |
Número mínimo de corredores. |
max_bandwidth_per_broker |
String |
Ancho de banda máximo de cada corredor. |
min_storage_per_node |
String |
Espacio mínimo de almacenamiento de cada corredor. La unidad es GB. |
max_tps_per_broker |
String |
TPS máximo de cada corredor. |
product_alias |
String |
Alias of product_id. |
Ejemplo de las solicitudes
GET https://{endpoint}/v2/kafka/products
Ejemplo de las respuestas
Código de estado: 200
Las especificaciones del producto se enumeran correctamente.
{ "engine" : "kafka", "versions" : [ "1.1.0", "2.3.0" ], "products" : [ { "type" : "cluster", "product_id" : "c6.2u4g.cluster", "ecs_flavor_id" : "c6.large.2", "billing_code" : "dms.platinum.c6", "arch_types" : [ "X86" ], "charging_mode" : [ "monthly", "hourly" ], "ios" : [ { "io_spec" : "dms.physical.storage.high.v2", "type" : "evs", "available_zones" : [ "xxx", "xxx" ], "unavailable_zones" : [ "xxx", "xxx" ] }, { "io_spec" : "dms.physical.storage.ultra.v2", "type" : "evs", "available_zones" : [ "xxx", "xxx" ], "unavailable_zones" : [ "xxx", "xxx" ] } ], "support_features" : [ { "name" : "connector_obs", "properties" : { "max_task" : "10", "max_node" : "10", "min_task" : "1", "min_node" : "2" } } ], "properties" : { "max_partition_per_broker" : "250", "max_broker" : "30", "max_storage_per_node" : "10000", "max_consumer_per_broker" : "4000", "min_broker" : "3", "max_bandwidth_per_broker" : "100", "min_storage_per_node" : "200", "max_tps_per_broker" : "30000", "product_alias" : "kafka.2u4g.cluster" } }, { "type" : "cluster", "product_id" : "c6.4u8g.cluster", "ecs_flavor_id" : "c6.xlarge.2", "billing_code" : "dms.platinum.c6", "arch_types" : [ "X86" ], "charging_mode" : [ "monthly", "hourly" ], "ios" : [ { "io_spec" : "dms.physical.storage.high.v2", "type" : "evs", "available_zones" : [ "xxx", "xxx" ], "unavailable_zones" : [ "xxx", "xxx" ] }, { "io_spec" : "dms.physical.storage.ultra.v2", "type" : "evs", "available_zones" : [ "xxx", "xxx" ], "unavailable_zones" : [ "xxx", "xxx" ] } ], "support_features" : [ { "name" : "connector_obs", "properties" : { "max_task" : "10", "max_node" : "10", "min_task" : "1", "min_node" : "2" } } ], "properties" : { "max_partition_per_broker" : "500", "max_broker" : "30", "max_storage_per_node" : "20000", "max_consumer_per_broker" : "4000", "min_broker" : "3", "max_bandwidth_per_broker" : "100", "min_storage_per_node" : "400", "max_tps_per_broker" : "100000", "product_alias" : "kafka.4u8g.cluster" } }, { "type" : "cluster", "product_id" : "c6.8u16g.cluster", "ecs_flavor_id" : "c6.2xlarge.2", "billing_code" : "dms.platinum.c6", "arch_types" : [ "X86" ], "charging_mode" : [ "monthly", "hourly" ], "ios" : [ { "io_spec" : "dms.physical.storage.high.v2", "type" : "evs", "available_zones" : [ "xxx", "xxx" ], "unavailable_zones" : [ "xxx", "xxx" ] }, { "io_spec" : "dms.physical.storage.ultra.v2", "type" : "evs", "available_zones" : [ "xxx", "xxx" ], "unavailable_zones" : [ "xxx", "xxx" ] } ], "support_features" : [ { "name" : "connector_obs", "properties" : { "max_task" : "10", "max_node" : "10", "min_task" : "1", "min_node" : "2" } } ], "properties" : { "max_partition_per_broker" : "1000", "max_broker" : "30", "max_storage_per_node" : "30000", "max_consumer_per_broker" : "4000", "min_broker" : "3", "max_bandwidth_per_broker" : "100", "min_storage_per_node" : "800", "max_tps_per_broker" : "150000", "product_alias" : "kafka.8u16g.cluster" } }, { "type" : "cluster", "product_id" : "c6.12u24g.cluster", "ecs_flavor_id" : "c6.3xlarge.2", "billing_code" : "dms.platinum.c6", "arch_types" : [ "X86" ], "charging_mode" : [ "monthly", "hourly" ], "ios" : [ { "io_spec" : "dms.physical.storage.high.v2", "type" : "evs", "available_zones" : [ "xxx", "xxx" ], "unavailable_zones" : [ "xxx", "xxx" ] }, { "io_spec" : "dms.physical.storage.ultra.v2", "type" : "evs", "available_zones" : [ "xxx", "xxx" ], "unavailable_zones" : [ "xxx", "xxx" ] } ], "support_features" : [ { "name" : "connector_obs", "properties" : { "max_task" : "10", "max_node" : "10", "min_task" : "1", "min_node" : "2" } } ], "properties" : { "max_partition_per_broker" : "1500", "max_broker" : "30", "max_storage_per_node" : "30000", "max_consumer_per_broker" : "4000", "min_broker" : "3", "max_bandwidth_per_broker" : "100", "min_storage_per_node" : "1200", "max_tps_per_broker" : "200000", "product_alias" : "kafka.12u24g.cluster" } }, { "type" : "cluster", "product_id" : "c6.16u32g.cluster", "ecs_flavor_id" : "c6.4xlarge.2", "billing_code" : "dms.platinum.c6", "arch_types" : [ "X86" ], "charging_mode" : [ "monthly", "hourly" ], "ios" : [ { "io_spec" : "dms.physical.storage.high.v2", "type" : "evs", "available_zones" : [ "xxx", "xxx" ], "unavailable_zones" : [ "xxx", "xxx" ] }, { "io_spec" : "dms.physical.storage.ultra.v2", "type" : "evs", "available_zones" : [ "xxx", "xxx" ], "unavailable_zones" : [ "xxx", "xxx" ] } ], "support_features" : [ { "name" : "connector_obs", "properties" : { "max_task" : "10", "max_node" : "10", "min_task" : "1", "min_node" : "2" } } ], "properties" : { "max_partition_per_broker" : "2000", "max_broker" : "30", "max_storage_per_node" : "30000", "max_consumer_per_broker" : "4000", "min_broker" : "3", "max_bandwidth_per_broker" : "100", "min_storage_per_node" : "1600", "max_tps_per_broker" : "250000", "product_alias" : "kafka.16u32g.cluster" } } ] }
Códigos de estado
Código de estado |
Descripción |
---|---|
200 |
Las especificaciones del producto se enumeran correctamente. |
Códigos de error
Consulte Códigos de error.