简体中文版经机器翻译而成,仅供参考。如与英语版出现任何冲突,应以英语版为准。
使用ONTAP REST API获取文件的审核信息
您可以检索特定文件或文件夹的审核信息。
HTTP方法和端点
此REST API调用使用以下方法和端点。
| HTTP 方法 | 路径 |
|---|---|
获取 |
/api/protocols /文件安全性/权限/{svm.unid}/{path} |
处理类型
同步
CURL示例的其他输入参数
除了所有REST API调用通用的参数之外、此步骤中的cURL示例还会使用以下参数。
| 参数 | Type | Required | Description |
|---|---|---|---|
$SVM_ID |
路径 |
是的。 |
这是包含该文件的SVM的UUID。 |
$file_path |
路径 |
是的。 |
这是文件或文件夹的路径。 |
curl 示例
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"
}