Skip to main content

authorized_certificates

Creates, updates, deletes, gets or lists an authorized_certificates resource.

Overview

Nameauthorized_certificates
TypeResource
Idgoogle.appengine.authorized_certificates

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
idstringRelative name of the certificate. This is a unique value autogenerated on AuthorizedCertificate resource creation. Example: 12345.@OutputOnly
namestringFull path to the AuthorizedCertificate resource in the API. Example: apps/myapp/authorizedCertificates/12345.@OutputOnly
certificateRawDataobjectThe SSL certificate serving the AuthorizedCertificate resource. This must be obtained independently from a certificate authority. (id: CertificateRawData)
displayNamestringThe user-specified display name of the certificate. This is not guaranteed to be unique. Example: My Certificate.
domainMappingsCountinteger (int32)Aggregate count of the domain mappings with this certificate mapped. This count includes domain mappings on applications for which the user does not have VIEWER permissions.Only returned by GET or LIST requests when specifically requested by the view=FULL_CERTIFICATE option.@OutputOnly
domainNamesarrayTopmost applicable domains of this certificate. This certificate applies to these domains and their subdomains. Example: example.com.@OutputOnly
expireTimestring (google-datetime)The time when this certificate expires. To update the renewal time on this certificate, upload an SSL certificate with a different expiration time using AuthorizedCertificates.UpdateAuthorizedCertificate.@OutputOnly
managedCertificateobjectOnly applicable if this certificate is managed by App Engine. Managed certificates are tied to the lifecycle of a DomainMapping and cannot be updated or deleted via the AuthorizedCertificates API. If this certificate is manually administered by the user, this field will be empty.@OutputOnly (id: ManagedCertificate)
visibleDomainMappingsarrayThe full paths to user visible Domain Mapping resources that have this certificate mapped. Example: apps/myapp/domainMappings/example.com.This may not represent the full list of mapped domain mappings if the user does not have VIEWER permissions on all of the applications that have this certificate mapped. See domain_mappings_count for a complete count.Only returned by GET or LIST requests when specifically requested by the view=FULL_CERTIFICATE option.@OutputOnly

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, applicationsId, authorizedCertificatesIdviewGets the specified SSL certificate.
listselectprojectsId, locationsId, applicationsIdview, pageSize, pageTokenLists all SSL certificates the user is authorized to administer.
createinsertprojectsId, locationsId, applicationsIdUploads the specified SSL certificate.
patchupdateprojectsId, locationsId, applicationsId, authorizedCertificatesIdupdateMaskUpdates the specified SSL certificate. To renew a certificate and maintain its existing domain mappings, update certificate_data with a new certificate. The new certificate must be applicable to the same domains as the original certificate. The certificate display_name may also be updated.
deletedeleteprojectsId, locationsId, applicationsId, authorizedCertificatesIdDeletes the specified SSL certificate.

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

SELECT examples

Gets the specified SSL certificate.

SELECT
id,
name,
certificateRawData,
displayName,
domainMappingsCount,
domainNames,
expireTime,
managedCertificate,
visibleDomainMappings
FROM google.appengine.authorized_certificates
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND applicationsId = '{{ applicationsId }}' -- required
AND authorizedCertificatesId = '{{ authorizedCertificatesId }}' -- required
AND view = '{{ view }}';

INSERT examples

Uploads the specified SSL certificate.

INSERT INTO google.appengine.authorized_certificates (
data__name,
data__id,
data__displayName,
data__domainNames,
data__expireTime,
data__certificateRawData,
data__managedCertificate,
data__visibleDomainMappings,
data__domainMappingsCount,
projectsId,
locationsId,
applicationsId
)
SELECT
'{{ name }}',
'{{ id }}',
'{{ displayName }}',
'{{ domainNames }}',
'{{ expireTime }}',
'{{ certificateRawData }}',
'{{ managedCertificate }}',
'{{ visibleDomainMappings }}',
{{ domainMappingsCount }},
'{{ projectsId }}',
'{{ locationsId }}',
'{{ applicationsId }}'
RETURNING
id,
name,
certificateRawData,
displayName,
domainMappingsCount,
domainNames,
expireTime,
managedCertificate,
visibleDomainMappings
;

UPDATE examples

Updates the specified SSL certificate. To renew a certificate and maintain its existing domain mappings, update certificate_data with a new certificate. The new certificate must be applicable to the same domains as the original certificate. The certificate display_name may also be updated.

UPDATE google.appengine.authorized_certificates
SET
data__name = '{{ name }}',
data__id = '{{ id }}',
data__displayName = '{{ displayName }}',
data__domainNames = '{{ domainNames }}',
data__expireTime = '{{ expireTime }}',
data__certificateRawData = '{{ certificateRawData }}',
data__managedCertificate = '{{ managedCertificate }}',
data__visibleDomainMappings = '{{ visibleDomainMappings }}',
data__domainMappingsCount = {{ domainMappingsCount }}
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND applicationsId = '{{ applicationsId }}' --required
AND authorizedCertificatesId = '{{ authorizedCertificatesId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
id,
name,
certificateRawData,
displayName,
domainMappingsCount,
domainNames,
expireTime,
managedCertificate,
visibleDomainMappings;

DELETE examples

Deletes the specified SSL certificate.

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