Skip to main content
GitHub 文档
Version:
Free, Pro, & Team
搜索 GitHub Docs
REST API
/
Codespaces
All products
REST API
API Version:
2022-11-28 (latest)
快速入门
概述
Guides
REST API 参考
操作
活动
应用
计费
分支
检查
Codes of conduct
代码扫描
Codespaces
Codespaces
组织
组织机密
机
存储库机密
用户机密
协作者
提交
Copilot
Dependabot
依赖项关系图
部署密钥
部署
表情符号
Gists
Git 数据库
Gitignore
交互
问题
许可证
Markdown
元数据
指标
迁移
组织
包
页
Projects (classic)
拉取
速率限制
反应
发行版本
存储库
搜索
机密扫描
安全通知
Teams
用户
仓库 web 挂钩
REST API 现已经过版本控制。
有关详细信息,请参阅“
关于 API 版本控制
”。
REST API
/
Codespaces
Codespaces
使用 REST API 管理 GitHub Codespaces。
Codespaces
List codespaces in a repository for the authenticated user
Create a codespace in a repository
List devcontainer configurations in a repository for the authenticated user
Get default attributes for a codespace
Create a codespace from a pull request
List codespaces for the authenticated user
Create a codespace for the authenticated user
Get a codespace for the authenticated user
Update a codespace for the authenticated user
Delete a codespace for the authenticated user
Export a codespace for the authenticated user
Get details about a codespace export
Create a repository from an unpublished codespace
Start a codespace for the authenticated user
Stop a codespace for the authenticated user
Machines
List available machine types for a repository
List machine types for a codespace
Organization secrets
List organization secrets
Get an organization public key
Get an organization secret
Create or update an organization secret
Delete an organization secret
List selected repositories for an organization secret
Set selected repositories for an organization secret
Add selected repository to an organization secret
Remove selected repository from an organization secret
Organizations
List codespaces for the organization
Manage access control for organization codespaces
Add users to Codespaces billing for an organization
Remove users from Codespaces billing for an organization
List codespaces for a user in organization
Delete a codespace from the organization
Stop a codespace for an organization user
Repository secrets
List repository secrets
Get a repository public key
Get a repository secret
Create or update a repository secret
Delete a repository secret
Secrets
List secrets for the authenticated user
Get public key for the authenticated user
Get a secret for the authenticated user
Create or update a secret for the authenticated user
Delete a secret for the authenticated user
List selected repositories for a user secret
Set selected repositories for a user secret
Add a selected repository to a user secret
Remove a selected repository from a user secret