AppKeyList Event
Fires once for each application key returned when listing application keys.
Syntax
ANSI (Cross Platform) virtual int FireAppKeyList(BackblazeB2AppKeyListEventParams *e);
typedef struct {
const char *KeyId;
const char *KeyName;
const char *Capabilities;
const char *AllowedBucketId;
const char *AllowedPrefix;
int64 ExpirationTime; int reserved; } BackblazeB2AppKeyListEventParams; Unicode (Windows) virtual INT FireAppKeyList(BackblazeB2AppKeyListEventParams *e);
typedef struct {
LPCWSTR KeyId;
LPCWSTR KeyName;
LPCWSTR Capabilities;
LPCWSTR AllowedBucketId;
LPCWSTR AllowedPrefix;
LONG64 ExpirationTime; INT reserved; } BackblazeB2AppKeyListEventParams;
- (void)onAppKeyList:(NSString*)keyId :(NSString*)keyName :(NSString*)capabilities :(NSString*)allowedBucketId :(NSString*)allowedPrefix :(long long)expirationTime;
#define EID_BACKBLAZEB2_APPKEYLIST 1 virtual INT IPWORKSCLOUD_CALL FireAppKeyList(LPSTR &lpszKeyId, LPSTR &lpszKeyName, LPSTR &lpszCapabilities, LPSTR &lpszAllowedBucketId, LPSTR &lpszAllowedPrefix, LONG64 &lExpirationTime);
Remarks
This event fires once for each application key returned when ListAppKeys is called.
KeyId reflects the unique Id of the application key.
KeyName reflects the name that was given to the application key when it was created.
Capabilities reflects the capabilities that the application key has. It is formatted as a comma-separated list of one or more of the following:
Capability String | Related Methods |
deleteBuckets | DeleteBucket |
deleteFiles | DeleteFile, DeleteFileVersion |
deleteKeys | DeleteAppKey |
listBuckets | GetBucketInfo, ListBuckets |
listFiles | DeleteFile, ListFiles, ListFileVersions, ListMultipartUploads |
listKeys | ListAppKeys |
readFiles | CopyFile, CopyPart, DownloadFile, DownloadFileById, GetFileInfo |
shareFiles | GetDownloadAuthToken |
writeBuckets | CreateBucket, UpdateBucket |
writeFiles | AbortMultipartUpload, CompleteMultipartUpload, CopyFile, CopyPart, HideFile, ListParts, StartMultipartUpload, UploadFile, UploadPart |
writeKeys | CreateAppKey |
AllowedBucketId reflects the Id of the bucket that the application key is restricted to. It will be empty if the application key is not restricted to any specific bucket.
AllowedPrefix reflects the file name prefix that the application key is restricted to. It will be empty if the application key is not restricted to a specific file name prefix.
ExpirationTime reflects the expiration time of the application key, in milliseconds relative to the Unix epoch. It will be -1 if the application key does not expire.