
# 获取指定元数据components列表 - ShowMetaComponents
#### 功能介绍
获取指定元数据components列表
#### 调用方法
请参见[如何调用API](https://support.huaweicloud.com/api-functiongraph/functiongraph_06_0200.html#functiongraph_06_0200)。
#### 授权信息
账号具备所有API的调用权限，如果使用账号下的IAM用户调用当前API，该IAM用户需具备调用API所需的权限，具体权限要求请参见[权限和授权项](https://support.huaweicloud.com/api-functiongraph/functiongraph_06_1100.html#functiongraph_06_1100)。
#### URI
GET /v1/{project_id}/ffs/metadata/components
表1路径参数 
| 参数         | 是否必选 | 参数类型   | 描述                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
|:---|:---|:---|:---|
| project_id | 是    | String | **参数解释**: 租户项目 ID，获取方式请参见[获取项目ID](https://support.huaweicloud.com/api-functiongraph/functiongraph_06_0260.html#functiongraph_06_0260)。 **约束限制**: 不涉及。 **取值范围**: 只能由英文字母、数字组成，且长度为32个字符 **默认取值**: 不涉及。 |
   
表2Query参数 
| 参数     | 是否必选 | 参数类型   | 描述     |
|:---|:---|:---|:---|
| locale | 否    | String | locale |
| type   | 否    | String | type   |
   
#### 请求参数
无
#### 响应参数
**状态码：200**
表3响应Body参数 
| 参数         | 参数类型   | 描述   |
|:---|:---|:---|
| components | Object | 组件元素 |
   
表4ComponentsItem 
| 参数          | 参数类型             | 描述       |
|:---|:---|:---|
| type        | String           | 类型       |
| categories  | Array of objects | 所属元数据种类  |
| display     | String           | 展示名称     |
| width       | String           | 宽度       |
| description | String           | 描述       |
| tags        | Array of objects | 所属标签种类   |
| inputs      | Array of objects | 输入界面构造元素 |
   
**状态码：400**
表5响应Body参数 
| 参数         | 参数类型   | 描述   |
|:---|:---|:---|
| error_code | String | 错误码  |
| error_msg  | String | 错误描述 |
| request_id | String | 请求ID |
   
**状态码：500**
表6响应Body参数 
| 参数         | 参数类型   | 描述   |
|:---|:---|:---|
| error_code | String | 错误码  |
| error_msg  | String | 错误描述 |
| request_id | String | 请求ID |
   
#### 请求示例
无
#### 响应示例
**状态码：200**
指定元数据components列表
```
{
  "components" : {
    "type" : "start_node",
    "categories" : [ ],
    "display" : "开始",
    "width" : "700px",
    "description" : "Start Node",
    "tags" : [ ],
    "inputs" : [ ]
  }
}
```
#### 状态码
| 状态码 | 描述                    |
|:---|:---|
| 200 | 指定元数据components列表     |
| 400 | Bad Request           |
| 500 | Internal Server Error |
   
#### 错误码
请参见[错误码](https://support.huaweicloud.com/api-functiongraph/ErrorCode.html)。
