当前位置: 首页 > 工具软件 > magnum > 使用案例 >

magnum 命令使用说明

颛孙哲
2023-12-01

magnum 命令使用说明

1.用法

usage: magnum [--version] [--debug] [--os-cache]
  [--os-region-name <region-name>]
  [--os-tenant-id <auth-tenant-id>]
  [--os-user-domain-id <auth-user-domain-id>]
  [--os-user-domain-name <auth-user-domain-name>]
  [--os-project-domain-id <auth-project-domain-id>]
  [--os-project-domain-name <auth-project-domain-name>]
  [--service-type <service-type>]
  [--endpoint-type <endpoint-type>]
  [--magnum-api-version <magnum-api-ver>]
  [--os-cacert <ca-certificate>] [--bypass-url <bypass-url>]
  [--insecure] [--os-auth-system <auth-system>]
  [--os-username <username>] [--os-password <password>]
  [--os-tenant-name <tenant-name>] [--os-token <token>]
  [--os-auth-url <auth-url>]
<subcommand> ...

Command-line interface to the OpenStack Magnum API.

2.子命令

Positional arguments:
<subcommand>
2.1.baymodel-create Create a baymodel.
2.2.baymodel-delete Delete specified baymodel.
2.3.baymodel-list Print a list of bay models.
2.4.baymodel-show Show details about the given baymodel.
2.5.baymodel-update Updates one or more baymodel attributes.
bay-create Create a bay.
bay-delete Delete specified bay.
bay-list Print a list of available bays.
bay-show Show details about the given bay.
bay-update Update information about the given bay.
ca-show Show details about the CA certificate for a bay.
ca-sign Generate the CA certificate for a bay.
container-create Create a container.
container-delete Delete specified containers.
container-exec Execute command in a container.
container-list Print a list of available containers.
container-logs Get logs of a container.
container-pause Pause specified containers.
container-reboot Reboot specified containers.
container-show Show details of a container.
container-start Start specified containers.
container-stop Stop specified containers.
container-unpause Unpause specified containers.
service-list Print a list of magnum services.
pod-create Create a pod.
pod-delete Delete specified pod.
pod-list Print a list of registered pods.
pod-show Show details about the given pod.
pod-update Update information about the given pod.
rc-create Create a replication controller.
rc-delete Delete specified replication controller.
rc-list Print a list of registered replication controllers.
rc-show Show details about the given replication controller.
rc-update Update information about the given replication
controller.
coe-service-create Create a coe service.
coe-service-delete Delete specified coe service.
coe-service-list Print a list of coe services.
coe-service-show Show details about the given coe service.
coe-service-update Update information about the given coe service.
bash-completion Prints arguments for bash-completion. Prints all of
the commands and options to stdout so that the
magnum.bash_completion script doesn't have to hard
code them.
help Display help about this program or one of its
subcommands.

Optional arguments:
--version show program's version number and exit
--debug Print debugging output.
--os-cache Use the auth token cache. Defaults to False if
env[OS_CACHE] is not set.
--os-region-name <region-name>
Region name. Default=env[OS_REGION_NAME].
--os-tenant-id <auth-tenant-id>
Defaults to env[OS_TENANT_ID].
--os-user-domain-id <auth-user-domain-id>
Defaults to env[OS_USER_DOMAIN_ID].
--os-user-domain-name <auth-user-domain-name>
Defaults to env[OS_USER_DOMAIN_NAME].
--os-project-domain-id <auth-project-domain-id>
Defaults to env[OS_PROJECT_DOMAIN_ID].
--os-project-domain-name <auth-project-domain-name>
Defaults to env[OS_PROJECT_DOMAIN_NAME].
--service-type <service-type>
Defaults to container for all actions.
--endpoint-type <endpoint-type>
Defaults to env[OS_ENDPOINT_TYPE] or publicURL.
--magnum-api-version <magnum-api-ver>
Accepts "api", defaults to env[MAGNUM_API_VERSION].
--os-cacert <ca-certificate>
Specify a CA bundle file to use in verifying a TLS
(https) server certificate. Defaults to
env[OS_CACERT].
--bypass-url <bypass-url>
Use this API endpoint instead of the Service Catalog.
--insecure Do not verify https connections

Common auth options:
--os-auth-system <auth-system>
Defaults to env[OS_AUTH_SYSTEM].
--os-username <username>
Defaults to env[OS_USERNAME].
--os-password <password>
Defaults to env[OS_PASSWORD].
--os-tenant-name <tenant-name>
Defaults to env[OS_TENANT_NAME].
--os-token <token> Defaults to env[OS_TOKEN].
--os-auth-url <auth-url>
Defaults to env[OS_AUTH_URL].

转载于:https://www.cnblogs.com/doscho/p/6039456.html

 类似资料: