Endpoint
/v2/smb/shares/{ref}
GET
Retrieve the specified SMB share. Refer to the 'Modify SMB Share' method for a description of the returned fields.
Parameters
Name |
Description |
Required |
ref |
A unique identifier of the SMB share, either share ID or name |
Yes |
Response
Codes
Code |
Description |
200 |
Return value on success |
Schema
PUT
Modify an SMB share's options.
Parameters
Name |
Description |
Required |
ref |
A unique identifier of the SMB share, either share ID or name |
Yes |
allow-fs-path-create |
Specifies whether the file system path can be created if it does not already exist. |
No |
If-Match |
ETag for expected version |
No |
Request
Schema
Response
Codes
Code |
Description |
200 |
Return value on success |
Schema
DELETE
Delete an SMB share. Not undoable.
Parameters
Name |
Description |
Required |
ref |
A unique identifier of the SMB share, either share ID or name |
Yes |
If-Match |
ETag for expected version |
No |
Response
Codes
Code |
Description |
200 |
Return value on success |
PATCH
Modify select fields in an SMB share.
Parameters
Name |
Description |
Required |
ref |
A unique identifier of the SMB share, either share ID or name |
Yes |
allow-fs-path-create |
Specifies whether the file system path can be created if it does not already exist. |
No |
If-Match |
ETag for expected version |
No |
Request
Schema
Response
Codes
Code |
Description |
200 |
Return value on success |
Schema