# 获取实例指定参数的值 - ShowPostgresqlParamValue
#### 功能介绍
获取实例指定参数的值。
- 调用接口前，您需要了解API[认证鉴权](https://support.huaweicloud.com/api-rds/rds_03_0001.html)。
- 调用接口前，您需要了解[请求Header参数说明](https://support.huaweicloud.com/api-rds/rds_03_0005.html#rds_03_0005__section479119143310)。
 
#### 调试
您可以在[API Explorer](https://apiexplorer.developer.huaweicloud.com/apiexplorer/doc?product=RDS&api=ShowPostgresqlParamValue)中调试该接口。
#### 授权信息
账号具备所有API的调用权限，如果使用账号下的IAM用户调用当前API，该IAM用户需具备调用API所需的权限。
- 如果使用角色与策略授权，具体权限要求请参见[权限和授权项](https://support.huaweicloud.com/api-rds/rds_10_0005.html)。
- 如果使用身份策略授权，需具备如下身份策略权限。
 
| 授权项                         | 访问级别 | 资源类型（\*为必须） | 条件键                                                                            | 别名 | 依赖的授权项 |
|:---|:---|:---|:---|:---|:---|
| rds:instance:getParameter | -      | -            | g:EnterpriseProjectId g:ResourceTag/\<tag-key\> | -   | -       |
   
#### 接口约束
- 实例在异常或冻结状态下不能执行该操作。
- 当前只支持查询shared_preload_libraries。
 
#### URI
- URI格式 GET /v3/{project_id}/instances/{instance_id}/parameter/{name}
  
- 参数说明
  表1参数说明 
  | 名称                | 是否必选     | 说明                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
  |:---|:---|:---|
  | project_id        | 是       | **参数解释：** 租户在某一region下的project ID。 获取方法请参见[获取项目ID](https://support.huaweicloud.com/api-rds/rds_03_0002.html)。 **约束限制：** 不涉及。 **取值范围：** 不涉及。 **默认取值：** 不涉及。                                                                                |
  | instance_id | 是 | **参数解释：** 实例ID。 可调用[查询数据库实例列表](https://support.huaweicloud.com/api-rds/rds_01_0004.html)接口，通过[表4](https://support.huaweicloud.com/api-rds/rds_01_0004.html#rds_01_0004__table2058713718267)中的"id"获取。 **约束限制：** 不涉及。 **取值范围：** 不涉及。 **默认取值：** 不涉及。 |
  | name                                 | 是                          | **参数解释**： 指定实例的shared_preload_libraries配置项，用于控制预加载哪些插件。 **约束限制**： 不涉及。 **取值范围**： 当前只支持修改shared_preload_libraries。 **默认取值**： 不涉及。                                                                                                                                                                                                                                                                                                                                                                                                                                         |
     
  
 
#### 请求消息
- 请求参数 无。
  
- URI样例 GET https://{endpoint}/v3/0483b6b16e954cb88930a360d2c4e663/instances/f569f1358436479dbcba8603c32cc4aein03/parameter/shared_preload_libraries
  
 
#### 响应消息
- 正常响应要素说明
  表2要素说明 
  | 名称 | 参数类型 | 说明                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
  |:---|:---|:---|
  | name                | String                   | **参数解释**： 插件相关参数名称。 **取值范围**： shared_preload_libraries                                                                                                                                                                                                                                                                                                                                |
  | value               | String                 | **参数解释**： 已加载的插件名称。 **取值范围**： 不涉及。                                                                                                                                                                                                                                                                                                                                                     |
  | restart_required     | Boolean                 | **参数解释**： 实例是否需要重启。 **取值范围**： - true，需要重启。  - false，不需要重启。                                                                                                                                                                                        |
  | value_range         | String                  | **参数解释**： 支持加载的插件范围。 **取值范围**： pg_cron,pg_stat_statements,pg_qualstats,pg_stat_kcache,pg_wait_sampling,pgaudit,timescaledb,pglogical,passwordcheck.so,pg_sql_history,auth_delay,pg_hint_plan,anon,rds_pg_sql_ccl,pg_stat_monitor,pg_tle,rds_performance_statements 具体插件说明详见[支持的插件列表](https://support.huaweicloud.com/usermanual-rds-pg/rds_09_0045.html)。 |
  | type                | String                | **参数解释**： 参数类型。 **取值范围**： 取值为"string"、"integer"、"boolean"、"list"或"float"之一。                                                                                                                                                                                                                                                                                                                |
  | description         | String                | **参数解释**： 参数描述。 **取值范围**： 不涉及。                                                                                                                                                                                                                                                                                                                                                           |
     
  
- 正常响应样例
  ```
  {
   "name": "shared_preload_libraries",
   "value": "passwordcheck.so,pg_stat_statements,pg_sql_history,pgaudit,auth_delay,rds_pg_sql_ccl,rds_performance_statements",
   "type": "list",
   "description": "Lists shared libraries to preload into server.",
   "restart_required": true,
   "value_range": "pg_cron,pg_stat_statements,pg_qualstats,pg_stat_kcache,pg_wait_sampling,pgaudit,timescaledb,pglogical,passwordcheck.so,pg_sql_history,auth_delay,pg_hint_plan,anon,rds_pg_sql_ccl,pg_stat_monitor,pg_tle,rds_performance_statements"
  }
  ```
  
- 异常响应 请参见[异常响应结果](https://support.huaweicloud.com/api-rds/rds_01_0010.html)。
  
 
#### 状态码
- 正常 200
  
- 异常 请参见[状态码](https://support.huaweicloud.com/api-rds/rds_10_0200.html)。
  
 
#### 错误码
请参见[错误码](https://support.huaweicloud.com/api-rds/rds_10_0201.html)。
