Menu Close
3.8. 创建应用程序计划
使用 3scale toolbox 在 Developer Portal 中创建、更新、列出、删除、显示或导出/导入应用程序计划。
3.8.1. 创建新应用程序计划
使用以下步骤创建新应用程序计划:
- 您必须提供应用计划名称。
-
要覆盖
system-name
,请使用可选参数。 - 如果存在具有相同名称的应用计划,您将看到错误消息。
-
使用
--default
标志,将应用计划设置为默认
。 使用
--publish
标志创建发布的
应用计划。-
默认情况下,它将被
隐藏
。
-
默认情况下,它将被
使用
--disabled
标志创建禁用
的应用程序计划。-
默认情况下将
启用
它。
-
默认情况下将
注意
服务
位置参数是服务引用,可以是服务ID
或 servicesystem_name
。- toolbox 使用其中任一个。
以下命令创建新应用程序计划:
3scale application-plan create [opts] <remote> <service> <plan-name>
在创建应用程序计划时使用以下选项:
Options --approval-required=<value> The application requires approval: true or false --cost-per-month=<value> Cost per month --default Make the default application plan --disabled Disable all methods and metrics in the application plan -o --output=<value> Output format on stdout: one of json|yaml -p --published Publish the application plan --setup-fee=<value> Set-up fee -t --system-name=<value> Set application plan system name --trial-period-days=<value> The trial period in days Options for application-plan -c --config-file=<value> 3scale toolbox configuration file: defaults to $HOME/.3scalerc.yaml -h --help Print help for this command -k --insecure Proceed and operate even for server connections otherwise considered insecure -v --version Print the version of this command --verbose Verbose mode