Resource: User
Message describing User object
| JSON representation |
|---|
{ "name": string, "createTime": string, "updateTime": string, "labels": { string: string, ... }, "username": string, "customerServiceAccount": string, "state": enum ( |
| Fields | |
|---|---|
name |
Identifier. User-friendly name via which User will be identified. projects/{project}/locations/{location}/servers/{server}/users/{user} |
createTime |
Output only. [Output only] Create time stamp Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
updateTime |
Output only. [Output only] Update time stamp Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
labels |
Optional. Labels as key value pairs An object containing a list of |
username |
Output only. [Output only] The username of the user. |
customerServiceAccount |
Required. Service account in customer project attached to this SFTP User. |
state |
Output only. Tracks user creation. |
userCredentials[] |
Required. User credential for the user. The maximum number of user credentials is 10. |
storageDirectoryMappings[] |
Required. Mapping of Cloud Storage buckets to directories where the user will land in the SFTP server. |
State
Tracks user creation.
| Enums | |
|---|---|
STATE_UNSPECIFIED |
State unspecified. |
CREATING |
User is being created. |
ACTIVE |
User is ready to be used. |
ERROR |
User creation failed. |
UPDATING |
The resource is being updated. |
DELETING |
The resource is being deleted. |
UserCredential
Message describing UserCredential object
| JSON representation |
|---|
{
"credentialName": string,
"credentialType": enum ( |
| Fields | |
|---|---|
credentialName |
Required. Name of the user credential. |
credentialType |
Required. Type of credential. |
sshPublicKeyBody |
Optional. SSH public key body in OpenSSH format. Example: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQ..." |
Type
Type of credential.
| Enums | |
|---|---|
TYPE_UNSPECIFIED |
Type unspecified. |
PUBLIC_KEY |
Public key credential. |
StorageDirectoryMapping
Mapping of backing Cloud Storage path to the directory where the user lands in the SFTP server. If directory is not specified, it'll default to '/'.
Eg 1 - (bucket_name: bucket, bucketPrefix: path1/path2, directory: /abc/def/username)
The user will land at /abcd/def/username, and the view there will match that of /bucket/path1/path2. The user will not be aware of Cloud Storage prefix '/bucket/path1' and there will be no such directory in the view.
Eg 2 - (bucket_name: bucket, bucketPrefix: path1/path2, directory: '')
The user will land at '/', and the view there will match that of /bucket/path1/path2. The user will not be aware of Cloud Storage prefix '/bucket/path1/path2' and there will be no such directory in the view.
| JSON representation |
|---|
{
"bucket": string,
"bucketPrefix": string,
"directory": string,
"permission": enum ( |
| Fields | |
|---|---|
bucket |
Required. Name of the bucket. |
bucketPrefix |
Optional. Prefix inside the bucket. |
directory |
Required. Directory where the user lands in the SFTP server. |
permission |
Required. Permission to the bucket. |
Permission
Tracks read/write access to the bucket.
| Enums | |
|---|---|
PERMISSION_UNSPECIFIED |
Permission unspecified. |
READ_ONLY |
Read only permission. |
READ_WRITE |
Read write permission. |
Methods |
|
|---|---|
|
Creates a new User in a given project and location and Server. |
|
Deletes a single User. |
|
Gets details of a single User. |
|
Lists Users in a given project and location. |
|
Updates the parameters of a single User. |