2.15. アプリケーション
3scale toolbox を使用して、デベロッパーポータルのアプリケーションの一覧表示、作成、表示、適用、または削除を行います。
2.15.1. アプリケーションの一覧表示
以下のコマンドにより、アプリケーションが一覧表示されます。
3scale application list [opts] <remote>
アプリケーションの一覧表示時に、以下のオプションを使用します。
OPTIONS
--account=<value> Filter by account
--plan=<value> Filter by application plan.
Service option required.
--service=<value> Filter by service2.15.2. アプリケーションの作成
特定の 3scale アカウントおよびアプリケーションプランにリンクされたアプリケーションを 1 つ作成するには、create コマンドを使用します。
必要な位置パラメーターは以下のとおりです。
-
<service>参照。サービスのidまたはサービスのsystem_nameのどちらかです。 <account>参照。次のいずれかです。-
アカウント
id -
アカウントの管理ユーザーの
username、email、またはuser_id -
provider_key
-
アカウント
-
<application plan>参照。プランのidまたはプランのsystem_nameのどちらかです。 -
<name>アプリケーション名。
以下のコマンドにより、アプリケーションが作成されます。
3scale application create [opts] <remote> <account> <service> <application-plan> <name>
アプリケーションの作成時に、以下のオプションを使用します。
Options
--application-id=<value> App ID or Client ID (for OAuth and
OpenID Connect authentication modes) of
the application to be created.
--application-key=<value> App Key(s) or Client Secret (for OAuth
and OpenID Connect authentication
modes) of the application to be
created.
--description=<value> Application description
--redirect-url=<value> OpenID Connect redirect url
--user-key=<value> User Key (API Key) of the application
to be created.2.15.3. アプリケーションの表示
以下のコマンドにより、アプリケーションが表示されます。
3scale application show [opts] <remote> <application>
アプリケーションパラメーターは以下のいずれかです。
-
user_key: API キー -
App_id: app_id/app_key ペアから、または OAuth および OpenID Connect (OIDC) 認証モードの Client ID -
アプリケーションの内部
id
2.15.4. アプリケーションの作成または更新
アプリケーションが存在しない場合に新しく作成する、または既存のアプリケーションを更新するには、以下のコマンドを使用します。
3scale application apply [opts] <remote> <application>
アプリケーションパラメーターは以下のいずれかです。
-
user_key: API キー -
App_id: app_id/app_key ペアから、または OAuth および OIDC 認証モードの Client ID -
アプリケーションの内部
id アプリケーションが見つからず作成する必要がある場合は、オプションの
account引数が必要です。次のいずれかです。-
アカウント
id -
3scale アカウントの管理ユーザーの
username、email、またはuser_id -
provider_key
-
アカウント
-
3scale ではアプリケーション名が一意ではないため、
nameは固有の識別子として使用できません。 -
--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
--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.2.15.5. アプリケーションの削除
以下のコマンドにより、アプリケーションが削除されます。
3scale application delete [opts] <remote> <application>
アプリケーションパラメーターは以下のいずれかです。
-
user_key: API キー -
App_id: app_id/app_key ペアから、または OAuth および OIDC 認証モードの Client ID -
アプリケーションの内部
id