- Site
- Session
- User
- Callback
- Workflow
- File
- Share
- VAS
- Group
- WebDAV
List available storage policies
GET
/user/setting/policies
Auth: JWT RequiredPro
Request
Authorization
Add the parameter
Authorization
to Headers,whose value is to concatenate the Token after the Bearer.Example:
Authorization: Bearer ********************
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/user/setting/policies'
Responses
🟢200Success
application/json
Body
data
array[object (StoragePolicy) {6}]  | nullÂ
optional
id
stringÂ
required
Example:
96u1
name
stringÂ
required
Example:
Default storage policy
allowed_suffix
array[string]Â |Â nullÂ
optional
type
enum<string>Â
required
Allowed values:
localqiniuupyunosscoss3onedriveremoteobs
Example:
local
max_size
numberÂ
required
0
means no limit.relay
boolean  | nullÂ
optional
true
, the client should treat it as a local
storage policy to process uploading.code
integerÂ
required
0
- Success.Default:
0
Example:
0
msg
stringÂ
optional
error
string  | nullÂ
optional
correlation_id
string <uuid> | nullÂ
optional
Example:
b4351ecc-ee1a-4455-bc94-2c3dbcc58538
Example
{
"code": 0,
"data": [
{
"id": "B1Fy",
"name": "Minio",
"type": "s3",
"max_size": 0
},
{
"id": "mqHp",
"name": "Cloudflare R2",
"type": "s3",
"max_size": 0
},
{
"id": "0dsD",
"name": "Google Cloud Storage",
"type": "s3",
"max_size": 0
},
{
"id": "NrTZ",
"name": "Qiniu",
"type": "qiniu",
"max_size": 0,
"relay": true
}
],
"msg": ""
}
Modified at 2025-06-27 03:08:29