Skip to main content

ca_pools

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

Overview

Nameca_pools
TypeResource
Idgoogle.privateca.ca_pools

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringIdentifier. The resource name for this CaPool in the format projects/*/locations/*/caPools/*.
issuancePolicyobjectOptional. The IssuancePolicy to control how Certificates will be issued from this CaPool. (id: IssuancePolicy)
labelsobjectOptional. Labels with user-defined metadata.
publishingOptionsobjectOptional. The PublishingOptions to follow when issuing Certificates from any CertificateAuthority in this CaPool. (id: PublishingOptions)
tierstringRequired. Immutable. The Tier of this CaPool.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, caPoolsIdReturns a CaPool.
listselectprojectsId, locationsIdpageSize, pageToken, filter, orderByLists CaPools.
createinsertprojectsId, locationsIdcaPoolId, requestIdCreate a CaPool.
patchupdateprojectsId, locationsId, caPoolsIdupdateMask, requestIdUpdate a CaPool.
deletedeleteprojectsId, locationsId, caPoolsIdrequestId, ignoreDependentResourcesDelete a CaPool.

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
caPoolsIdstring
locationsIdstring
projectsIdstring
caPoolIdstring
filterstring
ignoreDependentResourcesboolean
orderBystring
pageSizeinteger (int32)
pageTokenstring
requestIdstring
updateMaskstring (google-fieldmask)

SELECT examples

Returns a CaPool.

SELECT
name,
issuancePolicy,
labels,
publishingOptions,
tier
FROM google.privateca.ca_pools
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND caPoolsId = '{{ caPoolsId }}' -- required;

INSERT examples

Create a CaPool.

INSERT INTO google.privateca.ca_pools (
data__name,
data__tier,
data__issuancePolicy,
data__publishingOptions,
data__labels,
projectsId,
locationsId,
caPoolId,
requestId
)
SELECT
'{{ name }}',
'{{ tier }}',
'{{ issuancePolicy }}',
'{{ publishingOptions }}',
'{{ labels }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ caPoolId }}',
'{{ requestId }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Update a CaPool.

UPDATE google.privateca.ca_pools
SET
data__name = '{{ name }}',
data__tier = '{{ tier }}',
data__issuancePolicy = '{{ issuancePolicy }}',
data__publishingOptions = '{{ publishingOptions }}',
data__labels = '{{ labels }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND caPoolsId = '{{ caPoolsId }}' --required
AND updateMask = '{{ updateMask}}'
AND requestId = '{{ requestId}}'
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples

Delete a CaPool.

DELETE FROM google.privateca.ca_pools
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND caPoolsId = '{{ caPoolsId }}' --required
AND requestId = '{{ requestId }}'
AND ignoreDependentResources = '{{ ignoreDependentResources }}';