Download OpenAPI specification:Download
FileMage Gateway provides a simple API to configure storage endpoints, users, and keys. Please note that all urls must end in a trailing slash, and the Content-Type header must be set to application/json.
After registering an administrator account, go to the settings page to create a API key. Include this token in all calls to the API.
Example:
curl http://sftp.example.com/users/ -H "filemage-api-token: 43fb7437e3f231e481b262ca6d4de0c0"
Security Scheme Type | API Key |
---|---|
Header parameter name: | filemage-api-token |
Create a new endpoint using provided settings.
Endpoint configuration. Check cloud provider specific schemas for config parameters.
id | integer ID of endpoint. |
name | string Name of endpoint. |
object Settings specific to the Azure Blob Storage endpoint types. |
{- "id": 0,
- "name": "string",
- "config": {
- "accountKey": "string",
- "accountName": "string",
- "containerName": "string",
- "isHNS": true,
- "useMSI": true,
- "userAssignedId": "string",
- "type": "azure"
}
}
{- "id": 0
}
Return detailed endpoint settings of specified endpoint.
id required | integer ID of endpoint to return |
{- "id": 0,
- "name": "string",
- "config": {
- "accountKey": "string",
- "accountName": "string",
- "containerName": "string",
- "isHNS": true,
- "useMSI": true,
- "userAssignedId": "string",
- "type": "azure"
}
}
Update settings of existing endpoint.
id required | integer ID of endpoint to update |
Endpoint configuration. Check cloud provider specific schemas for config parameters.
id | integer ID of endpoint. |
name | string Name of endpoint. |
object Settings specific to the Azure Blob Storage endpoint types. |
{- "id": 0,
- "name": "string",
- "config": {
- "accountKey": "string",
- "accountName": "string",
- "containerName": "string",
- "isHNS": true,
- "useMSI": true,
- "userAssignedId": "string",
- "type": "azure"
}
}
{- "message": "string",
- "fields": [
- "string"
]
}
[- {
- "id": 0,
- "username": "string",
- "endpointName": "string"
}
]
User settings
username | string Username. |
password | string Password. |
endpointId | integer ID of endpoint to associate with user. |
string The email address used for password reset and welcome emails. | |
disabled | boolean Password authentication disabled. |
object Specify path, and permission level of user home directory | |
Array of objects (Permission) Additional folder permissions assigned to the user. | |
whitelist | Array of strings IP addresses which are allowed to connect as this user. |
mfaRequired | boolean Require multi-factor authentication to be set up before allowing user to log in. |
ldap | boolean Indicates that this user should be authneticated using LDAP. |
expires | string A timestamp in ISO 8601 format indicating when the users account should no longer be accessible. |
ftpDisabled | boolean Disable FTP protocol for this user. |
{- "username": "string",
- "password": "string",
- "endpointId": 0,
- "email": "string",
- "disabled": true,
- "home": {
- "path": "string",
- "sub": true,
- "grants": "string"
}, - "permissions": [
- {
- "path": "string",
- "sub": true,
- "grants": "list",
- "targetPath": "string",
- "endpointId": 0
}
], - "whitelist": [
- "string"
], - "mfaRequired": true,