Skip to main content

applications

Creates, updates, deletes, gets or lists an applications resource.

Overview

Nameapplications
TypeResource
Idgoogle.beyondcorp.applications

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringIdentifier. Name of the resource.
createTimestring (google-datetime)Output only. Timestamp when the resource was created.
displayNamestringOptional. An arbitrary user-provided name for the application resource. Cannot exceed 64 characters.
endpointMatchersarrayRequired. Endpoint matchers associated with an application. A combination of hostname and ports as endpoint matchers is used to match the application. Match conditions for OR logic. An array of match conditions to allow for multiple matching criteria. The rule is considered a match if one of the conditions is met. The conditions can be one of the following combinations (Hostname), (Hostname & Ports) EXAMPLES: Hostname - ("*.example.com"), ("xyz.example.com") Hostname and Ports - ("example.com" and "22"), ("example.com" and "22,33") etc
updateTimestring (google-datetime)Output only. Timestamp when the resource was last modified.
upstreamsarrayOptional. Which upstream resources to forward traffic to.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_security_gateways_applications_getselectprojectsId, locationsId, securityGatewaysId, applicationsIdGets details of a single Application.
projects_locations_security_gateways_applications_listselectprojectsId, locationsId, securityGatewaysIdpageSize, pageToken, filter, orderByLists Applications in a given project and location.
projects_locations_security_gateways_applications_createinsertprojectsId, locationsId, securityGatewaysIdapplicationId, requestIdCreates a new Application in a given project and location.
projects_locations_security_gateways_applications_patchupdateprojectsId, locationsId, securityGatewaysId, applicationsIdupdateMask, requestIdUpdates the parameters of a single Application.
projects_locations_security_gateways_applications_deletedeleteprojectsId, locationsId, securityGatewaysId, applicationsIdrequestId, validateOnlyDeletes a single application.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
applicationsIdstring
locationsIdstring
projectsIdstring
securityGatewaysIdstring
applicationIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
requestIdstring
updateMaskstring (google-fieldmask)
validateOnlyboolean

SELECT examples

Gets details of a single Application.

SELECT
name,
createTime,
displayName,
endpointMatchers,
updateTime,
upstreams
FROM google.beyondcorp.applications
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND securityGatewaysId = '{{ securityGatewaysId }}' -- required
AND applicationsId = '{{ applicationsId }}' -- required;

INSERT examples

Creates a new Application in a given project and location.

INSERT INTO google.beyondcorp.applications (
data__name,
data__endpointMatchers,
data__displayName,
data__upstreams,
projectsId,
locationsId,
securityGatewaysId,
applicationId,
requestId
)
SELECT
'{{ name }}',
'{{ endpointMatchers }}',
'{{ displayName }}',
'{{ upstreams }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ securityGatewaysId }}',
'{{ applicationId }}',
'{{ requestId }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Updates the parameters of a single Application.

UPDATE google.beyondcorp.applications
SET
data__name = '{{ name }}',
data__endpointMatchers = '{{ endpointMatchers }}',
data__displayName = '{{ displayName }}',
data__upstreams = '{{ upstreams }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND securityGatewaysId = '{{ securityGatewaysId }}' --required
AND applicationsId = '{{ applicationsId }}' --required
AND updateMask = '{{ updateMask}}'
AND requestId = '{{ requestId}}'
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples

Deletes a single application.

DELETE FROM google.beyondcorp.applications
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND securityGatewaysId = '{{ securityGatewaysId }}' --required
AND applicationsId = '{{ applicationsId }}' --required
AND requestId = '{{ requestId }}'
AND validateOnly = '{{ validateOnly }}';