日本語は機械翻訳による参考訳です。内容に矛盾や不一致があった場合には、英語の内容が優先されます。
ONTAP REST APIを使用して、ファイルに対して有効な権限を取得する
特定のファイルまたはフォルダに対して現在有効な権限を取得できます。
HTTPメソッドとエンドポイント
このREST API呼び出しでは、次のメソッドとエンドポイントを使用します。
| HTTP メソッド | パス |
|---|---|
取得 |
/api/protocols/file-security/effective-permissions/{svm.uuid}/{path} |
処理のタイプ
同期
curlの例の追加入力パラメータ
この手順のcurlの例では、すべてのREST API呼び出しに共通のパラメータに加えて、次のパラメータも使用しています。
| パラメータ | を入力します | 必須 | 説明 |
|---|---|---|---|
$SVM_ID |
パス |
はい。 |
これは、ファイルが含まれているSVMのUUIDです。 |
$file_path |
パス |
はい。 |
ファイルまたはフォルダへのパスです。 |
カールの例
curl --request GET \
--location "https://$FQDN_IP/api/protocols/file-security/effective-permissions/$SVM_ID/$FILE_PATH" \
--include \
--header "Accept: */*" \
--header "Authorization: Basic $BASIC_AUTH"
JSON 出力例
{
"svm": {
"uuid": "cf5f271a-1beb-11ea-8fad-005056bb645e",
"name": "vs1"
},
"user": "administrator",
"type": "windows",
"path": "/",
"share": {
"path": "/"
},
"file_permission": [
"read",
"write",
"append",
"read_ea",
"write_ea",
"execute",
"delete_child",
"read_attributes",
"write_attributes",
"delete",
"read_control",
"write_dac",
"write_owner",
"synchronize",
"system_security"
],
"share_permission": [
"read",
"read_ea",
"execute",
"read_attributes",
"read_control",
"synchronize"
]
}