Skip to main content

logging_servers

Creates, updates, deletes, gets or lists a logging_servers resource.

Overview

Namelogging_servers
TypeResource
Idgoogle.vmwareengine.logging_servers

Fields

NameDatatypeDescription
namestringOutput only. The resource name of this logging server. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/us-central1-a/privateClouds/my-cloud/loggingServers/my-logging-server
createTimestringOutput only. Creation time of this resource.
hostnamestringRequired. Fully-qualified domain name (FQDN) or IP Address of the logging server.
portintegerRequired. Port number at which the logging server receives logs.
protocolstringRequired. Protocol used by vCenter to send logs to a logging server.
sourceTypestringRequired. The type of component that produces logs that will be forwarded to this logging server.
uidstringOutput only. System-generated unique identifier for the resource.
updateTimestringOutput only. Last update time of this resource.

Methods

NameAccessible byRequired ParamsDescription
getSELECTlocationsId, loggingServersId, privateCloudsId, projectsIdGets details of a logging server.
listSELECTlocationsId, privateCloudsId, projectsIdLists logging servers configured for a given private cloud.
createINSERTlocationsId, privateCloudsId, projectsIdCreate a new logging server for a given private cloud.
deleteDELETElocationsId, loggingServersId, privateCloudsId, projectsIdDeletes a single logging server.
patchUPDATElocationsId, loggingServersId, privateCloudsId, projectsIdUpdates the parameters of a single logging server. Only fields specified in update_mask are applied.

SELECT examples

Lists logging servers configured for a given private cloud.

SELECT
name,
createTime,
hostname,
port,
protocol,
sourceType,
uid,
updateTime
FROM google.vmwareengine.logging_servers
WHERE locationsId = '{{ locationsId }}'
AND privateCloudsId = '{{ privateCloudsId }}'
AND projectsId = '{{ projectsId }}';

INSERT example

Use the following StackQL query and manifest file to create a new logging_servers resource.

/*+ create */
INSERT INTO google.vmwareengine.logging_servers (
locationsId,
privateCloudsId,
projectsId,
hostname,
port,
protocol,
sourceType
)
SELECT
'{{ locationsId }}',
'{{ privateCloudsId }}',
'{{ projectsId }}',
'{{ hostname }}',
'{{ port }}',
'{{ protocol }}',
'{{ sourceType }}'
;

UPDATE example

Updates a logging_servers resource.

/*+ update */
UPDATE google.vmwareengine.logging_servers
SET
hostname = '{{ hostname }}',
port = '{{ port }}',
protocol = '{{ protocol }}',
sourceType = '{{ sourceType }}'
WHERE
locationsId = '{{ locationsId }}'
AND loggingServersId = '{{ loggingServersId }}'
AND privateCloudsId = '{{ privateCloudsId }}'
AND projectsId = '{{ projectsId }}';

DELETE example

Deletes the specified logging_servers resource.

/*+ delete */
DELETE FROM google.vmwareengine.logging_servers
WHERE locationsId = '{{ locationsId }}'
AND loggingServersId = '{{ loggingServersId }}'
AND privateCloudsId = '{{ privateCloudsId }}'
AND projectsId = '{{ projectsId }}';