Skip to main content

aliases

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

Overview

Namealiases
TypeResource
Idgoogle.apigee.aliases

Fields

NameDatatypeDescription
aliasstringResource ID for this alias. Values must match the regular expression [^/]{1,255}.
certsInfoobject
typestringType of alias.

Methods

NameAccessible byRequired ParamsDescription
organizations_environments_keystores_aliases_getSELECTaliasesId, environmentsId, keystoresId, organizationsIdGets an alias.
organizations_environments_keystores_aliases_createINSERTenvironmentsId, keystoresId, organizationsIdCreates an alias from a key/certificate pair. The structure of the request is controlled by the format query parameter: - keycertfile - Separate PEM-encoded key and certificate files are uploaded. Set Content-Type: multipart/form-data and include the keyFile, certFile, and password (if keys are encrypted) fields in the request body. If uploading to a truststore, omit keyFile. - pkcs12 - A PKCS12 file is uploaded. Set Content-Type: multipart/form-data, provide the file in the file field, and include the password field if the file is encrypted in the request body. - selfsignedcert - A new private key and certificate are generated. Set Content-Type: application/json and include CertificateGenerationSpec in the request body.
organizations_environments_keystores_aliases_deleteDELETEaliasesId, environmentsId, keystoresId, organizationsIdDeletes an alias.
organizations_environments_keystores_aliases_updateREPLACEaliasesId, environmentsId, keystoresId, organizationsIdUpdates the certificate in an alias.
organizations_environments_keystores_aliases_csrEXECaliasesId, environmentsId, keystoresId, organizationsIdGenerates a PKCS #10 Certificate Signing Request for the private key in an alias.

SELECT examples

Gets an alias.

SELECT
alias,
certsInfo,
type
FROM google.apigee.aliases
WHERE aliasesId = '{{ aliasesId }}'
AND environmentsId = '{{ environmentsId }}'
AND keystoresId = '{{ keystoresId }}'
AND organizationsId = '{{ organizationsId }}';

INSERT example

Use the following StackQL query and manifest file to create a new aliases resource.

/*+ create */
INSERT INTO google.apigee.aliases (
environmentsId,
keystoresId,
organizationsId,
contentType,
data,
extensions
)
SELECT
'{{ environmentsId }}',
'{{ keystoresId }}',
'{{ organizationsId }}',
'{{ contentType }}',
'{{ data }}',
'{{ extensions }}'
;

REPLACE example

Replaces all fields in the specified aliases resource.

/*+ update */
REPLACE google.apigee.aliases
SET
contentType = '{{ contentType }}',
data = '{{ data }}',
extensions = '{{ extensions }}'
WHERE
aliasesId = '{{ aliasesId }}'
AND environmentsId = '{{ environmentsId }}'
AND keystoresId = '{{ keystoresId }}'
AND organizationsId = '{{ organizationsId }}';

DELETE example

Deletes the specified aliases resource.

/*+ delete */
DELETE FROM google.apigee.aliases
WHERE aliasesId = '{{ aliasesId }}'
AND environmentsId = '{{ environmentsId }}'
AND keystoresId = '{{ keystoresId }}'
AND organizationsId = '{{ organizationsId }}';