Skip to content

Commit

Permalink
Built from fbaf2fc
Browse files Browse the repository at this point in the history
  • Loading branch information
dmp-netapp authored and IE-Build committed Jan 11, 2024
1 parent 7d80693 commit 73e55ff
Show file tree
Hide file tree
Showing 11 changed files with 574 additions and 309 deletions.
60 changes: 34 additions & 26 deletions _i18n/ja-jp/dictionary.xml

Large diffs are not rendered by default.

282 changes: 0 additions & 282 deletions manage/dacl-sacl-rest-api.adoc

This file was deleted.

1 change: 0 additions & 1 deletion project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ sidebar:
- section: get-started
- section: rest
- section: workflows
- section: manage
- section: sw-tools
- section: migrate
- section: reference
Expand Down
8 changes: 8 additions & 0 deletions store-redirects/dacl-sacl-rest-api.adoc
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:


16 changes: 16 additions & 0 deletions workflows/sidebar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,22 @@ entries:
url: "/workflows/wf_cls_update_contact.html"
- title: ジョブインスタンスの取得
url: "/workflows/wf_jobs_get_job.html"
- title: NAS
entries:
- title: ファイルセキュリティ権限
entries:
- title: ファイルセキュリティを管理する準備
url: "/workflows/wf_nas_fs_prepare.html"
- title: 有効な権限を取得する
url: "/workflows/wf_nas_fs_get_permissions.html"
- title: 監査情報の取得
url: "/workflows/wf_nas_fs_get_audit_info.html"
- title: 権限の適用
url: "/workflows/wf_nas_fs_apply_permissions.html"
- title: セキュリティ記述子を更新します。
url: "/workflows/wf_nas_fs_update_sd.html"
- title: アクセス制御エントリを削除します。
url: "/workflows/wf_nas_fs_delete_ace.html"
- title: ネットワーキング
entries:
- title: IPインターフェイスをリスト表示
Expand Down
72 changes: 72 additions & 0 deletions workflows/wf_nas_fs_apply_permissions.adoc
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`。
Loading

0 comments on commit 73e55ff

Please sign in to comment.