Index
CloudFtp(interface)CreateServerRequest(message)CreateUserRequest(message)DeleteServerRequest(message)DeleteUserRequest(message)ExternalServerConfig(message)GetServerRequest(message)GetUserRequest(message)InternalServerConfig(message)InternalServerConfig.AllowedConsumer(message)InternalServerConfig.DeniedConsumer(message)InternalServerConfig.PscEndpoint(message)ListServersRequest(message)ListServersResponse(message)ListUsersRequest(message)ListUsersResponse(message)OperationMetadata(message)Server(message)Server.AccessType(enum)Server.State(enum)ServerCredential(message)ServerView(enum)StartServerRequest(message)StopServerRequest(message)StorageDirectoryMapping(message)StorageDirectoryMapping.Permission(enum)UpdateServerRequest(message)UpdateUserRequest(message)User(message)User.State(enum)UserCredential(message)UserCredential.Type(enum)UserView(enum)
CloudFtp
Service describing handlers for resources
| CreateServer |
|---|
|
Creates a new Server in a given project and location.
|
| CreateUser |
|---|
|
Creates a new User in a given project and location and Server.
|
| DeleteServer |
|---|
|
Deletes a single Server.
|
| DeleteUser |
|---|
|
Deletes a single User.
|
| GetServer |
|---|
|
Gets details of a single Server.
|
| GetUser |
|---|
|
Gets details of a single User.
|
| ListServers |
|---|
|
Lists Servers in a given project and location.
|
| ListUsers |
|---|
|
Lists Users in a given project and location.
|
| StartServer |
|---|
|
Starts a stopping/stopped Server.
|
| StopServer |
|---|
|
Stops an active Server.
|
| UpdateServer |
|---|
|
Updates the parameters of a single Server.
|
| UpdateUser |
|---|
|
Updates the parameters of a single User.
|
CreateServerRequest
Message for creating a Server
| Fields | |
|---|---|
parent |
Required. Value for parent. |
server_id |
Required. A unique ID for the server. Must start with a lowercase letter, and end with a lowercase letter or number. Can contain lowercase letters, numbers, and hyphens. Maximum length is 30 characters. |
server |
Required. The resource being created |
request_id |
Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). |
CreateUserRequest
Message for creating a User
| Fields | |
|---|---|
parent |
Required. Value for parent. |
user_id |
Required. A unique user ID for the SFTP user. The user ID must start with a lowercase letter and can include lowercase letters, numbers, or hyphens. |
user |
Required. The resource being created |
request_id |
Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). |
DeleteServerRequest
Message for deleting a Server Note: Cascading delete is not supported. Any nested User resources under this Server must be deleted before the Server itself can be deleted. Attempting to delete a Server with active User resources will result in an error.
| Fields | |
|---|---|
name |
Required. Name of the resource |
DeleteUserRequest
Message for deleting a User
| Fields | |
|---|---|
name |
Required. Name of the resource |
force |
Optional. If set to true, the request will force the deletion of the User. |
ExternalServerConfig
Configuration for external server.
| Fields | |
|---|---|
ip_address |
Output only. IP address of the LB via which clients will connect. |
allowed_cidr_blocks[] |
Optional. List of CIDR blocks that are allowed to access the Server. A CIDR range consists of an IP Address and a prefix length to construct the subnet mask. By default, the prefix length is 32 (i.e. matches a single IP address). For now, only IPV4 addresses are supported. Examples: "203.0.113.0/24" - matches with the IP addresses in the range 203.0.113.0 - 203.0.113.255. "0.0.0.0/0" - matches against any IP address. This field must contain at least one entry if the access type is EXTERNAL. The number of allowed CIDR blocks cannot exceed 500. Example: 192.168.0.0/16 |
GetServerRequest
Message for getting a Server
| Fields | |
|---|---|
name |
Required. Name of the resource |
view |
Optional. The view of the Server resource to return. |
GetUserRequest
Message for getting a User
| Fields | |
|---|---|
name |
Required. Name of the resource |
view |
Optional. The view of the User resource to return. |
InternalServerConfig
Configuration for private server accessible via PSC.
| Fields | |
|---|---|
service_attachment |
Output only. The resource name of the service attachment. Format: |
consumer_accept_list[] |
Required. A list of projects that are permitted to connect. At least one project is required in the allow list. |
consumer_reject_list[] |
Optional. A list of projects that are denied connection. Format: "projects/sample_project_id" or "projects/1234567890" Projects in this list will be denied access, even if they are included in the |
psc_endpoints[] |
Output only. Details of endpoints created by the customer. |
AllowedConsumer
A consumer project or network that is permitted to connect to the server via PSC.
| Fields | |
|---|---|
connection_limit |
Required. The connection limit for the consumer. Value must be greater than 0. |
Union field consumer_type. Required. Specifies the type of consumer. consumer_type can be only one of the following: |
|
project |
The project ID or number of the consumer project. Must be in the format: |
DeniedConsumer
A consumer project or network that is denied to connect to the server via PSC.
| Fields | |
|---|---|
Union field consumer_type. Required. Specifies the type of consumer. consumer_type can be only one of the following: |
|
project |
The project ID or number of the consumer project. Must be in the format: |
PscEndpoint
Details of PSC endpoint created by customer.
| Fields | |
|---|---|
endpoint |
Output only. This is a Resource name for Private Service Connect endpoint. Format: |
network |
Output only. The consumer network. Format: |
status |
Output only. The status of the connected endpoint. |
ListServersRequest
Message for requesting list of Servers
| Fields | |
|---|---|
parent |
Required. Parent value for ListServersRequest |
page_size |
Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default. |
page_token |
Optional. A token identifying a page of results the server should return. |
filter |
Optional. Filtering results |
order_by |
Optional. Hint for how to order the results |
view |
Optional. The view of the Server resource to return. |
ListServersResponse
Message for response to listing Servers
| Fields | |
|---|---|
servers[] |
The list of Server |
next_page_token |
A token identifying a page of results the server should return. |
unreachable[] |
Unordered list. Locations that could not be reached. |
ListUsersRequest
Message for requesting list of Users
| Fields | |
|---|---|
parent |
Required. Parent value for ListUsersRequest |
page_size |
Optional. Requested page size. User may return fewer items than requested. The maximum value is 1000; The default value is 50 if the field is omitted (or set to 0). |
page_token |
Optional. A token identifying a page of results the user should return. |
filter |
Optional. Filtering results |
order_by |
Optional. Hint for how to order the results |
view |
Optional. The view of the User resource to return. |
ListUsersResponse
Message for response to listing Users
| Fields | |
|---|---|
users[] |
The list of User |
next_page_token |
A token identifying a page of results the user should return. |
unreachable[] |
Unordered list. Locations that could not be reached. |
OperationMetadata
Represents the metadata of the long-running operation.
| Fields | |
|---|---|
create_time |
Output only. The time the operation was created. |
end_time |
Output only. The time the operation finished running. |
target |
Output only. Server-defined resource path for the target of the operation. |
verb |
Output only. Name of the verb executed by the operation. |
status_message |
Output only. Human-readable status of the operation, if any. |
requested_cancellation |
Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have |
api_version |
Output only. API version used to start the operation. |
Server
Message describing Server object
| Fields | |
|---|---|
name |
Identifier. name of resource |
create_time |
Output only. [Output only] Create time stamp |
update_time |
Output only. [Output only] Update time stamp |
labels |
Optional. Labels as key value pairs |
display_name |
Optional. Display name of the Server |
access_type |
Required. The access type of the Server. |
state |
Output only. The state of the server. |
google_managed_server_credential |
Output only. Credentials of the FTP Server. |
service_agent |
Output only. Service agent used to access the customer bucket. |
Union field access_config. Configuration for server access. If this is set, it must match the value in the access_type field. access_config can be only one of the following: |
|
external_config |
Configuration for external access. |
internal_config |
Configuration for internal access. |
AccessType
The access type of the Server.
| Enums | |
|---|---|
ACCESS_TYPE_UNSPECIFIED |
Default value. This value is unused. |
EXTERNAL |
Server is assigned a public IP. |
INTERNAL |
Server is assigned an internal IP. |
State
Tracks Server status.
| Enums | |
|---|---|
STATE_UNSPECIFIED |
Default value. This value is unused. |
CREATING |
Server is being created. |
STARTING |
Server is starting. |
ACTIVE |
Server is ready to be used. |
STOPPING |
Server is stopping. |
STOPPED |
Server is stopped. |
DELETING |
Server is being deleted. |
ERROR |
Server is in error state. |
UPDATING |
Server is being updated. |
ServerCredential
Represents credentials of an FTP Server.
| Fields | |
|---|---|
fingerprint |
Output only. The fingerprint is a hash of the public key, and is displayed when clients access the server for the first time to verify the server's identity. |
asymmetric_algorithm |
Output only. Asymmetric algorithm used by the public key. Possible values (can be expanded in future): - ssh-ed25519 |
ServerView
View for Server resource.
| Enums | |
|---|---|
SERVER_VIEW_UNSPECIFIED |
Default value. Equivalent to SERVER_VIEW_BASIC. |
SERVER_VIEW_BASIC |
Basic view. Excludes heavy configurations (internal_config, external_config, google_managed_server_credential). |
SERVER_VIEW_FULL |
Full view. Includes all fields. |
StartServerRequest
Request message for starting a Server.
| Fields | |
|---|---|
name |
Required. Name of the resource Format: |
StopServerRequest
Request message for stopping a Server.
| Fields | |
|---|---|
name |
Required. Name of the resource. Format: |
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, bucket_prefix: 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, bucket_prefix: 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.
| Fields | |
|---|---|
bucket |
Required. Name of the bucket. |
bucket_prefix |
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. |
UpdateServerRequest
Message for updating a Server
| Fields | |
|---|---|
update_mask |
Optional. Field mask is used to specify the fields to be overwritten in the Server resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields present in the request will be overwritten. |
server |
Required. The resource being updated |
request_id |
Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). |
UpdateUserRequest
Message for updating a User
| Fields | |
|---|---|
update_mask |
Optional. Field mask is used to specify the fields to be overwritten in the User resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields present in the request will be overwritten. |
user |
Required. The resource being updated |
User
Message describing User object
| Fields | |
|---|---|
name |
Identifier. User-friendly name via which User will be identified. projects/{project}/locations/{location}/servers/{server}/users/{user} |
create_time |
Output only. [Output only] Create time stamp |
update_time |
Output only. [Output only] Update time stamp |
labels |
Optional. Labels as key value pairs |
username |
Output only. [Output only] The username of the user. |
customer_service_account |
Required. Service account in customer project attached to this SFTP User. |
state |
Output only. Tracks user creation. |
user_credentials[] |
Required. User credential for the user. The maximum number of user credentials is 10. |
storage_directory_mappings[] |
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
| Fields | |
|---|---|
credential_name |
Required. Name of the user credential. |
credential_type |
Required. Type of credential. |
ssh_public_key_body |
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. |
UserView
View for User resource.
| Enums | |
|---|---|
USER_VIEW_UNSPECIFIED |
Default value. Equivalent to USER_VIEW_BASIC. |
USER_VIEW_BASIC |
Basic view. Excludes heavy configurations (user_credentials, storage_directory_mappings). |
USER_VIEW_FULL |
Full view. Includes all fields. |