Change the default password of admin user
> user = Api::V2::User.all.where("username = 'admin'")
=> #<ActiveRecord::Relation [#<Api::V2::User id: 1, user_id: 1032, group_id: nil,
is_active: 1, is_admin: true, username: "admin", email: "nodeum@localhost",
key_id: 0, vector: "no-cipher", created_at: "2019-12-13...
> user.update(password: 'newpassword')
=> [#<Api::V2::User email: "nodeum@localhost", id: 1, user_id: 1032, group_id: nil,
is_active: 1, is_admin: true, username: "admin", key_id: 0, vector: "no-cipher",
created_at: "2019-12-13 11:46:30.000000000 +0000", updated_at: "2023-03-23
15:56:21.000000000 +0000", provider: nil, uid: nil>]
Create a new ‘Mounted File System connector’
> nas = Api::V2::NAS.create!(
name: "...",
host: "...",
# :undefined :smb_v1 :smb_v2_1 :smb_v3 :nfs_v3 :nfs_v4 :storenext_v5
type: :undefined,
)
Create a new ‘Swift connector’
> cloud = Api::V2::CloudConnector.create!(
name: "...",
url: "...",
# :undefined :generic_s3 :amazon_aws_s3 :cloudian_hyperstore :scality_ring
:dell_emc_ecs :azure :google_cloud_storage :openstack_swift :wasabi
:quantum_activescale :datacore_swarm
provider: :openstack_swift,
region: "...",
access_key: "...",
secret_key: "...",
options: "...",
)