文章分类 -  OpenStack调用API

摘要:requests 请求方法 requests.post # 用于提交创建资源的请求 requests.get # 用于查询一个资源的请求 requests.put # 上传文件的请求 OpenStack调用flavor import requests import json class Flavor 阅读全文
posted @ 2021-12-21 08:05 衡衡酱
摘要:调用heat(flavor类型) import requests import json headers={} headers['Content-Type']='application/json' headers['X-Auth-Token']='' body={ 'files':{}, 'stac 阅读全文
posted @ 2021-12-15 15:57 衡衡酱 阅读(2) 评论(0) 推荐(0)
摘要:挂载cinder import requests import json headers={} headers['Content-Type']='application/json' headers['X-Auth-Token']='' body={ 'os-attach':{ 'instance_u 阅读全文
posted @ 2021-12-15 15:56 衡衡酱 阅读(2) 评论(0) 推荐(0)
摘要:调用Cinder import requests import json headers={} headers['Content-Type']='application/json' headers['X-Auth-Token']='gAAAAABhuDRO_EwoShWBHCT9JPKOHc0YX_ 阅读全文
posted @ 2021-12-15 15:55 衡衡酱 阅读(2) 评论(0) 推荐(0)
摘要:调用server import json import requests headers={} headers['Content-Type']='application/json' headers['X-Auth-Token']='gAAAAABhuaUvEMtHVqzoCLuCbpWccyBJHR 阅读全文
posted @ 2021-12-15 15:54 衡衡酱 阅读(3) 评论(0) 推荐(0)
摘要:调用router import requests import json headers={} headers['Content-Type']='application/json' headers['X-Auth-Token']='' a={ 'router':{ 'name':'pvm_route 阅读全文
posted @ 2021-12-14 20:12 衡衡酱 阅读(2) 评论(0) 推荐(0)
摘要:调用Neutron import requests import json headers={} headers['Content-Type']='application/json' headers['X-Auth-Token']='' a={ 'network':{ 'name':'pvm_int 阅读全文
posted @ 2021-12-14 15:44 衡衡酱 阅读(2) 评论(0) 推荐(0)
摘要:调用security group import requests import json headers={} headers['Content-Type']='application/json' headers['X-Auth-Token']='' a={ 'security_group':{ ' 阅读全文
posted @ 2021-12-14 15:10 衡衡酱 阅读(3) 评论(0) 推荐(0)
摘要:调用flavor import requests import json headers={} headers['Content-Type']='application/json' headers['X-Auth-Token']='' a={ 'flavor':{ 'id':'1234', 'nam 阅读全文
posted @ 2021-12-14 15:09 衡衡酱 阅读(2) 评论(0) 推荐(0)
摘要:调用image import requests import json headers={} headers['Content-Type']='application/json' headers['Content-Type']='application/octet-stream' headers[' 阅读全文
posted @ 2021-12-14 15:03 衡衡酱
摘要:调用user用户 import requests import json headers={} headers['Content-Type']='application/json' headers['X-Auth-Token']='' a={ 'user':{ 'description':'this 阅读全文
posted @ 2021-12-13 16:20 衡衡酱 阅读(2) 评论(0) 推荐(0)
摘要:软件包:Python-api.zip 安装unzip [root@controller ~]# yum install -y unzip 配置yum源 [root@controller ~]# vim /etc/yum.repos.d/http.repo [centos] name=centos b 阅读全文
posted @ 2021-12-13 16:07 衡衡酱 阅读(284) 评论(0) 推荐(0)

Live2D