openstack现在又统一的以openstack开头的命令行,也有各个组件的命令行
常见的:
查看cinder service-list
nova service-list
其他的使用方式 首先source keystone_admin 获取集群信息
然后执行 openstack + 命令方式
1.创建卷部分
volume create Create new volume
volume delete Delete volume(s)
volume list List volumes
volume qos associate Associate a QoS specification to a volume type
volume qos create Create new QoS specification
volume qos delete Delete QoS specification
volume qos disassociate Disassociate a QoS specification from a volume type
volume qos list List QoS specifications
volume qos set Set QoS specification properties
volume qos show Display QoS specification details
volume qos unset Unset QoS specification properties
volume set Set volume properties
volume show Display volume details
volume type create Create new volume type
volume type delete Delete volume type
volume type list List volume types
volume type set Set volume type properties
volume type show Display volume type details
volume type unset Unset volume type properties
volume unset Unset volume properties
2. 创建快照部分
snapshot create Create new snapshot
snapshot delete Delete volume snapshot(s)
snapshot list List snapshots
snapshot set Set snapshot properties
snapshot show Display snapshot details
snapshot unset Unset snapshot properties
3. 虚拟机管理
server add security group Add security group to server
server add volume Add volume to server
server create Create a new server
server delete Delete server(s)
server dump create Create a dump file in server(s)
server image create Create a new disk image from a running server
server list List servers
server lock Lock server(s). A non-admin user will not be able to execute actions
server migrate Migrate server to different host
server pause Pause server(s)
server reboot Perform a hard or soft server reboot
server rebuild Rebuild server
server remove security group Remove security group from server
server remove volume Remove volume from server
server rescue Put server in rescue mode
server resize Scale server to a new flavor
server resume Resume server(s)
server set Set server properties
server shelve Shelve server(s)
server show Show server details
server ssh Ssh to server
server start Start server(s).
server stop Stop server(s).
server suspend Suspend server(s)
server unlock Unlock server(s)
server unpause Unpause server(s)
server unrescue Restore server from rescue mode
server unset Unset server properties
server unshelve Unshelve server(s)
service create Create new service
service delete Delete service
service list List services
service show Display service details
4. 主机查看
host list List host command
host show Show host command
hypervisor list List hypervisors
hypervisor show Display hypervisor details
hypervisor stats show Display hypervisor stats details
5. 镜像glance管理
image add project Associate project with image
image create Create/upload an image
image delete Delete image(s)
image list List available images
image remove project Disassociate project with image
image save Save an image locally
image set Set image properties
image show Display image details
6.用户管理
usage show Show resource usage for a single project
user create Create new user
user delete Delete user(s)
user list List users
user role list List user-role assignments
user set Set user properties
user show Display user details
7.剩下的不常用,暂不做分类
aggregate add host Add host to aggregate
aggregate create Create a new aggregate
aggregate delete Delete an existing aggregate
aggregate list List all aggregates
aggregate remove host Remove host from aggregate
aggregate set Set aggregate properties
aggregate show Display aggregate details
availability zone list List availability zones and their status
backup create Create new backup
backup delete Delete backup(s)
backup list List backups
backup restore Restore backup
backup show Display backup details
catalog list List services in the service catalog
catalog show Display service catalog details
command list List recognized commands by group
complete print bash completion command
compute agent create Create compute agent command
compute agent delete Delete compute agent command
compute agent list List compute agent command
compute agent set Set compute agent command
compute service delete Delete service command
compute service list List service command
compute service set Set service command
configuration show Display configuration details
console log show Show server's console output
console url show Show server's remote console URL
container create Create new container
container delete Delete container
container list List containers
container save Save container contents locally
container set Set container properties
container show Display container details
container unset Unset container properties
dataprocessing cluster create Creates cluster
dataprocessing cluster delete Deletes cluster
dataprocessing cluster list Lists clusters
dataprocessing cluster scale Scales cluster
dataprocessing cluster show Display cluster details
dataprocessing cluster template create Creates cluster template
dataprocessing cluster template delete Deletes cluster template
dataprocessing cluster template list Lists cluster templates
dataprocessing cluster template show Display cluster template details
dataprocessing cluster template update Updates cluster template
dataprocessing cluster update Updates cluster
dataprocessing cluster verification Updates cluster verifications
dataprocessing data source create Creates data source
dataprocessing data source delete Delete data source
dataprocessing data source list Lists data sources
dataprocessing data source show Display data source details
dataprocessing data source update Update data source
dataprocessing image list Lists registered images
dataprocessing image register Register an image
dataprocessing image show Display image details
dataprocessing image tags add Add image tags
dataprocessing image tags remove Remove image tags
dataprocessing image tags set Set image tags (Replace current image tags with provided ones)
dataprocessing image unregister Unregister image(s)
dataprocessing job binary create Creates job binary
dataprocessing job binary delete Deletes job binary
dataprocessing job binary download Downloads job binary
dataprocessing job binary list Lists job binaries
dataprocessing job binary show Display job binary details
dataprocessing job binary update Updates job binary
dataprocessing job delete Deletes job
dataprocessing job execute Executes job
dataprocessing job list Lists jobs
dataprocessing job show Display job details
dataprocessing job template create Creates job template
dataprocessing job template delete Deletes job template
dataprocessing job template list Lists job templates
dataprocessing job template show Display job template details
dataprocessing job template update Updates job template
dataprocessing job type configs get Get job type configs
dataprocessing job type list Lists job types supported by plugins
dataprocessing job update Updates job
dataprocessing node group template create Creates node group template
dataprocessing node group template delete Deletes node group template
dataprocessing node group template list Lists node group templates
dataprocessing node group template show Display node group template details
dataprocessing node group template update Updates node group template
dataprocessing plugin configs get Get plugin configs
dataprocessing plugin list Lists plugins
dataprocessing plugin show Display plugin details
ec2 credentials create Create EC2 credentials
ec2 credentials delete Delete EC2 credentials
ec2 credentials list List EC2 credentials
ec2 credentials show Display EC2 credentials details
endpoint create Create new endpoint
endpoint delete Delete endpoint
endpoint list List endpoints
endpoint show Display endpoint details
extension list List API extensions
flavor create Create new flavor
flavor delete Delete flavor
flavor list List flavors
flavor set Set flavor properties
flavor show Display flavor details
flavor unset Unset flavor properties
help print detailed help for another command
ip fixed add Add fixed IP address to server
ip fixed remove Remove fixed IP address from server
ip floating add Add floating IP address to server
ip floating create Create new floating IP address
ip floating delete Delete floating IP
ip floating list List floating IP(s)
ip floating pool list List pools of floating IP addresses
ip floating remove Remove floating IP address from server
ip floating show Show floating IP details
keypair create Create new public key
keypair delete Delete public key
keypair list List public key fingerprints
keypair show Display public key details
limits show Show compute and block storage limits
module list List module versions
network create Create new network
network delete Delete network(s)
network list List networks
network set Set network properties
network show Show network details
object create Upload object to container
object delete Delete object from container
object list List objects
object save Save object locally
object set Set object properties
object show Display object details
object store account set Set account properties
object store account show Display account details
object store account unset Unset account properties
object unset Unset object properties
orchestration build info Retrieve build information.
orchestration resource type list List resource types.
orchestration resource type show Show details and optionally generate a template for a resource type.
orchestration service list List the Heat engines.
orchestration template function list List the available functions.
orchestration template version list List the available template versions.
port delete Delete port(s)
port show Display port details
project create Create new project
project delete Delete project(s)
project list List projects
project set Set project properties
project show Display project details
project unset Unset project properties
ptr record list List floatingip ptr records
ptr record set Set floatingip ptr record
ptr record show Show floatingip ptr record details
ptr record unset Unset floatingip ptr record
quota set Set quotas for project or class
quota show Show quotas for project or class
recordset create Create new recordset
recordset delete Delete recordset
recordset list List recordsets
recordset set Set recordset properties
recordset show Show recordset details
role add Add role to project:user
role create Create new role
role delete Delete role(s)
role list List roles
role remove Remove role from project : user
role show Display role details
router create Create a new router
router delete Delete router(s)
router list List routers
router set Set router properties
router show Display router details
security group create Create a new security group
security group delete Delete a security group
security group list List security groups
security group rule create Create a new security group rule
security group rule delete Delete a security group rule
security group rule list List security group rules
security group rule show Display security group rule details
security group set Set security group properties
security group show Display security group details
software config create Create software config
software config delete Delete software configs
software config list List software configs
software config show Show software config details
software deployment create Create a software deployment.
software deployment delete Delete software deployment(s) and correlative config(s).
software deployment list List software deployments.
software deployment metadata show Get deployment configuration metadata for the specified server.
software deployment output show Show a specific deployment output.
software deployment show Show SoftwareDeployment Details.
stack abandon Abandon stack and output results.
stack adopt Adopt a stack.
stack cancel Cancel current task for a stack.
stack check Check a stack.
stack create Create a stack.
stack delete Delete stack(s).
stack event list List events.
stack event show Show event details.
stack hook clear Clear resource hooks on a given stack.
stack hook poll List resources with pending hook for a stack.
stack list List stacks.
stack output list List stack outputs.
stack output show Show stack output.
stack resource list List stack resources.
stack resource mark unhealthy Set resource's health.
stack resource metadata Show resource metadata
stack resource show Display stack resource.
stack resource signal Signal a resource with optional data.
stack resume Resume a stack.
stack show Show stack details.
stack snapshot create Create stack snapshot.
stack snapshot delete Delete stack snapshot.
stack snapshot list List stack snapshots.
stack snapshot restore Restore stack snapshot
stack snapshot show Show stack snapshot.
stack suspend Suspend a stack.
stack template show Display stack template.
stack update Update a stack.
subnet delete Delete subnet
subnet list List subnets
subnet pool delete Delete subnet pool
subnet pool list List subnet pools
subnet pool show Display subnet pool details
subnet show Show subnet details
tld create Create new tld
tld delete Delete tld
tld list List tlds
tld set Set tld properties
tld show Show tld details
token issue Issue new token
token revoke Revoke existing token
usage list List resource usage per project
zone abandon Abandon a zone
zone axfr AXFR a zone
zone blacklist create Create new blacklist
zone blacklist delete Delete blacklist
zone blacklist list List blacklists
zone blacklist set Set blacklist properties
zone blacklist show Show blacklist details
zone create Create new zone
zone delete Delete zone
zone list List zones
zone set Set zone properties
zone show Show zone details
zone transfer accept request Accept a Zone Transfer Request
zone transfer accept show Show Zone Transfer Accept
zone transfer request create Create new zone transfer request
zone transfer request delete Delete a Zone Transfer Request
zone transfer request list List Zone Transfer Requests
zone transfer request set Set a Zone Transfer Request
zone transfer request show Show Zone Transfer Request Details