aliases
Creates, updates, deletes, gets or lists a aliases
resource.
Overview
Name | aliases |
Type | Resource |
Id | google.apigee.aliases |
Fields
Name | Datatype | Description |
---|---|---|
alias | string | Resource ID for this alias. Values must match the regular expression [^/]{1,255} . |
certsInfo | object | |
type | string | Type of alias. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
organizations_environments_keystores_aliases_get | SELECT | aliasesId, environmentsId, keystoresId, organizationsId | Gets an alias. |
organizations_environments_keystores_aliases_create | INSERT | environmentsId, keystoresId, organizationsId | Creates 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_delete | DELETE | aliasesId, environmentsId, keystoresId, organizationsId | Deletes an alias. |
organizations_environments_keystores_aliases_update | REPLACE | aliasesId, environmentsId, keystoresId, organizationsId | Updates the certificate in an alias. |
organizations_environments_keystores_aliases_csr | EXEC | aliasesId, environmentsId, keystoresId, organizationsId | Generates 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.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.apigee.aliases (
environmentsId,
keystoresId,
organizationsId,
contentType,
data,
extensions
)
SELECT
'{{ environmentsId }}',
'{{ keystoresId }}',
'{{ organizationsId }}',
'{{ contentType }}',
'{{ data }}',
'{{ extensions }}'
;
- name: your_resource_model_name
props:
- name: contentType
value: string
- name: data
value: string
- name: extensions
value:
- object
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 }}';