Skip to main content

domain_mappings

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

Overview

Namedomain_mappings
TypeResource
Idgoogle.appengine.domain_mappings

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringRelative name of the domain serving the application. Example: example.com.
namestringOutput only. Full path to the DomainMapping resource in the API. Example: apps/myapp/domainMapping/example.com.@OutputOnly
resourceRecordsarrayOutput only. The resource records required to configure this domain mapping. These records must be added to the domain's DNS configuration in order to serve the application via this domain mapping.@OutputOnly
sslSettingsobjectSSL configuration for this domain. If unconfigured, this domain will not serve with SSL. (id: SslSettings)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, applicationsId, domainMappingsIdGets the specified domain mapping.
listselectprojectsId, locationsId, applicationsIdpageSize, pageTokenLists the domain mappings on an application.
createinsertprojectsId, locationsId, applicationsIdoverrideStrategyMaps a domain to an application. A user must be authorized to administer a domain in order to map it to an application. For a list of available authorized domains, see AuthorizedDomains.ListAuthorizedDomains.
patchupdateprojectsId, locationsId, applicationsId, domainMappingsIdupdateMaskUpdates the specified domain mapping. To map an SSL certificate to a domain mapping, update certificate_id to point to an AuthorizedCertificate resource. A user must be authorized to administer the associated domain in order to update a DomainMapping resource.
deletedeleteprojectsId, locationsId, applicationsId, domainMappingsIdDeletes the specified domain mapping. A user must be authorized to administer the associated domain in order to delete a DomainMapping resource.

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
domainMappingsIdstring
locationsIdstring
projectsIdstring
overrideStrategystring
pageSizeinteger (int32)
pageTokenstring
updateMaskstring (google-fieldmask)

SELECT examples

Gets the specified domain mapping.

SELECT
id,
name,
resourceRecords,
sslSettings
FROM google.appengine.domain_mappings
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND applicationsId = '{{ applicationsId }}' -- required
AND domainMappingsId = '{{ domainMappingsId }}' -- required
;

INSERT examples

Maps a domain to an application. A user must be authorized to administer a domain in order to map it to an application. For a list of available authorized domains, see AuthorizedDomains.ListAuthorizedDomains.

INSERT INTO google.appengine.domain_mappings (
data__id,
data__sslSettings,
projectsId,
locationsId,
applicationsId,
overrideStrategy
)
SELECT
'{{ id }}',
'{{ sslSettings }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ applicationsId }}',
'{{ overrideStrategy }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Updates the specified domain mapping. To map an SSL certificate to a domain mapping, update certificate_id to point to an AuthorizedCertificate resource. A user must be authorized to administer the associated domain in order to update a DomainMapping resource.

UPDATE google.appengine.domain_mappings
SET
data__id = '{{ id }}',
data__sslSettings = '{{ sslSettings }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND applicationsId = '{{ applicationsId }}' --required
AND domainMappingsId = '{{ domainMappingsId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples

Deletes the specified domain mapping. A user must be authorized to administer the associated domain in order to delete a DomainMapping resource.

DELETE FROM google.appengine.domain_mappings
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND applicationsId = '{{ applicationsId }}' --required
AND domainMappingsId = '{{ domainMappingsId }}' --required
;