Skip to main content

certificates

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

Overview

Namecertificates
TypeResource
Idgoogle.integrations.certificates

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringOutput only. Auto generated primary key
certificateStatusstringStatus of the certificate
credentialIdstringImmutable. Credential id that will be used to register with trawler
descriptionstringDescription of the certificate
displayNamestringRequired. Name of the certificate
rawCertificateobjectInput only. Raw client certificate which would be registered with trawler (id: GoogleCloudIntegrationsV1alphaClientCertificate)
requestorIdstringImmutable. Requestor ID to be used to register certificate with trawler
validEndTimestring (google-datetime)Output only. The timestamp after which certificate will expire
validStartTimestring (google-datetime)Output only. The timestamp after which certificate will be valid

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_products_certificates_getselectprojectsId, locationsId, productsId, certificatesIdGet a certificates in the specified project.
projects_locations_products_certificates_listselectprojectsId, locationsId, productsIdpageSize, pageToken, filter, readMaskList all the certificates that match the filter. Restrict to certificate of current client only.
projects_locations_certificates_getselectprojectsId, locationsId, certificatesIdGet a certificates in the specified project.
projects_locations_certificates_listselectprojectsId, locationsIdpageSize, pageToken, filter, readMaskList all the certificates that match the filter. Restrict to certificate of current client only.
projects_locations_products_certificates_createinsertprojectsId, locationsId, productsIdCreates a new certificate. The certificate will be registered to the trawler service and will be encrypted using cloud KMS and stored in Spanner Returns the certificate.
projects_locations_certificates_createinsertprojectsId, locationsIdCreates a new certificate. The certificate will be registered to the trawler service and will be encrypted using cloud KMS and stored in Spanner Returns the certificate.
projects_locations_products_certificates_patchupdateprojectsId, locationsId, productsId, certificatesIdupdateMaskUpdates the certificate by id. If new certificate file is updated, it will register with the trawler service, re-encrypt with cloud KMS and update the Spanner record. Other fields will directly update the Spanner record. Returns the Certificate.
projects_locations_certificates_patchupdateprojectsId, locationsId, certificatesIdupdateMaskUpdates the certificate by id. If new certificate file is updated, it will register with the trawler service, re-encrypt with cloud KMS and update the Spanner record. Other fields will directly update the Spanner record. Returns the Certificate.
projects_locations_products_certificates_deletedeleteprojectsId, locationsId, productsId, certificatesIdDelete a certificate
projects_locations_certificates_deletedeleteprojectsId, locationsId, certificatesIdDelete a 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
certificatesIdstring
locationsIdstring
productsIdstring
projectsIdstring
filterstring
pageSizeinteger (int32)
pageTokenstring
readMaskstring (google-fieldmask)
updateMaskstring (google-fieldmask)

SELECT examples

Get a certificates in the specified project.

SELECT
name,
certificateStatus,
credentialId,
description,
displayName,
rawCertificate,
requestorId,
validEndTime,
validStartTime
FROM google.integrations.certificates
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND productsId = '{{ productsId }}' -- required
AND certificatesId = '{{ certificatesId }}' -- required;

INSERT examples

Creates a new certificate. The certificate will be registered to the trawler service and will be encrypted using cloud KMS and stored in Spanner Returns the certificate.

INSERT INTO google.integrations.certificates (
data__displayName,
data__description,
data__requestorId,
data__credentialId,
data__certificateStatus,
data__rawCertificate,
projectsId,
locationsId,
productsId
)
SELECT
'{{ displayName }}',
'{{ description }}',
'{{ requestorId }}',
'{{ credentialId }}',
'{{ certificateStatus }}',
'{{ rawCertificate }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ productsId }}'
RETURNING
name,
certificateStatus,
credentialId,
description,
displayName,
rawCertificate,
requestorId,
validEndTime,
validStartTime
;

UPDATE examples

Updates the certificate by id. If new certificate file is updated, it will register with the trawler service, re-encrypt with cloud KMS and update the Spanner record. Other fields will directly update the Spanner record. Returns the Certificate.

UPDATE google.integrations.certificates
SET
data__displayName = '{{ displayName }}',
data__description = '{{ description }}',
data__requestorId = '{{ requestorId }}',
data__credentialId = '{{ credentialId }}',
data__certificateStatus = '{{ certificateStatus }}',
data__rawCertificate = '{{ rawCertificate }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND productsId = '{{ productsId }}' --required
AND certificatesId = '{{ certificatesId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
certificateStatus,
credentialId,
description,
displayName,
rawCertificate,
requestorId,
validEndTime,
validStartTime;

DELETE examples

Delete a certificate

DELETE FROM google.integrations.certificates
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND productsId = '{{ productsId }}' --required
AND certificatesId = '{{ certificatesId }}' --required;