-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7d80693
commit 73e55ff
Showing
11 changed files
with
574 additions
and
309 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
permalink: manage/dacl-sacl-rest-api.html | ||
redirect: ontap-automation/workflows/wf_nas_fs_prepare.html | ||
--- | ||
= | ||
:allow-uri-read: | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
--- | ||
sidebar: sidebar | ||
permalink: workflows/wf_nas_fs_apply_permissions.html | ||
keywords: nas, file security, sacl, dacl, permissions, apply permissions | ||
summary: 新しいセキュリティ記述子を特定のファイルまたはフォルダに適用できます。 | ||
--- | ||
= ファイルに新しい権限を適用する | ||
:hardbreaks: | ||
:allow-uri-read: | ||
:nofooter: | ||
:icons: font | ||
:linkattrs: | ||
:imagesdir: ./media/ | ||
|
||
|
||
[role="lead"] | ||
新しいセキュリティ記述子を特定のファイルまたはフォルダに適用できます。 | ||
|
||
|
||
|
||
== 手順1:新しい権限を適用する | ||
|
||
.HTTPメソッドとエンドポイント | ||
このREST API呼び出しでは、次のメソッドとエンドポイントを使用します。 | ||
|
||
[cols="25,75"] | ||
|=== | ||
| HTTP メソッド | パス | ||
|
||
|
||
| 投稿( Post ) | /api/protocols/file-security/permissions/{svm.uuid}/{path} | ||
|=== | ||
.処理のタイプ | ||
非同期 | ||
|
||
.curlの例の追加入力パラメータ | ||
この手順のcurlの例では、すべてのREST API呼び出しに共通のパラメータに加えて、次のパラメータも使用しています。 | ||
|
||
[cols="25,10,10,55"] | ||
|=== | ||
| パラメータ | を入力します | 必須 | 説明 | ||
|
||
|
||
| $SVM_ID | パス | はい。 | これは、ファイルが含まれているSVMのUUIDです。 | ||
|
||
|
||
| $file_path | パス | はい。 | ファイルまたはフォルダへのパスです。 | ||
|=== | ||
.カールの例 | ||
[source, curl] | ||
---- | ||
curl --request POST --location "https://$FQDN_IP/api/protocols/file-security/permissions/$SVM_ID/$FILE_PATH?return_timeout=0" --include --header "Accept */*" --header "Authorization: Basic $BASIC_AUTH" --data '{ \"acls\": [ { \"access\": \"access_allow\", \"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, \"write_perm\": true }, \"apply_to\": { \"files\": true, \"sub_folders\": true, \"this_folder\": true }, \"user\": \"administrator\" } ], \"control_flags\": \"32788\", \"group\": \"S-1-5-21-2233347455-2266964949-1780268902-69700\", \"ignore_paths\": [ \"/parent/child2\" ], \"owner\": \"S-1-5-21-2233347455-2266964949-1780268902-69304\", \"propagation_mode\": \"propagate\"}' | ||
---- | ||
.JSON 出力例 | ||
[listing] | ||
---- | ||
{ | ||
"job": { | ||
"uuid": "3015c294-5bbc-11eb-9c4e-0050568e8682", | ||
"_links": { | ||
"self": { | ||
"href": "/api/cluster/jobs/3015c294-5bbc-11eb-9c4e-0050568e8682" | ||
} | ||
} | ||
} | ||
} | ||
---- | ||
|
||
|
||
== 手順2:ジョブのステータスを取得する | ||
|
||
ワークフローを実行 link:../workflows/wf_jobs_get_job.html["ジョブインスタンスの取得"] をクリックし、 `state` 値は `success`。 |
Oops, something went wrong.