Objects
Object storage architecture
Object storage is a storage architecture that manages data in a flat namespace of individual objects. The object storage system is self-contained, with metadata for each object stored with the object. Object stores can contain a massive amount of unstructured data.
Before you begin
To create an object filesystem with the S1 system, you must:
- Create at least one floating IP.
- Create at least one access key.
Creating access keys
To create an access key, use the applications objects access_keys create
command. You must create an access key before you can use an object filesystem (OFS).
Usage
applications objects access_keys create <accessKey> --secretKey=<secretKey> --role=<objectPermissions>
Options
Options and arguments | Description |
---|---|
<accessKey> |
Specify the name of the key. Replace the positional argument <accessKey> with s1: and append it with a name of your choice containing at least five characters. |
--secretKey=<secretKey> |
Create a master access key for all the objects. Replace <secretKey> with your chosen password. Your password must be at least eight characters long. |
--role=<objectPermissions> |
Grant a user with permissions. Replace <objectPermissions> with either Admin or Regular (Regular grants read and write privileges). |
Examples
- To create access key
s1:Abraham
with secrete keypwd123456
and roleAdmin
; run:applications objects access_keys create s1:Abraham --secretKey pwd123456 --role Admin
Listing access keys
To list all access keys, use the applications objects access_keys list
command.
Usage
applications objects access_keys list [--accessKey=<text> --showSecretKeys]
Options
Options and arguments | Description |
---|---|
--accessKey=<text> |
To list only results for a specific access key, replace <text> with the name of the access key. |
--showSecretKeys |
Show secret keys. |
Examples
-
To list all access keys, run:
applications objects access_keys list
- To list a specific access key and display its secret key, run:
applications objects access_keys list --accessKey s1:object01-admin --showSecretKeys
Editing access keys
You can edit the access key using the application access_keys edit
command.
Usage
applications objects access_keys edit <accessKey> [--newAccessKey=<accessKey> --secretKey=<secretKey> --role=<objectPermissions>] [--force]
Options
Options and arguments | Description |
---|---|
<accessKey> |
Specify the access key you want to delete. Replace the positional argument <accessKey> with the existing access key name you want to delete. |
--newAccessKey=<accessKey> |
To rename the access key. Replace the positional argument <accessKey> with s1: and append it with a name of your choice with at least five characters. |
--secretKey=<secretKey> |
To create a master access key for all the objects. Replace <secretKey> with your chosen password. Your password must be at least eight characters long. |
--role=<objectPermissions> |
To grant the user with permissions. Replace <objectPermissions> with either Admin or Regular (Regular user grants read and write privileges). |
--force |
To force editing the access key, even though it might be associated with an existing object filesystem. |
Examples
-
To change access key name
s1:Abraham
tos1:Jacob
; change password frompwd123456
topwd654321
, and restrict his permission access toRegular
; and to force the edit, run:applications objects access_keys edit s1:Abraham --newAccessKey s1:Jacob --secretKey pwd654321 --role Regular --force
Deleting access keys
You can delete an access key using the applications objects access_keys delete
command.
Usage
applications objects access_keys delete <accessKey>
Options
Options and arguments | Description |
---|---|
<accessKey> |
Specify the name of the access key you want to delete. Replace <accessKey> with the existing access key you want to delete. |
Examples
-
To delete access key
s1:Jacob
; runapplications objects access_keys delete s1:Jacob
Creating an object store
To create an object storage file system on a volume, use the applications objects stores create
command.
Usage
applications objects stores create --application=<app_name> --volume=<vol_name> --floatingIp=<name> --port=<port> --accessKeys=<text…> [--enableUseSsl]
Options
Options and arguments | Description |
---|---|
--application=<app_name> |
Specify the app instance of the volume. Replace <app_name> with the name of the application instance name. |
--volume=<vol_name> |
Specify the volume where the object file system is to create. Replace <vol_name> with the name of the volume. |
--floatingIp=<name> |
Specify the floating IP which will be used for this object. Replace <name> with the floating IP name. |
--port=<port> |
Specify the TCP port for the object storage file system. |
--accessKeys=<text…> |
Grant users with the specified access-keys permission to use the object filesystem. Replace <text…> with a list of access keys. |
--enableUseSsl |
To enable communication through a secure socket layer (SSL). |
Remark:
- The access key option allows access from multiple users, where each of the users has its key.
Example
-
To create an object file system on volume
vol1
(mapped to application instancesales
) with floating IP nameconnect1
on port 8088 over SSL communication with access keyss1:Abraham
ands1:Jacob
, run:applications object stores create --application sales --volume vol1 --floatingIp connect1 --port 8088 --accessKeys s1:Abraham s1:Jacob --enableusessl
Listing object stores
You can list all object storage using the applications objects stores list
command.
Usage
applications objects stores list [(--application=<app_name> --volume=<vol_name>)]
Options
Options and arguments | Description |
---|---|
--application=<app_name> |
To specify the app instance of the volume, replace <app_name> with the name of the application instance name. |
--volume=<vol_name> |
To specify the volume from where the object file system will be listed, replace <vol_name> with the name of the volume. |
Examples
-
To list all object file systems, run:
applications objects stores list
-
To list all objects file systems on a volume
vol1
mapped to an application instancesales
, runapplications objects stores list --application sales --volume vol1
Editing object stores
To edit the object filesystem, use the applications objects stores edit
command.
Usage
applications objects stores edit --application=<app_name> --volume=<vol_name> [--floatingIp=<name> --port=<port> --accessKeys=<text…> --enableUseSsl | --disableUseSsl]
Options
Options and arguments | Description |
---|---|
--application=<app_name> |
Specify the app instance of the volume. Replace <app_name> with the name of the application instance name. |
--volume=<vol_name> |
Specify the volume where the object file system is to create. Replace <vol_name> with the name of the volume. |
--floatingIp=<name> |
To specify the floating IP which will be used for this object. Replace <name> with the floating IP name. |
--port=<port> |
To specify the TCP port for the object storage file system. |
--accessKeys=<text…> |
To edit the granted user list. Replace <text…> with a list of access keys. |
--enableUseSsl |
To enable communication through a secure socket layer (SSL). |
--disableUseSsl |
To disable communication through a secure socket layer (SSL). |
Examples
-
Suppose that we have an object filesystem on volume
vol1
(mapped to application instancesales
) with floating IP nameconnect1
on port 8088 over SSL communication with access keyss1:Isaac s1:Jacob
. To disable SSL communication, run:applications objects stores edit --application sales --volume vol1 --disableUseSsl
-
Suppose that we have an object filesystem on volume
vol1
(mapped to application instancesales
) with floating IP nameconnect1
on port 8088 over SSL communication with access keyss1:Isaac s1:Jacob
. To rewrite the list of access keys replacing it with the lists1:David s1:Jonathan
; to change floating IP name tomycel
; and to change the port to 9090, run:application objects stores edit --application sales --volume vol1 --floatingIp mycel --port 9090 --accessKeys s1:David s1:Jonathan
Deleting object stores
To delete an object filesystem, use the applications objects stores delete
command.
Usage
applications objects stores delete --application=<name> --volume=<name>
Options
Options and arguments | Description |
---|---|
--application=<app_name> |
Specify the app instance of the volume. Replace <app_name> with the name of the application instance name. |
--volume=<vol_name> |
Specify the volume where the object store that you want to delete resides. Replace <vol_name> with the name of the volume. |
Example
- To delete all object filesystems on volume
vol1
; mapped to application instancesales
; run:applications objects stores delete --application sales --volume vol1
Adding access keys to object stores
Use this command when you want to add existing access keys to the Object filesystems (OFSs) in a volume. To add access keys that already exist to an object, use the applications objects stores access_keys add
command.
Usage
applications objects stores access_keys add --application=<app_name> --volume=<vol_name> --accessKeys=<text…>
Options
Options and arguments | Description |
---|---|
--application=<app_name> |
Specify the app instance of the volume. Replace <app_name> with the name of the application instance name. |
--volume=<vol_name> |
Specify the volume of the OFSs. Replace <vol_name> with the name of the volume. |
--accessKeys=<text…> |
Add object keys of the OFSs. Replace <text…> with a list of existing access keys. |
Examples
-
To add new access keys
s1:Abraham s1:Isaac s1:Jacob
to all object filesystems on volumevol1
that mapped to application instancesales
, run:applications objects stores access_keys add --application sales --volume vol1 --accessKeys s1:Abraham s1:Isaac s1:Jacob
Removing access keys from object stores
Use this command to restrict users from using the object filesystems of a volume. To delete access keys from volume objects, use the applications objects stores access_keys delete
command.
Usage
applications objects stores access_keys delete --application=<app_name> --volume=<vol_name> --accessKeys=<text…>
Options
Options and arguments | Description |
---|---|
--application=<app_name> |
Specify the app instance of the volume. Replace <app_name> with the name of the app instance name. |
--volume=<vol_name> |
Specify the volume of the OFSs. Replace <vol_name> with the name of the volume. |
--accessKeys=<text…> |
Delete the object keys of the OFSs. Replace <text…> with a list of access keys. |
Examples
-
To delete access keys
s1:Abraham
ands1:Isaac
from all object sotres on a volumevol1
( mapped to application instancesales
), run:applications objects stores access_keys delete --application sales --volume vol1 --accessKeys s1:Abraham s1:Isaac
No Comments