日本語は機械翻訳による参考訳です。内容に矛盾や不一致があった場合には、英語の内容が優先されます。
ONTAP REST APIを使用したファイルの監査情報の取得
特定のファイルまたはフォルダの監査情報を取得できます。
HTTPメソッドとエンドポイント
このREST API呼び出しでは、次のメソッドとエンドポイントを使用します。
| HTTP メソッド | パス |
|---|---|
取得 |
/api/protocols/file-security/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/permissions/$SVM_ID/$FILE_PATH" \
--include \
--header "Accept: */*" \
--header "Authorization: Basic $BASIC_AUTH"
JSON 出力例
{
"svm": {
"uuid": "9479099d-5b9f-11eb-9c4e-0050568e8682",
"name": "vs1"
},
"path": "/parent",
"owner": "BUILTIN\\Administrators",
"group": "BUILTIN\\Administrators",
"control_flags": "0x8014",
"acls": [
{
"user": "BUILTIN\\Administrators",
"access": "access_allow",
"apply_to": {
"files": true,
"sub_folders": true,
"this_folder": true
},
"advanced_rights": {
"append_data": true,
"delete": true,
"delete_child": true,
"execute_file": true,
"full_control": true,
"read_attr": true,
"read_data": true,
"read_ea": true,
"read_perm": true,
"write_attr": true,
"write_data": true,
"write_ea": true,
"write_owner": true,
"synchronize": true,
"write_perm": true
},
"access_control": "file_directory"
},
{
"user": "BUILTIN\\Users",
"access": "access_allow",
"apply_to": {
"files": true,
"sub_folders": true,
"this_folder": true
},
"advanced_rights": {
"append_data": true,
"delete": true,
"delete_child": true,
"execute_file": true,
"full_control": true,
"read_attr": true,
"read_data": true,
"read_ea": true,
"read_perm": true,
"write_attr": true,
"write_data": true,
"write_ea": true,
"write_owner": true,
"synchronize": true,
"write_perm": true
},
"access_control": "file_directory"
}
],
"inode": 64,
"security_style": "mixed",
"effective_style": "ntfs",
"dos_attributes": "10",
"text_dos_attr": "----D---",
"user_id": "0",
"group_id": "0",
"mode_bits": 777,
"text_mode_bits": "rwxrwxrwx"
}