没有合适的资源?快使用搜索试试~ 我知道了~
首页OpenStack API 完全参考指南
OpenStack API 完全参考指南
需积分: 9 15 下载量 53 浏览量
更新于2024-07-21
收藏 7.07MB PDF 举报
"OpenStack API Complete Reference 是一个官方文档,详细介绍了OpenStack的API,主要针对Block Storage API v2,涵盖了API版本管理、扩展、卷管理、卷类型等多个方面,适用于OpenStack API的开发和云计算相关工作。"
OpenStack API是开放源代码云计算平台OpenStack的核心组成部分之一,它提供了一套接口,允许用户通过编程方式与OpenStack的不同服务进行交互,如计算(Nova)、存储(Cinder)、网络(Neutron)等。在OpenStack的API Complete Reference中,开发者可以找到详尽的信息来理解和使用这些API。
在文档中,"Block Storage API v2 (CURRENT)"是关注的重点,这代表了当前稳定版本的块存储API。块存储服务Cinder主要负责提供持久化的块设备,可以被用于创建卷(volumes),这些卷可以附加到运行中的虚拟机实例上。
1. API版本管理:
- 列出API版本(List API versions):开发者可以获取所有可用的API版本信息。
- 显示API版本详情(Show API version details):获取特定API版本的详细信息,包括其功能和兼容性。
2. API扩展:
- 列出API扩展(List API extensions):OpenStack允许通过API扩展来添加新功能,这部分列出所有已知的API扩展。
3. 卷管理:
- 创建卷(Create volume):创建一个新的存储卷。
- 列出卷(List volumes):获取项目中的所有卷的基本信息。
- 列出详细卷(List volumes (detailed)):获取更详细的卷信息,包括状态、大小、创建时间等。
- 显示卷信息(Show volume information):查看指定卷的详细属性。
- 更新卷(Update volume):修改卷的某些属性,如名称或描述。
- 删除卷(Delete volume):移除不再需要的卷。
- 扩展卷(Extend volume):增加卷的容量。
4. 卷类型:
- 卷类型(Volume types):定义卷的特性,例如底层存储技术、性能参数等,可以创建和管理不同的卷类型。
除了上述内容,文档可能还包含了其他如快照(snapshots)、备份(backups)等高级功能的API用法,以及错误处理、认证和授权机制等重要信息。对于Openstack API的开发人员,这个参考文档是理解和实现OpenStack服务集成的关键工具。在实际开发中,开发者可以根据这些API接口设计应用程序,实现对OpenStack云环境的自动化管理和操作。
![](https://csdnimg.cn/release/download_crawler_static/8875347/bg10.jpg)
API Complete Reference June 19, 2015
xvi
7.3.3. Show node group template details ..................................................... 916
7.3.4. Delete node group template .............................................................. 918
7.3.5. Update node group template ............................................................ 919
7.4. Cluster templates .......................................................................................... 920
7.4.1. List available cluster templates ........................................................... 921
7.4.2. Create cluster templates ..................................................................... 925
7.4.3. Show cluster template ....................................................................... 928
7.4.4. Update cluster templates ................................................................... 932
7.4.5. Delete cluster template ...................................................................... 936
7.5. Clusters ......................................................................................................... 936
7.5.1. List available clusters .......................................................................... 937
7.5.2. Create cluster ..................................................................................... 941
7.5.3. Show details of a cluster .................................................................... 944
7.5.4. Delete a cluster .................................................................................. 948
7.5.5. Scale cluster ....................................................................................... 949
7.6. Event log ...................................................................................................... 953
7.6.1. Show progress ................................................................................... 954
7.7. Data sources ................................................................................................. 955
7.7.1. List data sources ................................................................................ 956
7.7.2. Create data source ............................................................................. 957
7.7.3. Show data source details ................................................................... 959
7.7.4. Delete data source ............................................................................. 960
7.8. Job binary internals ...................................................................................... 960
7.8.1. List job binary internals ...................................................................... 961
7.8.2. Create job binary internal .................................................................. 962
7.8.3. Show job binary internal details ......................................................... 963
7.8.4. Delete job binary internal .................................................................. 964
7.8.5. Get job binary internal data ............................................................... 965
7.9. Job binaries .................................................................................................. 965
7.9.1. List job binaries .................................................................................. 967
7.9.2. Create job binary ............................................................................... 968
7.9.3. Show job binary details ...................................................................... 969
7.9.4. Delete job binary ............................................................................... 970
7.9.5. Get job binary data ........................................................................... 971
7.10. Jobs ............................................................................................................ 971
7.10.1. List jobs ........................................................................................... 973
7.10.2. Create job ........................................................................................ 975
7.10.3. Show job details .............................................................................. 977
7.10.4. Remove job ...................................................................................... 978
7.10.5. Run job ............................................................................................ 979
7.11. Job executions ............................................................................................ 980
7.11.1. List job executions ............................................................................ 981
7.11.2. Show job execution details ............................................................... 984
7.11.3. Delete job execution ........................................................................ 987
7.11.4. Refresh job execution status ............................................................. 988
7.11.5. Cancel job execution ........................................................................ 991
7.12. Job types .................................................................................................... 993
7.12.1. List job types ................................................................................... 994
8. Identity API v3 (CURRENT) ...................................................................................... 999
8.1. API versions ................................................................................................ 1001
8.1.1. List versions ..................................................................................... 1002
![](https://csdnimg.cn/release/download_crawler_static/8875347/bg11.jpg)
API Complete Reference June 19, 2015
xvii
8.1.2. Show API version details .................................................................. 1004
8.2. Tokens ........................................................................................................ 1004
8.2.1. Authenticate .................................................................................... 1005
8.2.2. Validate token ................................................................................. 1013
8.2.3. Check token ..................................................................................... 1015
8.2.4. Revoke token ................................................................................... 1016
8.3. Service catalog ............................................................................................ 1016
8.3.1. Add service ...................................................................................... 1017
8.3.2. List services ...................................................................................... 1018
8.3.3. Show service details ......................................................................... 1020
8.3.4. Update service ................................................................................. 1021
8.3.5. Delete service ................................................................................... 1022
8.4. Endpoints ................................................................................................... 1022
8.4.1. Add endpoint .................................................................................. 1023
8.4.2. List endpoints .................................................................................. 1024
8.4.3. Update endpoint ............................................................................. 1026
8.4.4. Delete endpoint ............................................................................... 1028
8.5. Domains ..................................................................................................... 1028
8.5.1. Add domain ..................................................................................... 1030
8.5.2. List domains ..................................................................................... 1031
8.5.3. Show domain details ........................................................................ 1033
8.5.4. Update domain ................................................................................ 1034
8.5.5. Delete domain ................................................................................. 1035
8.5.6. List roles for domain user ................................................................. 1036
8.5.7. Grant role to domain user ................................................................ 1037
8.5.8. Check role for domain user .............................................................. 1038
8.5.9. Revoke role from domain user ......................................................... 1039
8.5.10. List roles for domain group ............................................................ 1040
8.5.11. Grant role to domain group ........................................................... 1041
8.5.12. Check role for domain group .......................................................... 1042
8.5.13. Revoke role from domain group ..................................................... 1043
8.6. Projects ....................................................................................................... 1043
8.6.1. Add project ...................................................................................... 1045
8.6.2. List projects ...................................................................................... 1046
8.6.3. Show project details ......................................................................... 1048
8.6.4. Update project ................................................................................. 1049
8.6.5. Delete project .................................................................................. 1051
8.6.6. List roles for project user .................................................................. 1052
8.6.7. Grant role to project user ................................................................. 1054
8.6.8. Check role for project user ............................................................... 1055
8.6.9. Revoke role from project user .......................................................... 1056
8.6.10. List roles for project group ............................................................. 1057
8.6.11. Grant role to project group ............................................................ 1059
8.6.12. Check role for project group .......................................................... 1060
8.6.13. Revoke role from project group ...................................................... 1061
8.7. Users .......................................................................................................... 1061
8.7.1. Add user .......................................................................................... 1062
8.7.2. List users .......................................................................................... 1063
8.7.3. Show user details ............................................................................. 1065
8.7.4. Update user ..................................................................................... 1066
8.7.5. Delete user ...................................................................................... 1068
![](https://csdnimg.cn/release/download_crawler_static/8875347/bg12.jpg)
API Complete Reference June 19, 2015
xviii
8.7.6. List groups for user .......................................................................... 1069
8.7.7. List projects for user ......................................................................... 1071
8.8. Groups ........................................................................................................ 1072
8.8.1. Add group ....................................................................................... 1073
8.8.2. List groups ....................................................................................... 1074
8.8.3. Show group details .......................................................................... 1076
8.8.4. Update group .................................................................................. 1077
8.8.5. Delete group .................................................................................... 1078
8.8.6. List users in group ............................................................................ 1079
8.8.7. Add user to group ........................................................................... 1081
8.8.8. Remove user from group ................................................................. 1082
8.8.9. Check user membership in group ..................................................... 1083
8.9. Credentials .................................................................................................. 1083
8.9.1. Add credential ................................................................................. 1084
8.9.2. List credentials ................................................................................. 1085
8.9.3. Show credential details .................................................................... 1087
8.9.4. Update credential ............................................................................ 1088
8.9.5. Delete credential .............................................................................. 1089
8.10. Roles ......................................................................................................... 1089
8.10.1. Add role ........................................................................................ 1090
8.10.2. List roles ......................................................................................... 1091
8.10.3. List role assignments ...................................................................... 1093
8.11. Policies ...................................................................................................... 1095
8.11.1. Add policy ...................................................................................... 1097
8.11.2. List policies ..................................................................................... 1098
8.11.3. Show policy details ......................................................................... 1100
8.11.4. Update policy ................................................................................. 1101
8.11.5. Delete policy .................................................................................. 1102
9. Identity API v3 extensions (CURRENT) .................................................................... 1103
9.1. OS-INHERIT extension (OS-INHERIT) ............................................................ 1105
9.1.1. List role assignments ........................................................................ 1107
9.1.2. List roles for user ............................................................................. 1110
9.1.3. Assign role to user ........................................................................... 1111
9.1.4. Check role for user ........................................................................... 1112
9.1.5. Revoke role from user ...................................................................... 1113
9.1.6. List roles for group .......................................................................... 1114
9.1.7. Assign role to group ........................................................................ 1115
9.1.8. Check role for group ........................................................................ 1116
9.1.9. Revoke role from group ................................................................... 1117
9.1.10. List project roles for user on domain ............................................... 1118
9.1.11. Assign role to user owned by domain projects ................................ 1119
9.1.12. Check project role for user on domain ............................................ 1120
9.1.13. Revoke project role from user on domain ....................................... 1121
9.1.14. List project roles for group on domain ............................................ 1122
9.1.15. Assign role to group on domain projects ........................................ 1123
9.1.16. Check project role for group on domain ......................................... 1124
9.1.17. Revoke project role from group on domain .................................... 1125
9.2. Key Distribution Server (KDS) extension (OS-KDS) ........................................ 1125
9.2.1. Create key ....................................................................................... 1129
9.2.2. Delete key ....................................................................................... 1130
9.2.3. Generate ticket ................................................................................ 1131
![](https://csdnimg.cn/release/download_crawler_static/8875347/bg13.jpg)
API Complete Reference June 19, 2015
xix
9.2.4. Get group key .................................................................................. 1132
9.2.5. Create group ................................................................................... 1133
9.2.6. Delete group .................................................................................... 1134
9.3. OAuth extension (OS-OAUTH1) ................................................................... 1134
9.3.1. Create consumer .............................................................................. 1136
9.3.2. List consumers .................................................................................. 1137
9.3.3. Show consumer ................................................................................ 1138
9.3.4. Update consumer ............................................................................. 1139
9.3.5. Delete consumer .............................................................................. 1140
9.3.6. Create access token ......................................................................... 1141
9.3.7. List authorized access tokens ............................................................ 1142
9.3.8. Get authorized access token ............................................................ 1143
9.3.9. Revoke access token ........................................................................ 1144
9.3.10. List roles for an access token .......................................................... 1145
9.3.11. Get role information for an access token ........................................ 1146
9.3.12. Get an Identity Service token ......................................................... 1147
9.4. Trust extension (OS-TRUST) ......................................................................... 1147
9.4.1. Create trust ...................................................................................... 1149
10. Identity API v2.0 (SUPPORTED) ............................................................................ 1151
10.1. API versions .............................................................................................. 1151
10.1.1. List versions .................................................................................... 1152
10.1.2. Show version details ....................................................................... 1154
10.2. Tokens ...................................................................................................... 1154
10.2.1. Authenticate .................................................................................. 1155
10.2.2. List tenants .................................................................................... 1164
11. Identity Admin API v2.0 (SUPPORTED) ................................................................. 1165
11.1. Versions .................................................................................................... 1165
11.1.1. Get version details .......................................................................... 1166
11.2. Tokens ...................................................................................................... 1166
11.2.1. Authenticate for admin API ............................................................ 1168
11.2.2. Validate token ............................................................................... 1173
11.2.3. Validate token (admin) .................................................................. 1175
11.3. Users ......................................................................................................... 1175
11.3.1. Add user ........................................................................................ 1176
11.3.2. Get user information by name ........................................................ 1177
11.3.3. Update user ................................................................................... 1178
11.3.4. Delete user ..................................................................................... 1179
11.3.5. Get user information by ID ............................................................. 1180
11.3.6. List user global roles ....................................................................... 1181
11.4. Tenants ..................................................................................................... 1181
11.4.1. List tenants .................................................................................... 1183
11.4.2. Get tenant information by name .................................................... 1185
11.4.3. Get tenant information by ID ......................................................... 1186
11.4.4. List roles for user ........................................................................... 1187
12. Identity API v2.0 extensions (SUPPORTED) ........................................................... 1188
12.1. OS-KSADM admin extension ...................................................................... 1189
12.1.1. List users ........................................................................................ 1191
12.1.2. Add user ........................................................................................ 1192
12.1.3. Update user ................................................................................... 1193
12.1.4. Delete user ..................................................................................... 1194
12.1.5. List global roles for user ................................................................. 1195
![](https://csdnimg.cn/release/download_crawler_static/8875347/bg14.jpg)
API Complete Reference June 19, 2015
xx
12.1.6. Add global role to user .................................................................. 1197
12.1.7. Delete global role from user ........................................................... 1198
12.1.8. Add tenant .................................................................................... 1199
12.1.9. Update tenant ............................................................................... 1200
12.1.10. Delete tenant ............................................................................... 1201
12.1.11. List users for a tenant ................................................................... 1202
12.1.12. Add roles to user on tenant ......................................................... 1204
12.1.13. Delete roles from user on tenant .................................................. 1205
12.1.14. Get role information by name ...................................................... 1206
12.1.15. Add role ....................................................................................... 1207
12.1.16. List roles ....................................................................................... 1208
12.1.17. Get role information .................................................................... 1209
12.1.18. Delete role ................................................................................... 1210
12.1.19. List services .................................................................................. 1211
12.1.20. Add service .................................................................................. 1213
12.1.21. Get service by name ..................................................................... 1214
12.1.22. Get service ................................................................................... 1215
12.1.23. Delete service ............................................................................... 1216
12.2. OS-KSCATALOG admin extension .............................................................. 1216
12.2.1. List endpoints ................................................................................. 1217
12.2.2. Add endpoint ................................................................................. 1219
12.2.3. Get endpoint ................................................................................. 1220
12.2.4. Delete endpoint ............................................................................. 1221
12.2.5. List endpoint templates .................................................................. 1222
12.2.6. Add endpoint template .................................................................. 1224
12.2.7. Get endpoint template ................................................................... 1226
12.2.8. Update endpoint template ............................................................. 1227
12.2.9. Delete endpoint template. ............................................................. 1229
12.3. OS-KSEC2 admin extension ........................................................................ 1229
12.3.1. List credentials ............................................................................... 1230
12.3.2. Add user credentials ....................................................................... 1232
12.3.3. Get user credentials ........................................................................ 1233
12.3.4. Update user credentials .................................................................. 1234
12.3.5. Delete user credentials ................................................................... 1235
12.3.6. List credentials by type ................................................................... 1236
12.4. OS-KSS3 admin extension .......................................................................... 1237
12.4.1. List credentials ............................................................................... 1238
12.4.2. Add user credential ........................................................................ 1240
12.4.3. Get user credentials ........................................................................ 1241
12.4.4. Update user credentials .................................................................. 1242
12.4.5. Delete user credentials ................................................................... 1243
12.4.6. List credentials by type ................................................................... 1244
12.5. OS-KSVALIDATE admin extension .............................................................. 1245
12.5.1. Validate token ............................................................................... 1246
12.5.2. Check token ................................................................................... 1248
12.5.3. List endpoints for token ................................................................. 1249
13. Image service API v2 (CURRENT) .......................................................................... 1251
13.1. API versions .............................................................................................. 1253
13.1.1. List API versions ............................................................................. 1254
13.2. Images ...................................................................................................... 1255
13.2.1. Create image ................................................................................. 1256
剩余1764页未读,继续阅读
2019-03-13 上传
2023-03-16 上传
2023-05-30 上传
2023-11-21 上传
2023-04-03 上传
2023-08-03 上传
2023-07-27 上传
![](https://profile-avatar.csdnimg.cn/default.jpg!1)
jj0476
- 粉丝: 0
- 资源: 4
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![](https://csdnimg.cn/release/wenkucmsfe/public/img/voice.245cc511.png)
最新资源
- 多模态联合稀疏表示在视频目标跟踪中的应用
- Kubernetes资源管控与Gardener开源软件实践解析
- MPI集群监控与负载平衡策略
- 自动化PHP安全漏洞检测:静态代码分析与数据流方法
- 青苔数据CEO程永:技术生态与阿里云开放创新
- 制造业转型: HyperX引领企业上云策略
- 赵维五分享:航空工业电子采购上云实战与运维策略
- 单片机控制的LED点阵显示屏设计及其实现
- 驻云科技李俊涛:AI驱动的云上服务新趋势与挑战
- 6LoWPAN物联网边界路由器:设计与实现
- 猩便利工程师仲小玉:Terraform云资源管理最佳实践与团队协作
- 类差分度改进的互信息特征选择提升文本分类性能
- VERITAS与阿里云合作的混合云转型与数据保护方案
- 云制造中的生产线仿真模型设计与虚拟化研究
- 汪洋在PostgresChina2018分享:高可用 PostgreSQL 工具与架构设计
- 2018 PostgresChina大会:阿里云时空引擎Ganos在PostgreSQL中的创新应用与多模型存储
安全验证
文档复制为VIP权益,开通VIP直接复制
![](https://csdnimg.cn/release/wenkucmsfe/public/img/green-success.6a4acb44.png)