Skip to navigation Skip to main content

Utilities

  • Subscriptions
  • Downloads
  • Containers
  • Support Cases
Red Hat Customer Portal
  • Subscriptions
  • Downloads
  • Containers
  • Support Cases
  • Products & Services

    Products

    Support

    • Production Support
    • Development Support
    • Product Life Cycles

    Services

    • Consulting
    • Technical Account Management
    • Training & Certifications

    Documentation

    • Red Hat Enterprise Linux
    • Red Hat JBoss Enterprise Application Platform
    • Red Hat OpenStack Platform
    • Red Hat OpenShift Container Platform
    All Documentation

    Ecosystem Catalog

    • Red Hat Partner Ecosystem
    • Partner Resources
  • Tools

    Tools

    • Troubleshoot a product issue
    • Packages
    • Errata

    Customer Portal Labs

    • Configuration
    • Deployment
    • Security
    • Troubleshoot
    All labs

    Red Hat Insights

    Increase visibility into IT operations to detect and resolve technical issues before they impact your business.

    Learn More
    Go to Insights
  • Security

    Red Hat Product Security Center

    Engage with our Red Hat Product Security team, access security updates, and ensure your environments are not exposed to any known security vulnerabilities.

    Product Security Center

    Security Updates

    • Security Advisories
    • Red Hat CVE Database
    • Security Labs

    Keep your systems secure with Red Hat's specialized responses to security vulnerabilities.

    View Responses

    Resources

    • Security Blog
    • Security Measurement
    • Severity Ratings
    • Backporting Policies
    • Product Signing (GPG) Keys
  • Community

    Customer Portal Community

    • Discussions
    • Private Groups
    Community Activity

    Customer Events

    • Red Hat Convergence
    • Red Hat Summit

    Stories

    • Red Hat Subscription Value
    • You Asked. We Acted.
    • Open Source Communities
Or troubleshoot an issue.

Select Your Language

  • English
  • 한국어
  • 日本語
  • 中文 (中国)

Infrastructure and Management

  • Red Hat Enterprise Linux
  • Red Hat Satellite
  • Red Hat Subscription Management
  • Red Hat Insights
  • Red Hat Ansible Automation Platform

Cloud Computing

  • Red Hat OpenShift
  • Red Hat OpenStack Platform
  • Red Hat OpenShift Container Platform
  • Red Hat OpenShift Data Science
  • Red Hat OpenShift Dedicated
  • Red Hat Advanced Cluster Security for Kubernetes
  • Red Hat Advanced Cluster Management for Kubernetes
  • Red Hat Quay
  • OpenShift Dev Spaces
  • Red Hat OpenShift Service on AWS

Storage

  • Red Hat Gluster Storage
  • Red Hat Hyperconverged Infrastructure
  • Red Hat Ceph Storage
  • Red Hat OpenShift Data Foundation

Runtimes

  • Red Hat Runtimes
  • Red Hat JBoss Enterprise Application Platform
  • Red Hat Data Grid
  • Red Hat JBoss Web Server
  • Red Hat Single Sign On
  • Red Hat support for Spring Boot
  • Red Hat build of Node.js
  • Red Hat build of Quarkus

Integration and Automation

  • Red Hat Application Foundations
  • Red Hat Fuse
  • Red Hat AMQ
  • Red Hat 3scale API Management
All Products

