このエンドポイントは、既存のストレージ制約プロファイルのバケットを更新したり、ストレージ制約プロファイル内のバケットを表示したりするために使用できます。 制約プロファイルは、リアルタイム保護ポリシーにおいて、特定のバケットを許可リストまたはブロックリストに適用します。
Request
https://<tenant-URL>/api/v1/storage_constraint_profile?token=<token>&op=<operator>&name=<bucket list name>
Valid parameters are:
| 鍵 | Value | デスクリプション |
|---|---|---|
name | <profile_name> 例: "Allowlist_Bucket" | 必須。既存のストレージ制約プロファイルの名前。 指定された名前が存在しない場合、またはストレージ制約プロファイルに既に保留中の変更がある場合は、エラーが返されます。 |
op | appendToBucketList | deleteFromBucketList | modifyBucketList | replaceBucketList | viewBucketList | 必須。ストレージ制約プロファイル内のバケットリストに対して実行する操作。 |
list | カンマ区切りのバケット名のリスト。 | appendToBucketList 、 deleteFromBucketList およびreplaceBucketListに対してのみ使用します。 バケットリストの最大サイズは8MBです。 |
addlist | カンマ区切りのバケット名のリスト。 | modifyBucketListのためにのみ使用します。deleteList最初に処理され、 addList次に処理されます。バケットリストの最大サイズは8MBです。 |
delectlist | カンマ区切りのバケット名のリスト。 | modifyBucketListのためにのみ使用します。deleteList最初に処理され、 addList次に処理されます。バケットリストの最大サイズは8MBです。 |
Examples
Append to a bucket list
$ curl -X POST
'https://<tenant-URL>/api/v1/storage_constraint_profile?token=151b9d5e1f1546b589cb8b6jk6jk&op=appendToBucketList&name=customBucketList201'
-H 'Content-Type: application/json'
-H 'cache-control: no-cache'
-d '{"list": "my-abc,my-abc-0" }'
Delete from a bucket list
$ curl -X POST
'https://<tenant-URL>/api/v1/storage_constraint_profile?token=151b9d5e1f1546b589cb8b6jk6jk&op=deleteFromBucketList&name=customBucketList201'
-H 'Content-Type: application/json'
-H 'cache-control: no-cache'
-d '{"list": "my-abc,my-abc-0,mn-abc-0,my-abc-0","my-abc,my-abc-0" }'
Modify a bucket list: only addlist
$ curl -X POST
'https://<tenant-URL>/api/v1/storage_constraint_profile?token=151b9d5e1f1546b589cb8b6jk6jk54jtj&op=modifyBucketList&name=customBucketList201'
-H 'Content-Type: application/json'
-H 'cache-control: no-cache'
-d '{"addList": "bucket-west,content-team,largefiles,netskope-files,toy.videos,vent-12345" }'
Modify a bucket list: only deletelist
$ curl -X POST
'https://<tenant-URL>/api/v1/storage_constraint_profile?token=151b9d5e1f1546b589cb8b6jk6jk&op=modifyBucketList&name=customBucketList201'
-H 'Content-Type: application/json'
-H 'cache-control: no-cache'
-d '{"deleteList": "bucket-west,content-team,largefiles,netskope-files,toy.videos,kent-12345" }'
Modify a bucket list: both addlist and deletelist
$ curl -X POST
'https://<tenant-URL>/api/v1/storage_constraint_profile?token=151b9d5e1f1546b589cb8b6jk6jk&op=modifyBucketList&name=customBucketList201'
-H 'Content-Type: application/json'
-H 'cache-control: no-cache'
-d '{"addList": "bucket-east,context-team,smallfiles,toy.videos,vent-12345"
"deleteList": "bucket-west,content-team,largefiles,netskope-files,bot.videos,kent-12345" }'
Replace a bucket list
$ curl -X POST
'https://<tenant-URL>/api/v1/storage_constraint_profile?token=151b9d5e1f1546b589cb8b6jk6jk&op=replaceBucketList&name=customBucketList201'
-H 'Content-Type: application/json'
-H 'cache-control: no-cache'
-d '{"list": "toy.videos,vent-12345,my-abc"}'
View a bucket list
$ curl -X POST
'https://<tenant-URL>/api/v1/storage_constraint_profile?token=151b9d5e1f1546b589cb8b6jk6jk&op=viewBucketList&name=customBucketList201'
-H 'Content-Type: application/json'
-H 'cache-control: no-cache'
-d '{"list": "my-abc,my-abc-0" }'

