更新时间:2025-09-23 GMT+08:00

查询集群参数配置

功能介绍

查询集群所关联的参数组。

调用方法

请参见如何调用API。

URI

GET /v1.0/{project_id}/clusters/{cluster_id}/configurations/{configuration_id}

表1 路径参数

参数

是否必选

参数类型

描述

project_id

是

String

参数解释:

项目ID。获取方法请参见获取项目ID。

约束限制:

不涉及。

取值范围:

不涉及。

默认取值:

不涉及。

cluster_id

是

String

参数解释:

集群ID。获取方法请参见获取集群ID。

约束限制:

不涉及。

取值范围:

不涉及。

默认取值:

不涉及。

configuration_id

是

String

参数解释:

参数组ID。

约束限制:

不涉及。

取值范围:

不涉及。

默认取值:

不涉及。

请求参数

无

响应参数

状态码:200

表2 响应Body参数

参数

参数类型

描述

configurations

Array of ConfigurationParameter objects

参数解释:

集群使用的参数配置信息。

取值范围:

不涉及。

表3 ConfigurationParameter

参数

参数类型

描述

name

String

参数解释:

参数名称。

取值范围:

不涉及。

values

Array of ConfigurationParameterUnit objects

参数解释:

参数值。

取值范围:

不涉及。

unit

String

参数解释:

参数单位。

取值范围:

不涉及。

type

String

参数解释:

参数类型。

取值范围:

包括boolean、string、integer、float、list。

readonly

Boolean

参数解释:

是否只读。

取值范围:

不涉及。

value_range

String

参数解释:

参数值范围。

取值范围:

不涉及。

restart_required

Boolean

参数解释:

是否需要重启。

取值范围:

不涉及。

description

String

参数解释:

参数描述。

取值范围:

不涉及。

表4 ConfigurationParameterUnit

参数

参数类型

描述

type

String

参数解释:

参数类型。包括:cn、dn。

取值范围:

cn、dn。

value

String

参数解释:

参数值。

取值范围:

不涉及。

default_value

String

参数解释:

参数默认值。

取值范围:

不涉及。

请求示例

GET https://{Endpoint}/v1.0/89cd04f168b84af6be287f71730fdb4b/clusters/4ca46bf1-5c61-48ff-b4f3-0ad4e5e3ba90/configurations/2846d355-cd2a-4239-ae54-a7aef0b7963d

响应示例

状态码:200

查询集群参数配置成功。

{
  "configurations" : [ {
    "name" : "enable_constraint_optimization",
    "values" : [ {
      "type" : "cn",
      "value" : "on",
      "default_value" : "on"
    }, {
      "type" : "dn",
      "value" : "on",
      "default_value" : "on"
    } ],
    "unit" : null,
    "type" : "boolean",
    "readonly" : false,
    "value_range" : "on|off",
    "restart_required" : false,
    "description" : "Specifies whether the informational constraint optimization execution plan can be used for an HDFS foreign table."
  } ]
}

状态码

状态码

描述

200

查询集群参数配置成功。

400

请求错误。

401

鉴权失败。

403

没有操作权限。

404

找不到资源。

500

服务内部错误。

503

服务不可用。