2.11. サービスの作成
3scale toolbox を使用して、デベロッパーポータルのサービスの作成、適用、一覧表示、表示、または削除を行います。
2.11.1. 新しいサービスの作成
以下のコマンドにより、新しいサービスが作成されます。
3scale service create [options] <remote> <service-name>
サービスの作成時に、以下のオプションを使用します。
Options
-a --authentication-mode=<value> Specify authentication mode of the
service ('1' for API key, '2' for
App Id / App Key, 'oauth' for OAuth
mode, 'oidc' for OpenID Connect)
-d --deployment-mode=<value> Specify the deployment mode of the
service
--description=<value> Specify the description of the
service
-s --system-name=<value> Specify the system-name of the
service
--support-email=<value> Specify the support email of the
service
Options for service
-c --config-file=<value> 3scale toolbox configuration file
(default:
$HOME/.3scalerc.yaml)
-h --help show help for this command
-k --insecure Proceed and operate even for server
connections otherwise considered
insecure
-v --version Prints the version of this command
--verbose Verbose mode2.11.2. サービスの作成または更新
サービスが存在しない場合に新しく作成する、または既存のサービスを更新するには、以下の手順に従います。
注記
service-id_or_system-name位置引数は、サービス参照です。-
サービスの
id、またはサービスのsystem_nameのどちらかです。 - toolbox は、これを自動的に判別します。
-
サービスの
-
このコマンドは
べきとう性を持ちます。
以下のコマンドにより、サービスが更新されます。
3scale service apply <remote> <service-id_or_system-name>
サービスの更新時に、以下のオプションを使用します。
Options
-a --authentication-mode=<value> Specify authentication mode of the
service ('1' for API key, '2' for
App Id / App Key, 'oauth' for OAuth
mode, 'oidc' for OpenID Connect)
-d --deployment-mode=<value> Specify the deployment mode of the
service
--description=<value> Specify the description of the
service
-n --name=<value> Specify the name of the metric
--support-email=<value> Specify the support email of the
service
Options for services
-c --config-file=<value> 3scale toolbox configuration file
(default: $HOME/.3scalerc.yaml)
-h --help show help for this command
-k --insecure Proceed and operate even for server
connections otherwise considered
insecure
-v --version Prints the version of this command
--verbose Verbose mode2.11.3. サービスの一覧表示
以下のコマンドにより、サービスが一覧表示されます。
3scale service list <remote>
サービスの一覧表示時に、以下のオプションを使用します。
Options for services
-c --config-file=<value> 3scale toolbox configuration file (default:
$HOME/.3scalerc.yaml)
-h --help show help for this command
-k --insecure Proceed and operate even for server
connections otherwise considered insecure
-v --version Prints the version of this command
--verbose Verbose mode2.11.4. サービスの表示
以下のコマンドにより、サービスが表示されます。
3scale service show <remote> <service-id_or_system-name>
サービスの表示時に、以下のオプションを使用します。
Options for services
-c --config-file=<value> 3scale toolbox configuration file
(default: $HOME/.3scalerc.yaml)
-h --help show help for this command
-k --insecure Proceed and operate even for server
connections otherwise considered insecure
-v --version Prints the version of this command
--verbose Verbose mode2.11.5. サービスの削除
以下のコマンドにより、サービスが削除されます。
3scale service delete <remote> <service-id_or_system-name>
サービスの削除時に、以下のオプションを使用します。
Options for services
-c --config-file=<value> 3scale toolbox configuration file (default:
$HOME/.3scalerc.yaml)
-h --help show help for this command
-k --insecure Proceed and operate even for server
connections otherwise considered insecure
-v --version Prints the version of this command
--verbose Verbose mode