4.11. サービスの作成
3scale toolbox を使用して、デベロッパーポータルのサービスの作成、適用、一覧表示、表示、または削除を行います。
4.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
-o --output=<value> Output format on stdout:
one of json|yaml
-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:
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
4.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
-o --output=<value> Output format on stdout:
one of json|yaml
Options for services
-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
4.11.3. サービスの一覧表示 リンクのコピーリンクがクリップボードにコピーされました!
以下のコマンドにより、サービスが一覧表示されます。
3scale service list <remote>
サービスの一覧表示時に、以下のオプションを使用します。
Options
-o --output=<value> Output format on stdout:
one of json|yaml
Options for services
-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
4.11.4. サービスの表示 リンクのコピーリンクがクリップボードにコピーされました!
以下のコマンドにより、サービスが表示されます。
3scale service show <remote> <service-id_or_system-name>
サービスの表示時に、以下のオプションを使用します。
Options
-o --output=<value> Output format on stdout:
one of json|yaml
Options for services
-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
4.11.5. サービスの削除 リンクのコピーリンクがクリップボードにコピーされました!
以下のコマンドにより、サービスが削除されます。
3scale service delete <remote> <service-id_or_system-name>
サービスの削除時に、以下のオプションを使用します。
Options for services
-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