Skip to main content

backend_authentication_configs

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

Overview

Namebackend_authentication_configs
TypeResource
Idgoogle.networksecurity.backend_authentication_configs

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringRequired. Name of the BackendAuthenticationConfig resource. It matches the pattern projects/*/locations/{location}/backendAuthenticationConfigs/{backend_authentication_config}
clientCertificatestringOptional. A reference to a certificatemanager.googleapis.com.Certificate resource. This is a relative resource path following the form "projects/{project}/locations/{location}/certificates/{certificate}". Used by a BackendService to negotiate mTLS when the backend connection uses TLS and the backend requests a client certificate. Must have a CLIENT_AUTH scope.
createTimestring (google-datetime)Output only. The timestamp when the resource was created.
descriptionstringOptional. Free-text description of the resource.
etagstringOutput only. Etag of the resource.
labelsobjectSet of label tags associated with the resource.
trustConfigstringOptional. A reference to a TrustConfig resource from the certificatemanager.googleapis.com namespace. This is a relative resource path following the form "projects/{project}/locations/{location}/trustConfigs/{trust_config}". A BackendService uses the chain of trust represented by this TrustConfig, if specified, to validate the server certificates presented by the backend. Required unless wellKnownRoots is set to PUBLIC_ROOTS.
updateTimestring (google-datetime)Output only. The timestamp when the resource was updated.
wellKnownRootsstringWell known roots to use for server certificate validation.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_backend_authentication_configs_getselectprojectsId, locationsId, backendAuthenticationConfigsIdGets details of a single BackendAuthenticationConfig to BackendAuthenticationConfig.
projects_locations_backend_authentication_configs_listselectprojectsId, locationsIdpageSize, pageTokenLists BackendAuthenticationConfigs in a given project and location.
projects_locations_backend_authentication_configs_createinsertprojectsId, locationsIdbackendAuthenticationConfigIdCreates a new BackendAuthenticationConfig in a given project and location.
projects_locations_backend_authentication_configs_patchupdateprojectsId, locationsId, backendAuthenticationConfigsIdupdateMaskUpdates the parameters of a single BackendAuthenticationConfig to BackendAuthenticationConfig.
projects_locations_backend_authentication_configs_deletedeleteprojectsId, locationsId, backendAuthenticationConfigsIdetagDeletes a single BackendAuthenticationConfig to BackendAuthenticationConfig.

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
backendAuthenticationConfigsIdstring
locationsIdstring
projectsIdstring
backendAuthenticationConfigIdstring
etagstring
pageSizeinteger (int32)
pageTokenstring
updateMaskstring (google-fieldmask)

SELECT examples

Gets details of a single BackendAuthenticationConfig to BackendAuthenticationConfig.

SELECT
name,
clientCertificate,
createTime,
description,
etag,
labels,
trustConfig,
updateTime,
wellKnownRoots
FROM google.networksecurity.backend_authentication_configs
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND backendAuthenticationConfigsId = '{{ backendAuthenticationConfigsId }}' -- required;

INSERT examples

Creates a new BackendAuthenticationConfig in a given project and location.

INSERT INTO google.networksecurity.backend_authentication_configs (
data__name,
data__description,
data__labels,
data__clientCertificate,
data__trustConfig,
data__wellKnownRoots,
projectsId,
locationsId,
backendAuthenticationConfigId
)
SELECT
'{{ name }}',
'{{ description }}',
'{{ labels }}',
'{{ clientCertificate }}',
'{{ trustConfig }}',
'{{ wellKnownRoots }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ backendAuthenticationConfigId }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Updates the parameters of a single BackendAuthenticationConfig to BackendAuthenticationConfig.

UPDATE google.networksecurity.backend_authentication_configs
SET
data__name = '{{ name }}',
data__description = '{{ description }}',
data__labels = '{{ labels }}',
data__clientCertificate = '{{ clientCertificate }}',
data__trustConfig = '{{ trustConfig }}',
data__wellKnownRoots = '{{ wellKnownRoots }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND backendAuthenticationConfigsId = '{{ backendAuthenticationConfigsId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples

Deletes a single BackendAuthenticationConfig to BackendAuthenticationConfig.

DELETE FROM google.networksecurity.backend_authentication_configs
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND backendAuthenticationConfigsId = '{{ backendAuthenticationConfigsId }}' --required
AND etag = '{{ etag }}';