Download OpenAPI specification:Download
The storage service implements all storage functions for GroupAlarm
Get a list of buckets for an organization
organization_id required | integer id of organization to query buckets for |
[- {
- "description": "string",
- "id": 0,
- "name": "string",
- "organizationID": 0,
- "readOnlyUserIDs": [
- 0
], - "readWriteUserIDs": [
- 0
], - "sizeLimit": 0,
- "spaceUsed": 0
}
]
Creates a new storage bucket with the passed properties
bucket to create
description | string |
id | integer <int64> |
name | string |
organizationID | integer <int64> |
readOnlyUserIDs | Array of integers <int64> [ items <int64 > ] |
readWriteUserIDs | Array of integers <int64> [ items <int64 > ] |
sizeLimit | integer <int64> SizeLimit is the maximum number of bytes that can be contained in the bucket |
spaceUsed | integer <int64> SpaceUsed is the number of bytes contained in the bucket |
{- "description": "string",
- "id": 0,
- "name": "string",
- "organizationID": 0,
- "readOnlyUserIDs": [
- 0
], - "readWriteUserIDs": [
- 0
], - "sizeLimit": 0,
- "spaceUsed": 0
}
{- "description": "string",
- "id": 0,
- "name": "string",
- "organizationID": 0,
- "readOnlyUserIDs": [
- 0
], - "readWriteUserIDs": [
- 0
], - "sizeLimit": 0,
- "spaceUsed": 0
}
Get a bucket
bucket required | integer id of a bucket |
{- "description": "string",
- "id": 0,
- "name": "string",
- "organizationID": 0,
- "readOnlyUserIDs": [
- 0
], - "readWriteUserIDs": [
- 0
], - "sizeLimit": 0,
- "spaceUsed": 0
}
Update a bucket
bucket required | integer id of a bucket |
description | string |
id | integer <int64> |
name | string |
organizationID | integer <int64> |
readOnlyUserIDs | Array of integers <int64> [ items <int64 > ] |
readWriteUserIDs | Array of integers <int64> [ items <int64 > ] |
sizeLimit | integer <int64> SizeLimit is the maximum number of bytes that can be contained in the bucket |
spaceUsed | integer <int64> SpaceUsed is the number of bytes contained in the bucket |
{- "description": "string",
- "id": 0,
- "name": "string",
- "organizationID": 0,
- "readOnlyUserIDs": [
- 0
], - "readWriteUserIDs": [
- 0
], - "sizeLimit": 0,
- "spaceUsed": 0
}
{- "description": "string",
- "id": 0,
- "name": "string",
- "organizationID": 0,
- "readOnlyUserIDs": [
- 0
], - "readWriteUserIDs": [
- 0
], - "sizeLimit": 0,
- "spaceUsed": 0
}
Delete a bucket
bucket required | integer id of a bucket |
{- "description": "string",
- "id": 0,
- "name": "string",
- "organizationID": 0,
- "readOnlyUserIDs": [
- 0
], - "readWriteUserIDs": [
- 0
], - "sizeLimit": 0,
- "spaceUsed": 0
}
Get contents of a folder in a bucket
bucket required | integer id of bucket to query |
folder | integer id of folder to query, if not present, query root folder in bucket |
{- "files": [
- {
- "bucketID": 0,
- "contentType": "string",
- "creatorID": 0,
- "creatorName": "string",
- "creatorType": "string",
- "fileKeyIDs": [
- 0
], - "folderID": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uploadedAt": null
}
], - "folders": [
- {
- "bucketID": 0,
- "id": 0,
- "name": "string",
- "parentID": 0
}
], - "path": [
- {
- "bucketID": 0,
- "id": 0,
- "name": "string",
- "parentID": 0
}
]
}
Get a list of files in a bucket
bucket required | integer id of bucket to query files for |
[- {
- "bucketID": 0,
- "contentType": "string",
- "creatorID": 0,
- "creatorName": "string",
- "creatorType": "string",
- "fileKeyIDs": [
- 0
], - "folderID": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uploadedAt": null
}
]
Upload a file to a bucket
bucket required | integer id of bucket to query files for |
filekey_id | integer ids of the filekeys the file should be associated with |
folder | integer the id of the folder to add the file into, if this is not present, puts the file in the root folder |
Get a file from a bucket
bucket required | integer id of bucket to query files for |
file required | integer id of file to get from bucket |
{- "bucketID": 0,
- "contentType": "string",
- "creatorID": 0,
- "creatorName": "string",
- "creatorType": "string",
- "fileKeyIDs": [
- 0
], - "folderID": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uploadedAt": null
}
Update a file of a bucket for its name and the given file keys
file required | integer id of file that gets updated |
bucket required | integer id of bucket to query files for |
filekey_id | integer ids of the filekeys the file should be associated with |
bucketID | integer <int64> |
contentType | string |
creatorID | integer <int64> |
creatorName | string |
creatorType | string |
fileKeyIDs | Array of integers <int64> [ items <int64 > ] |
folderID | integer <int64> |
id | integer <int64> |
name | string |
size | integer <int64> |
uploadedAt | any |
{- "bucketID": 0,
- "contentType": "string",
- "creatorID": 0,
- "creatorName": "string",
- "creatorType": "string",
- "fileKeyIDs": [
- 0
], - "folderID": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uploadedAt": null
}
{- "bucketID": 0,
- "contentType": "string",
- "creatorID": 0,
- "creatorName": "string",
- "creatorType": "string",
- "fileKeyIDs": [
- 0
], - "folderID": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uploadedAt": null
}
Get files for file keys
organization_id required | integer id of organization |
filekey_id | integer ids of the filekeys the file should be associated with |
filekey_name | string names of the filekeys the file should be associated with |
[- {
- "bucketID": 0,
- "bucketName": "string",
- "contentType": "string",
- "creatorID": 0,
- "creatorName": "string",
- "creatorType": "string",
- "fileKeyIDs": [
- 0
], - "folderID": 0,
- "id": 0,
- "name": "string",
- "size": 0,
- "uploadedAt": null
}
]
Create a folder in a bucket
bucket required | integer id of a bucket |
folder to create
bucketID | integer <int64> |
id | integer <int64> |
name | string |
parentID | integer <int64> |
{- "bucketID": 0,
- "id": 0,
- "name": "string",
- "parentID": 0
}
Rename and/or move a folder
bucket required | integer id of a bucket |
folderID required | integer id of the folder to update |
the new folder description
bucketID | integer <int64> |
id | integer <int64> |
name | string |
parentID | integer <int64> |
{- "bucketID": 0,
- "id": 0,
- "name": "string",
- "parentID": 0
}
bucket required | integer id of a bucket |
folder required | integer id of a folder |
[- {
- "bucketID": 0,
- "id": 0,
- "name": "string",
- "parentID": 0
}
]
Get a list of fileKeys for an organization or for a list of fileKey ids
organization_id required | integer id of organization to query buckets for |
filekey_id | integer ids of the filekeys that sould be returned |
filekey_name | integer name of the filekey that sould be returned |
[- {
- "id": 0,
- "name": "string",
- "organizationID": 0
}
]
Creates a new file key
file key to create
id | integer <int64> |
name | string |
organizationID | integer <int64> |
{- "id": 0,
- "name": "string",
- "organizationID": 0
}
{- "id": 0,
- "name": "string",
- "organizationID": 0
}