Get
Returns the specified bus. To get the list of all available connectors, make a List request.
- TypeScript
- Python
import { cloudApi, serviceClients, Session } from "@yandex-cloud/nodejs-sdk";
const GetConnectorRequest =
cloudApi.mdb.kafka_connector_service.GetConnectorRequest;
(async () => {
const authToken = process.env["YC_OAUTH_TOKEN"];
const session = new Session({ oauthToken: authToken });
const client = session.client(serviceClients.ConnectorServiceClient);
const result = await client.get(
GetConnectorRequest.fromPartial({
clusterId: "clusterId",
connectorName: "connectorName",
})
);
console.log(result);
})();
import os
import grpc
import yandexcloud
from yandex.cloud.mdb.kafka.v1.connector_service_pb2_grpc import ConnectorServiceStub
from yandex.cloud.mdb.kafka.v1.connector_service_pb2 import GetConnectorRequest
token = os.getenv("YC_OAUTH_TOKEN")
sdk = yandexcloud.SDK(token=token)
service = sdk.client(ConnectorServiceStub)
response = service.Get(GetConnectorRequest(cluster_id="clusterId", connector_name="connectorName"))
print(response)
GetConnectorRequest
connectorId
: string
ID of the connector to return.
Connector
Status
Status of the connector.
STATUS_UNSPECIFIED
Status of the connector.
RUNNING
Status of the connector.
STOPPED
disabled by user
RESOURCE_NOT_FOUND
source does not exist
PERMISSION_DENIED
service account does not have read permission on source
SUBJECT_NOT_FOUND
service account not found
id
: string
ID of the connector.
busId
: string
ID of the bus that the connector belongs to.
folderId
: string
ID of the folder that the connector resides in.
cloudId
: string
ID of the cloud that the connector resides in.
createdAt
: google.protobuf.Timestamp
Creation timestamp.
name
: string
Name of the connector.
description
: string
Description of the connector.
labels
: string
Resource labels as key:value
pairs.
source
: Source
Source of the connector.
deletionProtection
: bool
Deletion protection.
status
: Status
Status of the connector.
Source
One of source
dataStream
: DataStream
messageQueue
: MessageQueue
DataStream
database
: string
Stream database. example: /ru-central1/aoegtvhtp8ob****/cc8004q4lbo6****
streamName
: string
Stream name, absolute or relative.
consumer
: string
Consumer name.
serviceAccountId
: string
Service account which has read permission on the stream.
MessageQueue
queueArn
: string
Queue ARN. Example: yrn:yc:ymq:ru-central1:aoe***:test
serviceAccountId
: string
Service account which has read access to the queue.
visibilityTimeout
: google.protobuf.Duration
Queue visibility timeout override.
batchSize
: int64
Batch size for polling.
pollingTimeout
: google.protobuf.Duration
Queue polling timeout.