# REST Resource: projects.locations.privateClouds.loggingServers

- [Resource: LoggingServer](https://docs.cloud.google.com/vmware-engine/docs/public/reference/rest/v1/projects.locations.privateClouds.loggingServers#LoggingServer)
  - [JSON representation](https://docs.cloud.google.com/vmware-engine/docs/public/reference/rest/v1/projects.locations.privateClouds.loggingServers#LoggingServer.SCHEMA_REPRESENTATION)
- [Protocol](https://docs.cloud.google.com/vmware-engine/docs/public/reference/rest/v1/projects.locations.privateClouds.loggingServers#Protocol)
- [SourceType](https://docs.cloud.google.com/vmware-engine/docs/public/reference/rest/v1/projects.locations.privateClouds.loggingServers#SourceType)
- [Methods](https://docs.cloud.google.com/vmware-engine/docs/public/reference/rest/v1/projects.locations.privateClouds.loggingServers#METHODS_SUMMARY)

## Resource: LoggingServer

Logging server to receive vCenter or ESXi logs.

| JSON representation |
|---|
| ``` { "name": string, "createTime": string, "updateTime": string, "hostname": string, "port": integer, "protocol": enum (`https://docs.cloud.google.com/vmware-engine/docs/public/reference/rest/v1/projects.locations.privateClouds.loggingServers#Protocol`), "sourceType": enum (`https://docs.cloud.google.com/vmware-engine/docs/public/reference/rest/v1/projects.locations.privateClouds.loggingServers#SourceType`), "uid": string } ``` |

| Fields ||
|---|---|
| `name` | `string` Output 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` |
| `createTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. Creation time of this resource. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `updateTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. Last update time of this resource. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `hostname` | `string` Required. Fully-qualified domain name (FQDN) or IP Address of the logging server. |
| `port` | `integer` Required. Port number at which the logging server receives logs. |
| `protocol` | ``enum (`https://docs.cloud.google.com/vmware-engine/docs/public/reference/rest/v1/projects.locations.privateClouds.loggingServers#Protocol`)`` Required. Protocol used by vCenter to send logs to a logging server. |
| `sourceType` | ``enum (`https://docs.cloud.google.com/vmware-engine/docs/public/reference/rest/v1/projects.locations.privateClouds.loggingServers#SourceType`)`` Required. The type of component that produces logs that will be forwarded to this logging server. |
| `uid` | `string` Output only. System-generated unique identifier for the resource. |

## Protocol

Defines possible protocols used to send logs to a logging server.

| Enums ||
|---|---|
| `PROTOCOL_UNSPECIFIED` | Unspecified communications protocol. This is the default value. |
| `UDP` | UDP |
| `TCP` | TCP |
| `TLS` | TLS |
| `SSL` | SSL |
| `RELP` | RELP |

## SourceType

Defines possible types of component that produces logs.

| Enums ||
|---|---|
| `SOURCE_TYPE_UNSPECIFIED` | The default value. This value should never be used. |
| `ESXI` | Logs produced by ESXI hosts |
| `VCSA` | Logs produced by vCenter server |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/vmware-engine/docs/public/reference/rest/v1/projects.locations.privateClouds.loggingServers/create` | Create a new logging server for a given private cloud. |
| ### `https://docs.cloud.google.com/vmware-engine/docs/public/reference/rest/v1/projects.locations.privateClouds.loggingServers/delete` | Deletes a single logging server. |
| ### `https://docs.cloud.google.com/vmware-engine/docs/public/reference/rest/v1/projects.locations.privateClouds.loggingServers/get` | Gets details of a logging server. |
| ### `https://docs.cloud.google.com/vmware-engine/docs/public/reference/rest/v1/projects.locations.privateClouds.loggingServers/list` | Lists logging servers configured for a given private cloud. |
| ### `https://docs.cloud.google.com/vmware-engine/docs/public/reference/rest/v1/projects.locations.privateClouds.loggingServers/patch` | Updates the parameters of a single logging server. |