Table of contents

  1. 开发人员指南
  2. 1. Ceph RESTful API
    1. 1.1. 先决条件
    2. 1.2. Ceph API 的版本
    3. 1.3. Ceph API 的身份验证和授权
    4. 1.4. 启用和保护 Ceph API 模块
    5. 1.5. 问题和答案
      1. 1.5.1. 获取信息
        1. 1.5.1.1. 如何查看所有集群配置选项?
        2. 1.5.1.2. 如何查看部分群集配置选项?
        3. 1.5.1.3. 如何查看 OSD 的所有配置选项?
        4. 1.5.1.4. 如何查看 CRUSH 规则?
        5. 1.5.1.5. 如何查看有关 monitor 的信息?
        6. 1.5.1.6. 如何查看关于完整监控的信息?
        7. 1.5.1.7. 如何查看 OSD 的信息?
        8. 1.5.1.8. 如何查看 Particular OSD 的信息?
        9. 1.5.1.9. 如何确定 OSD 上可以调度哪些进程?
        10. 1.5.1.10. 如何查看关于池的信息?
        11. 1.5.1.11. 如何查看完整池的信息?
        12. 1.5.1.12. 如何查看关于主机的信息?
        13. 1.5.1.13. 如何查看完整主机中的信息?
      2. 1.5.2. 更改配置
        1. 1.5.2.1. 如何更改 OSD 配置选项?
        2. 1.5.2.2. 如何更改 OSD 状态?
        3. 1.5.2.3. 如何重新加权 OSD?
        4. 1.5.2.4. 如何更改池的信息?
      3. 1.5.3. 管理集群
        1. 1.5.3.1. 如何在 OSD 上运行调度的进程?
        2. 1.5.3.2. 如何创建新池?
        3. 1.5.3.3. 如何删除池?
    6. 1.6. 其它资源
  3. 2. Ceph 对象网关管理 API
    1. 2.1. 先决条件
    2. 2.2. 管理操作
    3. 2.3. 管理身份验证请求
    4. 2.4. 创建管理用户
    5. 2.5. 获取用户信息
    6. 2.6. 创建用户
    7. 2.7. 修改用户
    8. 2.8. 删除用户
    9. 2.9. 创建子用户
    10. 2.10. 修改子用户
    11. 2.11. 删除子用户
    12. 2.12. 为用户添加功能
    13. 2.13. 从用户中删除功能
    14. 2.14. 创建密钥
    15. 2.15. 删除密钥
    16. 2.16. bucket 通知
      1. 2.16.1. 先决条件
      2. 2.16.2. 存储桶通知概述
      3. 2.16.3. 持久性通知
      4. 2.16.4. 创建主题
      5. 2.16.5. 获取主题信息
      6. 2.16.6. 列出主题
      7. 2.16.7. 删除主题
      8. 2.16.8. 事件记录
      9. 2.16.9. 支持的事件类型
    17. 2.17. 获取存储桶信息
    18. 2.18. 检查存储桶索引
    19. 2.19. 删除存储桶
    20. 2.20. 链接存储桶
    21. 2.21. 取消链接存储桶
    22. 2.22. 获取存储桶或对象策略
    23. 2.23. 删除对象
    24. 2.24. 配额
    25. 2.25. 获取用户配额
    26. 2.26. 设置用户配额
    27. 2.27. 获取存储桶配额
    28. 2.28. 设置存储桶配额
    29. 2.29. 获取用法信息
    30. 2.30. 删除使用信息
    31. 2.31. 标准错误响应
  4. 3. Ceph 对象网关和 S3 API
    1. 3.1. 先决条件
    2. 3.2. S3 限制
    3. 3.3. 使用 S3 API 访问 Ceph 对象网关
      1. 3.3.1. 先决条件
      2. 3.3.2. S3 身份验证
      3. 3.3.3. S3 服务器端加密
      4. 3.3.4. S3 访问控制列表
      5. 3.3.5. 使用 S3 准备对 Ceph 对象网关的访问
      6. 3.3.6. 使用 Ruby AWS S3 访问 Ceph 对象网关
      7. 3.3.7. 使用 Ruby AWS SDK 访问 Ceph 对象网关
      8. 3.3.8. 使用 PHP 访问 Ceph 对象网关
      9. 3.3.9. 安全令牌服务
        1. 3.3.9.1. 安全令牌服务应用程序编程接口
        2. 3.3.9.2. 配置安全令牌服务
        3. 3.3.9.3. 为 OpenID Connect 供应商创建用户
        4. 3.3.9.4. 获取 OpenID Connect 供应商的 thumbprint
        5. 3.3.9.5. 在 Keystone 中配置和使用 STS Lite(技术预览)
        6. 3.3.9.6. 围绕将 STS Lite 与 Keystone 搭配使用的限制(技术预览)
    4. 3.4. S3 存储桶操作
      1. 3.4.1. 先决条件
      2. 3.4.2. S3 创建存储桶通知
      3. 3.4.3. S3 获取存储桶通知
      4. 3.4.4. S3 删除存储桶通知
      5. 3.4.5. 访问存储桶主机名
      6. 3.4.6. S3 列表存储桶
      7. 3.4.7. S3 返回存储桶对象列表
      8. 3.4.8. S3 创建新存储桶
      9. 3.4.9. S3 放置存储桶网站
      10. 3.4.10. S3 获取存储桶网站
      11. 3.4.11. S3 删除存储桶网站
      12. 3.4.12. S3 删除存储桶
      13. 3.4.13. S3 存储桶生命周期
      14. 3.4.14. S3 GET 存储桶生命周期
      15. 3.4.15. S3 创建或替换存储桶生命周期
      16. 3.4.16. S3 删除存储桶生命周期
      17. 3.4.17. S3 get bucket 位置
      18. 3.4.18. S3 获取存储桶版本
      19. 3.4.19. S3 设置存储桶版本
      20. 3.4.20. S3 获取存储桶访问控制列表
      21. 3.4.21. S3 放置存储桶访问控制列表
      22. 3.4.22. S3 get bucket cors
      23. 3.4.23. S3 put bucket cors
      24. 3.4.24. S3 删除存储桶 cors
      25. 3.4.25. S3 列表存储桶对象版本
      26. 3.4.26. S3 头存储桶
      27. 3.4.27. S3 列表多部分上传
      28. 3.4.28. S3 存储桶策略
      29. 3.4.29. S3 获取存储桶上的请求支付配置
      30. 3.4.30. S3 在存储桶上设置请求支付配置
      31. 3.4.31. 多租户存储桶操作
      32. 3.4.32. S3 块公共访问
      33. 3.4.33. S3 GET PublicAccessBlock
      34. 3.4.34. S3 PUT PublicAccessBlock
      35. 3.4.35. S3 删除 PublicAccessBlock
    5. 3.5. S3 对象操作
      1. 3.5.1. 先决条件
      2. 3.5.2. S3 从存储桶获取对象
      3. 3.5.3. S3 获取对象信息
      4. 3.5.4. S3 put 对象锁定
      5. 3.5.5. S3 get 对象锁定
      6. 3.5.6. S3 放置对象法律机构
      7. 3.5.7. S3 get 对象法律持有
      8. 3.5.8. S3 设置对象保留
      9. 3.5.9. S3 获取对象保留
      10. 3.5.10. S3 放置对象标记
      11. 3.5.11. S3 get 对象标记
      12. 3.5.12. S3 删除对象标记
      13. 3.5.13. S3 将对象添加到存储桶
      14. 3.5.14. S3 删除对象
      15. 3.5.15. S3 删除多个对象
      16. 3.5.16. S3 获取对象的访问控制列表(ACL)
      17. 3.5.17. S3 设置对象的访问控制列表(ACL)
      18. 3.5.18. S3 复制一个对象
      19. 3.5.19. S3 使用 HTML 表单向存储桶添加对象
      20. 3.5.20. S3 确定请求选项
      21. 3.5.21. S3 启动多部分上传
      22. 3.5.22. S3 在多部分上传中添加部分
      23. 3.5.23. S3 列出多部分上传
      24. 3.5.24. S3 汇编上传的部分
      25. 3.5.25. S3 复制多部分上传
      26. 3.5.26. S3 中止多部分上传
      27. 3.5.27. S3 Hadoop 互操作性
      28. 3.5.28. 其它资源
    6. 3.6. S3 选择操作(技术预览)
      1. 3.6.1. 先决条件
      2. 3.6.2. S3 从对象中选择内容
      3. 3.6.3. S3 支持的选择功能
      4. 3.6.4. S3 别名编程结构
      5. 3.6.5. S3 CSV 解析解释
    7. 3.7. 其它资源
  5. 4. Ceph 对象网关和 Swift API
    1. 4.1. 先决条件
    2. 4.2. Swift API 限制
    3. 4.3. 创建 Swift 用户
    4. 4.4. Swift 验证用户
    5. 4.5. Swift 容器操作
      1. 4.5.1. 先决条件
      2. 4.5.2. Swift 容器操作
      3. 4.5.3. Swift 更新容器的访问控制列表(ACL)
      4. 4.5.4. Swift 列出容器
      5. 4.5.5. Swift 列出容器的对象
      6. 4.5.6. Swift 创建容器
      7. 4.5.7. Swift 删除容器
      8. 4.5.8. Swift 添加或更新容器元数据
    6. 4.6. Swift 对象操作
      1. 4.6.1. 先决条件
      2. 4.6.2. Swift 对象操作
      3. 4.6.3. Swift 获取对象
      4. 4.6.4. Swift 创建或更新对象
      5. 4.6.5. Swift 删除对象
      6. 4.6.6. Swift 复制对象
      7. 4.6.7. Swift 获取对象元数据
      8. 4.6.8. Swift 添加或更新对象元数据
    7. 4.7. Swift 临时 URL 操作
      1. 4.7.1. Swift 获取临时 URL 对象
      2. 4.7.2. Swift POST 临时 URL 密钥
    8. 4.8. Swift 多租户容器操作
    9. 4.9. 其它资源
  6. A. Ceph RESTful API 规格
    1. A.1. 先决条件
    2. A.2. Ceph 概述
    3. A.3. 认证
    4. A.4. Ceph 文件系统
    5. A.5. 存储集群配置
    6. A.6. CRUSH 规则
    7. A.7. 擦除代码配置集
    8. A.8. 功能切换
    9. A.9. Grafana
    10. A.10. 存储集群健康状况
    11. A.11. 主机
    12. A.12. iSCSI
    13. A.13. 日志
    14. A.14. Ceph Manager 模块
    15. A.15. Ceph monitor
    16. A.16. Ceph OSD
    17. A.17. Ceph 对象网关
    18. A.18. 用于操作角色的 REST API
    19. A.19. NFS Ganesha
    20. A.20. Ceph 编排器
    21. A.21. 池
    22. A.22. Prometheus
    23. A.23. RADOS 块设备
    24. A.24. 性能计数器
    25. A.25. 角色
    26. A.26. 服务
    27. A.27. 设置
    28. A.28. Ceph 任务
    29. A.29. Telemetry
    30. A.30. Ceph 用户
  7. B. S3 通用请求标头
  8. C. S3 通用响应状态代码
  9. D. S3 不支持的标头字段
  10. E. Swift 请求标头
  11. F. Swift 响应标头
  12. G. 使用安全令牌服务 API 的示例
  13. 法律通告

