Generates 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 archiveDeployments.create.
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
HTTP request
POST https://apigee.googleapis.com/v1/{parent=organizations/*/environments/*}/archiveDeployments:generateUploadUrl
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-04 UTC."],[[["This API generates a signed URL for uploading a zip file to Google Cloud Storage, intended for use with `archiveDeployments.create`."],["The uploaded zip file must be under 1GB, sent without any credentials in the request, and use the `content-type: application/zip` and `x-goog-content-length-range: 0,1073741824` headers."],["The HTTP request to generate the signed URL is a `POST` request to `https://apigee.googleapis.com/v1/{parent=organizations/*/environments/*}/archiveDeployments:generateUploadUrl`, with an empty request body."],["The required authorization for generating the signed URL is the `apigee.archivedeployments.upload` IAM permission on the specified `parent` resource, and the `https://www.googleapis.com/auth/cloud-platform` OAuth scope."],["The successful response will contain a single string field named `uploadUri` holding the signed URL for uploading the zip file."]]],[]]