メインコンテンツへスキップ

必要なAPIのみで割り当てられた単一のロールを作成するにはどうすればよいですか。

Views:
8
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
core
Last Updated:

環境

ONTAP 9

回答

必要なAPIのみを含むロールを作成して割り当てるには、次の例を参照してください。
  1. セキュリティロールを作成します。
新しいロールを作成するには'`security login role createコマンドを使用しますたとえば、読み取り専用アクセス権限を持つ新しいロールを作成するには、次のコマンドを実行します。

security login role create -vserver vserver_name -role role_name -cmddirname "API_or_COMMAND" -access readonly

注:
ここではvserver_name、「」はSVMの名前です。 ``role_nameは作成するロールの名前、``API_or_COMMANDはアクセスが許可されるコマンドまたはAPIのディレクトリ名、``はreadonly読み取り専用アクセスを示します。``noneや``allのような他のアクセスレベルも使用することができる。
  1. ユーザへのロールの割り当て:
新しいロールをユーザに割り当てるには'``security login createまたは``security login modifyコマンドを使用しますたとえば、既存のユーザに新しいロールを割り当てるには、次のコマンドを実行します。

security login modify -vserver vserver_name -username user_name -role role_name

注:
ここで、''vserver_nameはSVMの名前、''user_nameはユーザの名前、''role_nameは割り当てるロールの名前です。
  1. 設定を確認します。
設定が正しく適用されていることを確認するには、``security login role showまたは``security login showコマンドを使用して、ロールとユーザの設定を確認します。
 
注:
  • ONTAPコマンドラインでの操作には注意が必要です。
  • 誤ったコマンドを実行するとシステムに影響する可能性があるため、コマンドを十分に理解し、確認してから実行してください。
  • また、上記のコマンドは一例であり、実際の環境や要件に応じて正しいパラメータを指定する必要があります。

追加情報

AdditionalInformation_text
NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.

 

  • この記事は役に立ちましたか?