ee.Blob.url
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Zwraca adres URL obiektu blob w Google Cloud Storage. Metadane zasobnika muszą być dostępne (wymagają uprawnienia
storage.buckets.get
, które jest przyznawane m.in. przez rolę „Odczytujący starsze zasobniki Cloud Storage”, patrz https://cloud.google.com/storage/docs/access-control/iam-roles), a zasobnik musi znajdować się w regionie obejmującym wiele lokalizacji w USA, w regionie podwójnym obejmującym region US-CENTRAL1 lub w regionie US-CENTRAL1.
Wykorzystanie | Zwroty |
---|
Blob.url() | Ciąg znaków |
Argument | Typ | Szczegóły |
---|
to: blob | Blob | |
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-26 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-26 UTC."],[[["\u003cp\u003eThis function returns the Google Cloud Storage URL of a Blob object as a string.\u003c/p\u003e\n"],["\u003cp\u003eIt is accessed via the \u003ccode\u003eurl()\u003c/code\u003e method directly on a Blob instance, taking no additional arguments.\u003c/p\u003e\n"]]],["The core function retrieves a Blob's Google Cloud Storage URL, returning it as a String. It requires `storage.buckets.get` permission (e.g., via \"Storage Legacy Bucket Reader\" role). The associated bucket must reside in the US multi-region, a dual-region encompassing US-CENTRAL1, or solely in the US-CENTRAL1 region. The function takes the `blob` as an argument.\n"],null,["# ee.Blob.url\n\nReturns the Blob's Google Cloud Storage URL. The bucket metadata must be accessible (requires the `storage.buckets.get` permission which is provided by the role \"Storage Legacy Bucket Reader\" among others, see https://cloud.google.com/storage/docs/access-control/iam-roles) and the bucket must be located in the US multi-region, a dual-region including US-CENTRAL1, or theUS-CENTRAL1 region.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|--------------|---------|\n| Blob.url`()` | String |\n\n| Argument | Type | Details |\n|--------------|------|---------|\n| this: `blob` | Blob | |"]]