domain_mappings
Creates, updates, deletes, gets or lists a domain_mappings
resource.
Overview
Name | domain_mappings |
Type | Resource |
Id | google.appengine.domain_mappings |
Fields
Name | Datatype | Description |
---|---|---|
id | string | Relative name of the domain serving the application. Example: example.com. |
name | string | Full path to the DomainMapping resource in the API. Example: apps/myapp/domainMapping/example.com.@OutputOnly |
resourceRecords | array | 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 |
sslSettings | object | SSL configuration for a DomainMapping resource. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | appsId, domainMappingsId | Gets the specified domain mapping. |
list | SELECT | appsId | Lists the domain mappings on an application. |
create | INSERT | appsId | 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. |
delete | DELETE | appsId, domainMappingsId | Deletes the specified domain mapping. A user must be authorized to administer the associated domain in order to delete a DomainMapping resource. |
patch | UPDATE | appsId, domainMappingsId | 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. |
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.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.appengine.domain_mappings (
appsId,
name,
sslSettings,
resourceRecords
)
SELECT
'{{ appsId }}',
'{{ name }}',
'{{ sslSettings }}',
'{{ resourceRecords }}'
;
- name: your_resource_model_name
props:
- name: name
value: string
- name: id
value: string
- name: sslSettings
value:
- name: certificateId
value: string
- name: sslManagementType
value: string
- name: pendingManagedCertificateId
value: string
- name: resourceRecords
value:
- - name: name
value: string
- name: rrdata
value: string
- name: type
value: string
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 }}';