openstack
  • Introduction
  • 安装教程
    • config
      • mariadb
        • openstack.cnf
      • rabbitmq
      • memcached
        • memcached
      • httpd
        • httpd.conf
      • keystone
        • keystone.conf
        • wsgi-keystone.conf
      • glance
        • glance-api.conf
        • glance-registry.conf
      • nova
        • 00-nova-placement-api.conf
        • nova.conf.controller
        • nova.conf.compute
      • neutron
        • neutron.conf.controller
        • neutron.conf.compute
        • ml2_conf.ini
        • linuxbridge_agent.ini.controller
        • linuxbridge_agent.ini.compute
        • l3_agent.ini
        • dhcp_agent.ini
        • metadata_agent.ini
      • cinder
        • cinder.conf.controller
        • cinder.conf.volume
      • horizon
        • local_settings
        • openstack-dashboard.conf
    • shell
      • common.sh
      • controller.sh
      • nova-compute.sh
      • cinder-volume.sh
    • admin-openrc
  • Keystone
  • API
    • Nova
      • 创建实例
  • spice证书管理
    • 硬重启
      • 代码追踪
    • 操作手册
Powered by GitBook
On this page
  • 创建实例
  • Body参数
  • 返回
  • 更改证书
  • body参数
  • 返回
  • 注意

Was this helpful?

spice证书管理

API设计

创建实例

POST /servers

Body参数

{
    "server" : {
        ...
        "certs" : {
            "ca_cert" : "xxx",
            "server_key" : "xxx",
            "server_cert" : "xx",
            "client_cert" : "xxx"
        }
    }
}

返回

200 : OK
400 : 参数不对
401 : 无token
403 :权限不够,forbidden
409 : server已存在,名字冲突

更改证书

PUT /servers/{server_id}/certs

body参数

{   
    "certs" " {
        "ca_cert" : "xxx",     
        "server_key" : "xxxx",
        "server_cert" : "xxxx",
        "client_cert" : "xxx"
    }
}

返回

200 : OK
400 : 参数不对
401 : 未授权
403 :forbidden
404 :实例不存在
500 :内部错误

注意

更改证书这个API,不会重启虚机。调用者调用这个API后,还需要调用硬重启接口,才能证书才能生效。

Previous创建实例Next硬重启

Last updated 5 years ago

Was this helpful?