This command creates a view, which is a resource location exposed to data clients. A view can be exposed to NFSv3, NFSv4.1 or SMB clients or to both NFSv3 and SMB clients or to both NFSv3 and NFSv4 clients. Also, a tabular data view can be exposed to third-party database query engines.
view create --path PATH --protocols PROTOCOLS --policy-id ID [--alias ALIAS] [--bucket BUCKET] [--bucket-owner BUCKET_OWNER] [--bucket-creators BUCKET_CREATORS] [--bucket-creators-groups BUCKET_CREATORS_GROUPS] [--create-dir] [--enable-live-monitoring] [--enable-s3-unverified-lookup] [--qos-policy-id QOS_POLICY_ID] [--share SHARE] [--s3-versioning] [--s3-locks] [--s3-locks-retention-period S3_LOCKS_RETENTION_PERIOD] [--s3-locks-retention-mode NONE|GOVERNANCE|COMPLIANCE] [--tenant-id TENANT_ID] [--allow-s3-anonymous-access]|[--block-s3-anonymous-access] [--s3-bucket-ownership-rule BucketOwnerEnforced|BucketOwnerPreferred|ObjectWriter|None]
|
Specifies a path to a file system directory to be exposed to clients. It can be a directory that was already created by a client inside an exposed parent directory, or it can be a new directory, in which case you must specify the --create_dir option to create the directory. Example: --path /a/b/c |
|
Specifies which view policy to apply. Specify |
|
Specifies which protocol(s) the view will be exposed to. Specify PROTOCOLS as a string value for a single protocol or a comma separated list of strings to enable multiple protocols. Valid string values are:
Examples:
|
|
For NFSv3 exports, specifies an alternative shorter name for the path that can be used alternatively when mounting. Optional and relevant only if the view is exposed to NFS. An alias must begin with a forward slash ("/") and must consist of only ASCII characters. |
|
Specifies the name of an S3 bucket. Required if |
|
Specifies a user to be the bucket owner. Required if |
|
Relevant if Specify |
|
Relevant if Specify CautionTake extra care not to duplicate bucket creators through groups: If you specify a group as a bucket creator group in one view and you also specify a user who belongs to that group as a bucket creator user in another view, view creation will not fail. Yet, there is a conflict between the two configurations and the selection of a view for configuring the user's buckets is not predictable. |
|
Creates a directory at the specified path. Include this option of the directory does not already exist. |
|
Enables live monitoring on the view. Live monitoring can be enabled for up to ten views at one time and can also be enabled any time after view creation using view modify. Analytics data for views is polled every 5 minutes by default and every 10 seconds with live monitoring. |
|
Associates a QoS policy with the view. Specify the QoS policy by its ID. To list QoS policy definitions, use qospolicy list. QoS policies are supported for NFSv3, NFSv4.1 and SMB. |
|
Specifies the SMB share name. Required if the view is exposed to SMB. The name cannot include the following characters: /\:|<>*?" |
|
Enables object versioning on the bucket if |
|
Enables S3 object locking on the view bucket, if |
|
Sets a default retention mode for objects in the bucket. Possible values:
|
|
Sets a default retention period for objects in the bucket, if S3 object locking is enabled. If set, object versions that are placed in the bucket are automatically protected with a retention lock with the specified retention period, unless Specify S3_LOCKS_RETENTION_PERIOD as an integer followed by a symbol. For example: 1y for one year. |
|
Specifies a non-default tenant to associate with the view. |
|
If the view has S3 Bucket or S3 Endpoint enabled, include this option to allow anonymous S3 access to the view's S3 bucket. If allowed, anonymous requests are granted provided that the object ACL grants access to the All Users group (in S3 Native security flavor) or the permission mode bits on the requested file and directory path grant access permission to "others" (in NFS security flavor). |
|
Blocks anonymous S3 access to the view's S3 bucket, if applicable. This is the default setting. |
|
Sets one of the following S3 Object Ownership rules:
|
This example creates a view of the pre-existing /dev
directory, with an NFS export, using the default view policy.
vcli: admin> view create --path /dev --protocols NFS
This example creates a multiprotocol view of a directory at the /home/users/devteam
path using a non default view policy.
vcli: admin> view create --path /home/users/devteam --protocols NFS,SMB --alias /devteam --share devteamusers --policy-id 2 --create-dir
Comments
0 comments
Article is closed for comments.