Skip to main content

regional_endpoints

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

Overview

Nameregional_endpoints
TypeResource
Idgoogle.networkconnectivity.regional_endpoints

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringOutput only. The name of a RegionalEndpoint. Pattern: projects/{project}/locations/{location}/regionalEndpoints/^[-a-z0-9](?:[-a-z0-9]{0,44})[a-z0-9]$.
accessTypestringRequired. The access type of this regional endpoint. This field is reflected in the PSC Forwarding Rule configuration to enable global access.
addressstringOptional. The IP Address of the Regional Endpoint. When no address is provided, an IP from the subnetwork is allocated. Use one of the following formats: * IPv4 address as in 10.0.0.1 * Address resource URI as in projects/{project}/regions/{region}/addresses/{address_name} for an IPv4 or IPv6 address.
createTimestring (google-datetime)Output only. Time when the RegionalEndpoint was created.
descriptionstringOptional. A description of this resource.
ipAddressstringOutput only. The literal IP address of the PSC Forwarding Rule created on behalf of the customer. This field is deprecated. Use address instead.
labelsobjectUser-defined labels.
networkstringThe name of the VPC network for this private regional endpoint. Format: projects/{project}/global/networks/{network}
pscForwardingRulestringOutput only. The resource reference of the PSC Forwarding Rule created on behalf of the customer. Format: //compute.googleapis.com/projects/{project}/regions/{region}/forwardingRules/{forwarding_rule_name}
subnetworkstringThe name of the subnetwork from which the IP address will be allocated. Format: projects/{project}/regions/{region}/subnetworks/{subnetwork}
targetGoogleApistringRequired. The service endpoint this private regional endpoint connects to. Format: {apiname}.{region}.p.rep.googleapis.com Example: "cloudkms.us-central1.p.rep.googleapis.com".
updateTimestring (google-datetime)Output only. Time when the RegionalEndpoint was updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, regionalEndpointsIdGets details of a single RegionalEndpoint.
listselectprojectsId, locationsIdpageSize, pageToken, filter, orderByLists RegionalEndpoints in a given project and location.
createinsertprojectsId, locationsIdregionalEndpointId, requestIdCreates a new RegionalEndpoint in a given project and location.
deletedeleteprojectsId, locationsId, regionalEndpointsIdrequestIdDeletes a single RegionalEndpoint.

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
locationsIdstring
projectsIdstring
regionalEndpointsIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
regionalEndpointIdstring
requestIdstring

SELECT examples

Gets details of a single RegionalEndpoint.

SELECT
name,
accessType,
address,
createTime,
description,
ipAddress,
labels,
network,
pscForwardingRule,
subnetwork,
targetGoogleApi,
updateTime
FROM google.networkconnectivity.regional_endpoints
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND regionalEndpointsId = '{{ regionalEndpointsId }}' -- required;

INSERT examples

Creates a new RegionalEndpoint in a given project and location.

INSERT INTO google.networkconnectivity.regional_endpoints (
data__labels,
data__description,
data__targetGoogleApi,
data__network,
data__subnetwork,
data__accessType,
data__address,
projectsId,
locationsId,
regionalEndpointId,
requestId
)
SELECT
'{{ labels }}',
'{{ description }}',
'{{ targetGoogleApi }}',
'{{ network }}',
'{{ subnetwork }}',
'{{ accessType }}',
'{{ address }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ regionalEndpointId }}',
'{{ requestId }}'
RETURNING
name,
done,
error,
metadata,
response
;

DELETE examples

Deletes a single RegionalEndpoint.

DELETE FROM google.networkconnectivity.regional_endpoints
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND regionalEndpointsId = '{{ regionalEndpointsId }}' --required
AND requestId = '{{ requestId }}';