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

NameDatatypeDescription
idstringRelative name of the domain serving the application. Example: example.com.
namestringFull path to the DomainMapping resource in the API. Example: apps/myapp/domainMapping/example.com.@OutputOnly
resourceRecordsarrayThe 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 a DomainMapping resource.

Methods

NameAccessible byRequired ParamsDescription
getSELECTappsId, domainMappingsIdGets the specified domain mapping.
listSELECTappsIdLists the domain mappings on an application.
createINSERTappsIdMaps 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.
deleteDELETEappsId, domainMappingsIdDeletes the specified domain mapping. A user must be authorized to administer the associated domain in order to delete a DomainMapping resource.
patchUPDATEappsId, domainMappingsIdUpdates 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.

SELECT examples

Lists the domain mappings on an application.

SELECT
id,
name,
resourceRecords,
sslSettings
FROM google.appengine.domain_mappings
WHERE appsId = '{{ appsId }}';

INSERT example

Use the following StackQL query and manifest file to create a new domain_mappings resource.

/*+ create */
INSERT INTO google.appengine.domain_mappings (
appsId,
name,
sslSettings,
resourceRecords
)
SELECT
'{{ appsId }}',
'{{ name }}',
'{{ sslSettings }}',
'{{ resourceRecords }}'
;

UPDATE example

Updates a domain_mappings resource.

/*+ update */
UPDATE google.appengine.domain_mappings
SET
name = '{{ name }}',
sslSettings = '{{ sslSettings }}',
resourceRecords = '{{ resourceRecords }}'
WHERE
appsId = '{{ appsId }}'
AND domainMappingsId = '{{ domainMappingsId }}';

DELETE example

Deletes the specified domain_mappings resource.

/*+ delete */
DELETE FROM google.appengine.domain_mappings
WHERE appsId = '{{ appsId }}'
AND domainMappingsId = '{{ domainMappingsId }}';