トピック:
このAPIを使用すると、新しいユーザーを追加できます。
注意:
新しいユーザーを追加できるのは、テナント管理者のみです。メソッド
POST
RESTリソース
/user/
URI
https://api_endpoint/user/
リクエスト本文のパラメータ
パラメータ | 説明 |
---|---|
username | ユーザーの一意の階層名。 たとえば、/mytenant/myuser などです。
オブジェクト名には、英数字、ハイフン、およびピリオドのみを使用できます。 オブジェクト名は大文字と小文字が区別されます。 |
fullname | ユーザーのフル・ネーム |
有効な電子メール・アドレス | |
role | (オプション)システム内のユーザーのロール。
このオプションは、クラウド管理者が使用します。 テナント管理者が、このオプションを削除できます。 Oracle Cloud管理者は、ロール・オプションを使用して次のいずれか1つのロールをユーザーに追加します。
このオプションが指定されない場合、デフォルト・ロールの |
password | (オプション)ユーザー・パスワード。
ユーザーのパスワードは、次の要件を満たしている必要があります:
|
URIの例
https://api.oc.example.com/user/
リクエスト本文の例
{ "username": "/mytenant/myuser", "blacklisted": false, "uri": null, "role": "", "groups": [], "fullname": "myuserfullname", "password": "zaqwsx1234", "email": "myuser@example.com" }
レスポンス本文の例
{ "username": "/mytenant/myuser", "customer": "mytenant", "blacklisted": false, "uri": "https://api/user/mytenant/myuser", "id": "f36f54ca-e8d2-4e56-93acae392c4f1", "role": "/mytenant/users", "groups": ["/mytenant/users"], fullname": "myuserfullname", "password": "", "email": "myuser@example.com" }
このAPIを使用すると、既存のユーザーを削除できます。
メソッド
DELETE
RESTリソース
/user/name
URI
https://api_endpoint/user/name
URIパラメータ
パラメータ | 説明 |
---|---|
name | 削除するユーザーの階層名。 たとえば、/mytenant/myuser ,や/cloud/myuser などです |
URIの例
https://api.oc.example.com/user/mytenant/myuser1
このAPIを使用すると、ユーザーの情報を更新できます。
注意:
テナント・ユーザーのみがパスワードと電子メール・アドレスを更新できます。
メソッド
PUT
RESTリソース
/user/name
URI
https://
api_endpoint
/user/name
URIパラメータ
パラメータ | 説明 |
---|---|
name | ユーザーの一意の階層名。 たとえば、/mytenant/myuser や/cloud/myuser などです |
リクエスト本文のパラメータ
パラメータ | 説明 |
---|---|
fullname | (オプション)ユーザーのフル・ネーム |
(オプション)有効な電子メール・アドレス | |
role | (オプション)システム内のユーザーのロール。
このオプションは、クラウド管理者が使用します。 テナント管理者が、このオプションを削除できます。 クラウド管理者は、ロール・オプションを使用して次のいずれか1つのロールをユーザーに追加します。
|
password | (オプション)ユーザー・パスワード。
ユーザーのパスワードは、次の要件を満たしている必要があります:
|
blacklisted | (オプション)ユーザーがブラックリストにあるかどうかを指定します |
URIの例
https://api.oc.example.com/user/mytenant/myuser
リクエスト本文の例
{ "username": "/mytenant/myuser", "fullname": "myuserfullname", "password": "", "email": "new.email@example.com" }
レスポンス本文の例
{ "username": "/mytenant/myuser", "customer": "mytenant", "blacklisted": false, "uri": "https://api/user/mytenant/myuser", "id": "f36f54ca-e8d2-4e56-9371-0acae392c4f1", "role": "/mytenant/users", "groups": ["/mytenant/users"], "fullname": "myuserfullname", "password": "", "email": "new.email@example.com" }
トピック:
このAPIを使用すると、特定のコンテナのユーザーのリストを検出できます。
注意:
検出APIコールは、指定されたコンテナ内のオブジェクトの名前を表示しますが、オブジェクトの詳細は表示しません。 オブジェクトの名前をリストするには、Accept
ヘッダーをapplication/oracle-compute-v3+directory+json
に設定します。 その他の目的では、Accept
ヘッダーをapplication/oracle-compute-v3+json
に設定する必要があります。 メソッド
GET
RESTリソース
/user/container
URI
https://api_endpoint/user/container
URIパラメータ
パラメータ | 説明 |
---|---|
container | ユーザーの階層名前空間。 |
URIの例
https://api.oc.example.com/user/
レスポンス本文の例
{"result": ["/mytenant/administrator", "/mytenant/user123"]}
このAPIを使用すると、特定のユーザーの情報を取得できます。
メソッド
GET
RESTリソース
/user/name
URI
https://api_endpoint/user/name
URIパラメータ
パラメータ | 説明 |
---|---|
name | ユーザーの階層名。 たとえば、/mytenant/myuser や/cloud/myuser などです |
URIの例
https://api.oc.example.com/user/mytenant/myuser
レスポンス本文の例
{ "username": "/mytenant/myuser", "customer": "mytenant", "blacklisted": false, "uri": "https://api/user/mytenant/myuser", "id": "f36f54ca-e8d2-4e56-9371-0acae392c4f1", "role": "/mytenant/users", "groups": ["/mytenant/users"], "fullname": "myuserfullname", "password": "", "email": "myuser@example.com" }
このAPIを使用すると、特定のコンテナのユーザーをリストできます。
注意:
自分のテナント内のテナント・ユーザーのみをリストできます。メソッド
GET
RESTリソース
/user/name
URI
https://
api_endpoint
/user/container?role=roleValue
URIパラメータ
パラメータ | 説明 |
---|---|
container | ユーザーの階層名前空間。 |
role=roleValue | (オプション)システム内のユーザーのロール。
次のいずれかを指定することによって、ユーザー・ロールに基づいてリスト出力をフィルタできます。
|
URIの例
https://api.oc.example.com/user/mytenant/
レスポンス本文の例
{"result": [ { "username": "/mytenant/administrator", "customer": "mytenant", "blacklisted": false, "uri": "https://api/user/mytenant/administrator", "id": "1ccf2e90-39aa-4b73-bca8-da9fdf8c6441", "role": "/mytenant/admin", "groups": ["/mytenant/admin"], "fullname": "Administrator", "password": "", "email": "myuser@example.com" }, { "username": "/mytenant/myuser", "customer": "mytenant", "blacklisted": false, "uri": "https://api/user/mytenant/myuser", "id": "f36f54ca-e8d2-4e56-9371-0acae392c4f1", "role": "/mytenant/users", "groups": ["/mytenant/users"], "fullname": "myuserfullname", "password": "", "email": "myuser@example.com" } ]}