Skip to main content

archive_deployments

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

Overview

Namearchive_deployments
TypeResource
Idgoogle.apigee.archive_deployments

Fields

NameDatatypeDescription
namestringName of the Archive Deployment in the following format: organizations/{org}/environments/{env}/archiveDeployments/{id}.
createdAtstringOutput only. The time at which the Archive Deployment was created in milliseconds since the epoch.
gcsUristringInput only. The Google Cloud Storage signed URL returned from GenerateUploadUrl and used to upload the Archive zip file.
labelsobjectUser-supplied key-value pairs used to organize ArchiveDeployments. Label keys must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: \p{Ll}\p{Lo}{0,62} Label values must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63} No more than 64 labels can be associated with a given store.
operationstringOutput only. A reference to the LRO that created this Archive Deployment in the following format: organizations/{org}/operations/{id}
updatedAtstringOutput only. The time at which the Archive Deployment was updated in milliseconds since the epoch.

Methods

NameAccessible byRequired ParamsDescription
organizations_environments_archive_deployments_getSELECTarchiveDeploymentsId, environmentsId, organizationsIdGets the specified ArchiveDeployment.
organizations_environments_archive_deployments_listSELECTenvironmentsId, organizationsIdLists the ArchiveDeployments in the specified Environment.
organizations_environments_archive_deployments_createINSERTenvironmentsId, organizationsIdCreates a new ArchiveDeployment.
organizations_environments_archive_deployments_deleteDELETEarchiveDeploymentsId, environmentsId, organizationsIdDeletes an archive deployment.
organizations_environments_archive_deployments_patchUPDATEarchiveDeploymentsId, environmentsId, organizationsIdUpdates an existing ArchiveDeployment. Labels can modified but most of the other fields are not modifiable.
organizations_environments_archive_deployments_generate_download_urlEXECarchiveDeploymentsId, environmentsId, organizationsIdGenerates a signed URL for downloading the original zip file used to create an Archive Deployment. The URL is only valid for a limited period and should be used within minutes after generation. Each call returns a new upload URL.
organizations_environments_archive_deployments_generate_upload_urlEXECenvironmentsId, organizationsIdGenerates a signed URL for uploading an Archive zip file to Google Cloud Storage. Once the upload is complete, the signed URL should be passed to CreateArchiveDeployment. When uploading to the generated signed URL, please follow these restrictions: Source file type should be a zip file. Source file size should not exceed 1GB limit. No credentials should be attached - the signed URLs provide access to the target bucket using internal service identity; if credentials were attached, the identity from the credentials would be used, but that identity does not have permissions to upload files to the URL. When making a HTTP PUT request, these two headers need to be specified: content-type: application/zip x-goog-content-length-range: 0,1073741824 And this header SHOULD NOT be specified: Authorization: Bearer YOUR_TOKEN

SELECT examples

Lists the ArchiveDeployments in the specified Environment.

SELECT
name,
createdAt,
gcsUri,
labels,
operation,
updatedAt
FROM google.apigee.archive_deployments
WHERE environmentsId = '{{ environmentsId }}'
AND organizationsId = '{{ organizationsId }}';

INSERT example

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

/*+ create */
INSERT INTO google.apigee.archive_deployments (
environmentsId,
organizationsId,
name,
gcsUri,
labels
)
SELECT
'{{ environmentsId }}',
'{{ organizationsId }}',
'{{ name }}',
'{{ gcsUri }}',
'{{ labels }}'
;

UPDATE example

Updates a archive_deployments resource.

/*+ update */
UPDATE google.apigee.archive_deployments
SET
name = '{{ name }}',
gcsUri = '{{ gcsUri }}',
labels = '{{ labels }}'
WHERE
archiveDeploymentsId = '{{ archiveDeploymentsId }}'
AND environmentsId = '{{ environmentsId }}'
AND organizationsId = '{{ organizationsId }}';

DELETE example

Deletes the specified archive_deployments resource.

/*+ delete */
DELETE FROM google.apigee.archive_deployments
WHERE archiveDeploymentsId = '{{ archiveDeploymentsId }}'
AND environmentsId = '{{ environmentsId }}'
AND organizationsId = '{{ organizationsId }}';