gcloud beta compute backend-buckets add-signed-url-key Stay organized with collections Save and categorize content based on your preferences.
- NAME
- gcloud beta compute backend-buckets add-signed-url-key - add Cloud CDN Signed URL key to a backend bucket
- SYNOPSIS
gcloud beta compute backend-buckets add-signed-url-keyBACKEND_BUCKET_NAME--key-file=LOCAL_FILE_PATH--key-name=KEY_NAME[GCLOUD_WIDE_FLAG …]
- DESCRIPTION
(BETA)gcloud beta compute backend-bucketsadd-signed-url-keyis used to add a new Cloud CDN Signed URL key to abackend bucket.Cloud CDN Signed URLs give you a way to serve responses from the globallydistributed CDN cache, even if the request needs to be authorized.
Signed URLs are a mechanism to temporarily give a client access to a privateresource without requiring additional authorization. To achieve this, the fullrequest URL that should be allowed is hashed and cryptographically signed. Byusing the signed URL you give it, that one request will be considered authorizedto receive the requested content.
Generally, a signed URL can be used by anyone who has it. However, it is usuallyonly intended to be used by the client that was directly given the URL. Tomitigate this, they expire at a time chosen by the issuer. To minimize the riskof a signed URL being shared, it is recommended that the signed URL be set toexpire as soon as possible.
A 128-bit secret key is used for signing the URLs.
- POSITIONAL ARGUMENTS
BACKEND_BUCKET_NAME- Name of the backend bucket to add CDN signed URL key to.
- REQUIRED FLAGS
--key-file=LOCAL_FILE_PATH- The file containing the RFC 4648 Section 5 base64url encoded 128-bit secret keyfor Cloud CDN Signed URL. It is vital that the key is strongly random. One wayto generate such a key is with the following command:
head-c16/dev/random|base64|tr+/-_ >[KEY_FILE_NAME]
--key-name=KEY_NAME- Name of the Cloud CDN Signed URL key.
- GCLOUD WIDE FLAGS
- These flags are available to all commands:
--access-token-file,--account,--billing-project,--configuration,--flags-file,--flatten,--format,--help,--impersonate-service-account,--log-http,--project,--quiet,--trace-token,--user-output-enabled,--verbosity.Run
$gcloud helpfor details. - NOTES
- This command is currently in beta and might change without notice. Thesevariants are also available:
gcloudcomputebackend-bucketsadd-signed-url-keygcloudalphacomputebackend-bucketsadd-signed-url-key
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-22 UTC.