附录 A. Ceph RESTful API 规格

作为存储管理员,您可以通过 Ceph RESTful API 端点访问各种 Ceph 子系统。这是可用 Ceph RESTful API 方法的参考指南。

可用的 Ceph API 端点:

  • 第 A.2 节 “Ceph 概述”
  • 第 A.3 节 “认证”
  • 第 A.4 节 “Ceph 文件系统”
  • 第 A.5 节 “存储集群配置”
  • 第 A.6 节 “CRUSH 规则”
  • 第 A.7 节 “擦除代码配置集”
  • 第 A.8 节 “功能切换”
  • 第 A.9 节 “Grafana”
  • 第 A.10 节 “存储集群健康状况”
  • 第 A.11 节 “主机”
  • 第 A.12 节 “iSCSI”
  • 第 A.13 节 “日志”
  • 第 A.14 节 “Ceph Manager 模块”
  • 第 A.15 节 “Ceph monitor”
  • 第 A.16 节 “Ceph OSD”
  • 第 A.17 节 “Ceph 对象网关”
  • 第 A.18 节 “用于操作角色的 REST API”
  • 第 A.19 节 “NFS Ganesha”
  • 第 A.20 节 “Ceph 编排器”
  • 第 A.21 节 “池”
  • 第 A.22 节 “Prometheus”
  • 第 A.23 节 “RADOS 块设备”
  • 第 A.24 节 “性能计数器”
  • 第 A.25 节 “角色”
  • 第 A.26 节 “服务”
  • 第 A.27 节 “设置”
  • 第 A.28 节 “Ceph 任务”
  • 第 A.29 节 “Telemetry”
  • 第 A.30 节 “Ceph 用户”

A.1. 先决条件

  • 了解如何使用 RESTful API。
  • 一个正常运行的 Red Hat Ceph Storage 集群。
  • 启用 Ceph Manager dashboard 模板。
  1. Previous
  2. Next
Red Hat

Quick Links

  • Downloads
  • Subscriptions
  • Support Cases
  • Customer Service
  • Product Documentation

Help

  • Contact Us
  • Customer Portal FAQ
  • Log-in Assistance

Site Info

  • Trust Red Hat
  • Browser Support Policy
  • Accessibility
  • Awards and Recognition
  • Colophon

Related Sites

  • redhat.com
  • developers.redhat.com
  • connect.redhat.com
  • cloud.redhat.com

About

  • Red Hat Subscription Value
  • About Red Hat
  • Red Hat Jobs
Copyright © 2023 Red Hat, Inc.
  • Privacy Statement
  • Terms of Use
  • All Policies and Guidelines
We've updated our Privacy Policy effective July 1st, 2023.
Red Hat Summit Red Hat Summit
Twitter