HEX
Server: Apache/2.4.65 (Ubuntu)
System: Linux ielts-store-v2 6.8.0-1036-gcp #38~22.04.1-Ubuntu SMP Thu Aug 14 01:19:18 UTC 2025 x86_64
User: root (0)
PHP: 7.2.34-54+ubuntu20.04.1+deb.sury.org+1
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
Upload Files
File: //snap/google-cloud-cli/394/help/man/man1/gcloud_beta_managed-kafka_connectors_create.1
.TH "GCLOUD_BETA_MANAGED\-KAFKA_CONNECTORS_CREATE" 1



.SH "NAME"
.HP
gcloud beta managed\-kafka connectors create \- create a Managed Service for Apache Kafka connector



.SH "SYNOPSIS"
.HP
\f5gcloud beta managed\-kafka connectors create\fR (\fICONNECTOR\fR\ :\ \fB\-\-connect\-cluster\fR=\fICONNECT_CLUSTER\fR\ \fB\-\-location\fR=\fILOCATION\fR) (\fB\-\-config\-file\fR=\fIJSON\fR|\fIYAML\fR|\fIFILE\fR\ |\ \fB\-\-configs\fR=[\fIKEY\fR=\fIVALUE\fR,...]) [\fB\-\-task\-restart\-max\-backoff\fR=\fITASK_RESTART_MAX_BACKOFF\fR\ \fB\-\-task\-restart\-min\-backoff\fR=\fITASK_RESTART_MIN_BACKOFF\fR] [\fIGCLOUD_WIDE_FLAG\ ...\fR]



.SH "DESCRIPTION"

\fB(BETA)\fR Create a Managed Service for Apache Kafka connector.



.SH "EXAMPLES"

To create a connector, run the following:

.RS 2m
$ gcloud beta managed\-kafka connectors create myconnector \e
    \-\-location=us\-central1 \-\-connect\-cluster=mycluster \e
    \-\-configs=connector.class="com.google.pubsub.kafka.source.CloudP\e
ubSubSourceConnector",cps.subscription="my\-subscription",... \e
    [\-\-task\-restart\-min\-backoff=60s] \e
    [\-\-task\-restart\-max\-backoff=30m] OR
$ gcloud beta managed\-kafka connectors create myconnector \e
    \-\-location=us\-central1 \-\-connect\-cluster=mycluster \e
    \-\-config\-file=my\-config\-file.yaml \e
    [\-\-task\-restart\-min\-backoff=60s] \e
    [\-\-task\-restart\-max\-backoff=30m]
.RE



.SH "POSITIONAL ARGUMENTS"

.RS 2m
.TP 2m

Connector resource \- Identifies the connector for which the command runs. The
arguments in this group can be used to specify the attributes of this resource.
(NOTE) Some attributes are not given arguments in this group but can be set in
other ways.

To set the \f5project\fR attribute:
.RS 2m
.IP "\(em" 2m
provide the argument \f5connector\fR on the command line with a fully specified
name;
.IP "\(em" 2m
provide the argument \f5\-\-project\fR on the command line;
.IP "\(em" 2m
set the property \f5core/project\fR.
.RE
.sp

This must be specified.


.RS 2m
.TP 2m
\fICONNECTOR\fR

ID of the connector or fully qualified identifier for the connector.

To set the \f5connector\fR attribute:
.RS 2m
.IP "\(bu" 2m
provide the argument \f5connector\fR on the command line.
.RE
.sp

This positional argument must be specified if any of the other arguments in this
group are specified.

.TP 2m
\fB\-\-connect\-cluster\fR=\fICONNECT_CLUSTER\fR

The connect cluster name.


To set the \f5connect\-cluster\fR attribute:
.RS 2m
.IP "\(bu" 2m
provide the argument \f5connector\fR on the command line with a fully specified
name;
.IP "\(bu" 2m
provide the argument \f5\-\-connect\-cluster\fR on the command line.
.RE
.sp

.TP 2m
\fB\-\-location\fR=\fILOCATION\fR

ID of the location of the Managed Service for Apache Kafka resource. See
https://cloud.google.com/managed\-service\-for\-apache\-kafka/docs/locations for
a list of supported locations.


To set the \f5location\fR attribute:
.RS 2m
.IP "\(bu" 2m
provide the argument \f5connector\fR on the command line with a fully specified
name;
.IP "\(bu" 2m
provide the argument \f5\-\-location\fR on the command line.
.RE
.sp


.RE
.RE
.sp

.SH "REQUIRED FLAGS"

.RS 2m
.TP 2m

Exactly one of these must be specified:


.RS 2m
.TP 2m
\fB\-\-config\-file\fR=\fIJSON\fR|\fIYAML\fR|\fIFILE\fR

The path to the JSON or YAML file containing the configuration that are
overridden from the connector defaults. This also supports inline JSON or YAML.
Sets \f5config_file\fR value.

\fBInput Example:\fR


.RS 2m
\-\-config\-file=string
.RE


\fBFile Example:\fR


.RS 2m
\-\-config\-file=path_to_file.(yaml|json)
.RE


.TP 2m
\fB\-\-configs\fR=[\fIKEY\fR=\fIVALUE\fR,...]

Configuration for the connector that are overridden from the connector defaults.
The key of the map is a Kafka topic property name, for example:
\f5cleanup.policy=compact\fR,\f5compression.type=producer\fR.


.RE
.RE
.sp

.SH "OPTIONAL FLAGS"

.RS 2m
.TP 2m
\fB\-\-task\-restart\-max\-backoff\fR=\fITASK_RESTART_MAX_BACKOFF\fR

The maximum amount of time to wait before retrying a failed task in seconds.
This sets an upper bound for the backoff delay. The default value is 1800s (30
minutes). See $ gcloud topic datetimes for information on duration formats.

.TP 2m
\fB\-\-task\-restart\-min\-backoff\fR=\fITASK_RESTART_MIN_BACKOFF\fR

The minimum amount of time to wait before retrying a failed task in seconds.
This sets a lower bound for the backoff delay. The default value is 60s. See $
gcloud topic datetimes for information on duration formats.


.RE
.sp

.SH "GCLOUD WIDE FLAGS"

These flags are available to all commands: \-\-access\-token\-file, \-\-account,
\-\-billing\-project, \-\-configuration, \-\-flags\-file, \-\-flatten,
\-\-format, \-\-help, \-\-impersonate\-service\-account, \-\-log\-http,
\-\-project, \-\-quiet, \-\-trace\-token, \-\-user\-output\-enabled,
\-\-verbosity.

Run \fB$ gcloud help\fR for details.



.SH "API REFERENCE"

This command uses the \fBmanagedkafka/v1\fR API. The full documentation for this
API can be found at:
https://cloud.google.com/managed\-service\-for\-apache\-kafka/docs



.SH "NOTES"

This command is currently in beta and might change without notice. These
variants are also available:

.RS 2m
$ gcloud managed\-kafka connectors create
.RE

.RS 2m
$ gcloud alpha managed\-kafka connectors create
.RE