A.7. 擦除代码配置集

使用 Ceph RESTful API erasure_code_profile 端点来管理 Ersaure 编码的配置集引用。

GET /api/erasure_code_profile
描述
列出源代码的配置集信息。
示例
GET /api/erasure_code_profile HTTP/1.1
Host: example.com
状态代码
  • 200 OK - 确定。
  • 400 Bad Request – Operation exception.请检查响应正文以了解详细信息。
  • 401 未授权 - 未验证的访问。请首先登录。
  • 403 Forbidden – Unauthorized access.请检查您的权限。
  • 500 Internal Server Error – 意外错误。请检查堆栈追踪的响应正文。
POST /api/erasure_code_profile
示例
POST /api/erasure_code_profile HTTP/1.1
Host: example.com
Content-Type: application/json

{
    "name": "STRING"
}
状态代码
  • 201 created - 资源已创建。
  • 202 accepted - Operation 仍在执行,检查任务队列。
  • 400 Bad Request – Operation exception.请检查响应正文以了解详细信息。
  • 401 未授权 - 未验证的访问。请首先登录。
  • 403 Forbidden – Unauthorized access.请检查您的权限。
  • 500 Internal Server Error – 意外错误。请检查堆栈追踪的响应正文。
DELETE /api/erasure_code_profile/NAME
参数
  • 使用配置集名称替换 NAME
状态代码
  • 202 accepted - Operation 仍在执行,检查任务队列。
  • 204 No Content – Resource deleted.
  • 400 Bad Request – Operation exception.请检查响应正文以了解详细信息。
  • 401 未授权 - 未验证的访问。请首先登录。
  • 403 Forbidden – Unauthorized access.请检查您的权限。
  • 500 Internal Server Error – 意外错误。请检查堆栈追踪的响应正文。
GET /api/erasure_code_profile/NAME
参数
  • 使用配置集名称替换 NAME
示例
GET /api/erasure_code_profile/NAME HTTP/1.1
Host: example.com
状态代码
  • 202 accepted - Operation 仍在执行,检查任务队列。
  • 204 No Content – Resource deleted.
  • 400 Bad Request – Operation exception.请检查响应正文以了解详细信息。
  • 401 未授权 - 未验证的访问。请首先登录。
  • 403 Forbidden – Unauthorized access.请检查您的权限。
  • 500 Internal Server Error – 意外错误。请检查堆栈追踪的响应正文。

其它资源

  • 如需更多详细信息,请参阅 Red Hat Ceph Storage Developer Guide 中的 Ceph RESTful API 章节。