logging_servers
Creates, updates, deletes, gets or lists a logging_servers
resource.
Overview
Name | logging_servers |
Type | Resource |
Id | google.vmwareengine.logging_servers |
Fields
Name | Datatype | Description |
---|---|---|
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 | Output only. Creation time of this resource. |
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 | string | Required. Protocol used by vCenter to send logs to a logging server. |
sourceType | string | 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. |
updateTime | string | Output only. Last update time of this resource. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | locationsId, loggingServersId, privateCloudsId, projectsId | Gets details of a logging server. |
list | SELECT | locationsId, privateCloudsId, projectsId | Lists logging servers configured for a given private cloud. |
create | INSERT | locationsId, privateCloudsId, projectsId | Create a new logging server for a given private cloud. |
delete | DELETE | locationsId, loggingServersId, privateCloudsId, projectsId | Deletes a single logging server. |
patch | UPDATE | locationsId, loggingServersId, privateCloudsId, projectsId | Updates 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.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.vmwareengine.logging_servers (
locationsId,
privateCloudsId,
projectsId,
hostname,
port,
protocol,
sourceType
)
SELECT
'{{ locationsId }}',
'{{ privateCloudsId }}',
'{{ projectsId }}',
'{{ hostname }}',
'{{ port }}',
'{{ protocol }}',
'{{ sourceType }}'
;
- name: your_resource_model_name
props:
- name: name
value: string
- name: createTime
value: string
- name: updateTime
value: string
- name: hostname
value: string
- name: port
value: integer
- name: protocol
value: string
- name: sourceType
value: string
- name: uid
value: string
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 }}';