EventRouter Service, gRPC: ConnectorService.Create
Creates a connector in the specified folder.
gRPC request
rpc Create (CreateConnectorRequest) returns (operation.Operation)
CreateConnectorRequest
{
"bus_id": "string",
"name": "string",
"description": "string",
"labels": "map<string, string>",
"source": {
// Includes only one of the fields `data_stream`, `message_queue`, `timer`
"data_stream": {
"database": "string",
"stream_name": "string",
"consumer": "string",
"service_account_id": "string"
},
"message_queue": {
"queue_arn": "string",
"service_account_id": "string",
"visibility_timeout": "google.protobuf.Duration",
"batch_size": "int64",
"polling_timeout": "google.protobuf.Duration"
},
"timer": {
"cron_expression": "string",
"time_zone": "string",
"payload": "string"
}
// end of the list of possible fields
},
"deletion_protection": "bool"
}
Field |
Description |
bus_id |
string Required field. ID of the bus to create a connector in. |
name |
string Name of the connector. |
description |
string Description of the connector. |
labels |
object (map<string, string>) Labels for the connector. |
source |
Source of the connector. |
deletion_protection |
bool Flag that disallow deletion of the connector. |
Source
Field |
Description |
data_stream |
Includes only one of the fields |
message_queue |
Includes only one of the fields |
timer |
Includes only one of the fields |
DataStream
Field |
Description |
database |
string Required field. Stream database. |
stream_name |
string Required field. Stream name, absolute or relative. |
consumer |
string Required field. Consumer name. |
service_account_id |
string Required field. Service account which has read permission on the stream. |
MessageQueue
Field |
Description |
queue_arn |
string Required field. Queue ARN. |
service_account_id |
string Required field. Service account which has read access to the queue. |
visibility_timeout |
Queue visibility timeout override. |
batch_size |
int64 Batch size for polling. |
polling_timeout |
Queue polling timeout. |
Timer
Field |
Description |
cron_expression |
string Required field. cron expression, with second precision |
time_zone |
string time zone, e.g. Europe/Moscow |
payload |
string payload to send to target |
operation.Operation
{
"id": "string",
"description": "string",
"created_at": "google.protobuf.Timestamp",
"created_by": "string",
"modified_at": "google.protobuf.Timestamp",
"done": "bool",
"metadata": {
"connector_id": "string",
"bus_id": "string"
},
// Includes only one of the fields `error`, `response`
"error": "google.rpc.Status",
"response": {
"id": "string",
"bus_id": "string",
"folder_id": "string",
"cloud_id": "string",
"created_at": "google.protobuf.Timestamp",
"name": "string",
"description": "string",
"labels": "map<string, string>",
"source": {
// Includes only one of the fields `data_stream`, `message_queue`, `timer`
"data_stream": {
"database": "string",
"stream_name": "string",
"consumer": "string",
"service_account_id": "string"
},
"message_queue": {
"queue_arn": "string",
"service_account_id": "string",
"visibility_timeout": "google.protobuf.Duration",
"batch_size": "int64",
"polling_timeout": "google.protobuf.Duration"
},
"timer": {
"cron_expression": "string",
"time_zone": "string",
"payload": "string"
}
// end of the list of possible fields
},
"deletion_protection": "bool",
"status": "Status"
}
// end of the list of possible fields
}
An Operation resource. For more information, see Operation.
Field |
Description |
id |
string ID of the operation. |
description |
string Description of the operation. 0-256 characters long. |
created_at |
Creation timestamp. |
created_by |
string ID of the user or service account who initiated the operation. |
modified_at |
The time when the Operation resource was last modified. |
done |
bool If the value is |
metadata |
Service-specific metadata associated with the operation. |
error |
The error result of the operation in case of failure or cancellation. Includes only one of the fields The operation result. |
response |
The normal response of the operation in case of success. Includes only one of the fields The operation result. |
CreateConnectorMetadata
Field |
Description |
connector_id |
string ID of the connector that is being created. |
bus_id |
string ID of the bus that the connector is created in. |
Connector
Field |
Description |
id |
string ID of the connector. |
bus_id |
string ID of the bus that the connector belongs to. |
folder_id |
string ID of the folder that the connector resides in. |
cloud_id |
string ID of the cloud that the connector resides in. |
created_at |
Creation timestamp. |
name |
string Name of the connector. |
description |
string Description of the connector. |
labels |
object (map<string, string>) Resource labels as |
source |
Source of the connector. |
deletion_protection |
bool Deletion protection. |
status |
enum Status Status of the connector.
|
Source
Field |
Description |
data_stream |
Includes only one of the fields |
message_queue |
Includes only one of the fields |
timer |
Includes only one of the fields |
DataStream
Field |
Description |
database |
string Required field. Stream database. |
stream_name |
string Required field. Stream name, absolute or relative. |
consumer |
string Required field. Consumer name. |
service_account_id |
string Required field. Service account which has read permission on the stream. |
MessageQueue
Field |
Description |
queue_arn |
string Required field. Queue ARN. |
service_account_id |
string Required field. Service account which has read access to the queue. |
visibility_timeout |
Queue visibility timeout override. |
batch_size |
int64 Batch size for polling. |
polling_timeout |
Queue polling timeout. |
Timer
Field |
Description |
cron_expression |
string Required field. cron expression, with second precision |
time_zone |
string time zone, e.g. Europe/Moscow |
payload |
string payload to send to target |