apps
Creates, updates, deletes, gets or lists an apps
resource.
Overview
Name | apps |
Type | Resource |
Id | google.appengine.apps |
Fields
The following fields are returned by SELECT
queries:
- get
Successful response
Name | Datatype | Description |
---|---|---|
id | string | Identifier of the Application resource. This identifier is equivalent to the project ID of the Google Cloud Platform project where you want to deploy your application. Example: myapp. |
name | string | |
authDomain | string | Google Apps authentication domain that controls which users can access this application.Defaults to open access for any Google Account. |
codeBucket | string | Output only. Google Cloud Storage bucket that can be used for storing files associated with this application. This bucket is associated with the application and can be used by the gcloud deployment commands.@OutputOnly |
databaseType | string | The type of the Cloud Firestore or Cloud Datastore database associated with this application. |
defaultBucket | string | Output only. Google Cloud Storage bucket that can be used by this application to store content.@OutputOnly |
defaultCookieExpiration | string (google-duration) | Cookie expiration policy for this application. |
defaultHostname | string | Output only. Hostname used to reach this application, as resolved by App Engine.@OutputOnly |
dispatchRules | array | HTTP path dispatch rules for requests to the application that do not explicitly target a service or version. Rules are order-dependent. Up to 20 dispatch rules can be supported. |
featureSettings | object | The feature specific settings to be used in the application. (id: FeatureSettings) |
gcrDomain | string | Output only. The Google Container Registry domain used for storing managed build docker images for this application. |
generatedCustomerMetadata | object | Additional Google Generated Customer Metadata, this field won't be provided by default and can be requested by setting the IncludeExtraData field in GetApplicationRequest |
iap | object | Identity-Aware Proxy (id: IdentityAwareProxy) |
locationId | string | Location from which this application runs. Application instances run out of the data centers in the specified location, which is also where all of the application's end user content is stored.Defaults to us-central.View the list of supported locations (https://cloud.google.com/appengine/docs/locations). |
serviceAccount | string | The service account associated with the application. This is the app-level default identity. If no identity provided during create version, Admin API will fallback to this one. |
servingStatus | string | Serving status of this application. |
sslPolicy | string | The SSL policy that will be applied to the application. If set to Modern it will restrict traffic with TLS < 1.2 and allow only Modern Ciphers suite |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | appsId | includeExtraData | Gets information about an application. |
create | insert | Creates an App Engine application for a Google Cloud Platform project. Required fields: id - The ID of the target Cloud Platform project. location - The region (https://cloud.google.com/appengine/docs/locations) where you want the App Engine application located.For more information about App Engine applications, see Managing Projects, Applications, and Billing (https://cloud.google.com/appengine/docs/standard/python/console/). | ||
patch | update | projectsId , locationsId , applicationsId | updateMask | Updates the specified Application resource. You can update the following fields: auth_domain - Google authentication domain for controlling user access to the application. default_cookie_expiration - Cookie expiration policy for the application. iap - Identity-Aware Proxy properties for the application. |
repair | exec | appsId | Recreates the required App Engine features for the specified App Engine application, for example a Cloud Storage bucket or App Engine service account. Use this method if you receive an error message about a missing feature, for example, Error retrieving the App Engine service account. If you have deleted your App Engine service account, this will not be able to recreate it. Instead, you should attempt to use the IAM undelete API if possible at https://cloud.google.com/iam/reference/rest/v1/projects.serviceAccounts/undelete?apix_params=%7B"name"%3A"projects%2F-%2FserviceAccounts%2Funique_id"%2C"resource"%3A%7B%7D%7D . If the deletion was recent, the numeric ID can be found in the Cloud Console Activity Log. |
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.
Name | Datatype | Description |
---|---|---|
applicationsId | string | |
appsId | string | |
locationsId | string | |
projectsId | string | |
includeExtraData | string | |
updateMask | string (google-fieldmask) |
SELECT
examples
- get
Gets information about an application.
SELECT
id,
name,
authDomain,
codeBucket,
databaseType,
defaultBucket,
defaultCookieExpiration,
defaultHostname,
dispatchRules,
featureSettings,
gcrDomain,
generatedCustomerMetadata,
iap,
locationId,
serviceAccount,
servingStatus,
sslPolicy
FROM google.appengine.apps
WHERE appsId = '{{ appsId }}' -- required
AND includeExtraData = '{{ includeExtraData }}';
INSERT
examples
- create
- Manifest
Creates an App Engine application for a Google Cloud Platform project. Required fields: id - The ID of the target Cloud Platform project. location - The region (https://cloud.google.com/appengine/docs/locations) where you want the App Engine application located.For more information about App Engine applications, see Managing Projects, Applications, and Billing (https://cloud.google.com/appengine/docs/standard/python/console/).
INSERT INTO google.appengine.apps (
data__id,
data__dispatchRules,
data__authDomain,
data__locationId,
data__defaultCookieExpiration,
data__servingStatus,
data__serviceAccount,
data__iap,
data__databaseType,
data__featureSettings,
data__generatedCustomerMetadata,
data__sslPolicy
)
SELECT
'{{ id }}',
'{{ dispatchRules }}',
'{{ authDomain }}',
'{{ locationId }}',
'{{ defaultCookieExpiration }}',
'{{ servingStatus }}',
'{{ serviceAccount }}',
'{{ iap }}',
'{{ databaseType }}',
'{{ featureSettings }}',
'{{ generatedCustomerMetadata }}',
'{{ sslPolicy }}'
RETURNING
name,
done,
error,
metadata,
response
;
# Description fields are for documentation purposes
- name: apps
props:
- name: id
value: string
description: >
Identifier of the Application resource. This identifier is equivalent to the project ID of the Google Cloud Platform project where you want to deploy your application. Example: myapp.
- name: dispatchRules
value: array
description: >
HTTP path dispatch rules for requests to the application that do not explicitly target a service or version. Rules are order-dependent. Up to 20 dispatch rules can be supported.
- name: authDomain
value: string
description: >
Google Apps authentication domain that controls which users can access this application.Defaults to open access for any Google Account.
- name: locationId
value: string
description: >
Location from which this application runs. Application instances run out of the data centers in the specified location, which is also where all of the application's end user content is stored.Defaults to us-central.View the list of supported locations (https://cloud.google.com/appengine/docs/locations).
- name: defaultCookieExpiration
value: string
description: >
Cookie expiration policy for this application.
- name: servingStatus
value: string
description: >
Serving status of this application.
valid_values: ['UNSPECIFIED', 'SERVING', 'USER_DISABLED', 'SYSTEM_DISABLED']
- name: serviceAccount
value: string
description: >
The service account associated with the application. This is the app-level default identity. If no identity provided during create version, Admin API will fallback to this one.
- name: iap
value: object
description: >
Identity-Aware Proxy
- name: databaseType
value: string
description: >
The type of the Cloud Firestore or Cloud Datastore database associated with this application.
valid_values: ['DATABASE_TYPE_UNSPECIFIED', 'CLOUD_DATASTORE', 'CLOUD_FIRESTORE', 'CLOUD_DATASTORE_COMPATIBILITY']
- name: featureSettings
value: object
description: >
The feature specific settings to be used in the application.
- name: generatedCustomerMetadata
value: object
description: >
Additional Google Generated Customer Metadata, this field won't be provided by default and can be requested by setting the IncludeExtraData field in GetApplicationRequest
- name: sslPolicy
value: string
description: >
The SSL policy that will be applied to the application. If set to Modern it will restrict traffic with TLS < 1.2 and allow only Modern Ciphers suite
valid_values: ['SSL_POLICY_UNSPECIFIED', 'DEFAULT', 'MODERN']
UPDATE
examples
- patch
Updates the specified Application resource. You can update the following fields: auth_domain - Google authentication domain for controlling user access to the application. default_cookie_expiration - Cookie expiration policy for the application. iap - Identity-Aware Proxy properties for the application.
UPDATE google.appengine.apps
SET
data__id = '{{ id }}',
data__dispatchRules = '{{ dispatchRules }}',
data__authDomain = '{{ authDomain }}',
data__locationId = '{{ locationId }}',
data__defaultCookieExpiration = '{{ defaultCookieExpiration }}',
data__servingStatus = '{{ servingStatus }}',
data__serviceAccount = '{{ serviceAccount }}',
data__iap = '{{ iap }}',
data__databaseType = '{{ databaseType }}',
data__featureSettings = '{{ featureSettings }}',
data__generatedCustomerMetadata = '{{ generatedCustomerMetadata }}',
data__sslPolicy = '{{ sslPolicy }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND applicationsId = '{{ applicationsId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
done,
error,
metadata,
response;
Lifecycle Methods
- repair
Recreates the required App Engine features for the specified App Engine application, for example a Cloud Storage bucket or App Engine service account. Use this method if you receive an error message about a missing feature, for example, Error retrieving the App Engine service account. If you have deleted your App Engine service account, this will not be able to recreate it. Instead, you should attempt to use the IAM undelete API if possible at https://cloud.google.com/iam/reference/rest/v1/projects.serviceAccounts/undelete?apix_params=%7B"name"%3A"projects%2F-%2FserviceAccounts%2Funique_id"%2C"resource"%3A%7B%7D%7D . If the deletion was recent, the numeric ID can be found in the Cloud Console Activity Log.
EXEC google.appengine.apps.repair
@appsId='{{ appsId }}' --required;