- NAME
-
- gcloud vmware private-clouds logging-servers create - create a Google Cloud VMware Engine logging-server
- SYNOPSIS
-
-
gcloud vmware private-clouds logging-servers create
(LOGGING_SERVER
:--location
=LOCATION
--private-cloud
=PRIVATE_CLOUD
)--hostname
=HOSTNAME
--port
=PORT
--protocol
=PROTOCOL
--source-type
=SOURCE_TYPE
[--async
] [GCLOUD_WIDE_FLAG …
]
-
- DESCRIPTION
- Create a logging-server in a VMware Engine private cloud to forward VCSA or ESXI logs to it.
- EXAMPLES
-
To create a logging-server called
my-logging-server
in private cloudmy-private-cloud
, with source typeESXI
, host name192.168.0.30
, protocolUDP
and port514
, run:gcloud vmware private-clouds logging-servers create my-logging-server --location=us-west2-a --project=my-project --private-cloud=my-private-cloud --source-type=ESXI --hostname=192.168.0.30 --protocol=UDP --port=514
Or:
gcloud vmware private-clouds logging-servers create my-logging-server --private-cloud=my-private-cloud --source-type=ESXI --hostname=192.168.0.30 --protocol=UDP --port=514
In the second example, the project and location are taken from gcloud properties core/project and compute/zone.
- POSITIONAL ARGUMENTS
-
-
Logging Server resource - logging_server. 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
project
attribute:-
provide the argument
logging_server
on the command line with a fully specified name; -
provide the argument
--project
on the command line; -
set the property
core/project
.
This must be specified.
LOGGING_SERVER
-
ID of the Logging Server or fully qualified identifier for the Logging Server.
To set the
logging-server
attribute:-
provide the argument
logging_server
on the command line.
This positional argument must be specified if any of the other arguments in this group are specified.
-
provide the argument
--location
=LOCATION
-
Location of the private cloud or cluster.
To set the
location
attribute:-
provide the argument
logging_server
on the command line with a fully specified name; -
provide the argument
--location
on the command line; -
set the property
compute/zone
.
-
provide the argument
--private-cloud
=PRIVATE_CLOUD
-
VMware Engine private cloud.
To set the
private-cloud
attribute:-
provide the argument
logging_server
on the command line with a fully specified name; -
provide the argument
--private-cloud
on the command line.
-
provide the argument
-
provide the argument
-
Logging Server resource - logging_server. 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.
- REQUIRED FLAGS
-
--hostname
=HOSTNAME
- Fully-qualified domain name (FQDN) or IP Address of the logging server.
--port
=PORT
- Port number at which the logging server receives logs.
--protocol
=PROTOCOL
-
Defines possible protocols used to send logs to a logging server.
PROTOCOL
must be one of:UDP
,TCP
,TLS
,SSL
,RELP
. --source-type
=SOURCE_TYPE
-
The type of component that produces logs that will be forwarded to this logging
server.
SOURCE_TYPE
must be one of:VCSA
,ESXI
.
- OPTIONAL FLAGS
-
--async
-
Return immediately, without waiting for the operation in progress to complete.
The default is
True
. Enabled by default, use--no-async
to disable.
- 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
$ gcloud help
for details.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-30 UTC.