Menu Close
3.15.3. 创建或更新应用程序
如果新应用程序不存在,或更新现有应用程序,使用以下命令创建新应用程序:
3scale application apply [opts] <remote> <application>
应用程序参数允许:
-
user_key
- API 密钥 -
App_id
- 来自 app_id/app_key 对或 OAuth 和 OIDC 验证模式 的客户端 ID -
应用程序内部
ID
如果未找到应用程序且需要创建应用程序,则需要
帐户
可选参数。它可以是以下之一:-
帐户
ID
-
3scale 帐户管理员用户
的用户名
、电子邮件
或user_id
-
provider_key
-
帐户
-
名称
不能用作唯一标识符,因为应用名称在 3scale 中不唯一。 -
使用
--resume 标志恢复
暂停的应用。 -
暂停应用 - 将状态更改为通过
--suspend
标志暂停。
在更新应用程序时使用以下选项:
OPTIONS --account=<value> Application's account. Required when creating --application-key=<value> App Key(s) or Client Secret (for OAuth and OpenID Connect authentication modes) of the application to be created. Only used when application does not exist. --description=<value> Application description --name=<value> Application name -o --output=<value> Output format on stdout: one of json|yaml --plan=<value> Application's plan. Required when creating. --redirect-url=<value> OpenID Connect redirect url --resume Resume a suspended application --service=<value> Application's service. Required when creating. --suspend Suspends an application (changes the state to suspended) --user-key=<value> User Key (API Key) of the application to be created. OPTIONS FOR APPLICATION -c --config-file=<value> 3scale toolbox configuration file: defaults to $HOME/.3scalerc.yaml -h --help Show 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.